/* ==========================================================================
   Gateway by VentureSEA — Login & Dashboard
   Light theme aligned with expansion-needs styles.css design system
   ========================================================================== */

:root {
  --vsea-navy:        #1D3260;
  --vsea-navy-deep:   #142449;
  --vsea-navy-soft:   #243d78;
  --vsea-blue:        #045DE9;
  --vsea-cyan:        #09C6F9;
  --vsea-orange:      #FF9122;
  --vsea-orange-soft: #FFBA49;
  --vsea-orange-tint: #FFF4E6;
  --vsea-blue-tint:   #E8EFFE;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f7f9fc;

  --ink:    var(--vsea-navy);
  --paper:  #ffffff;
  --canvas: #f6f8fc;
  --line:   #e6eaf2;
  --line-strong: #d3d9e6;

  --emerald-600: #129365;
  --emerald-50:  #ecfaf3;
  --rose-600:    #e11d48;
  --rose-50:     #fff1f2;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-md: 0 12px 28px rgba(15,23,42,0.08), 0 4px 10px rgba(15,23,42,0.05);
  --shadow-lg: 0 24px 48px rgba(15,23,42,0.12);

  --ease: cubic-bezier(0.2,0.8,0.2,1);

  /* Legacy dark-theme vars kept for any inline styles still referencing them */
  --navy: #0E1B3C; --navy-mid: #1D3260; --navy-light: #243d78;
  --orange: #FF9122; --orange-warm: #FFBA49; --cyan: #09C6F9;
  --green: #22c55e; --red: #ef4444;
  --text: var(--slate-800); --text-dim: var(--slate-500);
  --text-faint: var(--slate-400); --border: var(--line);
  --border-cyan: rgba(9,198,249,0.25); --card: var(--paper);
}

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

html { background: var(--canvas); }

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(9,198,249,0.05) 0%, transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(255,145,34,0.04) 0%, transparent 70%),
    var(--canvas);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAV — matches topbar from styles.css
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.nav-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--vsea-blue); background: var(--vsea-blue-tint);
  border: 1px solid rgba(4,93,233,0.2); border-radius: 6px; padding: 3px 9px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { font-size: 12px; color: var(--slate-600); }
.btn-nav {
  background: var(--paper); border: 1px solid var(--line-strong);
  color: var(--slate-700); font-family: Poppins,sans-serif; font-size: 12px;
  font-weight: 600; border-radius: var(--radius-sm); padding: 7px 14px;
  cursor: pointer; transition: all .15s;
}
.btn-nav:hover { background: var(--slate-50); border-color: var(--slate-300); box-shadow: var(--shadow-xs); }
.notif-btn { position: relative; background: none; border: none; cursor: pointer; color: var(--slate-500); font-size: 17px; padding: 4px 6px; }
.notif-btn:hover { color: var(--ink); }
.notif-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--vsea-orange); border: 2px solid var(--paper); display: none; }
.notif-dot.active { display: block; }

/* ==========================================================================
   AUTH SCREEN
   ========================================================================== */
#auth-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px); padding: 40px 20px;
}
.auth-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--vsea-orange); margin-bottom: 8px;
}
.auth-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.auth-sub { font-size: 12px; color: var(--slate-500); margin-bottom: 24px; line-height: 1.65; }
.auth-tabs {
  display: flex; gap: 4px; background: var(--slate-100);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 8px; border: none; border-radius: 7px;
  font-family: Poppins,sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-tab.inactive { background: transparent; color: var(--slate-500); }
.form-field { margin-bottom: 13px; }
.form-label {
  font-size: 11px; font-weight: 600; color: var(--slate-600);
  display: block; margin-bottom: 5px; letter-spacing: 0.3px;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink);
  font-family: Poppins,sans-serif; font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--vsea-blue); box-shadow: 0 0 0 3px rgba(4,93,233,0.1); }
.auth-err { display: none; color: var(--rose-600); font-size: 11px; margin: 6px 0; }
.auth-success {
  display: none; color: var(--emerald-600); font-size: 11px; margin: 6px 0;
  background: var(--emerald-50); border: 1px solid rgba(18,147,101,0.2);
  border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.5;
}
.btn-auth {
  width: 100%; margin-top: 6px;
  background: linear-gradient(135deg, var(--vsea-orange), var(--vsea-orange-soft));
  color: #fff; font-family: Poppins,sans-serif; font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--radius); padding: 13px; cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(255,145,34,0.3);
}
.btn-auth:hover { opacity: .92; transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.forgot-link {
  font-size: 11px; color: var(--vsea-blue); text-align: right;
  display: block; margin-top: -4px; margin-bottom: 12px; cursor: pointer;
}
.forgot-link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.divider-line { flex: 1; height: 1px; background: var(--line); }
.divider-text { font-size: 11px; color: var(--slate-400); }
.btn-google {
  width: 100%; padding: 11px;
  background: var(--paper); color: var(--ink);
  font-family: Poppins,sans-serif; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all .15s; box-shadow: var(--shadow-xs);
}
.btn-google:hover { background: var(--slate-50); border-color: var(--slate-300); }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
#dashboard { display: none; }
.dash-wrapper { display: flex; height: calc(100vh - 64px); overflow: hidden; }

/* SIDEBAR */
.sidebar {
  width: 208px; flex-shrink: 0;
  background: var(--paper); border-right: 1px solid var(--line);
  padding: 24px 0; position: sticky; top: 0;
  height: 100%; overflow-y: auto;
}
.sidebar-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--slate-400); padding: 0 18px 8px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  font-size: 12.5px; font-weight: 500; color: var(--slate-600);
  cursor: pointer; transition: all .15s; border-left: 2px solid transparent;
}
.sidebar-item:hover { background: var(--slate-50); color: var(--ink); }
.sidebar-item.active {
  border-left-color: var(--vsea-orange);
  background: var(--vsea-orange-tint);
  color: var(--vsea-navy); font-weight: 700;
}
.sidebar-icon { font-size: 14px; width: 18px; text-align: center; }
.sidebar-badge {
  margin-left: auto; background: var(--vsea-orange); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 6px;
  min-width: 18px; text-align: center;
}

/* MAIN */
.main-content { flex: 1; padding: 28px 32px; min-width: 0; background: var(--canvas); overflow-y: auto; height: 100%; }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.section-action {
  font-size: 12px; font-weight: 600; color: var(--vsea-blue);
  text-decoration: none; cursor: pointer; background: none; border: none;
  font-family: Poppins,sans-serif; transition: opacity .15s;
}
.section-action:hover { opacity: .75; }

/* WELCOME */
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.dash-welcome { font-size: 22px; font-weight: 800; color: var(--ink); }
.dash-welcome span { color: var(--vsea-orange); }
.dash-sub { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-qa {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border-radius: var(--radius); font-family: Poppins,sans-serif; font-size: 12px;
  font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-qa-primary { background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft)); color: #fff; box-shadow: 0 4px 12px rgba(255,145,34,0.25); }
.btn-qa-primary:hover { transform: translateY(-1px); opacity: .9; }
.btn-qa-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--slate-700); box-shadow: var(--shadow-xs); }
.btn-qa-ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.stat-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--vsea-orange); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--slate-500); font-weight: 500; }

/* JOURNEY CARD */
.journey-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.journey-title { font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.journey-steps { display: flex; gap: 0; }
.j-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.j-step:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.j-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--vsea-navy);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; cursor: pointer; position: relative; z-index: 1;
  transition: background .2s; box-shadow: var(--shadow-sm);
}
.j-dot:hover { background: var(--vsea-blue); }
.j-label { font-size: 11px; font-weight: 600; color: var(--slate-600); text-align: center; }
.j-cta { font-size: 11px; font-weight: 600; color: var(--vsea-blue); text-decoration: none; }
.j-cta:hover { text-decoration: underline; }

/* CARDS (reports, sessions, etc.) */
.report-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  box-shadow: var(--shadow-sm); cursor: default;
}
.report-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-1px); }
.card-icon { font-size: 22px; flex-shrink: 0; }
.card-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.card-meta { font-size: 11px; color: var(--slate-500); }
.card-actions { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.btn-card {
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--slate-700);
  font-family: Poppins,sans-serif; cursor: pointer; transition: all .15s;
}
.btn-card:hover { background: var(--slate-50); border-color: var(--slate-300); }
.btn-card-primary { background: var(--vsea-blue-tint); border-color: rgba(4,93,233,0.2); color: var(--vsea-blue); }
.btn-card-primary:hover { background: #dde7fd; }

/* REPORT CARD — enhanced */
.report-info { flex: 1; min-width: 0; }
.report-name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.report-date { font-size: 11px; color: var(--slate-400); margin-top: 5px; }
.badge-row { display: flex; gap: 5px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.badge-orange { background: #FFF4E6; color: #FF9122; border: 1px solid rgba(255,145,34,.2); }
.badge-blue   { background: #E8EFFE; color: #045DE9; border: 1px solid rgba(4,93,233,.15); }
.badge-gray   { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* View button — matches design system */
.btn-sm {
  font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--slate-700);
  font-family: Poppins,sans-serif; cursor: pointer; transition: all .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-sm:hover { background: var(--slate-50); border-color: var(--slate-400); }
.btn-sm.danger { background: var(--rose-50); border-color: rgba(225,29,72,.15); color: var(--rose-600); }
.btn-sm.danger:hover { background: #ffe4e6; }

/* SCORE BADGE */
.score-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  font-size: 16px; font-weight: 900; flex-shrink: 0; line-height: 1;
}
.score-sub { font-size: 9px; font-weight: 600; letter-spacing: .5px; margin-top: 1px; opacity: .7; }
.score-go      { background: #f0fdf4; color: #22c55e; border: 1px solid rgba(34,197,94,.2); }
.score-caution { background: #FFF4E6; color: #FF9122; border: 1px solid rgba(255,145,34,.25); }
.score-nogo    { background: #fff1f2; color: #e11d48; border: 1px solid rgba(225,29,72,.2); }
.score-high   { background: var(--emerald-50); color: var(--emerald-600); border: 1px solid rgba(18,147,101,0.2); }
.score-medium { background: var(--vsea-orange-tint); color: var(--vsea-orange); border: 1px solid rgba(255,145,34,0.2); }
.score-low    { background: var(--rose-50); color: var(--rose-600); border: 1px solid rgba(225,29,72,0.2); }

/* REPORT LIST spacing */
.reports-list { display: flex; flex-direction: column; gap: 10px; }

/* DETAIL MODAL upgrade */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.5); backdrop-filter: blur(6px); align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 20px; }
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 36px 40px; max-width: 780px; width: 100%;
  position: relative; box-shadow: 0 24px 48px rgba(15,23,42,.12); animation: fadeUp .25s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--slate-100); border: none;
  color: var(--slate-500); font-size: 18px; cursor: pointer; padding: 5px 9px;
  border-radius: var(--radius-sm); transition: all .15s;
}
.modal-close:hover { background: #FFF4E6; color: #FF9122; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; color: var(--ink); padding-right: 40px; }
.modal-sub   { font-size: 13px; color: var(--slate-500); margin-bottom: 24px; }

/* PLAN BANNER */
.plan-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--vsea-orange-tint); border: 1px solid rgba(255,145,34,0.25);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; flex-wrap: wrap;
}
.plan-banner-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.plan-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,145,34,0.15); color: var(--vsea-orange);
  border: 1px solid rgba(255,145,34,0.3); border-radius: 6px; padding: 4px 9px; white-space: nowrap;
}
.plan-banner-text { font-size: 12px; color: var(--ink); line-height: 1.5; }
.plan-banner-sub { display: block; font-size: 11px; color: var(--slate-600); margin-top: 2px; }
.btn-upgrade {
  background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft));
  color: #fff; font-family: Poppins,sans-serif; font-size: 12px; font-weight: 700;
  border: none; border-radius: var(--radius-sm); padding: 9px 18px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; box-shadow: 0 4px 12px rgba(255,145,34,0.25);
}
.btn-upgrade:hover { opacity: .9; }

/* BILLING */
.billing-current-plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.billing-plan-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.billing-plan-name { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.billing-plan-desc { font-size: 11px; color: var(--slate-500); }
.billing-plan-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--emerald-50); color: var(--emerald-600);
  border: 1px solid rgba(18,147,101,0.2); border-radius: 6px; padding: 4px 10px;
}
.billing-credits-row { display: flex; gap: 0; }
.billing-credit-item { flex: 1; text-align: center; }
.billing-credit-num { font-size: 22px; font-weight: 800; color: var(--vsea-orange); line-height: 1; margin-bottom: 3px; }
.billing-credit-label { font-size: 10px; color: var(--slate-400); }
.billing-credit-divider { width: 1px; background: var(--line); margin: 0 8px; }

.billing-plans-title {
  font-size: 12px; font-weight: 700; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.plan-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; position: relative; box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card-featured { border-color: rgba(255,145,34,0.35); background: var(--vsea-orange-tint); }
.plan-popular-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft));
  color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 3px 12px; white-space: nowrap;
}
.plan-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.plan-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.plan-price { font-size: 22px; font-weight: 900; color: var(--vsea-orange); line-height: 1; }
.plan-period { font-size: 11px; color: var(--slate-500); font-weight: 400; }
.plan-desc { font-size: 11px; color: var(--slate-500); margin-bottom: 14px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-features li { font-size: 11px; color: var(--slate-700); }
.plan-cta {
  display: block; text-align: center; padding: 10px;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: Poppins,sans-serif; font-size: 12px; font-weight: 700;
  border-radius: var(--radius-sm); text-decoration: none; transition: all .15s;
}
.plan-cta:hover { background: var(--slate-50); border-color: var(--slate-300); }
.plan-cta-featured {
  background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft));
  color: #fff; border: none; box-shadow: 0 4px 12px rgba(255,145,34,0.25);
}
.plan-cta-featured:hover { opacity: .9; background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft)); }

.oneoff-grid { display: flex; flex-direction: column; gap: 10px; }
.oneoff-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-xs);
}
.oneoff-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.oneoff-icon { font-size: 22px; flex-shrink: 0; }
.oneoff-info { flex: 1; min-width: 0; }
.oneoff-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.oneoff-desc { font-size: 11px; color: var(--slate-500); }
.oneoff-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.oneoff-price { font-size: 18px; font-weight: 800; color: var(--vsea-orange); }
.oneoff-btn {
  background: linear-gradient(135deg,var(--vsea-orange),var(--vsea-orange-soft));
  color: #fff; font-family: Poppins,sans-serif; font-size: 12px; font-weight: 700;
  border: none; border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer;
  text-decoration: none; display: inline-block; transition: opacity .15s;
}
.oneoff-btn:hover { opacity: .9; }

.billing-empty {
  font-size: 12px; color: var(--slate-400); text-align: center; padding: 28px 20px;
  background: var(--slate-50); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.billing-table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.billing-table-header {
  display: grid; grid-template-columns: 120px 1fr 80px 80px; gap: 10px; padding: 10px 16px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--slate-400); border-bottom: 1px solid var(--line); background: var(--slate-50);
}
.billing-table-row {
  display: grid; grid-template-columns: 120px 1fr 80px 80px; gap: 10px;
  padding: 11px 16px; font-size: 12px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.billing-table-row:last-child { border-bottom: none; }
.billing-status { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 7px; text-align: center; }
.billing-status-paid   { background: var(--emerald-50); color: var(--emerald-600); }
.billing-status-pending { background: var(--vsea-orange-tint); color: var(--vsea-orange); }
.billing-status-failed  { background: var(--rose-50); color: var(--rose-600); }

/* SETTINGS */
.settings-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.settings-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.settings-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-field { margin-bottom: 12px; }
.settings-label { font-size: 11px; font-weight: 600; color: var(--slate-600); display: block; margin-bottom: 5px; }
.settings-input {
  width: 100%; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: Poppins,sans-serif; font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.settings-input:focus { border-color: var(--vsea-blue); box-shadow: 0 0 0 3px rgba(4,93,233,0.1); }
.settings-input:disabled { background: var(--slate-50); color: var(--slate-400); }
.btn-save {
  background: var(--vsea-navy); color: #fff; font-family: Poppins,sans-serif;
  font-size: 12px; font-weight: 700; border: none; border-radius: var(--radius-sm);
  padding: 9px 20px; cursor: pointer; transition: all .15s;
}
.btn-save:hover { background: var(--vsea-navy-soft); }
.settings-saved { font-size: 11px; color: var(--emerald-600); margin-left: 8px; display: none; }

/* TOGGLE */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line); gap: 14px;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.toggle-desc { font-size: 11px; color: var(--slate-500); }
.toggle-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--slate-200); border-radius: 22px; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-xs); }
.toggle-switch input:checked + .toggle-slider { background: var(--vsea-orange); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* DANGER ZONE */
.danger-zone {
  margin-top: 20px; background: var(--rose-50); border: 1px solid rgba(225,29,72,0.2);
  border-radius: var(--radius); padding: 16px 18px;
}
.danger-title { font-size: 13px; font-weight: 700; color: var(--rose-600); margin-bottom: 6px; }
.danger-desc { font-size: 11px; color: var(--slate-600); margin-bottom: 12px; line-height: 1.6; }
.btn-danger {
  background: var(--rose-600); color: #fff; font-family: Poppins,sans-serif;
  font-size: 12px; font-weight: 700; border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; cursor: pointer; transition: opacity .15s;
}
.btn-danger:hover { opacity: .85; }

/* MODALS */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 80px 20px 40px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 36px 40px; max-width: 820px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); animation: fadeUp .25s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--slate-100); border: none;
  color: var(--slate-500); font-size: 18px; cursor: pointer; padding: 5px 9px;
  border-radius: var(--radius-sm); transition: all .15s;
}
.modal-close:hover { background: #FFF4E6; color: #FF9122; }
.modal-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.modal-sub { font-size: 12px; color: var(--slate-500); margin-bottom: 16px; }

/* NOTIFICATIONS */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.notif-item.unread { border-left: 3px solid var(--vsea-orange); }
.notif-dot-ind { width: 7px; height: 7px; border-radius: 50%; background: var(--vsea-orange); flex-shrink: 0; margin-top: 5px; }
.notif-content { flex: 1; }
.notif-text { font-size: 12px; color: var(--ink); line-height: 1.5; }
.notif-time { font-size: 10px; color: var(--slate-400); margin-top: 2px; }

/* SKELETON */
.skeleton { background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-50) 50%, var(--slate-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sk-sq { width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sk-l { height: 11px; border-radius: 4px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .auth-box { padding: 28px 20px; }
  .dash-header { flex-direction: column; }
  .quick-actions { width: 100%; }
  .btn-qa { flex: 1; justify-content: center; }
  .plans-grid { grid-template-columns: 1fr; }
  .settings-row-2 { grid-template-columns: 1fr; }
  .billing-credits-row { gap: 4px; }
  .billing-table-header, .billing-table-row { grid-template-columns: 90px 1fr 60px 60px; font-size: 11px; }
  .plan-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
