/**
 * ============================================================
 *  IntraLen — Master Stylesheet
 *  File: assets/css/intralen.css
 *
 *  COLOR PHILOSOPHY:
 *    White background = clarity, trust, professionalism
 *    Blue (#1d4ed8)   = trust, depth, financial authority
 *    Violet (#7c3aed) = intelligence, AI, innovation
 *    Orange (#f97316) = energy, positivity, India spirit
 *    Green (#16a34a)  = market gains, growth, optimism
 *    Red (#dc2626)    = market losses, alert, attention
 *
 *  FRAMEWORK:
 *    CSS Custom Properties (variables) used throughout.
 *    All spacing uses 4px base grid (4, 8, 12, 16, 24, 32px).
 *    Mobile-first responsive — works on desktop and tablet.
 * ============================================================
 */

/* ── CSS Custom Properties (Design Tokens) ─────────────────── */
:root {
    /* Brand colors */
    --brand-blue:       #1d4ed8;   /* Primary — trust, depth */
    --brand-violet:     #7c3aed;   /* Secondary — intelligence */
    --brand-orange:     #f97316;   /* Accent — energy, positivity */
    --brand-amber:      #fbbf24;   /* Accent light — warmth */

    /* Gradients */
    --grad-brand:       linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    --grad-accent:      linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --grad-hero:        linear-gradient(135deg, #1e3a8a 0%, #4c1d95 50%, #7c2d12 100%);
    --grad-card:        linear-gradient(145deg, #ffffff 0%, #f8faff 100%);

    /* Market colors */
    --up:               #16a34a;   /* Green — positive price movement */
    --up-bg:            #f0fdf4;   /* Light green background */
    --up-border:        #bbf7d0;   /* Green border */
    --dn:               #dc2626;   /* Red — negative price movement */
    --dn-bg:            #fef2f2;   /* Light red background */
    --dn-border:        #fecaca;   /* Red border */
    --neutral:          #d97706;   /* Amber — hold/neutral */

    /* Background layers */
    --bg-page:          #f1f5f9;   /* Page background — very light gray */
    --bg-white:         #ffffff;   /* Card/panel background — pure white */
    --bg-sidebar:       #f8faff;   /* Sidebar — light blue tint */
    --bg-input:         #f8fafc;   /* Input field background */
    --bg-header:        #ffffff;   /* Header background */

    /* Text */
    --text-primary:     #0f172a;   /* Near black — main content */
    --text-secondary:   #475569;   /* Gray — supporting text */
    --text-muted:       #94a3b8;   /* Light gray — labels, hints */
    --text-white:       #ffffff;   /* White — on dark backgrounds */

    /* Borders */
    --border:           #e2e8f0;   /* Standard light border */
    --border-strong:    #cbd5e1;   /* Slightly bolder border */
    --border-brand:     #bfdbfe;   /* Blue-tinted border */

    /* Shadows */
    --shadow-xs:        0 1px 3px rgba(0,0,0,.06);
    --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
    --shadow-md:        0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:        0 8px 32px rgba(0,0,0,.12);
    --shadow-brand:     0 4px 20px rgba(29,78,216,.20);
    --shadow-orange:    0 4px 20px rgba(249,115,22,.25);

    /* Border radius */
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --radius-full:      9999px;   /* Pills / circles */

    /* Typography */
    --font-sans:        'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-head:        'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Transitions */
    --transition:       all 0.2s ease;
    --transition-fast:  all 0.15s ease;

    /* Layout */
    --header-h:         60px;      /* Header height */
    --sidebar-w:        230px;     /* Left sidebar width */
    --right-w:          290px;     /* Right panel width */
    --disc-h:           32px;      /* Disclaimer bar height */
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;    /* Include padding/border in element size */
    margin: 0;                 /* Remove browser default margins */
    padding: 0;                /* Remove browser default padding */
}

html {
    font-size: 14px;           /* Base font size — rem units scale from this */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on Mac */
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* ── Scrollbar styling ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ══════════════════════════════════════════════════════════════
   SEBI DISCLAIMER OVERLAY
   Appears on every dashboard load — cannot be bypassed
══════════════════════════════════════════════════════════════ */
#sebiOverlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15, 23, 42, 0.85); /* Dark semi-transparent backdrop */
    backdrop-filter: blur(8px);         /* Frosted glass effect */
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.sebi-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px; width: 100%;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--dn); /* Red top border = alert */
    text-align: center;
}
.sebi-box .sebi-icon { font-size: 48px; margin-bottom: 12px; }
.sebi-box h2 {
    font-family: var(--font-head); font-size: 22px; font-weight: 800;
    color: var(--dn); margin-bottom: 8px;
}
.sebi-box .sebi-intro {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 20px;
}
.sebi-box ul {
    text-align: left; margin: 0 0 24px 20px;
    font-size: 12px; color: var(--text-secondary); line-height: 2.2;
}
.sebi-box ul li strong { color: var(--dn); }
.sebi-accept-btn {
    background: var(--grad-brand); color: var(--text-white);
    border: none; padding: 14px 36px;
    border-radius: var(--radius-full);
    font-family: var(--font-head); font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; cursor: pointer;
    box-shadow: var(--shadow-brand);
    transition: var(--transition);
}
.sebi-accept-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,78,216,.35); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT GRID
   3 columns + header + footer using CSS Grid
══════════════════════════════════════════════════════════════ */
.layout {
    display: grid;
    grid-template-rows: var(--header-h) 1fr var(--disc-h); /* Header, main, footer */
    grid-template-columns: var(--sidebar-w) 1fr var(--right-w); /* 3 columns */
    height: 100vh;
    overflow: hidden; /* Prevent page scroll — each panel scrolls independently */
}
/* Header spans all 3 columns */
.l-header  { grid-column: 1 / -1; grid-row: 1; }
/* Sidebar fills left column, main area fills center, right fills right */
.l-sidebar { grid-row: 2; overflow-y: auto; }
.l-main    { grid-row: 2; overflow: hidden; display: flex; flex-direction: column; }
.l-right   { grid-row: 2; overflow-y: auto; }
/* Disclaimer bar spans all 3 columns at the bottom */
.l-disc    { grid-column: 1 / -1; grid-row: 3; }

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.l-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    box-shadow: var(--shadow-xs);
    z-index: 100; /* Stay above panel shadows */
}

/* Logo area */
.hdr-logo {
    padding: 0 20px;
    border-right: 1px solid var(--border);
    height: 100%; display: flex; align-items: center;
    flex-shrink: 0;
}
.hdr-logo img { height: 36px; width: auto; }

/* Index blocks in header */
.hdr-indices {
    display: flex; flex: 1; overflow: hidden;
    height: 100%;
}
.idx-block {
    padding: 0 16px; border-right: 1px solid var(--border);
    height: 100%; display: flex; flex-direction: column;
    justify-content: center; white-space: nowrap;
    transition: var(--transition-fast);
}
.idx-block:hover { background: #f8faff; }
.idx-name  { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.idx-val   { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }
.idx-chg   { font-family: var(--font-mono); font-size: 10px; margin-top: 1px; }
.idx-chg.up { color: var(--up); }
.idx-chg.dn { color: var(--dn); }

/* Right side of header */
.hdr-right {
    margin-left: auto; padding: 0 16px;
    display: flex; align-items: center; gap: 10px;
    border-left: 1px solid var(--border); height: 100%; flex-shrink: 0;
}
.hdr-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--up);
    animation: pulse-green 1.5s ease-in-out infinite;
}
@keyframes pulse-green {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
    50%      { opacity: .8; box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}
.hdr-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* Badge styles */
.badge {
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: var(--radius-full); letter-spacing: 0.5px;
}
.badge-free   { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-pro    { background: var(--grad-brand); color: white; }
.badge-orange { background: linear-gradient(135deg,#f97316,#fbbf24); color: white; }

/* User email */
.hdr-email { font-size: 11px; color: var(--text-muted); max-width: 140px; truncate: ellipsis; overflow: hidden; white-space: nowrap; }

/* Logout button */
.logout-btn {
    font-size: 11px; color: var(--dn); text-decoration: none;
    padding: 5px 12px; border: 1px solid #fecaca;
    border-radius: var(--radius-full); transition: var(--transition-fast);
}
.logout-btn:hover { background: var(--dn-bg); }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR — Sector Heatmap
══════════════════════════════════════════════════════════════ */
.l-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border);
}
.panel-title {
    padding: 12px 14px; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10; /* Stay visible when scrolling */
}

/* Sector row */
.sector-block { cursor: pointer; transition: var(--transition-fast); }
.sector-block:hover { background: #f8faff; }
.sector-block.active { background: #eff6ff; border-left: 3px solid var(--brand-blue); }
.sector-header {
    padding: 10px 14px 4px;
    display: flex; justify-content: space-between; align-items: center;
}
.sect-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.sect-chg  { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.sect-chg.up { color: var(--up); }
.sect-chg.dn { color: var(--dn); }

/* Visual strength bar under sector */
.sector-bar {
    height: 3px; margin: 4px 14px 0;
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}
.sector-bar.up { background: linear-gradient(90deg, transparent, var(--up)); }
.sector-bar.dn { background: linear-gradient(90deg, transparent, var(--dn)); }

/* Stock list (expands when sector clicked) */
.stock-list { display: none; border-bottom: 1px solid var(--border); }
.stock-list.open { display: block; }

/* Individual stock row */
.stock-row {
    padding: 7px 14px 7px 24px; /* Extra left pad to indent under sector */
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f1f5f9; /* Very light separator */
    cursor: pointer; position: relative;
    transition: var(--transition-fast);
}
.stock-row:hover { background: #f0f7ff; }
.stock-row.active { background: #dbeafe; }
.srow-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.srow-price{ font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.srow-chg  { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.srow-chg.up { color: var(--up); }
.srow-chg.dn { color: var(--dn); }

/* Hover tooltip on stock row */
.stock-tooltip {
    display: none; position: absolute;
    left: calc(100% + 4px); top: 50%; transform: translateY(-50%);
    background: var(--bg-white); border: 1px solid var(--border-brand);
    border-radius: var(--radius-lg); padding: 14px; z-index: 999;
    width: 230px; box-shadow: var(--shadow-lg);
}
.stock-row:hover .stock-tooltip { display: block; }
.tt-head { font-size: 12px; font-weight: 800; color: var(--brand-blue); margin-bottom: 10px; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.tt-item { background: var(--bg-sidebar); border-radius: var(--radius-sm); padding: 6px 8px; }
.tt-label{ font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.tt-val  { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }
.tt-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.tt-reco-title { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.tt-reco-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 10px; }
.tt-broker { color: var(--text-secondary); }
.tt-target { font-family: var(--font-mono); color: var(--text-muted); }
.reco-BUY  { color: var(--up); font-weight: 800; }
.reco-HOLD { color: var(--neutral); font-weight: 800; }
.reco-SELL { color: var(--dn); font-weight: 800; }
.reco-OUTPERFORM { color: var(--up); font-weight: 800; }
.reco-OVERWEIGHT  { color: var(--up); font-weight: 800; }
.reco-NEUTRAL     { color: var(--neutral); font-weight: 800; }

/* ══════════════════════════════════════════════════════════════
   MAIN CHART AREA
══════════════════════════════════════════════════════════════ */
.l-main { background: #0a0e1a; } /* Dark chart background for contrast */

/* Chart toolbar */
.chart-toolbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.chart-stock-name {
    font-family: var(--font-head); font-size: 15px; font-weight: 800;
    color: var(--text-primary);
}
.chart-price {
    font-family: var(--font-mono); font-size: 17px; font-weight: 700;
    color: var(--text-primary);
}
.chart-chg { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.chart-chg.up { color: var(--up); }
.chart-chg.dn { color: var(--dn); }

/* SuperTrend signal badge */
.supert-badge {
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.supert-badge.bull { background: var(--up-bg); color: var(--up); border: 1px solid var(--up-border); }
.supert-badge.bear { background: var(--dn-bg); color: var(--dn); border: 1px solid var(--dn-border); }

/* Timeframe buttons */
.tf-group { display: flex; gap: 3px; }
.tf-btn {
    padding: 4px 10px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted);
    font-size: 11px; font-family: var(--font-mono);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition-fast);
}
.tf-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.tf-btn.active {
    background: var(--brand-blue); border-color: var(--brand-blue);
    color: white; font-weight: 700;
}

/* Indicator toggle group */
.ind-group { display: flex; align-items: center; gap: 12px; }
.ind-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 11px; color: var(--text-muted); }
.ind-toggle input { cursor: pointer; accent-color: var(--brand-blue); }
.ind-toggle:has(input:checked) { color: var(--text-primary); font-weight: 600; }

/* EMA controls */
.ema-group { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ema-label { font-size: 10px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }
.ema-select {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 4px 8px;
    border-radius: var(--radius-sm); font-size: 11px; font-family: var(--font-mono);
    outline: none; cursor: pointer;
}
.add-ema-btn {
    padding: 4px 10px; border: 1px solid #bbf7d0;
    background: var(--up-bg); color: var(--up);
    font-size: 11px; border-radius: var(--radius-sm);
    cursor: pointer; font-weight: 700; transition: var(--transition-fast);
}
.add-ema-btn:hover { background: #dcfce7; }

/* EMA tag chips */
.ema-chip {
    display: flex; align-items: center; gap: 4px; font-size: 10px;
    font-family: var(--font-mono); padding: 2px 8px;
    border-radius: var(--radius-full); font-weight: 700;
}
.ema-chip .remove { cursor: pointer; opacity: .6; font-style: normal; }
.ema-chip .remove:hover { opacity: 1; }

/* TradingView chart container */
.chart-container { flex: 1; overflow: hidden; }
#tvChart { width: 100% !important; height: 100% !important; }

/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════════════ */
.l-right {
    background: var(--bg-white);
    border-left: 1px solid var(--border);
}

/* Right panel section */
.rp-section { border-bottom: 1px solid var(--border); }
.rp-title {
    padding: 11px 14px; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; transition: var(--transition-fast);
    user-select: none;
}
.rp-title:hover { color: var(--text-primary); background: #f8faff; }
.rp-title .arrow { margin-left: auto; font-size: 9px; transition: transform 0.2s; }
.rp-title .arrow.open { transform: rotate(180deg); }
.rp-body { padding: 12px 14px; }

/* FII/DII table */
.fiidii-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.fiidii-table th {
    color: var(--text-muted); font-size: 9px; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 6px;
    border-bottom: 1px solid var(--border); text-align: left;
}
.fiidii-table td { padding: 6px 6px; font-family: var(--font-mono); }
.fiidii-table tr:hover td { background: #f8faff; }
.flow-bar {
    height: 3px; border-radius: var(--radius-full); margin-top: 3px;
    transition: width 0.6s ease;
}
.flow-bar.up { background: linear-gradient(90deg, var(--up-bg), var(--up)); }
.flow-bar.dn { background: linear-gradient(90deg, var(--dn-bg), var(--dn)); }

/* Shareholding donut-style display */
.holding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.holding-card {
    background: var(--bg-sidebar); border-radius: var(--radius-md);
    padding: 10px; text-align: center; border: 1px solid var(--border);
}
.holding-pct { font-family: var(--font-mono); font-size: 20px; font-weight: 800; }
.holding-label { font-size: 9px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }

/* Broker research cards */
.reco-card {
    background: var(--bg-sidebar); border-radius: var(--radius-md);
    border: 1px solid var(--border); padding: 10px; margin-bottom: 8px;
    transition: var(--transition-fast);
}
.reco-card:hover { border-color: var(--border-brand); box-shadow: var(--shadow-xs); }
.reco-top { display: flex; justify-content: space-between; align-items: center; }
.reco-broker { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.reco-action { font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.reco-target { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.rp-disclaimer {
    font-size: 10px; color: var(--text-muted); line-height: 1.6;
    border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px;
}

/* Tech summary grid */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tech-card {
    background: var(--bg-sidebar); border-radius: var(--radius-sm);
    border: 1px solid var(--border); padding: 8px;
}
.tech-label { font-size: 9px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.tech-val   { font-family: var(--font-mono); font-size: 16px; font-weight: 800; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════
   DISCLAIMER BAR (bottom scrolling ticker)
══════════════════════════════════════════════════════════════ */
.l-disc {
    background: #fff7ed; /* Very light orange — draws attention */
    border-top: 1px solid #fed7aa;
    display: flex; align-items: center; overflow: hidden;
    font-size: 10px; color: #9a3412;
}
.disc-prefix {
    padding: 0 12px; font-size: 10px; font-weight: 800; color: var(--dn);
    background: #fef2f2; border-right: 1px solid #fecaca;
    height: 100%; display: flex; align-items: center;
    white-space: nowrap; flex-shrink: 0; letter-spacing: 0.5px;
}
.disc-scroll {
    white-space: nowrap;
    animation: scroll-left 55s linear infinite;
}
.disc-scroll:hover { animation-play-state: paused; } /* Pause on hover to read */
.disc-sep { margin: 0 16px; color: #fed7aa; }
@keyframes scroll-left {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE (index.php)
══════════════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fff7ed 100%);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 20px;
}

/* Top ticker tape on login page */
.login-ticker {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-white); border-bottom: 1px solid var(--border);
    height: 36px; display: flex; align-items: center; overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.ticker-scroll { white-space: nowrap; animation: scroll-left 30s linear infinite; display: flex; gap: 40px; }
.ticker-scroll:hover { animation-play-state: paused; }
.tick-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-mono); }
.tick-name { color: var(--text-muted); font-weight: 600; }
.tick-val  { color: var(--text-primary); font-weight: 700; }
.tick-chg  { font-weight: 700; }
.tick-chg.up { color: var(--up); }
.tick-chg.dn { color: var(--dn); }

/* Login card */
.login-card {
    width: 100%; max-width: 440px; margin-top: 40px;
    background: var(--bg-white); border-radius: var(--radius-xl);
    padding: 40px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
/* Top gradient accent bar */
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-brand);
}

.login-logo { margin-bottom: 28px; }
.login-logo img { height: 44px; }

/* Free trial banner */
.trial-banner {
    background: linear-gradient(135deg, #fff7ed, #fef9c3);
    border: 1px solid #fed7aa; border-radius: var(--radius-md);
    padding: 10px 14px; margin-bottom: 24px;
    font-size: 12px; color: #92400e; text-align: center;
}

/* Feature chips */
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.feat-chip {
    font-size: 10px; padding: 4px 10px; border-radius: var(--radius-full);
    font-weight: 600; letter-spacing: 0.3px;
}
.chip-blue   { background: #eff6ff; color: var(--brand-blue); border: 1px solid #bfdbfe; }
.chip-violet { background: #f5f3ff; color: var(--brand-violet); border: 1px solid #ddd6fe; }
.chip-green  { background: var(--up-bg); color: #166534; border: 1px solid var(--up-border); }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--text-secondary); margin-bottom: 6px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.form-input {
    width: 100%; background: var(--bg-input);
    border: 1.5px solid var(--border); color: var(--text-primary);
    padding: 12px 14px; border-radius: var(--radius-md);
    font-size: 14px; font-family: var(--font-sans);
    outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--brand-blue); background: white; box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.form-input::placeholder { color: var(--text-muted); }

/* OTP input — big digits */
.otp-input {
    width: 100%; background: var(--bg-input);
    border: 2px solid var(--border); color: var(--text-primary);
    padding: 14px 16px; border-radius: var(--radius-md);
    font-size: 28px; font-family: var(--font-mono);
    font-weight: 800; letter-spacing: 12px; text-align: center;
    outline: none; transition: var(--transition);
}
.otp-input:focus { border-color: var(--brand-blue); background: white; box-shadow: 0 0 0 3px rgba(29,78,216,.08); }

/* Buttons */
.btn {
    width: 100%; padding: 13px; border: none; border-radius: var(--radius-md);
    font-size: 14px; font-family: var(--font-head); font-weight: 700;
    cursor: pointer; transition: var(--transition); letter-spacing: 0.3px;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--grad-brand); color: white;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,78,216,.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-verify {
    background: linear-gradient(135deg, #15803d, #16a34a); color: white;
    box-shadow: 0 4px 16px rgba(22,163,74,.3);
}
.btn-verify:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,.4); }

/* Inline message (success/error) */
.form-msg {
    padding: 10px 14px; border-radius: var(--radius-md);
    font-size: 12px; margin-top: 12px; display: none;
}
.form-msg.error   { background: var(--dn-bg); border: 1px solid var(--dn-border); color: var(--dn); }
.form-msg.success { background: var(--up-bg); border: 1px solid var(--up-border); color: #166534; }

/* Spinner */
.spinner {
    display: none; width: 20px; height: 20px; margin: 12px auto;
    border: 2.5px solid var(--border); border-top-color: var(--brand-blue);
    border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Step hint */
.step-hint { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.8; }
.step-link { color: var(--brand-blue); cursor: pointer; text-decoration: underline; }

/* Login disclaimer */
.login-disc {
    margin-top: 24px; padding: 14px; background: #fef2f2;
    border: 1px solid var(--dn-border); border-radius: var(--radius-md);
    font-size: 11px; color: var(--text-secondary); line-height: 1.7;
}
.login-disc strong { color: var(--dn); }

/* ══════════════════════════════════════════════════════════════
   PRICING PAGE
══════════════════════════════════════════════════════════════ */
.pricing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    padding: 60px 20px;
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 960px; margin: 40px auto 0;
}
.pricing-card {
    background: var(--bg-white); border-radius: var(--radius-xl);
    padding: 32px; border: 2px solid var(--border);
    transition: var(--transition); position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card.popular {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-brand);
}
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--grad-brand); color: white;
    font-size: 10px; font-weight: 800; padding: 4px 16px;
    border-radius: var(--radius-full); letter-spacing: 1px; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.text-up     { color: var(--up); }
.text-dn     { color: var(--dn); }
.text-muted  { color: var(--text-muted); }
.text-mono   { font-family: var(--font-mono); }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.hidden { display: none; }
