/* ==============================================================
   SocialSignal — Theme: Mint Fresh
   Palette: fresh mint surfaces, green + sky-blue accents. Type: Poppins (display) / Inter (body) / JetBrains Mono (data)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #F5FBF8;
    --surface: #FFFFFF;
    --surface-2: #E9F7EF;
    --border: #D2EEDF;
    --text: #16281F;
    --text-muted: #5E7A6C;
    --gold: #16A34A;
    --gold-soft: #4ADE80;
    --teal: #0EA5E9;
    --danger: #EF4444;
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .display {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; text-decoration: none; }

/* ---------- Bold / fancy text system ---------- */
label { font-weight: 700; }
th { font-weight: 800; }
td { font-weight: 500; }
.btn { font-weight: 700; }
.side-link { font-weight: 700; }
.nav-links a { font-weight: 700; }
.kpi .label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-weight: 800; }
.topbar h1 {
    font-weight: 800;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--text) 0%, var(--gold-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card h3 { font-weight: 800; }

/* ---------- Icon system ---------- */
.icon {
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }
.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-right: 10px;
    -webkit-text-fill-color: initial;
}
.side-link .icon { color: var(--text-muted); flex-shrink: 0; }
.side-link:hover .icon, .side-link.active .icon { color: var(--gold); }
.side-link { display: flex; align-items: center; gap: 10px; }
.side-link > span.side-link-label { display: flex; align-items: center; gap: 10px; }
.btn .icon { margin-right: 2px; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Signal bars signature ---------- */
.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}
.signal-bars span {
    display: block;
    width: 4px;
    background: var(--gold);
    border-radius: 2px;
}
.signal-bars span:nth-child(1) { height: 40%; }
.signal-bars span:nth-child(2) { height: 65%; background: var(--gold-soft); }
.signal-bars span:nth-child(3) { height: 100%; background: var(--teal); }

.divider-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
    margin: 8px 0 18px;
}
.divider-bars span {
    width: 5px;
    border-radius: 2px;
    background: var(--border);
}
.divider-bars span.active { background: var(--gold); }

/* ---------- Navbar ---------- */
.navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(245,251,248,0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s ease, background .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: #ffffff; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); }
.btn-teal { background: var(--teal); color: #ffffff; }
.btn-teal:hover { filter: brightness(1.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(20,20,30,0.05), 0 1px 2px rgba(20,20,30,0.06);
}
.card-soft {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.08;
    max-width: 760px;
}
.hero h1 span { color: var(--gold); }
.hero p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin-top: 20px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 60px;
}
.stat-cell { background: var(--surface); padding: 22px 20px; }
.stat-cell .num { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; color: var(--gold); }
.stat-cell .label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ---------- Service grid (landing) ---------- */
.section { padding: 70px 0; }
.section-head { margin-bottom: 36px; }
.section-head .kicker { color: var(--teal); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: 32px; margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.svc-card { padding: 22px; }
.svc-card .cat { color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.svc-card h3 { font-size: 17px; margin-top: 8px; }
.svc-card .price { font-family: 'JetBrains Mono', monospace; color: var(--teal); font-size: 20px; margin-top: 14px; }
.svc-card .price small { color: var(--text-muted); font-family: 'Inter'; font-size: 12px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
input, select, textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input::placeholder { color: #9FB8AA; }

.auth-wrap {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-foot a { color: var(--gold); font-weight: 600; }

/* ---------- App shell (dashboard) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    flex-shrink: 0;
}
.sidebar .brand { padding: 0 8px 26px; }
.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 4px;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--surface-2); color: var(--gold); }
.side-section-label { color: #8FAA9B; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 20px 0 8px 12px; }
.side-nav-row { display: flex; flex-direction: column; }

.main { flex: 1; padding: 30px 36px; max-width: calc(100% - 240px); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.topbar h1 { font-size: 24px; }
.balance-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--teal);
}

.currency-select {
    width: auto;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface-2);
}

/* ---------- Service description modal ---------- */
.eye-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .15s, color .15s;
}
.eye-btn:hover { border-color: var(--gold); color: var(--gold); }
.eye-btn:disabled { opacity: .3; cursor: default; }
.eye-btn:disabled:hover { border-color: var(--border); color: var(--text-muted); }

.svc-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.svc-filters select { width: auto; min-width: 180px; }
.svc-filters input { flex: 1; min-width: 200px; }

.time-pill {
    display: inline-block;
    background: rgba(22,163,74,0.12);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { padding: 20px; }
.kpi .label { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.kpi .label .icon { color: var(--gold); }
.kpi .value { font-family: 'JetBrains Mono', monospace; font-size: 24px; margin-top: 8px; font-weight: 600; }

.kpi-link {
    display: block;
    text-decoration: none;
    transition: transform .12s ease, border-color .15s ease, background .15s ease;
    cursor: pointer;
}
.kpi-link:hover {
    border-color: var(--gold);
    background: var(--surface-2);
    transform: translateY(-2px);
}
.kpi-link:active { transform: translateY(0) scale(0.98); }

.balance-pill-link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.balance-pill-link:hover { border-color: var(--gold); background: rgba(22,163,74,0.08); }
.balance-pill-link:active { transform: scale(0.97); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    color: var(--text-muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-pending { background: rgba(22,163,74,0.15); color: var(--gold); }
.badge-progress { background: rgba(43,184,163,0.15); color: var(--teal); }
.badge-completed { background: rgba(18,128,90,0.12); color: #12805A; }
.badge-partial { background: rgba(22,163,74,0.15); color: var(--gold); }
.badge-cancelled { background: rgba(225,91,91,0.15); color: var(--danger); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: rgba(18,128,90,0.08); border-color: rgba(18,128,90,0.25); color: #12805A; }
.alert-error { background: rgba(192,38,43,0.08); border-color: rgba(192,38,43,0.25); color: #C0262B; }
.alert-info { background: rgba(18,128,90,0.06); border-color: rgba(18,128,90,0.2); color: var(--teal); }

.footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-muted); font-size: 13.5px; text-align: center; }

/* ---------- Copy button ---------- */
.copy-btn {
    flex-shrink: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }
.copy-btn.copy-btn-text { width: auto; height: auto; padding: 8px 14px; gap: 6px; font-size: 13px; font-weight: 600; }

/* ---------- Nav badge counter ---------- */
.nav-badge {
    background: var(--gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    margin-left: auto;
}
.side-link { justify-content: space-between; }

/* ---------- QR payment ---------- */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; }
.qr-box img { border-radius: 8px; background: #fff; padding: 8px; width: 200px; height: 200px; }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pay-tab {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}
.pay-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(22,163,74,0.08); }

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero h1 { font-size: 36px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .app-shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
    }
    .sidebar .brand { padding: 0 4px; }
    .menu-toggle { display: flex; }
    #navContent { display: none; flex-direction: column; margin-top: 14px; }
    #navContent.open { display: flex; }
    .side-nav-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .side-link {
        white-space: normal;
        margin-bottom: 0;
        justify-content: space-between;
        width: 100%;
        padding: 13px 14px;
    }
    .main { max-width: 100%; padding: 20px 16px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 8px; }
    .nav-links a:not(.btn) { display: none; }
    div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    #orderCard { max-width: 100% !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .stat-strip { grid-template-columns: 1fr 1fr; margin-top: 36px; }
    .stat-cell { padding: 16px 14px; }
    .stat-cell .num { font-size: 20px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kpi { padding: 14px; }
    .kpi .label { font-size: 11.5px; }
    .kpi .value { font-size: 19px; margin-top: 6px; }
    .section { padding: 44px 0; }
    .section-head h2 { font-size: 24px; }
    .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .topbar h1 { font-size: 20px; }
    .balance-pill { font-size: 13px; padding: 8px 14px; }
    .card { padding: 16px; }
    .auth-card h1 { font-size: 22px; }
    table { font-size: 13px; }
    th, td { padding: 10px 8px; }
    .qr-box img { width: 240px; height: 240px; }
}

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------- Pending fund-request indicator ---------- */
.pending-pill {
    color: var(--gold);
    border-color: var(--gold);
    text-decoration: none;
}
.pending-pill:hover { background: rgba(232,163,61,0.1); }

/* ---------- Custom scrollable dropdown (Category / Service pickers) ---------- */
.custom-select { position: relative; }
.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
}
.custom-select-trigger:hover { border-color: var(--gold); }
.custom-select-trigger .cs-label { white-space: normal; overflow: visible; text-overflow: clip; flex: 1; line-height: 1.4; }
.custom-select-trigger .cs-label.placeholder { color: #5c6488; }
.custom-select-trigger .cs-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform .15s; }
.custom-select.open .cs-chevron { transform: rotate(180deg); }

.custom-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.custom-select.open .custom-select-panel { display: block; }

.custom-select-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.4;
}
.custom-select-item:last-child { border-bottom: none; }
.custom-select-item:hover { background: var(--gold-soft); color: var(--bg); }
.custom-select-item:hover .cs-item-rate { color: var(--bg); opacity: .85; }
.custom-select-item.selected { background: var(--teal); color: #fff; }
.custom-select-item .cs-item-name { white-space: normal; overflow: visible; text-overflow: clip; flex: 1; }
.custom-select-item .cs-item-icon { flex-shrink: 0; }
.custom-select-item .cs-item-rate {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--gold);
    white-space: nowrap;
    margin-top: 1px;
}
.custom-select-item.selected .cs-item-rate { color: #fff; }
.custom-select-empty { padding: 14px; color: var(--text-muted); font-size: 13.5px; text-align: center; }

/* ---------- Update: ID badge, category chips, sort arrows, WhatsApp button ---------- */
.id-badge {
    display: inline-block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.category-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    user-select: none;
}
.category-chip:hover { border-color: var(--gold); color: var(--text); }
.category-chip.active {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: var(--bg);
    font-weight: 600;
}
.category-chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.category-chip .chip-fallback {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text);
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.category-chip.active .chip-fallback { background: var(--bg); color: var(--gold-soft); }

.cs-item-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 2px;
}

.cat-icon-thumb {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    vertical-align: middle;
}
.cat-icon-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 11px;
    vertical-align: middle;
}

.sort-arrows {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    vertical-align: middle;
    margin-right: 6px;
}
.sort-arrows button {
    width: 22px;
    height: 18px;
    padding: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
}
.sort-arrows button:hover { border-color: var(--gold); color: var(--gold); }
.sort-arrows button:disabled { opacity: .3; cursor: default; }
.sort-arrows button:disabled:hover { border-color: var(--border); color: var(--text-muted); }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    z-index: 999;
    text-decoration: none;
    transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 640px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}

/* ---------- Free Service (earn free service via ad-unlock steps) ---------- */
.fs-offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fs-offer-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: border-color .15s ease, transform .12s ease;
}
.fs-offer-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.fs-offer-card .fs-offer-qty { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; color: var(--gold); margin: 6px 0; }
.fs-offer-card .fs-offer-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fs-offer-card .fs-offer-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

.fs-progress-wrap { margin-bottom: 20px; }
.fs-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.fs-progress-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fs-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--teal)); border-radius: 6px; width: 0%; transition: width .3s ease; }

.fs-step-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.fs-step-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    opacity: 0.5;
    transition: opacity .2s ease, border-color .2s ease;
}
.fs-step-item.fs-unlocked { opacity: 1; border-color: var(--border); }
.fs-step-item.fs-active { opacity: 1; border-color: var(--gold); }
.fs-step-item.fs-done { opacity: 1; border-color: var(--teal); background: rgba(43,184,163,0.08); }
.fs-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 800; flex-shrink: 0;
    background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
}
.fs-step-item.fs-active .fs-step-num { background: var(--gold); color: #1a1204; border-color: var(--gold); }
.fs-step-item.fs-done .fs-step-num { background: var(--teal); color: #06231f; border-color: var(--teal); }
.fs-step-title { flex: 1; font-weight: 700; font-size: 14px; }
.fs-step-timer { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-muted); min-width: 34px; text-align: right; }
.fs-step-item .btn { flex-shrink: 0; }

.fs-adblock-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.fs-adblock-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; max-width: 380px; text-align: center;
}
.fs-adblock-box h3 { margin-bottom: 10px; }
.fs-adblock-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

.fs-credit-list { display: flex; flex-direction: column; gap: 10px; }
.fs-credit-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
}
.fs-credit-row .fs-credit-qty { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--teal); }

/* ---------- New Order page video embeds ---------- */
.new-order-layout { display: grid; grid-template-columns: 600px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) {
    .new-order-layout { grid-template-columns: 1fr; }
}

.no-video-panel-title { font-weight: 800; font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.no-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 480px) {
    .no-video-grid { gap: 8px; }
}

.no-video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-2);
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    transition: border-color .15s ease, transform .12s ease;
}
.no-video-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.no-video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-video-card .no-video-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.no-video-card .no-video-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.28);
    color: #fff;
}
.no-video-card .no-video-play svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.no-video-title {
    font-size: 11px; font-weight: 700; line-height: 1.3;
    padding: 5px 7px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
    color: #fff;
    position: absolute; left: 0; right: 0; bottom: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.no-video-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.no-video-lightbox.open { display: flex; }
.no-video-lightbox-inner { width: 100%; max-width: 820px; aspect-ratio: 16 / 9; position: relative; }
.no-video-lightbox-inner iframe, .no-video-lightbox-inner video {
    width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; display: block;
}
.no-video-lightbox-close {
    position: absolute; top: -42px; right: 0;
    background: none; border: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 6px;
}
@media (max-width: 600px) {
    .no-video-lightbox-close { top: auto; bottom: -46px; right: 50%; transform: translateX(50%); }
}

/* ---------- User Note (login popup) ---------- */
.user-note-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.user-note-box {
    position: relative;
    width: 100%; max-width: 420px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.user-note-close {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.55); color: #fff; border: none;
    font-size: 20px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.user-note-slider { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--surface-2); }
.user-note-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .4s ease;
}
.user-note-slide.active { opacity: 1; }
.user-note-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.user-note-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.user-note-dot.active { background: #fff; transform: scale(1.2); }
.user-note-text {
    padding: 18px 20px;
    font-size: 14px; line-height: 1.6; color: var(--text);
    overflow-y: auto;
}
.user-note-frame {
    width: 100%;
    min-height: 120px;
    max-height: 260px;
    border: 0;
    display: block;
    background: transparent;
}
@media (max-width: 480px) {
    .user-note-box { max-width: 100%; }
    .user-note-text { padding: 14px 16px; font-size: 13.5px; }
}

/* ---------- Mobile bottom navigation bar ---------- */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 5px 4px calc(5px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(0,0,0,0.10);
    }
    /* Leave room at the bottom of the page so content isn't hidden behind the bar */
    .main { padding-bottom: 62px; }

    .mbn-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 9.5px;
        font-weight: 600;
        flex: 1;
        min-width: 0;
    }
    .mbn-item .mbn-icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
    .mbn-item .mbn-icon .icon { width: 16px; height: 16px; }
    .mbn-item .mbn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px; }
    .mbn-item.active { color: var(--gold); }
    .mbn-item.active .icon { color: var(--gold); }

    .mbn-item.mbn-center {
        position: relative;
        top: -12px;
    }
    .mbn-item.mbn-center .mbn-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold));
        box-shadow: 0 4px 12px rgba(0,0,0,0.26), 0 0 0 4px var(--surface);
        color: #fff;
    }
    .mbn-item.mbn-center .mbn-icon .icon { width: 19px; height: 19px; }
    .mbn-item.mbn-center .mbn-label { color: var(--gold); font-weight: 700; margin-top: 1px; }
    .mbn-item.mbn-center.active .mbn-label { color: var(--gold); }

    /* Keep the WhatsApp float button clear of the bottom nav bar */
    .whatsapp-float { bottom: 68px; }
}

/* Safety net for narrower Android screens (e.g. Realme/budget phones,
   ~360-390px wide) so all 5 items always fit on one row without
   wrapping or getting clipped. */
@media (max-width: 400px) {
    .mobile-bottom-nav { padding-left: 2px; padding-right: 2px; }
    .mbn-item { font-size: 8.5px; gap: 1px; }
    .mbn-item .mbn-icon { width: 16px; height: 16px; }
    .mbn-item .mbn-icon .icon { width: 15px; height: 15px; }
    .mbn-item .mbn-label { max-width: 46px; }
    .mbn-item.mbn-center .mbn-icon { width: 36px; height: 36px; }
    .mbn-item.mbn-center .mbn-icon .icon { width: 17px; height: 17px; }
}
@media (max-width: 350px) {
    .mbn-item .mbn-label { font-size: 8px; max-width: 40px; }
}
