/* ═══════════════════════════════════════════════════════
   ROYAL PUBLIC SCHOOL — Student Dashboard CSS
   Mobile-first · Bottom nav · 4 tabs
   ═══════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────── */
.dash-page {
  background: var(--off-white);
  min-height: 100vh;
  padding-top: 62px;
  padding-bottom: 72px;
  font-family: var(--sans);
}

/* ── Top bar ─────────────────────────────────────────── */
.dash-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 62px; background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.dash-topbar-brand { display: flex; align-items: center; gap: 10px; }
.dash-topbar-brand img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(200,150,62,.45); object-fit: cover; flex-shrink: 0;
}
.dash-school-name { font-family: var(--serif); font-size: .9rem; color: var(--white); font-weight: 700; line-height: 1.1; }
.dash-school-sub  { font-size: .58rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .07em; }
.dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.dash-user-pill   { display: flex; align-items: center; gap: 8px; }
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--white); font-size: .82rem; flex-shrink: 0;
}
.dash-user-name  { font-size: .8rem; color: rgba(255,255,255,.9); font-weight: 500; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-class { font-size: .62rem; color: var(--gold-light); }
.btn-logout {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.14); padding: 5px 12px;
  border-radius: var(--radius); font-size: .74rem; cursor: pointer;
  font-family: var(--sans); transition: all .2s; white-space: nowrap;
}
.btn-logout:hover { background: rgba(220,38,38,.18); color: #fca5a5; border-color: rgba(220,38,38,.3); }

/* ── Content area ────────────────────────────────────── */
.dash-content { max-width: 680px; margin: 0 auto; padding: 20px 16px 16px; }

/* ── Loading / error states ─────────────────────────── */
.dash-loader {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; min-height: 50vh;
}
.dash-loader p { color: var(--muted); font-size: .88rem; }
.loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-error-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-height: 50vh; text-align: center;
}
.dash-error-state h3 { color: var(--navy); }
.dash-error-state p  { color: var(--muted); font-size: .88rem; max-width: 100%; }
.retry-btn {
  margin-top: 6px; padding: 10px 24px; background: var(--gold);
  color: var(--white); border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: .88rem; font-weight: 600; cursor: pointer;
}

/* ── Section title ──────────────────────────────────── */
.dash-section-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--navy);
  margin: 24px 0 12px; display: flex; align-items: center; gap: 7px;
}

/* ── Greeting ────────────────────────────────────────── */
.dash-greeting-wrap {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 90% 0%, rgba(200,150,62,.2) 0%, transparent 55%);
  border-radius: var(--radius-lg); padding: 22px 20px;
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  flex-wrap: wrap;
}
.dash-greeting-label { font-size: .68rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.dash-greeting-name  { font-family: var(--serif); font-size: 1.4rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.dash-date           { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 4px; }
.dash-quote-wrap { max-width: 200px; text-align: right; }
.dash-quote-text   { font-size: .75rem; color: rgba(255,255,255,.6); font-style: italic; line-height: 1.5; }
.dash-quote-author { font-size: .65rem; color: var(--gold-light); margin-top: 4px; font-weight: 600; }

/* ── KPI cards ───────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 22px;
}
/* 4th and 5th span 1.5 each on last row */
.kpi-grid .kpi-card:nth-child(4),
.kpi-grid .kpi-card:nth-child(5) { grid-column: span 1; }

.kpi-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 16px 14px; border: 1.5px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: box-shadow .2s, transform .2s;
}
.kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi-card.kpi-gold  { border-top: 3px solid var(--gold); }
.kpi-card.kpi-navy  { border-top: 3px solid var(--navy); }
.kpi-card.kpi-green { border-top: 3px solid #22c55e; }
.kpi-card.kpi-blue  { border-top: 3px solid #3b82f6; }
.kpi-card.kpi-warn  { border-top: 3px solid #f59e0b; }
.kpi-icon  { font-size: 1.2rem; line-height: 1; }
.kpi-value { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.kpi-value-sm { font-size: 1rem !important; line-height: 1.2 !important; }
.kpi-label { font-size: .62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* ── Attendance section ──────────────────────────────── */
.att-row {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); padding: 20px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.att-donut-wrap { position: relative; flex-shrink: 0; }
.att-center-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center; pointer-events: none;
}
.att-pct-big { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.att-pct-lbl { font-size: .56rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.att-stats { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.att-stat-item {
  flex: 1; min-width: 70px; background: var(--off-white);
  border-radius: var(--radius); padding: 12px 10px; text-align: center;
  border: 1.5px solid var(--border);
}
.att-stat-item.att-green { border-color: #86efac; background: #f0fdf4; }
.att-stat-item.att-red   { border-color: #fca5a5; background: #fef2f2; }
.att-stat-item.att-navy  { border-color: rgba(14,34,67,.2); background: var(--gold-bg); }
.att-stat-num { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); display: block; line-height: 1; }
.att-stat-lbl { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; display: block; }

.att-warning {
  background: #fef3c7; border: 1.5px solid #fcd34d; color: #92400e;
  border-radius: var(--radius); padding: 10px 14px;
  font-size: .82rem; font-weight: 600; margin-bottom: 10px;
}

/* ── Exam countdown ──────────────────────────────────── */
.exam-countdown-card {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 80% 50%, rgba(200,150,62,.15) 0%, transparent 60%);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 4px;
}
.ec-left   { flex: 1; }
.ec-name   { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.ec-subject { font-size: .78rem; color: var(--gold-light); margin-top: 3px; }
.ec-date   { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.ec-right  { text-align: center; flex-shrink: 0; }
.ec-days   { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.ec-days-lbl { font-size: .62rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; }

/* ── Notices list ────────────────────────────────────── */
.notices-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.notice-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color .2s, box-shadow .2s;
}
.notice-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.notice-card.urgent { border-left: 3px solid #ef4444; }
.notice-date-col { flex-shrink: 0; text-align: center; min-width: 36px; }
.notice-day  { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1; display: block; }
.notice-mon  { font-size: .6rem; font-weight: 700; color: var(--gold); text-transform: uppercase; display: block; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { font-size: .9rem; font-weight: 600; color: var(--navy); font-family: var(--sans); margin-bottom: 3px; }
.notice-desc  { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.notice-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 5px;
}
.badge-Exam    { background: #dbeafe; color: #1e40af; }
.badge-Holiday { background: #d1fae5; color: #065f46; }
.badge-Event   { background: #ede9fe; color: #5b21b6; }
.badge-General { background: var(--off-white); color: var(--muted); }
.badge-Urgent  { background: #fee2e2; color: #991b1b; }

.see-all-btn {
  width: 100%; padding: 11px; background: var(--off-white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  color: var(--navy); cursor: pointer; transition: all .2s;
}
.see-all-btn:hover { background: var(--gold-bg); border-color: var(--gold); color: var(--gold); }

/* ── Academics sub-tabs ──────────────────────────────── */
.sub-tab-bar {
  display: flex; gap: 4px; margin-bottom: 18px;
  background: var(--off-white); border-radius: var(--radius);
  padding: 4px; border: 1.5px solid var(--border);
}
.sub-tab {
  flex: 1; padding: 9px 12px; border-radius: 6px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer;
  transition: all .2s;
}
.sub-tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* ── Marks table ─────────────────────────────────────── */
.marks-controls {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.marks-summary-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.mark-pill {
  padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  background: var(--off-white); border: 1.5px solid var(--border); color: var(--text);
}
.mark-pill.best { background: #dcfce7; border-color: #86efac; color: #166534; }
.mark-pill.weak { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }

.csv-btn {
  padding: 8px 16px; background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius); font-family: var(--sans);
  font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.csv-btn:hover { background: var(--navy-mid); }

.marks-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.marks-main-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 480px; }
.marks-main-table thead tr { background: var(--navy); }
.marks-main-table th {
  padding: 12px 14px; text-align: left; font-size: .67rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75);
  white-space: nowrap;
}
.marks-main-table td {
  padding: 12px 14px; font-size: .86rem; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.marks-main-table tr:last-child td { border-bottom: none; }
.marks-main-table tr:nth-child(even) td { background: var(--off-white); }
.marks-main-table tbody tr:hover td { background: var(--gold-bg) !important; }
.marks-main-table td.best-subject { background: #f0fdf4 !important; }
.marks-main-table td.weak-subject { background: #fef2f2 !important; }

.grade-pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 700; }
.g-A1,.g-A2 { background: #dcfce7; color: #166534; }
.g-B1,.g-B2 { background: #dbeafe; color: #1e40af; }
.g-C        { background: #fef3c7; color: #92400e; }
.g-D        { background: #fee2e2; color: #991b1b; }
.pass-pill   { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .65rem; font-weight: 700; }
.pass        { background: #dcfce7; color: #166534; }
.fail        { background: #fee2e2; color: #991b1b; }

/* ── All-time section ────────────────────────────────── */
.alltime-section { margin-top: 8px; }
.alltime-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.alltime-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 14px; text-align: center;
}
.alltime-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.alltime-label { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* ── Charts ──────────────────────────────────────────── */
.chart-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 16px; margin-bottom: 18px;
}
.chart-title { font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.chart-wrap  { position: relative; height: 220px; }

/* ── Notice filters ──────────────────────────────────── */
.notice-filters {
  display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px;
}
.nf-pill {
  padding: 6px 14px; border-radius: 20px; font-size: .76rem; font-weight: 600;
  background: var(--white); border: 1.5px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all .2s; font-family: var(--sans);
}
.nf-pill:hover  { border-color: var(--gold); color: var(--navy); }
.nf-pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Profile ─────────────────────────────────────────── */
.profile-hero-card {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 80% 0%, rgba(200,150,62,.2) 0%, transparent 55%);
  border-radius: var(--radius-lg); padding: 24px 20px;
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px;
}
.profile-photo-wrap { flex-shrink: 0; }
.profile-photo-wrap img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); display: block;
}
.profile-initial-big {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(200,150,62,.2); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--gold-light);
}
.profile-hero-name  { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.profile-hero-class { display: inline-block; background: var(--gold); color: var(--white); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 5px; }
.profile-hero-id    { font-size: .72rem; color: rgba(255,255,255,.5); }

.profile-details-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
}
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--off-white);
  font-size: .86rem;
}
.profile-row:last-child { border-bottom: none; }
.p-lbl { color: var(--muted); font-size: .78rem; font-weight: 500; flex-shrink: 0; }

/* ── Fee status ──────────────────────────────────────── */
.fee-status-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.fee-status-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.fee-status-label { font-size: .92rem; font-weight: 600; color: var(--navy); }
.fee-status-due   { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* ── Profile actions ─────────────────────────────────── */
.profile-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.profile-action-btn {
  width: 100%; padding: 13px 18px; border-radius: var(--radius);
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s; border: 1.5px solid var(--border);
  background: var(--white); color: var(--navy); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.profile-action-btn:hover  { border-color: var(--gold); background: var(--gold-bg); }
.profile-wa      { background: #f0fdf4; border-color: #86efac; color: #166534; }
.profile-wa:hover { background: #dcfce7 !important; }
.profile-logout  { border-color: #fca5a5; color: #dc2626; }
.profile-logout:hover { background: #fef2f2 !important; }

/* ── Dash note ───────────────────────────────────────── */
.dash-note {
  padding: 11px 15px; background: var(--gold-bg);
  border: 1px solid rgba(200,150,62,.22); border-radius: var(--radius);
  font-size: .75rem; color: #7a5a1a; line-height: 1.55;
}
.dash-note a { color: #b8852e; font-weight: 600; }

/* ── Bottom nav ──────────────────────────────────────── */
.dash-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: 64px; background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(14,34,67,.08);
  display: flex; align-items: stretch;
}
.dni {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); color: var(--muted);
  transition: color .2s, background .2s; position: relative;
  padding: 0;
}
.dni:hover  { background: var(--off-white); color: var(--navy); }
.dni.active { color: var(--gold); }
.dni.active::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2.5px;
  background: var(--gold); border-radius: 0 0 4px 4px;
}
.dni-icon  { font-size: 1.25rem; line-height: 1; }
.dni-label { font-size: .6rem; font-weight: 600; letter-spacing: .03em; }

/* ── Login extras ────────────────────────────────────── */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px !important; }
.pass-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1rem; padding: 0; line-height: 1;
}
.btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white);
  animation: spin .7s linear infinite; display: inline-block;
}

/* ── Remember Me modal ───────────────────────────────── */
@keyframes overlayIn { from { opacity: 0; }  to { opacity: 1; } }
@keyframes cardIn {
  from { opacity: 0; transform: scale(.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8,16,36,.65);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: overlayIn .2s ease both;
}

.modal-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255,255,255,.6) inset,
    0 28px 72px rgba(14,34,67,.2),
    0  8px 24px rgba(14,34,67,.1);
  animation: cardIn .35s cubic-bezier(.22,1,.36,1) both;
  position: relative;
}

/* Matching gold top stripe from login card */
.modal-card::before {
  content: '';
  position: absolute; top: 0; left: 36px; right: 36px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
}

.modal-card-inner {
  padding: 36px 32px 30px;
  text-align: center;
}

/* Icon circle — matches login logo ring style */
.modal-visual {
  position: relative;
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-visual-inner {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold), 0 8px 24px rgba(200,150,62,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
/* Spinning dashed halo — same as login logo */
.modal-visual::after {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(200,150,62,.4);
  animation: haloSpin 18s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.modal-card h3 {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.modal-card .modal-desc {
  font-size: .84rem; color: var(--muted);
  line-height: 1.6; max-width: 100%; margin-bottom: 0;
}

.modal-duration-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-bg); border: 1px solid rgba(200,150,62,.25);
  color: #7a5a1a; font-size: .7rem; font-weight: 700;
  padding: 4px 13px; border-radius: 20px;
  margin: 14px 0 22px; letter-spacing: .05em;
}

.modal-btns { display: flex; flex-direction: column; gap: 10px; }

/* Primary — matches login-btn gradient */
.modal-btn-yes {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4a44a 100%);
  color: var(--white); border: none; border-radius: 10px;
  font-family: var(--sans); font-size: .92rem; font-weight: 700;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 4px 16px rgba(200,150,62,.3);
  letter-spacing: .02em;
}
.modal-btn-yes::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
}
.modal-btn-yes:hover {
  background: linear-gradient(135deg, #d4a44a 0%, #b8852e 100%);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 28px rgba(200,150,62,.38);
}
.modal-btn-yes:active { transform: translateY(0); }

/* Secondary — matches login-back link style */
.modal-btn-no {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,.7);
  border: 1.5px solid rgba(228,221,210,.85);
  border-radius: 10px; font-family: var(--sans);
  font-size: .88rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.modal-btn-no:hover {
  border-color: var(--navy); color: var(--navy);
  background: var(--white);
}

.modal-privacy-note {
  font-size: .69rem; color: var(--light-text);
  margin-top: 16px; line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .dash-greeting-wrap { flex-direction: column; gap: 14px; }
  .dash-quote-wrap    { max-width: 100%; text-align: left; }
  .kpi-grid           { grid-template-columns: repeat(2,1fr); }
  .alltime-grid       { grid-template-columns: repeat(2,1fr); }
  .att-row            { flex-direction: column; align-items: stretch; }
  .att-donut-wrap     { margin: 0 auto; }
  .profile-hero-card  { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 340px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .kpi-value { font-size: 1.3rem; }
  .dash-content { padding: 14px 12px; }
}