/* ============================================================
   OtpSite — Professional UI theme layer
   Loaded AFTER each page's inline styles (via sidebar.php), so
   rules here win the cascade and re-skin the whole portal:
   clean corporate light theme, flat surfaces, refined violet
   accent, no orbs / glassmorphism / rainbow bars.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS (override every page's :root)
   ------------------------------------------------------------ */
:root {
    --white: #ffffff;
    --off: #f8f9fb;
    --surface: #f1f3f7;
    --border: #e3e7ee;
    --border-light: #ebeef4;

    --text-1: #111827;
    --text-2: #5b6472;
    --text-3: #9aa3b2;

    --accent: #6d28d9;
    --accent-l: #f3f0fc;
    --accent-m: #8b5cf6;

    --amber: #d97706;  --amber-l: #fdf3e1;
    --green: #059669;  --green-l: #e6f6ef;
    --blue: #2563eb;   --blue-l: #ecf2fe;
    --red: #dc2626;    --red-l: #fdecec;
    --pink: #db2777;   --pink-l: #fdeef6;
    --teal: #0d9488;   --teal-l: #e6f7f5;
    --orange: #ea580c; --orange-l: #feeee3;

    --sidebar-w: 264px;
    --nav-h: 62px;

    --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
    --shadow-md: 0 2px 6px rgba(16,24,40,0.05), 0 1px 2px rgba(16,24,40,0.04);
    --shadow-lg: 0 12px 32px rgba(16,24,40,0.10), 0 4px 12px rgba(16,24,40,0.05);
    --glow: 0 0 0 3px rgba(139,92,246,0.18);
    --transition: 0.18s ease;

    --font-ui: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
html, body {
    background: #f6f7fa;
    font-family: var(--font-ui);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
}

/* Kill decorative backgrounds (orbs, gradient meshes) */
.bg-layer, .orb, .bg-mesh { display: none !important; animation: none !important; }

::selection { background: rgba(139,92,246,0.22); }

/* Professional typography — retire the decorative serif everywhere */
h1, h2, h3, h4, h5,
.page-title, .panel-title, .stat-value, .logo-name, .wc-title,
.notif-drop-title, .card-title, .section-title, .modal-title,
.auth-title, .hero-title {
    font-family: var(--font-ui) !important;
    letter-spacing: -0.02em;
}
.page-title em, .page-title span,
.panel-title em, .panel-title span,
.logo-name em, .wc-title em,
h1 em, h2 em, h3 em {
    font-style: normal !important;
    font-weight: inherit !important;
}

/* ------------------------------------------------------------
   3. TOP NAVBAR
   ------------------------------------------------------------ */
.navbar {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    animation: none;
    padding: 0 20px;
}
.navbar::before { display: none; }   /* rainbow bar gone */

.hamburger {
    border: 1px solid transparent;
    border-radius: 8px;
}
.hamburger:hover { background: var(--surface); border-color: var(--border); }
.hamburger::before { display: none; }
.ham-line { height: 2px; background: var(--text-2); }

.nav-logo { gap: 9px; }
.logo-mark {
    background: var(--accent);
    border-radius: 8px;
    box-shadow: none;
}
.logo-mark::after { display: none; }
.logo-name {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}
.logo-name em { color: var(--accent); }

.nav-icon-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-2);
}
.nav-icon-btn:hover {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-1);
}
.notif-dot { animation: none; }
.notif-count {
    background: var(--red);
    box-shadow: none;
    animation: none;
}

.avatar {
    border-radius: 8px;
    background: var(--accent);
    border: none;
    box-shadow: none;
    font-size: 12.5px;
}
.avatar:hover { transform: none; box-shadow: var(--glow); }

/* Currency picker */
.curr-btn {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-1);
}
.curr-btn:hover, .curr-btn.open {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-1);
}
.curr-dropdown {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.curr-option { border-radius: 7px; }
.curr-option:hover { background: var(--surface); color: var(--text-1); }
.curr-option.active { background: var(--accent-l); color: var(--accent); }

/* Notification dropdown */
.notif-drop {
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.notif-drop-foot { background: var(--off); }
.notif-drop-foot:hover { background: var(--accent); }
.notif-row.unread { background: var(--accent-l); }

/* Search modal */
.search-modal {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.search-modal-bg { background: rgba(17,24,39,0.45); }
.search-hint-item { border-radius: 7px; }

/* ------------------------------------------------------------
   4. PAGE HEADER / TYPOGRAPHY
   ------------------------------------------------------------ */
.page-header { animation: none; margin-bottom: 24px; }
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}
.page-title span { color: var(--accent); }
.page-sub { font-size: 13.5px; color: var(--text-2); }
.breadcrumb { font-size: 12px; }

/* ------------------------------------------------------------
   5. PANELS / CARDS / STAT TILES
   ------------------------------------------------------------ */
.panel, .stat-card, .wallet-card, .card {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.stat-card { animation: none; }
.stat-card::before { display: none; }   /* gradient top bars gone */
.stat-card:hover { transform: none; box-shadow: var(--shadow-md); }
.stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.stat-icon, .qa-icon, .act-icon, .notif-row-icon { border-radius: 8px; }
.stats-grid, .grid-2, .grid-3 { animation: none; }

.panel-header { padding: 14px 18px; }
.panel-title { font-size: 14.5px; font-weight: 700; }
.panel-title span { color: var(--text-1); }
.panel-body { padding: 16px 18px; }
.panel-action {
    border-radius: 7px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 5px 11px;
}
.panel-action:hover { background: var(--surface); color: var(--text-1); }

/* Wallet method cards */
.wallet-card { animation: none; }
.wallet-card::before { display: none; }
.wallet-card:hover {
    transform: none;
    border-color: var(--accent-m);
    box-shadow: var(--shadow-md);
}
.wallet-card:hover .wc-icon-wrap { transform: none; }
.wc-icon-wrap { border-radius: 10px; }
.wc-title { font-size: 16.5px; font-weight: 700; }

/* Quick actions */
.qa-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
    font-weight: 600;
}
.qa-btn:hover {
    transform: none;
    border-color: var(--accent-m);
    background: var(--accent-l);
    color: var(--accent);
    box-shadow: none;
}

/* Activity list */
.activity-item { border-radius: 9px; }
.activity-item:hover { background: var(--off); border-color: var(--border-light); }

/* ------------------------------------------------------------
   6. TABLES + STATUS PILLS
   ------------------------------------------------------------ */
thead th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.05em;
    background: var(--off);
}
tbody td { font-size: 13px; }
tbody tr:hover td { background: var(--off); }

.status-pill { border-radius: 6px; font-weight: 600; }
.status-pill.pending::before { animation: none; }

/* ------------------------------------------------------------
   7. FORMS
   ------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"],
input[type="tel"], select, textarea {
    font-family: var(--font-ui);
}
button { font-family: var(--font-ui); }

/* ------------------------------------------------------------
   8. PROGRESS BARS
   ------------------------------------------------------------ */
.prog-fill { animation: none; }
.prog-fill.purple { background: var(--accent); }
.prog-fill.amber  { background: var(--amber); }
.prog-fill.green  { background: var(--green); }
.prog-fill.blue   { background: var(--blue); }
.prog-track { background: var(--surface); }

/* ------------------------------------------------------------
   9. OVERLAY + SCROLLBARS
   ------------------------------------------------------------ */
.overlay { background: rgba(17,24,39,0.4); backdrop-filter: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #cdd3de;
    border-radius: 8px;
    border: 2px solid #f6f7fa;
}
::-webkit-scrollbar-thumb:hover { background: #b4bcca; }

/* ------------------------------------------------------------
   10. LANDING PAGE (index.php) OVERRIDES
   ------------------------------------------------------------ */
.bg-grid { display: none !important; }

.hero-title, .sec-title, .stat-num, .svc-name, .svc-price, .how-title,
.how-num, .why-title, .refer-title, .refer-pct, .free-title, .cta-title,
.fcm-title, .fcm-num, .fcm-msg-otp, .hc-name, .hc-otp, .hcs-stat,
.rc-title, .rc-big-num, .rc-stat-val, .pay-name {
    font-family: var(--font-ui) !important;
}
.hero-title { font-weight: 800; letter-spacing: -0.03em; }
.hero-title em {
    font-style: normal;
    font-weight: 800;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--accent);
}
.hero-title .outline {
    color: var(--text-1);
    -webkit-text-stroke: 0;
    filter: none;
    animation: none;
}
.sec-title, .refer-title, .free-title, .cta-title { font-weight: 700; }
.sec-title em, .why-title em, .refer-title em, .free-title em, .cta-title em,
.stat-num em {
    font-style: normal;
    font-weight: inherit;
}

.btn-primary, .btn-hero {
    background: var(--accent);
    box-shadow: none;
    border-radius: 9px;
}
.btn-primary::before, .btn-hero::after { display: none; }
.btn-primary:hover, .btn-hero:hover {
    background: #5b21b6;
    transform: none;
    box-shadow: none;
}
.btn-ghost, .btn-hero-out {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    backdrop-filter: none;
}
.btn-ghost:hover, .btn-hero-out:hover {
    border-color: #cfd6e0;
    background: var(--off);
    color: var(--text-1);
    transform: none;
}

.cta-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}
.cta-inner::before { display: none; }
.cta-glow { display: none; }

.svc-card, .how-card, .why-card, .pay-card, .fgc, .refer-card,
.free-card-main, .hcard-main, .hcard-side, .free-float {
    border-width: 1px;
    border-color: var(--border);
    border-radius: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.svc-card:hover, .how-card:hover, .why-card:hover, .pay-card:hover {
    transform: none;
    border-color: var(--accent-m);
    box-shadow: var(--shadow-md);
}
.refer-hl, .rc-big {
    background: var(--accent-l);
    border: 1px solid rgba(109,40,217,0.15);
    border-radius: 10px;
}
.refer-card::before { display: none; }
.stats-inner { border-radius: 12px; }
.trust-pill { backdrop-filter: none; background: #fff; border-radius: 8px; }
.hero-badge { border-radius: 8px; }
.sec-eyebrow, .refer-tag, .free-tag { border-radius: 8px; }
.hero-orbit { display: none; }
.hcard-main, .free-card-main { animation: none; }
.hcard-side.left, .hcard-side.right, .free-float { animation: none; transform: none; }

/* ------------------------------------------------------------
   11. MOTION DISCIPLINE
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
