/* ============================================================
   BrightPath Coaching — Student Panel
   Mobile-first premium light theme
   Fonts: DM Sans (display), Inter (body), Fira Sans (numerals)
   Brand teal shared with Admin panel for product-family consistency
   ============================================================ */

:root{
  --paper:#f4f3ef; --surface:#ffffff; --surface-2:#faf9f6; --surface-3:#f0efe9;
  --ink:#1b2230; --ink-2:#424b5c; --ink-3:#6b7484; --ink-4:#9aa1ad;

  --brand:#126e63; --brand-600:#0f5f56; --brand-700:#0c4d46; --brand-soft:#e3f0ed; --brand-tint:#f0f7f5;
  --amber:#b9772b; --amber-soft:#f7ecdc;

  --green:#2f8f54; --green-soft:#e6f3ea;
  --red:#c0432f; --red-soft:#fae7e2;
  --blue:#2d6db5; --blue-soft:#e6eff7;
  --yellow:#b8901f; --yellow-soft:#f8efd6;
  --violet:#6a4bab; --violet-soft:#efeafa;
  --slate:#5a6473; --slate-soft:#eceef1;

  --line:#e6e4dd; --line-2:#d9d7cf;
  --radius:12px; --radius-sm:9px; --radius-lg:16px; --radius-xl:20px;

  --shadow-sm:0 1px 2px rgba(27,34,48,.05),0 1px 3px rgba(27,34,48,.04);
  --shadow:0 2px 6px rgba(27,34,48,.06),0 8px 24px -12px rgba(27,34,48,.12);
  --shadow-lg:0 12px 40px -12px rgba(27,34,48,.24);

  --header-h:60px;
  --bottomnav-h:64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font-display:'DM Sans',sans-serif;
  --font-body:'Inter',sans-serif;
  --font-num:'Fira Sans',sans-serif;
}

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; padding:0; background:var(--paper); color:var(--ink); font-family:var(--font-body); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
body{ padding-bottom:calc(var(--bottomnav-h) + var(--safe-b) + 10px); min-height:100vh; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); color:var(--ink); margin:0; letter-spacing:-.01em; }
a{ color:var(--brand); text-decoration:none; }
button{ font-family:var(--font-body); }
.num{ font-family:var(--font-num); font-feature-settings:"tnum"; }
input,select,textarea{ font-size:16px; } /* prevent iOS zoom */
::-webkit-scrollbar{ width:6px; height:6px; }
::-webkit-scrollbar-thumb{ background:var(--line-2); border-radius:3px; }

.container-fluid{ padding-left:16px; padding-right:16px; }
.no-bottomnav{ padding-bottom:28px; }

/* ============================== AUTH ============================== */
.auth-page{ min-height:100vh; display:flex; flex-direction:column; background:linear-gradient(160deg,#0c4d46 0%,#126e63 46%,var(--paper) 46%); }
.auth-hero{ padding:calc(28px + var(--safe-t)) 24px 40px; color:#eaf3f1; position:relative; overflow:hidden; }
.auth-hero::after{ content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px); background-size:20px 20px; opacity:.6; pointer-events:none; }
.auth-hero > *{ position:relative; z-index:1; }
.auth-brand{ display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:700; font-size:17px; }
.auth-brand .mark{ width:38px; height:38px; border-radius:11px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.24); display:grid; place-items:center; font-size:18px; font-family:var(--font-display); font-weight:700; }
.auth-hero h1{ color:#fff; font-size:22px; margin-top:20px; line-height:1.25; font-weight:700; max-width:320px; }
.auth-hero p{ color:rgba(234,243,241,.82); font-size:13.5px; margin-top:8px; max-width:300px; }

.auth-card{ background:var(--surface); border-radius:var(--radius-xl) var(--radius-xl) 0 0; box-shadow:var(--shadow-lg); padding:26px 22px calc(28px + var(--safe-b)); flex:1; margin-top:-18px; position:relative; z-index:2; }
.auth-card h2{ font-size:21px; }
.auth-card .sub{ color:var(--ink-3); margin:6px 0 22px; font-size:13.5px; }

.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:600; font-size:12.5px; color:var(--ink-2); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border:1px solid var(--line-2); border-radius:var(--radius-sm);
  background:var(--surface); font-family:var(--font-body); color:var(--ink); min-height:48px;
}
.field textarea{ min-height:90px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.field .err{ color:var(--red); font-size:12px; margin-top:6px; display:none; }
.field.invalid input{ border-color:var(--red); }
.field.invalid .err{ display:block; }

.seg-tabs{ display:flex; background:var(--surface-3); border-radius:var(--radius-sm); padding:3px; gap:2px; margin-bottom:18px; }
.seg-tabs button{ flex:1; border:none; background:transparent; padding:10px 8px; border-radius:8px; font-weight:600; font-size:13px; color:var(--ink-3); cursor:pointer; min-height:44px; }
.seg-tabs button.active{ background:#fff; color:var(--brand-700); box-shadow:var(--shadow-sm); }

.cred-hint{ background:var(--brand-tint); border:1px solid var(--brand-soft); border-radius:var(--radius-sm); padding:12px 13px; font-size:12.5px; color:var(--brand-700); margin-bottom:18px; line-height:1.6; }
.cred-hint b{ font-family:var(--font-num); }

/* OTP */
.otp-row{ display:flex; gap:8px; justify-content:space-between; margin-bottom:8px; }
.otp-box{ width:100%; aspect-ratio:1/1; max-width:50px; text-align:center; font-size:22px; font-weight:700; font-family:var(--font-num); border:1.5px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); padding:0; }
.otp-box:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
.otp-box.filled{ border-color:var(--brand); background:var(--brand-tint); }
.otp-box.shake{ animation:shake .35s; border-color:var(--red); }
@keyframes shake{ 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-6px);} 40%,80%{transform:translateX(6px);} }
.otp-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--ink-3); margin:14px 0 20px; }
.otp-resend{ font-weight:600; color:var(--brand); cursor:pointer; background:none; border:none; padding:0; font-size:12.5px; }
.otp-resend:disabled{ color:var(--ink-4); cursor:default; }

/* ============================== APP SHELL ============================== */
.app-header{ position:sticky; top:0; z-index:40; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); padding-top:var(--safe-t); }
.app-header .row-in{ height:var(--header-h); display:flex; align-items:center; gap:10px; padding:0 14px; }
.hd-btn{ width:38px; height:38px; border-radius:9px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; color:var(--ink-2); flex-shrink:0; cursor:pointer; position:relative; }
.hd-btn:active{ background:var(--surface-2); }
.hd-btn .dot{ position:absolute; top:6px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--red); border:1.5px solid #fff; }
.hd-title{ flex:1; min-width:0; }
.hd-title h1{ font-size:16.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hd-title .sub{ font-size:11px; color:var(--ink-3); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hd-brand{ display:flex; align-items:center; gap:9px; flex:1; min-width:0; }
.hd-brand .mark{ width:34px; height:34px; border-radius:9px; background:linear-gradient(150deg,#1c8a7c,var(--brand)); color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:15px; flex-shrink:0; }
.hd-brand .name{ font-family:var(--font-display); font-weight:700; font-size:14.5px; line-height:1.15; color:var(--ink); }
.hd-brand .name small{ display:block; font-weight:500; font-size:10.5px; color:var(--ink-3); }
.hd-actions{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.hd-avatar{ width:34px; height:34px; border-radius:9px; background:var(--brand); color:#fff; display:grid; place-items:center; font-weight:700; font-size:12.5px; font-family:var(--font-display); cursor:pointer; }

.page-wrap{ max-width:720px; margin:0 auto; padding:16px; }
.section-title{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); font-weight:700; margin:22px 2px 10px; }
.section-title:first-child{ margin-top:2px; }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin:22px 2px 10px; }
.section-head .section-title{ margin:0; }
.section-head a{ font-size:12.5px; font-weight:600; }

/* ============================== BOTTOM NAV ============================== */
.bottom-nav{ position:fixed; left:0; right:0; bottom:0; z-index:50; background:rgba(255,255,255,.96); backdrop-filter:blur(10px); border-top:1px solid var(--line); display:flex; padding:6px 4px calc(6px + var(--safe-b)); box-shadow:0 -4px 18px rgba(27,34,48,.06); }
.bn-item{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:6px 2px; color:var(--ink-4); position:relative; min-height:48px; border-radius:12px; }
.bn-item i{ font-size:18px; line-height:1; }
.bn-item span{ font-size:10.5px; font-weight:600; }
.bn-item.active{ color:var(--brand); }
.bn-item.active::before{ content:""; position:absolute; top:-6px; left:50%; transform:translateX(-50%); width:22px; height:3px; border-radius:3px; background:var(--brand); }
.bn-item .bn-badge{ position:absolute; top:2px; right:calc(50% - 18px); background:var(--red); color:#fff; font-size:9px; font-weight:700; min-width:15px; height:15px; border-radius:8px; display:grid; place-items:center; padding:0 3px; font-family:var(--font-num); }

/* ============================== BUTTONS ============================== */
.btn{ display:inline-flex; align-items:center; gap:8px; justify-content:center; padding:12px 18px; min-height:44px; border-radius:var(--radius-sm); border:1px solid transparent; font-weight:600; font-size:14px; cursor:pointer; transition:background .14s,border-color .14s,transform .05s; white-space:nowrap; }
.btn:active{ transform:translateY(1px); }
.btn i{ font-size:14px; }
.btn-primary{ background:var(--brand); color:#fff; box-shadow:var(--shadow-sm); } .btn-primary:hover{ background:var(--brand-600); }
.btn-primary:disabled{ background:var(--ink-4); cursor:not-allowed; }
.btn-light{ background:var(--surface); color:var(--ink-2); border-color:var(--line-2); } .btn-light:hover{ background:var(--surface-2); }
.btn-ghost{ background:transparent; color:var(--ink-2); } .btn-ghost:hover{ background:var(--surface-3); }
.btn-danger{ background:var(--red); color:#fff; } .btn-outline-danger{ background:transparent;border-color:var(--red);color:var(--red); }
.btn-amber{ background:var(--amber); color:#fff; }
.btn-sm{ padding:8px 13px; font-size:12.5px; min-height:36px; border-radius:8px; }
.btn-block{ width:100%; }
.btn-icon{ width:44px; height:44px; padding:0; border-radius:var(--radius-sm); }

/* ============================== CARDS ============================== */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
.card-head{ padding:15px 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.card-head h3{ font-size:14.5px; } .card-head .sub{ font-size:12px; color:var(--ink-3); margin-top:2px; }
.card-body{ padding:16px; }
.card-foot{ padding:12px 16px; border-top:1px solid var(--line); }
.mb12{ margin-bottom:12px; } .mb16{ margin-bottom:16px; } .mb20{ margin-bottom:20px; } .mt12{ margin-top:12px; } .mt16{ margin-top:16px; }

/* dashboard hero */
.hero-card{ background:linear-gradient(150deg,#0c4d46,var(--brand) 60%,#14564e); border-radius:var(--radius-xl); padding:20px; color:#eaf3f1; position:relative; overflow:hidden; box-shadow:var(--shadow); }
.hero-card::after{ content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px); background-size:18px 18px; opacity:.5; }
.hero-card > *{ position:relative; z-index:1; }
.hero-top{ display:flex; align-items:center; gap:12px; }
.hero-av{ width:50px; height:50px; border-radius:14px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.26); display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:18px; flex-shrink:0; overflow:hidden; }
.hero-av img{ width:100%; height:100%; object-fit:cover; }
.hero-top h2{ color:#fff; font-size:17px; }
.hero-top .meta{ font-size:12px; color:rgba(234,243,241,.78); margin-top:2px; }
.hero-stats{ display:flex; gap:10px; margin-top:16px; }
.hero-stat{ flex:1; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); border-radius:var(--radius-sm); padding:10px 12px; }
.hero-stat .k{ font-size:10.5px; color:rgba(234,243,241,.72); }
.hero-stat .v{ font-family:var(--font-num); font-size:16px; font-weight:700; color:#fff; margin-top:2px; }

/* quick actions */
.qa-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.qa-item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 6px; text-align:center; box-shadow:var(--shadow-sm); color:var(--ink-2); }
.qa-item i{ width:38px; height:38px; border-radius:11px; display:grid; place-items:center; margin:0 auto 8px; font-size:16px; }
.qa-item span{ font-size:11px; font-weight:600; display:block; line-height:1.25; }
.qa-item:active{ background:var(--surface-2); }

/* preview list rows */
.list-row{ display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.list-ic{ width:40px; height:40px; border-radius:11px; display:grid; place-items:center; flex-shrink:0; font-size:16px; }
.list-row .body{ flex:1; min-width:0; }
.list-row .ttl{ font-size:13.5px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-row .sub{ font-size:12px; color:var(--ink-3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-row .end{ text-align:right; flex-shrink:0; }
.list-row .end .v{ font-family:var(--font-num); font-weight:700; font-size:13.5px; }
.list-row .end .t{ font-size:10.5px; color:var(--ink-4); margin-top:2px; }
.list-row.clickable{ cursor:pointer; }
.list-row.clickable:active{ background:var(--surface-2); }

/* ============================== BADGES / CHIPS ============================== */
.badge{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:30px; font-size:11px; font-weight:700; white-space:nowrap; line-height:1.4; }
.badge .pip{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.b-green{ background:var(--green-soft); color:#1f6b3d; }
.b-red{ background:var(--red-soft); color:#9b3322; }
.b-blue{ background:var(--blue-soft); color:#1f548f; }
.b-yellow{ background:var(--yellow-soft); color:#8a6c15; }
.b-violet{ background:var(--violet-soft); color:#4f3690; }
.b-slate{ background:var(--slate-soft); color:#444c58; }
.b-amber{ background:var(--amber-soft); color:#8c5a1f; }
.b-brand{ background:var(--brand-soft); color:var(--brand-700); }

.chips{ display:flex; gap:7px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{ font-size:12.5px; padding:8px 14px; border-radius:30px; background:var(--surface); border:1px solid var(--line-2); color:var(--ink-2); font-weight:600; white-space:nowrap; cursor:pointer; flex-shrink:0; min-height:36px; display:flex; align-items:center; }
.chip.active{ background:var(--brand); color:#fff; border-color:var(--brand); }

/* ============================== SEARCH ============================== */
.search-bar{ position:relative; margin-bottom:14px; }
.search-bar i{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--ink-4); font-size:14px; }
.search-bar input{ width:100%; padding:12px 14px 12px 38px; border:1px solid var(--line-2); border-radius:var(--radius-sm); background:var(--surface); font-family:var(--font-body); min-height:46px; color:var(--ink); }
.search-bar input:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }

/* ============================== PROGRESS ============================== */
.progress-track{ height:8px; border-radius:6px; background:var(--surface-3); overflow:hidden; }
.progress-track > span{ display:block; height:100%; border-radius:6px; background:var(--brand); transition:width .6s cubic-bezier(.4,0,.2,1); }
.progress-track.warn > span{ background:var(--amber); }
.progress-track.danger > span{ background:var(--red); }
.progress-track.green > span{ background:var(--green); }

.ring{ width:84px; height:84px; position:relative; flex-shrink:0; }
.ring svg{ transform:rotate(-90deg); }
.ring .bg{ fill:none; stroke:var(--surface-3); stroke-width:9; }
.ring .fg{ fill:none; stroke:var(--brand); stroke-width:9; stroke-linecap:round; transition:stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.ring .val{ position:absolute; inset:0; display:grid; place-items:center; font-family:var(--font-num); font-weight:700; font-size:17px; color:var(--ink); }

/* ============================== EMPTY / LOADER ============================== */
.empty{ text-align:center; padding:50px 20px; color:var(--ink-3); }
.empty .ic{ width:58px; height:58px; border-radius:16px; background:var(--surface-3); display:grid; place-items:center; margin:0 auto 16px; font-size:24px; color:var(--ink-4); }
.empty h4{ font-size:15px; margin-bottom:6px; color:var(--ink-2); }
.empty p{ max-width:280px; margin:0 auto 16px; font-size:13px; }

.skeleton{ background:linear-gradient(90deg,var(--surface-3) 25%,var(--surface-2) 37%,var(--surface-3) 63%); background-size:400% 100%; animation:skel 1.4s ease infinite; border-radius:var(--radius); }
@keyframes skel{ 0%{background-position:100% 50%;} 100%{background-position:0 50%;} }

/* ============================== TOASTS ============================== */
.toast-wrap{ position:fixed; top:calc(var(--safe-t) + 10px); left:14px; right:14px; z-index:1080; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.stoast{ background:var(--ink); color:#fff; padding:12px 15px; border-radius:11px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px; font-size:13px; animation:tin .22s ease; pointer-events:auto; }
@keyframes tin{ from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:none;} }
.stoast.out{ animation:tout .25s ease forwards; }
@keyframes tout{ to{opacity:0; transform:translateY(-10px);} }
.stoast .ic{ width:22px; height:22px; border-radius:7px; display:grid; place-items:center; flex-shrink:0; font-size:12px; }
.stoast.ok .ic{ background:var(--green); } .stoast.err .ic{ background:var(--red); } .stoast.info .ic{ background:var(--blue); }

/* ============================== MODALS (Bootstrap overrides) ============================== */
.modal-content{ border-radius:var(--radius-lg); border:none; box-shadow:var(--shadow-lg); }
.modal-header{ border-bottom:1px solid var(--line); padding:16px 18px; }
.modal-header .modal-title{ font-family:var(--font-display); font-size:16.5px; }
.modal-body{ padding:18px; }
.modal-footer{ border-top:1px solid var(--line); padding:14px 18px; }
.modal-footer .btn{ margin:0; }
.btn-close:focus{ box-shadow:none; }
.modal.show .modal-dialog{ display:flex; align-items:center; min-height:calc(100% - 3.5rem); }

/* ============================== FORMS (general) ============================== */
.form-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
.form-grid label{ display:block; font-weight:600; font-size:12.5px; color:var(--ink-2); margin-bottom:6px; }
.form-grid input, .form-grid select, .form-grid textarea{ width:100%; padding:12px 13px; border:1px solid var(--line-2); border-radius:var(--radius-sm); font-family:var(--font-body); color:var(--ink); background:var(--surface); min-height:46px; }
.form-grid textarea{ min-height:88px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }

.pay-modes{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pay-mode{ border:1.5px solid var(--line-2); border-radius:var(--radius); padding:13px 10px; text-align:center; cursor:pointer; background:var(--surface); }
.pay-mode i{ font-size:20px; color:var(--ink-3); display:block; margin-bottom:6px; }
.pay-mode span{ font-size:12.5px; font-weight:600; color:var(--ink-2); }
.pay-mode.active{ border-color:var(--brand); background:var(--brand-tint); }
.pay-mode.active i, .pay-mode.active span{ color:var(--brand-700); }

.form-check-toggle{ display:flex; align-items:center; justify-content:space-between; padding:14px 4px; border-bottom:1px solid var(--line); }
.form-check-toggle:last-child{ border-bottom:none; }
.form-check-toggle .lbl b{ display:block; font-size:13.5px; color:var(--ink); font-weight:600; }
.form-check-toggle .lbl span{ font-size:12px; color:var(--ink-3); }
.tswitch{ position:relative; width:46px; height:27px; flex-shrink:0; }
.tswitch input{ opacity:0; width:100%; height:100%; margin:0; position:absolute; cursor:pointer; z-index:1; }
.tswitch .track{ position:absolute; inset:0; background:var(--line-2); border-radius:20px; transition:.2s; }
.tswitch .track::after{ content:""; position:absolute; width:21px; height:21px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; box-shadow:var(--shadow-sm); }
.tswitch input:checked + .track{ background:var(--brand); }
.tswitch input:checked + .track::after{ transform:translateX(19px); }

/* ============================== INSTALLMENTS / ACCORDION ============================== */
.inst-card{ border:1px solid var(--line); border-radius:var(--radius); margin-bottom:10px; overflow:hidden; background:var(--surface); }
.inst-head{ display:flex; align-items:center; gap:10px; padding:13px 14px; cursor:pointer; }
.inst-num{ width:34px; height:34px; border-radius:9px; background:var(--surface-3); display:grid; place-items:center; font-family:var(--font-num); font-weight:700; color:var(--ink-2); flex-shrink:0; font-size:13px; }
.inst-head .body{ flex:1; min-width:0; }
.inst-head .ttl{ font-size:13.5px; font-weight:600; }
.inst-head .sub{ font-size:11.5px; color:var(--ink-3); margin-top:2px; }
.inst-head .amt{ text-align:right; }
.inst-head .amt .v{ font-family:var(--font-num); font-weight:700; font-size:14px; }
.inst-chev{ color:var(--ink-4); font-size:13px; transition:transform .2s; flex-shrink:0; }
.inst-card.open .inst-chev{ transform:rotate(180deg); }
.inst-detail{ padding:0 14px 14px; border-top:1px solid var(--line); }
.inst-detail .dl{ display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; padding-top:12px; }
.inst-detail .dl .k{ font-size:10.5px; text-transform:uppercase; color:var(--ink-4); font-weight:700; letter-spacing:.03em; }
.inst-detail .dl .v{ font-size:13px; color:var(--ink); font-weight:500; margin-top:2px; }

.alert-box{ display:flex; gap:10px; padding:12px 13px; border-radius:var(--radius-sm); font-size:12.5px; margin-bottom:12px; align-items:flex-start; }
.alert-box i{ font-size:15px; margin-top:1px; flex-shrink:0; }
.alert-box.warn{ background:var(--amber-soft); color:#8c5a1f; }
.alert-box.danger{ background:var(--red-soft); color:#9b3322; }
.alert-box.ok{ background:var(--green-soft); color:#1f6b3d; }
.alert-box.info{ background:var(--blue-soft); color:#1f548f; }

/* ============================== FLOW STEPS ============================== */
.flow-steps{ display:flex; gap:0; margin-bottom:4px; }
.flow-step{ flex:1; text-align:center; position:relative; padding-bottom:16px; }
.flow-step::before{ content:""; position:absolute; top:14px; left:50%; right:-50%; height:2px; background:var(--line-2); }
.flow-step:last-child::before{ display:none; }
.flow-step .dot{ width:28px; height:28px; border-radius:50%; background:var(--surface); border:2px solid var(--line-2); display:grid; place-items:center; margin:0 auto 6px; position:relative; z-index:1; font-family:var(--font-num); font-weight:700; color:var(--ink-4); font-size:12px; }
.flow-step.done .dot{ background:var(--brand); border-color:var(--brand); color:#fff; }
.flow-step.done::before{ background:var(--brand); }
.flow-step.active .dot{ border-color:var(--brand); color:var(--brand); box-shadow:0 0 0 4px var(--brand-soft); }
.flow-step .lab{ font-size:10.5px; color:var(--ink-3); font-weight:600; }
.flow-step.done .lab, .flow-step.active .lab{ color:var(--ink); }

/* ============================== RECEIPT / PRINT ============================== */
.receipt{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.receipt-head{ background:var(--brand-tint); padding:18px 18px 16px; border-bottom:2px dashed var(--line-2); }
.receipt-head .org{ display:flex; gap:10px; align-items:center; }
.receipt-head .mark{ width:42px; height:42px; border-radius:11px; background:var(--brand); color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:18px; flex-shrink:0; }
.receipt-head .org h3{ font-size:16px; color:var(--brand-700); }
.receipt-head .org p{ font-size:11.5px; color:var(--ink-3); margin:2px 0 0; }
.receipt-head .rno{ display:flex; justify-content:space-between; margin-top:14px; }
.receipt-head .rno .k{ font-size:10.5px; color:var(--ink-4); text-transform:uppercase; letter-spacing:.03em; }
.receipt-head .rno .v{ font-family:var(--font-num); font-size:13px; font-weight:700; color:var(--ink); margin-top:2px; }
.receipt-body{ padding:18px; }
.receipt-line{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; gap:10px; }
.receipt-line .k{ color:var(--ink-3); }
.receipt-line .v{ font-weight:600; color:var(--ink); text-align:right; }
.receipt-total{ display:flex; justify-content:space-between; padding:14px 0 2px; font-size:15px; }
.receipt-total .v{ font-family:var(--font-num); font-weight:700; color:var(--brand-700); }
.receipt-foot{ padding:14px 18px; border-top:2px dashed var(--line-2); display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--ink-4); gap:10px; }
.stamp{ border:2px solid var(--green); color:var(--green); border-radius:8px; padding:4px 12px; font-family:var(--font-display); font-weight:700; transform:rotate(-6deg); font-size:12.5px; letter-spacing:.05em; flex-shrink:0; }
.sign-area{ margin-top:16px; padding-top:14px; border-top:1px dashed var(--line-2); display:flex; justify-content:flex-end; }
.sign-area .box{ text-align:center; font-size:11px; color:var(--ink-3); }
.sign-area .line{ width:130px; border-top:1px solid var(--ink-4); margin-bottom:6px; }

/* marksheet */
.mrk-table{ width:100%; border-collapse:collapse; font-size:13px; }
.mrk-table th{ text-align:left; padding:9px 10px; background:var(--surface-2); font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; color:var(--ink-3); font-weight:700; border-bottom:1px solid var(--line); }
.mrk-table td{ padding:10px 10px; border-bottom:1px solid var(--line); color:var(--ink-2); }
.mrk-table td.num, .mrk-table th.num{ font-family:var(--font-num); text-align:right; }
.mrk-table tr:last-child td{ border-bottom:none; }

@media print{
  body *{ visibility:hidden; }
  #printArea, #printArea *{ visibility:visible; }
  #printArea{ position:absolute; left:0; top:0; width:100%; padding:0; margin:0; }
  .app-header, .bottom-nav, .no-print{ display:none !important; }
  body{ padding-bottom:0; background:#fff; }
}

/* ============================== TABS ============================== */
.tabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:16px; overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab{ padding:10px 14px; font-size:13px; font-weight:600; color:var(--ink-3); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; min-height:44px; display:flex; align-items:center; }
.tab.active{ color:var(--brand); border-bottom-color:var(--brand); }
.tab-pane{ display:none; }
.tab-pane.active{ display:block; animation:fade .2s; }
@keyframes fade{ from{opacity:0;} to{opacity:1;} }

/* ============================== FAQ ACCORDION ============================== */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:last-child{ border-bottom:none; }
.faq-q{ padding:14px 4px; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:600; font-size:13.5px; gap:10px; }
.faq-q i{ color:var(--ink-4); transition:transform .2s; flex-shrink:0; }
.faq-item.open .faq-q i{ transform:rotate(180deg); }
.faq-a{ display:none; padding:0 4px 14px; color:var(--ink-3); font-size:13px; line-height:1.6; }
.faq-item.open .faq-a{ display:block; }

/* ============================== PROFILE ============================== */
.profile-hero{ text-align:center; padding:10px 0 6px; }
.profile-hero .av{ width:82px; height:82px; border-radius:22px; background:var(--brand); color:#fff; display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:28px; margin:0 auto 12px; position:relative; overflow:hidden; }
.profile-hero .av img{ width:100%; height:100%; object-fit:cover; }
.profile-hero .av .cam{ position:absolute; bottom:-2px; right:-2px; width:28px; height:28px; border-radius:50%; background:#fff; border:2px solid var(--paper); display:grid; place-items:center; color:var(--brand); font-size:11px; cursor:pointer; }
.profile-hero h2{ font-size:18px; }
.profile-hero .sub{ font-size:12.5px; color:var(--ink-3); margin-top:3px; }
.dl-rows .row{ display:flex; justify-content:space-between; padding:12px 4px; border-bottom:1px solid var(--line); gap:14px; }
.dl-rows .row:last-child{ border-bottom:none; }
.dl-rows .row .k{ font-size:12.5px; color:var(--ink-3); flex-shrink:0; }
.dl-rows .row .v{ font-size:13px; color:var(--ink); font-weight:500; text-align:right; }

/* utility */
.text-center{text-align:center;} .text-brand{color:var(--brand);} .text-muted-sm{font-size:12px;color:var(--ink-3);}
.d-flex{display:flex;} .align-center{align-items:center;} .justify-between{justify-content:space-between;} .gap-8{gap:8px;} .gap-10{gap:10px;} .gap-12{gap:12px;}
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.w-100{width:100%;}
