/* auth-modal.css — login modal + user dashboard styles, extracted from home-extracted.css
   so the shared login modal renders correctly on the standalone counselling pages. */
/* ══ LOGIN MODAL ══ */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-overlay.open {
  display: flex;
}
.login-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  animation: loginSlide 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
@keyframes loginSlide {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.login-close:hover {
  background: var(--r3);
  color: var(--r);
}
.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-header p {
  font-size: 0.85rem;
  color: var(--muted);
}
.login-google {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.login-google:hover {
  border-color: var(--ink);
  background: var(--bg);
}
.login-google svg {
  width: 20px;
  height: 20px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted2);
  font-size: 0.8rem;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-phone-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}
.login-phone-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.login-country {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.login-phone-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.login-phone-input:focus {
  border-color: var(--r);
}
.login-phone-input::placeholder {
  color: var(--muted2);
}
.login-code-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.login-code-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.login-code-input::placeholder {
  color: var(--muted2);
}
.login-send-code {
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.login-send-code:hover {
  border-color: var(--ink);
}
.login-submit {
  width: 100%;
  padding: 14px;
  background: var(--r);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.login-submit:hover {
  background: var(--r2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}
.login-terms {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--muted2);
  line-height: 1.5;
}
.login-terms a {
  color: var(--r);
  text-decoration: none;
}
.login-terms a:hover {
  text-decoration: underline;
}


/* ══ LOGIN MODAL — 2-STEP FLOW ══ */
.login-overlay{display:none;position:fixed;inset:0;background:rgba(10,14,33,.75);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:2000;align-items:center;justify-content:center;padding:20px}
.login-overlay.open{display:flex;animation:loBg .22s ease}
@keyframes loBg{from{opacity:0}to{opacity:1}}
.login-modal{background:#fff;border-radius:24px;width:100%;max-width:410px;padding:34px 30px 26px;box-shadow:0 40px 80px rgba(10,14,33,.3);animation:loSlide .3s cubic-bezier(.22,1,.36,1);position:relative;overflow:hidden}
@keyframes loSlide{from{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:none}}

/* Close */
.login-close{position:absolute;top:13px;right:13px;width:32px;height:32px;border-radius:50%;border:none;background:#f1f3f6;color:#64748b;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .18s;line-height:1;font-family:inherit}
.login-close:hover{background:#fee2e2;color:#dc2626;transform:rotate(90deg)}

/* Logo */
.lo-logo{display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.lo-logo span{font-family:'Sora',sans-serif;font-size:1rem;font-weight:800;color:#0f172a;letter-spacing:-.04em}
.lo-logo em{display:inline-block;width:6px;height:6px;background:#dc2626;border-radius:50%;margin:0 2px 6px;font-style:normal}

/* Header */
.login-header{text-align:center;margin-bottom:22px}
.login-header h2{font-family:'Sora',sans-serif;font-size:1.4rem;font-weight:800;color:#0f172a;margin:0 0 4px;letter-spacing:-.04em}
.login-header p{font-size:.82rem;color:#64748b;margin:0}

/* Google btn */
.login-google{width:100%;padding:11px 16px;border:1.5px solid #e2e6ea;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-size:.88rem;font-weight:600;color:#1e293b;cursor:pointer;transition:all .2s;margin-bottom:14px;font-family:inherit}
.login-google:hover:not(:disabled){border-color:#4285F4;box-shadow:0 4px 16px rgba(66,133,244,.14);transform:translateY(-1px)}
.login-google:disabled{opacity:.6;cursor:not-allowed}
.login-google .lo-spin{width:17px;height:17px;border:2px solid #e2e6ea;border-top-color:#4285F4;border-radius:50%;animation:loSpin .7s linear infinite;display:none}
.login-google.loading .lo-gicon,.login-google.loading .lo-gtext{display:none}
.login-google.loading .lo-spin{display:block}
.login-google.loading::after{content:'Signing in with Google…';font-size:.85rem;color:#64748b}

/* Divider */
.login-divider{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#94a3b8;font-size:.7rem;font-weight:700;letter-spacing:.1em}
.login-divider::before,.login-divider::after{content:'';flex:1;height:1px;background:#e8eaed}

/* Label */
.login-phone-label{display:block;font-size:.72rem;font-weight:700;color:#0f172a;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px}
.lo-email-display{display:block;font-size:.75rem;font-weight:400;color:#64748b;text-transform:none;letter-spacing:0;margin-top:2px}

/* Steps */
.lo-step{animation:loFadeIn .25s ease}
.lo-otp-step{display:none}
.lo-otp-step.active{display:block}
@keyframes loFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Email input */
.login-phone-input{width:100%;padding:13px 14px;border:1.5px solid #e2e6ea;border-radius:12px;font-size:.9rem;font-family:inherit;color:#0f172a;outline:none;transition:border-color .18s,box-shadow .18s;background:#f8fafc;box-sizing:border-box;margin-bottom:10px}
.login-phone-input:focus{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.1);background:#fff}
.login-phone-input.error{border-color:#ef4444;animation:loShake .35s ease}

/* Send OTP button */
.login-send-otp-btn{width:100%;padding:13px;border:none;border-radius:12px;background:linear-gradient(135deg,#1E3A8A,#dc2626);color:#fff;font-weight:700;font-size:.9rem;cursor:pointer;font-family:inherit;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}
.login-send-otp-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px rgba(220,38,38,.28)}
.login-send-otp-btn:disabled{background:linear-gradient(135deg,#94a3b8,#94a3b8);cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}
.login-send-otp-btn .lo-btn-spin{width:17px;height:17px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:loSpin .7s linear infinite;display:none;flex-shrink:0}
.login-send-otp-btn.loading .lo-btn-text{display:none}
.login-send-otp-btn.loading .lo-btn-spin{display:block}
@keyframes loSpin{to{transform:rotate(360deg)}}

/* 6-digit OTP boxes */
.lo-otp-boxes{display:flex;gap:8px;justify-content:center;margin:0 0 10px}
.lo-otp-box{width:44px;height:52px;border:1.5px solid #e2e6ea;border-radius:12px;font-size:1.3rem;font-weight:700;text-align:center;color:#0f172a;font-family:inherit;outline:none;transition:border-color .18s,box-shadow .18s,transform .12s;background:#f8fafc;caret-color:transparent}
.lo-otp-box:focus{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.1);background:#fff;transform:scale(1.05)}
.lo-otp-box.filled{border-color:#dc2626;background:#fff}
.lo-otp-box.error{border-color:#ef4444;background:#fff7f7}

/* OTP footer */
.lo-otp-footer{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.lo-countdown{font-size:.75rem;color:#64748b;font-weight:500}
.lo-countdown.urgent{color:#d97706}
.lo-resend-link{font-size:.75rem;color:#dc2626;font-weight:700;background:none;border:none;cursor:pointer;font-family:inherit;padding:0;transition:opacity .2s}
.lo-resend-link:disabled{color:#94a3b8;cursor:not-allowed}

/* Feedback */
.lo-feedback{font-size:.79rem;min-height:18px;margin:8px 0;text-align:center;font-weight:600;transition:color .2s;line-height:1.4}

/* Login submit */
.login-submit{width:100%;padding:14px;background:linear-gradient(135deg,#1E3A8A,#dc2626);border:none;border-radius:12px;color:#fff;font-weight:700;font-size:.92rem;cursor:pointer;font-family:inherit;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}
.login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px rgba(220,38,38,.28)}
.login-submit:disabled{background:linear-gradient(135deg,#94a3b8,#94a3b8);cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}
.login-submit .lo-submit-spin{width:17px;height:17px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:loSpin .7s linear infinite;display:none;flex-shrink:0}
.login-submit.loading .lo-submit-text{display:none}
.login-submit.loading .lo-submit-spin{display:block}

/* Back link */
.lo-back-link{display:block;width:100%;margin-top:10px;padding:6px;font-size:.78rem;color:#64748b;background:none;border:none;cursor:pointer;font-family:inherit;text-align:center;transition:color .18s}
.lo-back-link:hover{color:#dc2626}

/* Success */
.lo-success{display:none;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px 0}
.lo-success.show{display:flex}
.lo-success-icon{width:68px;height:68px;background:linear-gradient(135deg,#22c55e,#16a34a);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;animation:popIn .4s cubic-bezier(.22,1,.36,1)}
@keyframes popIn{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
.lo-success h3{font-family:'Sora',sans-serif;font-size:1.2rem;font-weight:700;color:#0f172a;margin:0 0 6px}
.lo-success p{font-size:.83rem;color:#64748b;margin:0}

/* Terms */
.login-terms{text-align:center;font-size:.72rem;color:#94a3b8;margin-top:14px;line-height:1.5}
.login-terms a{color:#dc2626;text-decoration:none;font-weight:600}
.login-terms a:hover{text-decoration:underline}

/* Nav user pill */
.nav-user-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:30px;border:1.5px solid #e2e6ea;background:#fff;cursor:pointer;transition:all .2s;font-size:.82rem;font-weight:600;color:#0f172a;font-family:inherit}
.nav-user-pill:hover{border-color:#dc2626;box-shadow:0 4px 12px rgba(220,38,38,.12)}
.nav-user-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#1E3A8A,#dc2626);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.7rem;font-weight:800;flex-shrink:0;overflow:hidden}
.nav-user-avatar img{width:100%;height:100%;object-fit:cover}
.nav-user-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Animations */
@keyframes loShake{0%,100%{transform:none}20%{transform:translateX(-6px)}60%{transform:translateX(6px)}}

@media(max-width:480px){.login-modal{padding:26px 16px 20px;border-radius:20px}.lo-otp-box{width:38px;height:46px;font-size:1.1rem}.lo-otp-boxes{gap:6px}}

.mob-prog-nav{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 4%;
  background:#fff;
  border-top:1px solid var(--border);
  position:sticky;
  bottom:0;
  z-index:400;
  box-shadow:0 -4px 20px rgba(0,0,0,.08);
}

.mob-prog-prev,.mob-prog-next{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:#fff;
  color:var(--ink);
  font-size:.8rem;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
}

.mob-prog-prev:hover,.mob-prog-next:hover{
  border-color:var(--r);
  color:var(--r);
  background:var(--r3);
}

.mob-prog-prev svg,.mob-prog-next svg{
  width:16px;
  height:16px;
}

.mob-prog-name{
  font-family:'Sora',sans-serif;
  font-size:.9rem;
  font-weight:700;
  color:var(--r);
  text-align:center;
  flex:1;
}


/* Hamburger → X */
.ham{display:none;flex-direction:column;gap:5px;border:none;background:none;padding:6px;cursor:pointer;z-index:700;position:relative}
.ham span{display:block;width:22px;height:2px;background:var(--ink,#0f172a);border-radius:2px;transition:all .28s cubic-bezier(.22,1,.36,1);transform-origin:center}
.ham.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ham.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.ham.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-user-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;border-radius:30px;border:1.5px solid #e2e6ea;background:#fff;cursor:pointer;transition:all .2s;font-size:.82rem;font-weight:600;color:#0f172a;font-family:inherit}
.nav-user-pill:hover{border-color:#dc2626;box-shadow:0 4px 12px rgba(220,38,38,.12)}
.nav-user-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#1E3A8A,#dc2626);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.7rem;font-weight:800;flex-shrink:0;overflow:hidden}
.nav-user-avatar img{width:100%;height:100%;object-fit:cover}
.nav-user-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ══ USER DASHBOARD (v4 redesign) ══ */

/* ── Dash Overlay ── */
.dash-overlay{position:fixed;inset:0;z-index:3000;background:rgba(15,23,42,.7);backdrop-filter:blur(12px);display:none;align-items:center;justify-content:center;padding:16px}
.dash-modal{background:#fff;border-radius:22px;width:100%;max-width:980px;height:min(90vh,680px);display:flex;overflow:hidden;box-shadow:0 40px 100px rgba(15,23,42,.45),0 0 0 1px rgba(255,255,255,.04);position:relative}

/* ── Sidebar ── */
.dash-sidebar{width:236px;flex-shrink:0;background:linear-gradient(170deg,#1E293B 0%,#0F172A 100%);display:flex;flex-direction:column;padding:0 0 16px}
.dash-user-hero{padding:28px 20px 20px;text-align:center;border-bottom:1px solid rgba(255,255,255,.1)}
.dash-avatar{width:66px;height:66px;border-radius:50%;background:linear-gradient(135deg,#B91C1C,#7A0E0E);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;font-weight:800;margin:0 auto 10px;overflow:hidden;border:3px solid rgba(200,146,42,.5)}
.dash-avatar img{width:100%;height:100%;object-fit:cover}
.dash-hero-name{font-family:'Sora',sans-serif;font-size:.9rem;font-weight:700;color:#F8FAFC}
.dash-hero-email{font-size:.7rem;color:rgba(255,255,255,.6);margin-top:3px}
.dash-hero-badge{display:inline-block;margin-top:9px;padding:3px 11px;background:rgba(200,146,42,.22);border:1px solid rgba(200,146,42,.45);border-radius:20px;font-size:.63rem;font-weight:700;color:#FBC84A;letter-spacing:.06em;text-transform:uppercase}

/* ── Nav ── */
.dash-nav{flex:1;padding:14px 12px;display:flex;flex-direction:column;gap:3px;overflow-y:auto}
.dash-nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;border:none;background:none;color:rgba(255,255,255,.65);font-size:.82rem;font-weight:600;cursor:pointer;transition:all .18s;text-align:left;font-family:inherit;width:100%}
.dash-nav-item svg{width:16px;height:16px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dash-nav-item:hover{background:rgba(255,255,255,.1);color:#fff}
.dash-nav-item.active{background:linear-gradient(135deg,rgba(220,60,60,.28),rgba(185,28,28,.18));color:#fff;border:1px solid rgba(220,60,60,.35);box-shadow:0 2px 12px rgba(185,28,28,.2)}
.dash-nav-item.active svg{stroke:#FBC84A}
.dash-sidebar-footer{padding:0 12px;display:flex;flex-direction:column;gap:6px}
.dash-wa-btn{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;border:none;background:rgba(37,211,102,.15);color:#86efac;font-size:.78rem;font-weight:600;cursor:pointer;transition:all .18s;font-family:inherit}
.dash-wa-btn:hover{background:rgba(37,211,102,.22)}
.dash-logout-btn{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;border:none;background:rgba(220,60,60,.14);color:rgba(255,130,130,.85);font-size:.78rem;font-weight:600;cursor:pointer;transition:all .18s;font-family:inherit}
.dash-logout-btn:hover{background:rgba(185,28,28,.22);color:#fca5a5}
.dash-logout-btn svg,.dash-wa-btn svg{width:15px;height:15px;flex-shrink:0}
.dash-wa-btn svg{fill:#86efac;stroke:none}

/* ── Main panel ── */
.dash-main{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;background:#FAFBFF}
.dash-close-desk{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;border:none;background:rgba(0,0,0,.06);color:#64748b;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .18s;z-index:10;line-height:1}
.dash-close-desk:hover{background:#fee2e2;color:#dc2626;transform:rotate(90deg)}

/* ── Tab system ── */
.dash-tab-content{display:none;padding:28px 28px 28px;overflow-y:auto;flex:1;animation:fadeInTab .2s ease}
.dash-tab-content.active{display:block}
@keyframes fadeInTab{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes loSpin{to{transform:rotate(360deg)}}

.dash-tab-title{font-family:'Sora',sans-serif;font-size:1.18rem;font-weight:800;color:#0A0202;margin-bottom:4px;letter-spacing:-.02em}
.dash-tab-sub{font-size:.8rem;color:#64748b;margin-bottom:22px}

/* ── Profile tab ── */
.profile-avatar-row{display:flex;align-items:center;gap:14px;margin-bottom:22px;padding:16px;background:#fff;border-radius:14px;border:1.5px solid #E8D5C0}
.profile-av{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#B91C1C,#7A0E0E);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem;font-weight:800;flex-shrink:0}
.profile-av-name{font-family:'Sora',sans-serif;font-size:.92rem;font-weight:700;color:#0A0202}
.profile-av-sub{font-size:.72rem;color:#64748b;margin-top:2px}
.dash-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.dash-field{display:flex;flex-direction:column;gap:5px}
.dash-field label{font-size:.7rem;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.06em}
.dash-field input,.dash-field select{padding:10px 13px;border:1.5px solid #E2E8F0;border-radius:10px;font-size:.86rem;font-family:inherit;color:#0A0202;outline:none;transition:all .18s;background:#F8FAFC}
.dash-field input:focus,.dash-field select:focus{border-color:#B91C1C;box-shadow:0 0 0 3px rgba(185,28,28,.1);background:#fff}
.dash-readonly{background:#F1F5F9 !important;color:#64748b !important;cursor:not-allowed}
.exam-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.exam-pill{padding:7px 14px;border:1.5px solid #E2E8F0;border-radius:20px;background:#fff;color:#64748b;font-size:.77rem;font-weight:600;cursor:pointer;transition:all .18s;font-family:inherit;border-color:#E8D5C0}
.exam-pill:hover{border-color:#B91C1C;color:#B91C1C}
.exam-pill.active{background:linear-gradient(135deg,#B91C1C,#7A0E0E);border-color:transparent;color:#fff}
.form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:16px;border-top:1px solid #E8D5C0}
.save-btn{display:flex;align-items:center;gap:8px;padding:10px 22px;background:linear-gradient(135deg,#B91C1C,#7A0E0E);border:none;border-radius:10px;color:#fff;font-weight:700;font-size:.86rem;cursor:pointer;transition:all .2s;font-family:inherit}
.save-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(185,28,28,.3)}
.save-msg{font-size:.79rem;font-weight:600;color:#059669}

/* ── List items (bookings, enquiries, bookmarks, history, downloads) ── */
.list-item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid #F1F5F9}
.list-item:last-child{border-bottom:none;padding-bottom:0}
.list-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1rem}
.li-pending{background:#FEF3C7}
.li-confirmed{background:#D1FAE5}
.li-completed{background:#DBEAFE}
.li-cancelled{background:#FEE2E2}
.li-saved{background:#FDF8F2;border:1.5px solid #E8D5C0}
.li-download{background:#EFF6FF}
.li-enquiry{background:#F3F4F6}
.li-predict{background:linear-gradient(135deg,rgba(185,28,28,.08),rgba(122,14,14,.04));border:1px solid rgba(185,28,28,.12)}
.list-body{flex:1;min-width:0}
.list-ref{font-size:.7rem;color:#94A3B8;font-weight:600;margin-bottom:2px}
.list-title{font-size:.87rem;font-weight:700;color:#0A0202;margin-bottom:4px}
.list-meta{font-size:.74rem;color:#64748b;display:flex;flex-wrap:wrap;gap:10px}
.status-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:.67rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;align-self:flex-start}
.status-pending{background:#FEF3C7;color:#92400E}
.status-confirmed{background:#D1FAE5;color:#065F46}
.status-completed{background:#DBEAFE;color:#1E40AF}
.status-cancelled{background:#FEE2E2;color:#991B1B}
.status-received{background:#EFF6FF;color:#1D4ED8}
.status-active{background:#D1FAE5;color:#065F46}

/* ── Card wrap ── */
.card-wrap{background:#fff;border:1.5px solid #E8D5C0;border-radius:14px;padding:18px;margin-bottom:14px}
.card-label{font-size:.72rem;font-weight:700;color:#94A3B8;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}

/* ── Stats row ── */
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.stat-card{background:#fff;border:1.5px solid #E8D5C0;border-radius:12px;padding:16px;text-align:center}
.stat-num{font-family:'Sora',sans-serif;font-size:1.6rem;font-weight:800;color:#B91C1C}
.stat-lbl{font-size:.7rem;color:#64748b;font-weight:600;margin-top:2px;text-transform:uppercase;letter-spacing:.04em}

/* ── CTA Banner ── */
.cta-banner{background:linear-gradient(135deg,#B91C1C,#7A0E0E);border-radius:14px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;color:#fff}
.cta-banner strong{font-size:.87rem;font-weight:700;display:block;margin-bottom:2px}
.cta-banner p{font-size:.74rem;opacity:.8;margin:0}
.cta-book-btn{flex-shrink:0;padding:9px 16px;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.38);border-radius:10px;color:#fff;font-size:.79rem;font-weight:700;cursor:pointer;transition:all .18s;white-space:nowrap;font-family:inherit}
.cta-book-btn:hover{background:rgba(255,255,255,.28)}

/* ── Invoice table ── */
.invoice-table{width:100%;border-collapse:collapse;font-size:.82rem}
.invoice-table th{background:#0A0202;color:rgba(255,255,255,.7);padding:10px 14px;text-align:left;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.invoice-table td{padding:11px 14px;border-bottom:1px solid #E8D5C0;color:#1A0C06;vertical-align:middle}
.invoice-table tr:nth-child(even) td{background:#FDF8F2}
.invoice-table tr:last-child td{border:none}

/* ── Rank card ── */
.rank-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#fff;border:1.5px solid #E8D5C0;border-radius:12px;margin-bottom:10px}
.rank-card:last-child{margin-bottom:0}
.rank-label{font-size:.82rem;font-weight:700;color:#0A0202}
.rank-score{font-size:.74rem;color:#64748b;margin-top:2px}
.rank-result{text-align:right}
.rank-num{font-family:'Sora',sans-serif;font-size:1.05rem;font-weight:800;color:#B91C1C}
.rank-cat{font-size:.68rem;color:#64748b;margin-top:1px}

/* ── Settings / Toggles ── */
.settings-card{background:#fff;border:1.5px solid #E8D5C0;border-radius:14px;padding:18px;margin-bottom:14px}
.settings-card-title{display:flex;align-items:center;gap:8px;font-size:.84rem;font-weight:700;color:#374151;margin-bottom:14px}
.settings-card-title svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #F1F5F9}
.toggle-row:last-child{border-bottom:none;padding-bottom:0}
.toggle-label{font-size:.82rem;font-weight:600;color:#0A0202}
.toggle-sub{font-size:.72rem;color:#64748b;margin-top:1px}
.toggle{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0}
.toggle input{opacity:0;width:0;height:0}
.toggle-track{position:absolute;inset:0;background:#E2E8F0;border-radius:12px;cursor:pointer;transition:background .22s}
.toggle-track::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .22s;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.toggle input:checked+.toggle-track{background:linear-gradient(135deg,#B91C1C,#7A0E0E)}
.toggle input:checked+.toggle-track::after{transform:translateX(20px)}
.settings-link{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #F1F5F9;color:#374151;font-size:.83rem;font-weight:600;cursor:pointer;background:none;border-top:none;border-left:none;border-right:none;width:100%;font-family:inherit;transition:color .15s}
.settings-link:last-child{border-bottom:none}
.settings-link:hover{color:#B91C1C}
.danger-card{border-color:#fee2e2 !important}
.danger-text{font-size:.78rem;color:#64748b;margin-bottom:14px;line-height:1.65}
.delete-btn{padding:9px 18px;border:1.5px solid #dc2626;border-radius:9px;background:#fff;color:#dc2626;font-size:.8rem;font-weight:700;cursor:pointer;transition:all .18s;font-family:inherit}
.delete-btn:hover{background:#dc2626;color:#fff}

/* ── Empty state ── */
.empty{text-align:center;padding:36px 20px;color:#94a3b8}
.empty-icon{font-size:2.2rem;margin-bottom:8px}
.empty p{font-weight:700;color:#475569;margin:0 0 4px}
.empty span{font-size:.78rem}

/* ── Bookmark item ── */
.bookmark-item{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;border:1.5px solid #E8D5C0;border-radius:12px;margin-bottom:8px}
.bookmark-item:last-child{margin-bottom:0}
.bm-name{font-size:.88rem;font-weight:700;color:#0A0202}
.bm-date{font-size:.7rem;color:#94A3B8;margin-top:2px}
.bm-link{padding:6px 13px;background:#B91C1C;color:#fff;border-radius:8px;font-size:.74rem;font-weight:700;text-decoration:none;transition:opacity .15s;flex-shrink:0}
.bm-link:hover{opacity:.85}

/* ── Download item ── */
.download-item{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1.5px solid #E8D5C0;border-radius:12px;margin-bottom:8px}
.dl-icon{width:36px;height:36px;background:#EFF6FF;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.95rem}
.dl-name{font-size:.86rem;font-weight:700;color:#0A0202}
.dl-date{font-size:.7rem;color:#94A3B8;margin-top:2px}
.dl-btn{margin-left:auto;padding:6px 13px;background:transparent;border:1.5px solid #E8D5C0;border-radius:8px;font-size:.73rem;font-weight:700;color:#475569;cursor:pointer;font-family:inherit;transition:all .15s;flex-shrink:0}
.dl-btn:hover{border-color:#B91C1C;color:#B91C1C}

/* ── Preview notice bar ── */

@media(max-width:700px){
  body{padding:0}
  .dash-overlay{align-items:flex-end;padding:0}
  .dash-modal{height:96dvh;border-radius:18px 18px 0 0;max-width:100%;flex-direction:column}
  .dash-sidebar{width:100%;padding:0}
  .dash-user-hero{display:flex;align-items:center;gap:12px;text-align:left;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
  .dash-avatar{width:40px;height:40px;font-size:.95rem;margin:0}
  .dash-hero-badge{display:none}
  .dash-nav{flex-direction:row;padding:8px 12px;gap:4px;overflow-x:auto;flex:unset;border-bottom:1px solid rgba(255,255,255,.08)}
  .dash-nav::-webkit-scrollbar{display:none}
  .dash-nav-item{padding:7px 10px;flex-shrink:0}
  .dash-nav-item span{font-size:.7rem}
  .dash-nav-item svg{width:14px;height:14px}
  .dash-sidebar-footer{display:none}
  .dash-tab-content{padding:18px}
  .dash-form-row{grid-template-columns:1fr}
  .stats-row{grid-template-columns:repeat(3,1fr)}
  .cta-banner{flex-direction:column;gap:10px}
}

/* Photo upload */
.photo-upload-wrap{position:relative;display:inline-block;cursor:pointer}
.photo-upload-wrap .profile-av{transition:filter .2s}
.photo-upload-wrap:hover .profile-av{filter:brightness(.7)}
.photo-upload-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:0;transition:opacity .2s}
.photo-upload-wrap:hover .photo-upload-btn{opacity:1}
.photo-upload-icon{background:rgba(15,23,42,.8);border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center}
.photo-upload-icon svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.photo-upload-hint{font-size:.7rem;color:#94A3B8;margin-top:6px;text-align:center}
.photo-upload-input{display:none}
.photo-preview-badge{position:absolute;bottom:0;right:0;width:20px;height:20px;background:#B91C1C;border-radius:50%;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.photo-preview-badge svg{width:10px;height:10px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* Billing address section */
.section-divider{margin:22px 0 16px;padding-top:18px;border-top:1.5px solid #E8D5C0}
.section-label{font-family:'Sora',sans-serif;font-size:.8rem;font-weight:800;color:#0A0202;text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.section-label svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#B91C1C}

/* Toast */
#toastStack{position:fixed;bottom:24px;right:24px;z-index:9999;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;font-size:.83rem;font-weight:600;color:#fff;pointer-events:auto;box-shadow:0 8px 24px rgba(0,0,0,.2);animation:toastIn .25s ease;max-width:320px;line-height:1.4}
.toast.out{animation:toastOut .25s ease forwards}
.toast-success{background:linear-gradient(135deg,#059669,#047857)}
.toast-error{background:linear-gradient(135deg,#DC2626,#991B1B)}
.toast-info{background:linear-gradient(135deg,#1D4ED8,#1E40AF)}
.toast-warn{background:linear-gradient(135deg,#D97706,#B45309)}
.toast-icon{font-size:1rem;flex-shrink:0}
@keyframes toastIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(8px) scale(.95)}}

/* Confirm modal */
#confirmOverlay{position:fixed;inset:0;z-index:9998;background:rgba(15,23,42,.65);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center}
#confirmOverlay.open{display:flex}
.confirm-box{background:#fff;border-radius:18px;padding:28px 24px;max-width:360px;width:calc(100% - 32px);box-shadow:0 24px 60px rgba(0,0,0,.25);text-align:center}
.confirm-icon{width:52px;height:52px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:1.5rem}
.confirm-icon.danger{background:#FEE2E2}
.confirm-icon.info{background:#DBEAFE}
.confirm-title{font-family:'Sora',sans-serif;font-size:1.05rem;font-weight:800;color:#0F172A;margin-bottom:8px}
.confirm-msg{font-size:.82rem;color:#64748B;line-height:1.65;margin-bottom:20px}
.confirm-btns{display:flex;gap:10px;justify-content:center}
.confirm-cancel{padding:9px 20px;border:1.5px solid #E2E8F0;border-radius:10px;background:#fff;color:#475569;font-size:.84rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s}
.confirm-cancel:hover{border-color:#CBD5E1;background:#F8FAFC}
.confirm-ok{padding:9px 20px;border:none;border-radius:10px;font-size:.84rem;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s;color:#fff}
.confirm-ok.danger{background:linear-gradient(135deg,#DC2626,#991B1B)}
.confirm-ok.info{background:linear-gradient(135deg,#1D4ED8,#1E40AF)}
.confirm-ok:hover{opacity:.88;transform:translateY(-1px)}

/* Save msg hidden by default */
.save-msg{display:none}
.save-msg.visible{display:block}

/* Button loading state */
.save-btn.loading{opacity:.7;pointer-events:none;cursor:not-allowed}
.save-btn.loading::after{content:'...';margin-left:2px}
.dash-overlay.open{display:flex}
/* ══ LOGIN MODAL — WHATSAPP PHONE INPUT ══ */
.lo-wa-icon{vertical-align:-2px;margin-right:5px}
.lo-phone-row{display:flex;align-items:stretch;gap:8px;margin-bottom:10px}
.lo-phone-prefix{display:flex;align-items:center;justify-content:center;padding:0 12px;border:1.5px solid #e2e6ea;border-radius:12px;background:#f1f5f9;font-size:.85rem;font-weight:700;color:#0f172a;flex-shrink:0;white-space:nowrap}
.lo-phone-input-tel{margin-bottom:0 !important;letter-spacing:.04em}


/* ── dashboard v4 helpers ── */
.dash-save-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;background:linear-gradient(135deg,#DC2626,#B91C1C);color:#fff;border:none;border-radius:10px;font-size:.85rem;font-weight:700;cursor:pointer;transition:all .2s;font-family:inherit}
.dash-save-btn:hover{box-shadow:0 8px 24px rgba(220,38,38,.35);transform:translateY(-1px)}
.dash-save-btn .ds-spin{display:none}
.dash-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:8px}
.dash-form-footer #profileMsg{font-size:.8rem;color:#059669;font-weight:600}
.dash-empty{color:#94A3B8;font-size:.86rem;padding:28px 0;text-align:center}
.dash-setting-row{display:flex;align-items:center;justify-content:space-between;padding:14px 2px;border-bottom:1px solid #E2E8F0;font-size:.86rem;font-weight:500;color:#1E2A3A;cursor:pointer}
.dash-setting-row input{width:18px;height:18px;accent-color:#DC2626;cursor:pointer}
.billing-empty-state{text-align:center;padding:48px 20px;color:#94A3B8}
.billing-empty-state svg{width:48px;height:48px;margin-bottom:14px}
.billing-empty-state p{font-weight:700;color:#1E2A3A;font-size:.95rem;margin-bottom:6px}
.billing-empty-state span{font-size:.82rem}
.btn-o-dash{padding:9px 16px;border:1.5px solid #E2E8F0;background:#fff;border-radius:9px;font-size:.8rem;font-weight:600;color:#1E2A3A;cursor:pointer;font-family:inherit}
.btn-o-dash:hover{border-color:#DC2626;color:#DC2626}
.btn-danger-dash{padding:9px 16px;border:1.5px solid #FECACA;background:#FEF2F2;border-radius:9px;font-size:.8rem;font-weight:600;color:#DC2626;cursor:pointer;font-family:inherit}
.btn-danger-dash:hover{background:#DC2626;color:#fff;border-color:#DC2626}
