@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Custom Properties ───────────────────────────────── */
:root {
  --bg:             #1D1B1C;
  --section:        #272425;
  --accent:         #FDBF35;
  --orange:         #FDBF35;
  --red:            #EA3E37;
  --yellow:         #FDBF35;
  --green:          #A1CB53;
  --cyan:           #A438E2;
  --text:           #DAEDFA;
  --muted:          rgba(218, 237, 250, 0.45);
  --dimmed:         rgba(218, 237, 250, 0.25);
  --border:         rgba(218, 237, 250, 0.09);
  --border-strong:  rgba(218, 237, 250, 0.18);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────── */
h1 { font-size: 40px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

/* ── Color Utilities ─────────────────────────────────── */
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }

/* ── Section Label ───────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Navigation ──────────────────────────────────────── */
.site-nav {
  height: 54px;
  background: var(--section);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--text);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-wordmark {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nav-user-name {
  font-size: 13px;
  color: var(--text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Buttons ─────────────────────────────────────────── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

button:hover, .btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-green {
  background: var(--green);
  color: #fff;
  border: none;
}

.btn-danger {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.btn-lg {
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card-lg {
  border-radius: 12px;
  padding: 1.75rem;
}

/* ── Pills ───────────────────────────────────────────── */
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.pill-open {
  background: rgba(113, 178, 127, 0.15);
  color: var(--green);
}

.pill-booked {
  background: rgba(214, 85, 58, 0.15);
  color: var(--orange);
}

.pill-pending {
  background: rgba(217, 168, 84, 0.15);
  color: var(--yellow);
}

.pill-paid {
  background: rgba(113, 178, 127, 0.15);
  color: var(--green);
}

/* ── Forms ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 9px 12px;
  width: 100%;
  transition: border-color 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--dimmed);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--orange);
}

select option {
  background: var(--bg);
  color: var(--text);
}

/* ── Alert / Flash Messages ──────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(113, 178, 127, 0.15);
  color: var(--green);
  border: 1px solid rgba(113, 178, 127, 0.3);
}

.alert-error {
  background: rgba(214, 85, 58, 0.15);
  color: var(--orange);
  border: 1px solid rgba(214, 85, 58, 0.3);
}

/* ── Stat Strip ──────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat-item {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  background-image: url('/img/heroBanner.jpg');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* Dark overlay so text stays readable over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(214, 85, 58, 0.15);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Home: Two-column Layout ─────────────────────────── */
.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.home-col-header {
  margin-bottom: 1.25rem;
}

/* ── Subjects Grid ───────────────────────────────────── */
.subjects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.subject-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s;
}

.subject-card:hover {
  border-color: var(--border-strong);
}

.subject-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.subject-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.subject-dot-orange { background: var(--orange); }
.subject-dot-green  { background: var(--green); }
.subject-dot-yellow { background: var(--yellow); }
.subject-dot-muted  { background: var(--muted); }
.subject-dot-dim    { background: var(--dimmed); }

.subject-name {
  font-size: 13px;
  font-weight: 600;
}

.subject-desc {
  font-size: 12px;
  color: var(--muted);
  padding-left: 1.1rem;
}

.subject-more {
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.subject-more:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Account Preview Card ────────────────────────────── */
.account-preview-card {
  background: var(--section);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
}

.account-preview-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(253, 191, 53, 0.07);
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.avatar-info h3 {
  font-size: 14px;
  font-weight: 700;
}

.avatar-info p {
  font-size: 12px;
  color: var(--muted);
}

.account-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.preview-stat {
  padding: 0.9rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.preview-stat:last-child {
  border-right: none;
}

.preview-stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.preview-stat-label {
  font-size: 11px;
  color: var(--muted);
}

.account-preview-next {
  padding: 1rem 1.25rem 1rem 1.1rem;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  font-size: 13px;
}

.account-preview-next .next-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.account-preview-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.account-preview-login {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 14px;
}

.account-preview-login p {
  margin-bottom: 1rem;
}

.account-preview-login a.btn {
  display: inline-flex;
}

/* ── CTA Bar ─────────────────────────────────────────── */
.cta-bar {
  background: var(--section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-bar-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cta-bar-text p {
  font-size: 14px;
  color: var(--muted);
}

/* ── Login Page ──────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - 54px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.login-logo-wordmark {
  font-size: 15px;
  font-weight: 700;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 20px;
}

.login-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--orange);
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.login-forgot:hover {
  color: var(--orange);
  opacity: 0.8;
}

.login-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--muted);
}

.login-footer a {
  color: var(--orange);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-wordmark {
  font-size: 13px;
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Impersonation Banner ────────────────────────────── */
.impersonation-banner {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.impersonation-banner a {
  color: #fff;
  margin-left: 1.25rem;
  text-decoration: underline;
  font-weight: 400;
}

.impersonation-banner a:hover {
  opacity: 0.85;
}

/* ── Account Layout ──────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

/* Sidebar */
.account-sidebar {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.sidebar-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.sidebar-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: rgba(244,217,178,0.06);
  color: var(--text);
}

.sidebar-nav a.active {
  background: rgba(214,85,58,0.12);
  color: var(--orange);
  font-weight: 600;
}

.sidebar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Main content area */
.account-main {
  min-width: 0;
}

.account-section {
  margin-bottom: 2rem;
}

.account-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.account-greeting {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.account-greeting span {
  color: var(--yellow);
}

/* Metric cards */
.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-value.orange { color: var(--orange); }
.metric-value.yellow { color: var(--yellow); }
.metric-value.green  { color: var(--green);  }

.metric-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Session list */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  transition: border-color 0.15s;
}

.session-row:hover {
  border-color: rgba(244,217,178,0.2);
}

.session-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Subject dots — used in history data table */
.session-dot-math    { background: var(--orange); }
.session-dot-english { background: var(--yellow); }
.session-dot-science { background: var(--green);  }
.session-dot-sat     { background: #7B8BE8;        }
.session-dot-act     { background: #A67BCE;        }
.session-dot-other   { background: var(--muted);   }

/* Location dots — used on session list cards */
.session-dot-havertown { background: var(--orange); }
.session-dot-wayne     { background: #7B9FD4;        }
.session-dot-online    { background: var(--green);   }

.session-info {
  flex: 1;
  min-width: 0;
}

.session-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.session-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.15rem;
}

.session-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.session-time {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.session-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.session-badge-scheduled  { background: rgba(113,178,127,0.15); color: var(--green);  }
.session-badge-completed  { background: rgba(217,168,84,0.15);  color: var(--yellow); }
.session-badge-cancelled  { background: rgba(214,85,58,0.15);   color: var(--orange); }
.session-badge-no-show    { background: rgba(244,217,178,0.08); color: var(--muted);  }
/* Temporal badges (date-based, used on cards) */
.session-badge-upcoming   { background: rgba(113,178,127,0.15); color: var(--green);  }
.session-badge-today      { background: rgba(217,168,84,0.22);  color: var(--yellow); font-weight: 700; }
.session-badge-passed     { background: rgba(244,217,178,0.06); color: var(--muted);  }

.session-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* ── Day-grouped session list ────────────────────────── */
.session-day-group {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.session-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.1rem;
  background: rgba(244,217,178,0.04);
  border-bottom: 1px solid var(--border);
}

.session-day-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.session-day-label .day-name {
  color: var(--yellow);
}

.session-day-count {
  font-size: 11px;
  color: var(--muted);
}

/* Rows inside a group lose their own card chrome */
.session-day-group .session-row {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(244,217,178,0.05);
  padding: 0.75rem 1.1rem;
}

.session-day-group .session-row:last-child {
  border-bottom: none;
}

.session-day-group .session-row:hover {
  background: rgba(244,217,178,0.03);
}

/* History data table */
.data-table-wrap {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  color: var(--text);
  border-bottom: 1px solid rgba(244,217,178,0.05);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(244,217,178,0.03);
}

.data-table .td-muted {
  color: var(--muted);
}

/* Payment summary card */
.payment-summary {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.payment-summary-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.payment-summary-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
}

.payment-summary-amount.owed {
  color: var(--orange);
}

/* Account mobile tabs (replaces sidebar on small screens) */
.account-tabs {
  display: none;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar { display: none; }

.account-tab-btn {
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--section);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.account-tab-btn.active,
.account-tab-btn:hover {
  background: rgba(214,85,58,0.15);
  color: var(--orange);
  border-color: transparent;
}

/* ── Manage / Admin Layout ───────────────────────────── */
.page-heading {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.page-heading .page-heading-meta {
  font-size: 13px;
  color: var(--muted);
}

.card {
  background: var(--section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

input[type="number"] {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 9px 12px;
  width: 100%;
  transition: border-color 0.15s;
}

input[type="number"]:focus,
input[type="time"]:focus,
input[type="date"]:focus { outline: none; border-color: var(--orange); }

input[type="time"],
input[type="date"] {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 9px 12px;
  width: 100%;
  color-scheme: dark;
}

.stat-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat-chip {
  background: rgba(244,217,178,0.07);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 12px;
  color: var(--muted);
}

.stat-chip strong {
  color: var(--text);
  font-weight: 700;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 12px;
  border-radius: 5px;
}

.btn-danger {
  background: rgba(214,85,58,0.12);
  color: var(--orange);
  border: 1px solid rgba(214,85,58,0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: rgba(214,85,58,0.22);
}

.btn-muted {
  background: rgba(244,217,178,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-muted:hover {
  background: rgba(244,217,178,0.1);
  color: var(--text);
}

.sy-filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sy-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--section);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sy-tab:hover { color: var(--text); }

.sy-tab.active {
  background: rgba(214,85,58,0.12);
  color: var(--orange);
  border-color: transparent;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 30px; }

  .nav-links,
  .nav-user-name {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile nav drawer */
  .site-nav {
    position: relative;
  }

  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--section);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0.1rem;
    z-index: 99;
  }

  .nav-mobile-open .nav-links a {
    padding: 0.6rem 0.75rem;
    display: block;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .home-columns {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .account-preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  /* Account layout — collapse sidebar into tab row */
  .account-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 3rem;
  }

  .account-sidebar {
    display: none;
  }

  .account-tabs {
    display: flex;
  }

  .metric-cards {
    grid-template-columns: 1fr 1fr;
  }

  .metric-cards .metric-card:last-child {
    grid-column: span 2;
  }

  .session-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .session-date,
  .session-time {
    text-align: left;
  }

  .payment-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row-2,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
