/* ════════════════════════════════════════════════════════════
   DreamsARK EduPaths – Student Portal CSS  (complete)
   ════════════════════════════════════════════════════════════ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
:root{
  --navy:#0a1628;--navy-mid:#112240;--navy-light:#1a3a6b;
  --gold:#c9a84c;--gold-light:#e8c87a;--gold-pale:#fdf6e3;
  --cream:#faf8f3;--white:#ffffff;
  --text-dark:#0a1628;--text-mid:#3a4a6b;--text-muted:#7a8aab;
  --border:rgba(10,22,40,0.1);--border-gold:rgba(201,168,76,0.3);
  --success:#2d6a4f;--success-bg:#d4edda;
  --warning:#856404;--warning-bg:#fff3cd;
  --danger:#721c24;--danger-bg:#f8d7da;
  --info:#0c5460;--info-bg:#d1ecf1;
  --sidebar-w:260px;--topbar-h:68px;
  --radius:12px;
  --shadow:0 2px 16px rgba(10,22,40,0.07);
  --shadow-lg:0 8px 32px rgba(10,22,40,0.12);
}
html{scroll-behavior:smooth;}
body{font-family:'DM Sans',Arial,sans-serif;background:#f4f6fb;color:var(--text-dark);line-height:1.6;font-size:14px;overflow-x:hidden;}

/* ── LAYOUT ── */
.portal-layout{display:flex;min-height:100vh;}

/* ── SIDEBAR ── */
.sidebar{width:var(--sidebar-w);background:var(--navy);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100;overflow-y:auto;transition:transform 0.3s ease;}
.sidebar-logo{display:flex;align-items:center;gap:10px;padding:1.4rem 1.4rem 1rem;text-decoration:none;border-bottom:1px solid rgba(255,255,255,0.07);}
.sidebar-logo-icon{width:38px;height:38px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:8px;display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-weight:900;font-size:18px;color:var(--navy);flex-shrink:0;}
.sidebar-logo-text{color:var(--white);font-size:13.5px;font-weight:600;line-height:1.2;}
.sidebar-logo-sub{color:var(--gold);font-size:9.5px;letter-spacing:1px;text-transform:uppercase;}
.sidebar-student{display:flex;align-items:center;gap:0.8rem;padding:1rem 1.4rem;border-bottom:1px solid rgba(255,255,255,0.07);}
.student-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--navy);font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.student-name{color:var(--white);font-size:13.5px;font-weight:600;}
.student-email-sm{color:rgba(255,255,255,0.45);font-size:11.5px;margin-top:1px;}
.sidebar-section-label{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,0.3);padding:1rem 1.4rem 0.4rem;}
.sidebar-nav{display:flex;flex-direction:column;gap:2px;padding:0 0.7rem;}
.sidebar-link{display:flex;align-items:center;gap:0.7rem;padding:0.75rem 0.9rem;border-radius:9px;text-decoration:none;color:rgba(255,255,255,0.6);font-size:14px;font-weight:400;transition:all 0.18s;position:relative;}
.sidebar-link:hover{background:rgba(255,255,255,0.06);color:var(--white);}
.sidebar-link.active{background:rgba(201,168,76,0.12);color:var(--gold);font-weight:600;}
.sidebar-link.active::before{content:'';position:absolute;left:-0.7rem;top:50%;transform:translateY(-50%);width:3px;height:20px;border-radius:0 3px 3px 0;background:var(--gold);}
.nav-icon{font-size:16px;width:20px;text-align:center;flex-shrink:0;}
.sidebar-badge{margin-left:auto;background:#e74c3c;color:var(--white);font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px;}
.sidebar-footer{margin-top:auto;padding:1rem 1.4rem;border-top:1px solid rgba(255,255,255,0.07);}
.sidebar-logout{display:flex;align-items:center;gap:0.6rem;color:rgba(255,255,255,0.45);text-decoration:none;font-size:13.5px;transition:color 0.2s;}
.sidebar-logout:hover{color:#e74c3c;}

/* ── MAIN ── */
.portal-main{margin-left:var(--sidebar-w);flex:1;display:flex;flex-direction:column;min-height:100vh;}

/* ── TOPBAR ── */
.topbar{height:var(--topbar-h);background:var(--white);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 2rem;position:sticky;top:0;z-index:50;}
.topbar-left{display:flex;align-items:center;gap:0.9rem;}
.topbar-right{display:flex;align-items:center;gap:0.9rem;}
.topbar-title{font-size:17px;font-weight:700;color:var(--text-dark);}
.topbar-breadcrumb{font-size:12px;color:var(--text-muted);margin-top:1px;}
.topbar-breadcrumb a{color:var(--gold);text-decoration:none;}
.topbar-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--navy),var(--navy-light));color:var(--white);font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.hamburger-btn{display:none;background:none;border:none;cursor:pointer;padding:4px;flex-direction:column;gap:4px;}
.hamburger-btn span{width:20px;height:2px;background:var(--text-dark);border-radius:2px;display:block;}

/* ── CONTENT ── */
.portal-content{flex:1;padding:2rem;max-width:1200px;width:100%;}

/* ── CARDS ── */
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:1.5rem;}
.card-body{padding:1.5rem;}
.card-header{display:flex;align-items:center;justify-content:space-between;padding:1.2rem 1.5rem;border-bottom:1px solid var(--border);}
.card-title{font-size:15px;font-weight:600;color:var(--text-dark);}
.card-subtitle{font-size:13px;color:var(--text-muted);margin-top:2px;}

/* ── STAT TILES ── */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;margin-bottom:1.8rem;}
.stat-tile{border-radius:var(--radius);padding:1.4rem 1.5rem;display:flex;align-items:center;gap:1rem;color:var(--white);}
.stat-tile.navy  {background:linear-gradient(135deg,#0a1628,#1a3a6b);}
.stat-tile.green {background:linear-gradient(135deg,#1e5c35,#2d8a50);}
.stat-tile.orange{background:linear-gradient(135deg,#7a3d10,#c0621a);}
.stat-tile.gold  {background:linear-gradient(135deg,#8a6a1a,#c9a84c);}
.stat-tile-icon {font-size:1.8rem;}
.stat-tile-value{font-size:1.8rem;font-weight:700;font-family:'Playfair Display',serif;line-height:1.1;}
.stat-tile-label{font-size:12.5px;opacity:0.75;margin-top:2px;}

/* ── TABLES ── */
.table-wrap{overflow-x:auto;}
.portal-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.portal-table th{text-align:left;padding:0.85rem 1.5rem;font-size:11.5px;font-weight:700;letter-spacing:0.8px;text-transform:uppercase;color:var(--text-muted);background:#f8f9fc;border-bottom:1px solid var(--border);}
.portal-table td{padding:0.9rem 1.5rem;border-bottom:1px solid rgba(10,22,40,0.05);vertical-align:middle;}
.portal-table tr:last-child td{border-bottom:none;}
.portal-table tr:hover td{background:#fafbff;}

/* ── BADGES ── */
.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap;}
.badge-success{background:var(--success-bg);color:var(--success);}
.badge-warning{background:var(--warning-bg);color:var(--warning);}
.badge-danger {background:var(--danger-bg); color:var(--danger);}
.badge-navy   {background:rgba(10,22,40,0.08);color:var(--navy);}
.badge-gold   {background:var(--gold-pale);color:#7a5c1a;border:1px solid var(--border-gold);}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.4rem;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;font-family:'DM Sans',sans-serif;border:none;transition:all 0.2s;text-decoration:none;white-space:nowrap;padding:9px 20px;}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--navy);color:var(--white);}
.btn-primary:hover{background:var(--navy-light);}
.btn-gold{background:var(--gold);color:var(--navy);}
.btn-gold:hover{background:var(--gold-light);box-shadow:0 4px 14px rgba(201,168,76,0.3);}
.btn-outline{background:transparent;color:var(--text-mid);border:1.5px solid var(--border);}
.btn-outline:hover{border-color:var(--navy);color:var(--navy);}
.btn-danger{background:#dc3545;color:var(--white);}
.btn-danger:hover{background:#c82333;}
.btn-hdfc{background:linear-gradient(135deg,#002d62,#004b9e);color:var(--white);}
.btn-hdfc:hover{filter:brightness(1.1);}
.btn-sm{padding:6px 14px;font-size:12.5px;}
.btn-lg{padding:13px 28px;font-size:15px;}
.btn-full{width:100%;}

/* ── FORMS ── */
.form-group{margin-bottom:1.2rem;}
.form-label{display:block;font-size:13px;font-weight:500;color:var(--text-mid);margin-bottom:0.45rem;}
.form-control{width:100%;padding:10px 14px;border:1.5px solid rgba(10,22,40,0.14);border-radius:9px;font-size:14px;font-family:'DM Sans',sans-serif;color:var(--text-dark);background:var(--cream);transition:border-color 0.2s,background 0.2s;outline:none;}
.form-control:focus{border-color:var(--gold);background:var(--white);}
.form-control::placeholder{color:var(--text-muted);}
textarea.form-control{resize:vertical;min-height:100px;}
select.form-control{cursor:pointer;}
.form-hint{font-size:12px;color:var(--text-muted);margin-top:0.35rem;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.input-icon-wrap{position:relative;}
.input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:15px;pointer-events:none;}
.input-icon-wrap .form-control{padding-left:38px;}

/* ── PASSWORD FIELD ── */
.pw-wrap{position:relative;}
.pw-wrap .form-control{padding-right:60px;}
.pw-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--gold);font-size:12px;font-weight:600;cursor:pointer;font-family:'DM Sans',sans-serif;padding:4px;}
.pw-strength-bar{height:4px;background:#e0e4f0;border-radius:2px;margin-top:6px;overflow:hidden;}
.pw-strength-fill{height:100%;width:0;border-radius:2px;transition:width 0.3s,background 0.3s;}
.pw-strength-text{font-size:11.5px;margin-top:4px;font-weight:600;}

/* ── ALERTS ── */
.alert{padding:0.85rem 1.2rem;border-radius:9px;font-size:13.5px;margin-bottom:1.2rem;display:flex;align-items:flex-start;gap:0.5rem;}
.alert-success{background:var(--success-bg);color:var(--success);border:1px solid #b7dfca;}
.alert-danger {background:var(--danger-bg); color:var(--danger); border:1px solid #f1b0b7;}
.alert-warning{background:var(--warning-bg);color:var(--warning);border:1px solid #fde68a;}
.alert-info   {background:var(--info-bg);   color:var(--info);   border:1px solid #bee5eb;}

/* ── EMPTY STATE ── */
.empty-state{text-align:center;padding:3rem 2rem;}
.empty-state-icon{font-size:3rem;margin-bottom:1rem;}
.empty-state h3{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;margin-bottom:0.5rem;color:var(--text-dark);}
.empty-state p{color:var(--text-muted);font-size:13.5px;margin-bottom:1.2rem;}

/* ── PAGE TITLE ── */
.page-title{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;color:var(--text-dark);}

/* ── PROFILE ── */
.profile-header{display:flex;align-items:center;gap:1.5rem;background:linear-gradient(135deg,var(--navy),var(--navy-light));border-radius:16px;padding:2rem;margin-bottom:1.8rem;color:var(--white);}
.profile-avatar-lg{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,rgba(201,168,76,0.3),rgba(201,168,76,0.6));color:var(--white);font-weight:700;font-size:1.8rem;display:flex;align-items:center;justify-content:center;border:3px solid rgba(201,168,76,0.5);}
.profile-header-info h2{font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:700;margin-bottom:0.3rem;}
.profile-header-info p {color:rgba(255,255,255,0.65);font-size:13.5px;margin-bottom:0.5rem;}
.profile-header-badge{display:flex;gap:0.5rem;flex-wrap:wrap;}

/* ── ORDER RECEIPT ── */
.order-receipt{background:var(--white);border:1px solid var(--border);border-radius:16px;overflow:hidden;}
.order-receipt-header{background:linear-gradient(135deg,var(--navy),var(--navy-light));padding:2rem;color:var(--white);}
.receipt-ref{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;color:var(--gold);}
.receipt-amount{font-family:'Playfair Display',serif;font-size:2.5rem;font-weight:900;line-height:1;}
.order-receipt-body{padding:1.8rem;}
.receipt-row{display:flex;justify-content:space-between;align-items:center;padding:0.7rem 0;border-bottom:1px solid rgba(10,22,40,0.05);font-size:14px;}
.receipt-row:last-child{border-bottom:none;}
.receipt-label{color:var(--text-muted);}
.receipt-value{font-weight:600;color:var(--text-dark);}

/* ── PAY PAGE ── */
.pay-summary{background:linear-gradient(135deg,#0a1628,#1a3a6b);border-radius:14px;padding:1.8rem;color:var(--white);margin-bottom:1.5rem;}
.pay-amount{font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:900;color:var(--gold);line-height:1;}
.hdfc-banner{background:linear-gradient(135deg,#002d62,#004b9e);border-radius:10px;padding:1rem 1.2rem;display:flex;align-items:center;gap:0.8rem;margin-bottom:1.2rem;}
.hdfc-logo{background:var(--white);border-radius:5px;padding:3px 9px;font-size:12px;font-weight:900;color:#002d62;flex-shrink:0;}
.hdfc-text{color:rgba(255,255,255,0.85);font-size:13px;line-height:1.5;}
.hdfc-text strong{color:var(--white);}
.payment-methods{display:grid;grid-template-columns:1fr 1fr;gap:0.7rem;margin-bottom:1.2rem;}
.pay-method{border:1.5px solid var(--border);border-radius:10px;padding:0.8rem;display:flex;align-items:center;gap:0.6rem;cursor:pointer;font-size:13px;font-weight:500;color:var(--text-mid);background:var(--white);font-family:'DM Sans',sans-serif;transition:all 0.2s;}
.pay-method:hover{border-color:var(--border-gold);}
.pay-method.selected{border-color:var(--gold);background:var(--gold-pale);color:var(--text-dark);}
.pay-icon{font-size:18px;}
.secure-note{text-align:center;font-size:12px;color:var(--text-muted);margin-top:0.8rem;}

/* ── NEW ORDER PRODUCT PICKER ── */
.product-picker{display:flex;flex-direction:column;gap:0.8rem;}
.product-pick-item{background:var(--white);border:2px solid var(--border);border-radius:12px;padding:1.1rem 1.3rem;display:flex;align-items:center;gap:1rem;cursor:pointer;transition:all 0.2s;position:relative;}
.product-pick-item:hover{border-color:var(--border-gold);box-shadow:0 3px 16px rgba(201,168,76,0.1);}
.product-pick-item.selected{border-color:var(--gold);background:var(--gold-pale);}
.pick-radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all 0.2s;}
.product-pick-item.selected .pick-radio{border-color:var(--gold);background:var(--gold);}
.product-pick-item.selected .pick-radio::after{content:'';width:7px;height:7px;background:var(--navy);border-radius:50%;}
.pick-icon{width:44px;height:44px;border-radius:10px;background:var(--gold-pale);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;border:1px solid var(--border-gold);}
.pick-info{flex:1;}
.pick-name{font-size:14.5px;font-weight:600;color:var(--text-dark);}
.pick-sub{font-size:12px;color:var(--text-muted);margin-top:2px;line-height:1.4;}
.pick-badge{display:inline-block;font-size:10.5px;font-weight:600;background:rgba(201,168,76,0.1);color:var(--gold);padding:2px 9px;border-radius:12px;border:1px solid var(--border-gold);margin-top:4px;}
.pick-price{text-align:right;flex-shrink:0;}
.pick-price-amount{font-family:'Playfair Display',serif;font-size:1.4rem;font-weight:700;color:var(--navy);line-height:1;}
.pick-price-note{font-size:11px;color:var(--text-muted);margin-top:2px;}
.btn-variant-selected{background:var(--gold-pale);border-color:var(--gold);color:var(--navy);}
.order-summary-box{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;position:sticky;top:calc(var(--topbar-h) + 1.5rem);}
.order-summary-box h4{font-family:'Playfair Display',serif;font-size:16px;font-weight:700;margin-bottom:1.2rem;padding-bottom:0.9rem;border-bottom:1px solid var(--border);}
.summary-row{display:flex;justify-content:space-between;font-size:13.5px;color:var(--text-mid);margin-bottom:0.6rem;}
.summary-row.discount{color:var(--success);font-weight:500;}
.summary-row.total{font-size:16px;font-weight:700;color:var(--text-dark);border-top:1px solid var(--border);padding-top:0.7rem;margin-top:0.4rem;}
.trust-list{margin-top:1rem;display:flex;flex-direction:column;gap:0.4rem;}
.trust-item{font-size:12px;color:var(--text-muted);display:flex;align-items:center;gap:0.4rem;}
.form-hint{font-size:12px;color:var(--text-muted);margin-top:0.3rem;}

/* ── STEPS ── */
.steps{display:flex;align-items:center;}
.step-item{display:flex;align-items:center;gap:0.5rem;}
.step-item .step-circle{width:28px;height:28px;border-radius:50%;border:2px solid var(--border);background:var(--white);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--text-muted);flex-shrink:0;transition:all 0.3s;}
.step-item.active .step-circle{border-color:var(--gold);color:var(--gold);}
.step-item.done .step-circle{border-color:var(--gold);background:var(--gold);color:var(--navy);}
.step-item-label{font-size:13px;color:var(--text-muted);}
.step-item.active .step-item-label,.step-item.done .step-item-label{color:var(--text-dark);font-weight:500;}
.step-line{flex:1;height:1px;background:var(--border);margin:0 0.7rem;min-width:30px;}

/* ── AUTH PAGES ── */
.auth-wrapper{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;}
.auth-brand{background:var(--navy);padding:3rem;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;}
.auth-brand-grid{position:absolute;inset:0;opacity:0.04;background-image:linear-gradient(rgba(201,168,76,1) 1px,transparent 1px),linear-gradient(90deg,rgba(201,168,76,1) 1px,transparent 1px);background-size:48px 48px;}
.auth-brand-content{position:relative;z-index:2;}
.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:2.5rem;}
.auth-logo-icon{width:44px;height:44px;background:linear-gradient(135deg,var(--gold),var(--gold-light));border-radius:9px;display:flex;align-items:center;justify-content:center;font-family:'Playfair Display',serif;font-weight:900;font-size:20px;color:var(--navy);}
.auth-logo-text{color:var(--white);font-size:16px;font-weight:600;line-height:1.2;}
.auth-logo-sub{color:var(--gold);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;}
.auth-brand h2{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,3vw,2.8rem);font-weight:900;color:var(--white);line-height:1.15;margin-bottom:1rem;}
.auth-brand p{color:rgba(255,255,255,0.6);font-size:15px;line-height:1.75;margin-bottom:2rem;}
.accent{color:var(--gold);}
.auth-feature-list{display:flex;flex-direction:column;gap:0.75rem;}
.auth-feature{display:flex;align-items:center;gap:0.6rem;color:rgba(255,255,255,0.65);font-size:13.5px;}
.auth-feature-dot{width:8px;height:8px;border-radius:50%;background:var(--gold);flex-shrink:0;}
.auth-panel{display:flex;align-items:center;justify-content:center;background:#f4f6fb;padding:2rem;}
.auth-box{background:var(--white);border-radius:16px;padding:2.5rem;width:100%;max-width:440px;border:1px solid var(--border);box-shadow:var(--shadow-lg);}
.auth-box h1{font-family:'Playfair Display',serif;font-size:1.8rem;font-weight:700;color:var(--text-dark);margin-bottom:0.3rem;}
.auth-sub{color:var(--text-muted);font-size:14px;margin-bottom:1.8rem;}

/* ── PASSWORD RECOVERY ── */
.recovery-icon{width:64px;height:64px;border-radius:50%;background:var(--gold-pale);border:2px solid var(--border-gold);display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto 1.5rem;}
.divider-text{display:flex;align-items:center;gap:0.8rem;margin:1.2rem 0;color:var(--text-muted);font-size:12.5px;}
.divider-text::before,.divider-text::after{content:'';flex:1;height:1px;background:var(--border);}

/* ── RESPONSIVE ── */
@media(max-width:1100px){.stats-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:768px){
  .sidebar{transform:translateX(calc(-1 * var(--sidebar-w)));}
  .sidebar.open{transform:translateX(0);box-shadow:var(--shadow-lg);}
  .portal-main{margin-left:0;}
  .hamburger-btn{display:flex;}
  .topbar{padding:0 1.2rem;}
  .portal-content{padding:1.2rem;}
  .stats-grid{grid-template-columns:1fr 1fr;gap:0.9rem;}
  .auth-wrapper{grid-template-columns:1fr;}
  .auth-brand{display:none;}
  .auth-panel{padding:1.5rem;}
  .auth-box{padding:1.8rem;}
  .form-grid{grid-template-columns:1fr;}
  .payment-methods{grid-template-columns:1fr;}
  .profile-header{flex-direction:column;text-align:center;}
}
@media(max-width:480px){.stats-grid{grid-template-columns:1fr;}.portal-content{padding:1rem;}}