/* Rupvia - Trust-focused (PayPal-style blue) - Mobile-first */
:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface2: #e8ecf1;
    --primary: #003087;
    --primary-dim: #002a6b;
    --primary-light: #009cde;
    --accent: #2f7cf6;
    --input-bg: #eef1f6;
    --text: #2c2e2f;
    --text-muted: #6b7280;
    --error: #c53030;
    --success: #276749;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,48,135,.08);
    --shadow-strong: 0 4px 24px rgba(0,0,0,.12);
    --btn-text: #ffffff;
    --header-h: 56px;
    --nav-drawer-w: 280px;
    --safe-bottom: env(safe-area-inset-bottom, 0);
}
/* Admin panel: dark theme */
body.admin-page {
    --bg: #0f1419;
    --surface: #1a2332;
    --surface2: #243044;
    --primary: #00d4aa;
    --primary-dim: #00a884;
    --text: #e7e9ea;
    --text-muted: #8b98a5;
    --btn-text: #0f1419;
}

* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: var(--safe-bottom);
    overflow-x: hidden;
}

/* ========== Header - Mobile first ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    box-shadow: var(--shadow);
}
.main-header .logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.main-header .logo:hover { color: var(--primary-light); }
.main-header .logo { margin-right: auto; }
.rail-switch {
    display: inline-flex;
    flex-shrink: 0;
    background: var(--input-bg, #eef1f6);
    border-radius: 999px;
    padding: 3px;
}
.rail-switch a {
    min-width: 52px;
    text-align: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.rail-switch a.is-on {
    background: var(--accent, #2f7cf6);
    color: #fff;
}
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover, .nav-toggle:focus { background: var(--surface2); outline: none; }
.nav-toggle:active { background: var(--surface2); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
}
.main-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.main-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.main-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav drawer (mobile) */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--nav-drawer-w);
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--surface2);
    box-shadow: -8px 0 32px rgba(0,0,0,.3);
    padding: calc(var(--header-h) + 1rem) 0 max(1rem, env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-right);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .25s ease, visibility .25s;
    visibility: hidden;
    z-index: 99;
}
.main-header.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
}
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 98;
}
.main-header.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s, background .2s;
    border-left: 3px solid transparent;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}
.nav-link:hover, .nav-link:focus { color: var(--primary); background: rgba(0,48,135,.08); border-left-color: var(--primary); }
.nav-link:active { background: rgba(0,48,135,.12); }
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
}
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon .bi { font-size: 1.25rem; }
.nav-link-logout { color: var(--text-muted); border-top: 1px solid var(--surface2); margin-top: 0.5rem; padding-top: 1rem; }

/* Main content - offset for fixed header */
.user-dashboard .main-content {
    padding: calc(var(--header-h) + 1rem) 1rem 2rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(5.5rem, env(safe-area-inset-bottom) + 5rem);
    max-width: 960px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
}
@media (max-width: 380px) {
    .user-dashboard .main-content { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* ========== Desktop nav (horizontal with icons) ========== */
@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .nav-overlay { display: none; }
    .main-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        transform: none;
        visibility: visible;
        box-shadow: none;
        border: none;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        overflow: visible;
    }
    .nav-link {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.6rem;
        min-height: auto;
        border-left: none;
        border-radius: var(--radius-sm);
    }
    .nav-link:hover { border-left: none; }
    .nav-icon svg { width: 20px; height: 20px; }
    .nav-label { font-size: 0.7rem; }
    .nav-link-logout { border-top: none; margin-top: 0; padding-top: 0.5rem; }
    .main-header .logo { margin-right: 0.6rem; }
    .rail-switch { margin-right: 0.35rem; }
    .main-nav { margin-left: auto; }
}

/* ========== Public pages (About, Terms, Privacy, Plans) ========== */
.public-page .main-content { padding-top: 1rem; }
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    box-shadow: var(--shadow);
}
.public-header .logo { font-weight: 700; font-size: 1.25rem; color: var(--primary); text-decoration: none; }
.public-header .logo:hover { color: var(--primary-light); }
.public-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--surface2);
    box-shadow: -8px 0 32px rgba(0,0,0,.15);
    padding: calc(var(--header-h) + 1rem) 0 max(1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease, visibility .25s;
    visibility: hidden;
    z-index: 99;
}
.public-header.nav-open .public-nav { transform: translateX(0); visibility: visible; }
.public-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    min-height: 44px;
}
.public-nav-link:hover { color: var(--primary); background: rgba(0,48,135,.06); border-left-color: var(--primary); }
.public-nav-link .bi { font-size: 1.1rem; }
.public-nav-cta { font-weight: 600; color: var(--primary); }
.public-nav-login { color: var(--text-muted); border-top: 1px solid var(--surface2); margin-top: 0.5rem; padding-top: 0.75rem; }
@media (min-width: 769px) {
    .public-header .nav-toggle { display: none; }
    .public-header .nav-overlay { display: none; }
    .public-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        transform: none;
        visibility: visible;
        box-shadow: none;
        border: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .public-nav-link { padding: 0.5rem 0.75rem; min-height: auto; border-left: none; border-radius: var(--radius-sm); }
    .public-nav-link:hover { border-left: none; }
    .public-nav-cta { background: var(--primary); color: #fff !important; padding: 0.5rem 1rem; }
    .public-nav-cta:hover { background: var(--primary-dim); color: #fff !important; }
    .public-nav-login { border-top: none; margin-top: 0; padding-top: 0.5rem; }
}
.public-main { padding-top: calc(var(--header-h) + 1rem); padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); max-width: 960px; margin: 0 auto; }
.auth-links { margin-top: 0.75rem; font-size: 0.9rem; }
.auth-links a { color: var(--primary); }
.auth-links a:hover { text-decoration: underline; }

.public-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: center;
}
.public-hero-title { margin: 0; font-size: 1.75rem; font-weight: 700; }
.public-hero-subtitle { margin: 0.5rem 0 0; font-size: 1rem; opacity: 0.95; }

.public-content { max-width: 800px; margin: 0 auto 1.5rem; padding: 1.5rem 1.25rem; }
.public-updated { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }
.public-section { margin-bottom: 1.5rem; }
.public-section h2 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.public-section h2 .bi { font-size: 1.1rem; }
.public-section p { margin: 0 0 0.5rem; line-height: 1.6; color: var(--text); }
.public-list { margin: 0.5rem 0 0; padding-left: 1.5rem; }
.public-list li { margin-bottom: 0.35rem; line-height: 1.5; }

.public-rates { margin-bottom: 1.5rem; }
.public-rates-title { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.public-rates-note { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }
.rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.rate-item { padding: 0.6rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--surface2); }
.rate-name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.rate-inr { font-size: 0.95rem; color: var(--primary); }
.rate-usd { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.public-rates-updated { font-size: 0.8rem; color: var(--text-muted); margin: 1rem 0 0; }

.public-plans { margin-bottom: 1.5rem; }
.public-section-heading { margin: 0 0 1rem; font-size: 1.2rem; text-align: center; color: var(--text); }
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card { text-align: center; padding: 1.5rem 1rem; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,48,135,.15); }
.plan-card-icon { width: 52px; height: 52px; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.5rem; }
.plan-card-icon .bi { font-size: 1.5rem; }
.plan-card-primary .plan-card-icon { background: rgba(0,48,135,.12); color: var(--primary); }
.plan-card-warning .plan-card-icon { background: rgba(183,134,11,.12); color: #b8860b; }
.plan-card-accent .plan-card-icon { background: rgba(0,156,222,.12); color: var(--primary-light); }
.plan-card-success .plan-card-icon { background: rgba(39,103,73,.12); color: var(--success); }
.plan-card-name { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.plan-card-asset { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.plan-card-desc { margin: 0.5rem 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.plan-card-roi { margin: 1rem 0 0.5rem; }
.plan-roi-value { display: block; font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.plan-roi-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-card-min { margin: 0.5rem 0 1rem; font-size: 0.85rem; color: var(--text-muted); }
.plan-card-cta { width: 100%; margin-top: 0.5rem; }

.public-disclaimer { font-size: 0.9rem; color: var(--text-muted); }
.public-disclaimer p { margin: 0 0 0.5rem; }

/* ========== Auth pages ========== */
body:not(.user-dashboard) .main-footer { text-align: center; padding: 1rem; color: var(--text-muted); font-size: 0.9rem; }

.auth-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 75vh;
    max-width: 1000px;
    margin: 2rem auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.1), 0 2px 8px rgba(0,48,135,.08);
    border: 1px solid var(--surface2);
    overflow: hidden;
}
.auth-split-left {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, rgba(0,48,135,.08) 0%, rgba(0,48,135,.03) 100%);
}
.auth-side-image {
    width: auto;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}
.auth-side-title {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}
.auth-side-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 0.45rem;
    line-height: 1.45;
    max-width: 280px;
}
.auth-side-meaning {
    color: var(--text);
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
    line-height: 1.45;
    max-width: 320px;
}
.auth-side-features {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}
.auth-side-features li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.auth-side-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.auth-split-right {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}
.auth-split-right .auth-box {
    margin: 0;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
        min-height: auto;
        margin: 1.5rem 1rem;
    }
    .auth-split-left,
    .auth-split-right {
        flex: none;
        width: 100%;
        padding: 1.75rem 1.5rem;
    }
    .auth-side-image {
        max-height: 176px;
    }
    .auth-side-title { font-size: 1.35rem; }
    .auth-side-tagline { margin-bottom: 1rem; max-width: none; }
    .auth-side-features {
        display: inline-block;
        margin: 0 auto;
    }
    .auth-split-right .auth-box {
        max-width: 100%;
        padding: 1.5rem;
    }
}
@media (max-width: 480px) {
    .auth-split { margin: 1rem 0.75rem; }
    .auth-split-left,
    .auth-split-right { padding: 1.25rem 1rem; }
    .auth-side-image { max-height: 154px; }
    .auth-split-right .auth-box { padding: 1.25rem; }
}

.auth-box {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-logo {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}
@media (max-width: 480px) {
    .auth-logo { max-width: 140px; }
}
@media (max-width: 360px) {
    .auth-logo { max-width: 120px; }
}
.auth-box h1 { margin: 0 0 0.25rem; font-size: 1.75rem; }
.tagline { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.auth-form label { display: block; margin-top: 1rem; margin-bottom: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    min-height: 48px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-form input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.15);
}
.auth-form .forgot { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--accent); }
.auth-form button {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 1.25rem;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 50px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(47, 124, 246, 0.28);
    transition: background .2s, box-shadow .2s, transform .05s;
}
    color: var(--btn-text);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,48,135,.25);
    transition: background .2s, box-shadow .2s, transform .05s;
}
.auth-form button:hover {
    background: #2468d4;
    box-shadow: 0 6px 16px rgba(47, 124, 246, 0.35);
}
.auth-form button:active { transform: scale(0.98); }
.auth-box {
    box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 2px 8px rgba(0,48,135,.06);
    border: 1px solid var(--surface2);
}
.optional { color: var(--text-muted); font-weight: normal; }
.auth-footer { margin-top: 1.5rem; text-align: center; color: var(--text-muted); }
.auth-footer a { color: var(--primary); }

/* ========== Page head ========== */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-head h2 { margin: 0; font-size: 1.35rem; word-break: break-word; }
.page-head p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 480px) {
    .page-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .page-head h2 { font-size: 1.2rem; }
}

/* ========== Cards ========== */
.card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    max-width: 100%;
}
@media (max-width: 480px) {
    .card { padding: 1rem; }
}
.card h3, .card h4 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; }
/* Form cards: slightly more shadow when they contain forms */
.card form { margin: 0; }

/* ========== Home dashboard (ShowPay-like) ========== */
.home-greet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.home-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.home-title {
    margin: 0.1rem 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}
.home-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.7rem;
}
.home-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a2744;
    color: #fff;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.85rem;
    text-decoration: none;
}
.home-banner-text { flex: 1; min-width: 0; }
.home-banner-text strong { display: block; font-size: 0.95rem; }
.home-banner-text em { display: block; font-style: normal; font-size: 0.78rem; opacity: 0.8; margin-top: 0.15rem; }
.home-banner-cta {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
}
.home-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.home-rate {
    padding: 0.9rem 1rem;
}
.home-rate + .home-rate { border-left: 1px solid var(--surface2); }
.home-banner-text .home-hi { color: #b8f54a; }
.home-rate span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.home-rate strong {
    display: block;
    margin: 0.25rem 0 0.15rem;
    font-size: 1.05rem;
    color: var(--accent);
}
.home-rate em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.home-rate-inr strong { font-size: 1.45rem; }
.home-topup {
    margin: 0 0 1rem;
    min-height: 50px;
    border-radius: 12px;
    font-size: 1.05rem;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(47, 124, 246, 0.28);
}
.home-topup:hover { background: #2468d4; }
.home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    margin-bottom: 0.65rem;
    overflow: hidden;
}
.home-stat {
    position: relative;
    display: block;
    padding: 0.9rem 1.7rem 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--surface2);
}
.home-stat:nth-child(odd) { border-right: 1px solid var(--surface2); }
.home-stat:nth-last-child(-n+2) { border-bottom: 0; }
.home-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.home-stat strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.15rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.home-stat .bi-chevron-right {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    color: #c5cad3;
    font-size: 0.95rem;
}
.home-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.home-mini span {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.home-list {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.home-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--surface2);
}
.home-row:last-child { border-bottom: 0; }
.home-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-row-icon .bi { font-size: 1.2rem; }
.home-row-icon.icon-primary { background: rgba(47, 124, 246, 0.12); color: var(--accent); }
.home-row-icon.icon-accent { background: rgba(0, 156, 222, 0.14); color: var(--primary-light); }
.home-row-icon.icon-warning { background: rgba(183, 134, 11, 0.12); color: #b8860b; }
.home-row-icon.icon-success { background: rgba(39, 103, 73, 0.12); color: var(--success); }
.home-row-body { flex: 1; min-width: 0; }
.home-row-body strong { display: block; font-size: 0.95rem; }
.home-row-body em { display: block; font-style: normal; font-size: 0.78rem; color: var(--text-muted); }
.home-row .bi-chevron-right { color: #c5cad3; }
.home-guide { margin-bottom: 1.5rem; }
.home-guide-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--surface2);
    text-decoration: none;
    color: inherit;
}
.home-guide-row:last-child { border-bottom: 0; }
.home-guide-copy { flex: 1; }
.home-guide-copy strong { display: block; font-size: 0.95rem; }
.home-guide-copy em { display: block; font-style: normal; color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
.home-guide-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f1ff;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.home-dash .dash-alert { justify-content: space-between; }
.home-dash .dash-alert p { display: none; }
.home-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}
.home-next strong { color: var(--accent); }
.home-notes { margin-bottom: 1rem; }
.home-note {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--surface2);
    font-size: 0.88rem;
    font-weight: 600;
}
.home-note:last-child { border-bottom: 0; }

.activity-timeline { margin: 1rem 0 1.25rem; padding: 1rem 1.1rem; }
.activity-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.activity-timeline-head .dashboard-section-title { margin: 0; }
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.activity-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--surface2);
}
.activity-list li:last-child { border-bottom: 0; }
.activity-when { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.activity-list strong { font-size: 0.92rem; }
.activity-detail { font-size: 0.82rem; color: var(--text-muted); }
body.rail-inr.home-dash .activity-timeline { display: block; }
.home-dash .home-guide-row {
    justify-content: space-between;
}
.home-dash .home-guide-row strong { font-size: 0.95rem; }
.home-dash .home-guide-row .bi-chevron-right { color: #c5cad3; }
.user-dashboard .btn-primary {
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(47, 124, 246, 0.28);
}
.user-dashboard .btn-primary:hover { background: #2468d4; }
.user-dashboard .btn-outline { color: var(--accent); border-color: var(--accent); }

/* ========== Dashboard - Professional layout ========== */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 48, 135, 0.25);
}
.dashboard-welcome-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.dashboard-welcome-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}
.dashboard-welcome-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-break: break-word;
}
.dashboard-welcome-subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    opacity: 0.95;
    max-width: 36rem;
    line-height: 1.45;
}
@media (max-width: 480px) {
    .dashboard-welcome { padding: 1.15rem 1rem 1rem; }
    .dashboard-welcome-title { font-size: 1.25rem; }
    .dashboard-welcome-subtitle { font-size: 0.85rem; }
}
.dashboard-welcome-avatar-wrap {
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
    text-align: center;
}
.dashboard-welcome-avatar-wrap .dashboard-welcome-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}
.dashboard-welcome-avatar-wrap .bi-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 2rem;
}
.dashboard-welcome-avatar-wrap .bi-avatar .bi { font-size: 2rem; }
.dashboard-welcome-avatar-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

.dash-rates {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1.1rem;
}
@media (min-width: 560px) {
    .dash-rates { grid-template-columns: repeat(3, 1fr); }
}
.dash-rate {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
}
.dash-rate-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.9;
}
.dash-rate strong {
    display: block;
    margin: 0.2rem 0 0.1rem;
    font-size: 1.05rem;
}
.dash-rate em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    opacity: 0.85;
    line-height: 1.3;
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    border: 1px solid var(--surface2);
    background: var(--surface);
}
.dash-alert > .bi {
    font-size: 1.35rem;
    flex-shrink: 0;
}
.dash-alert div { flex: 1; min-width: 0; }
.dash-alert strong { display: block; font-size: 0.92rem; }
.dash-alert p { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.dash-alert .btn { flex-shrink: 0; margin: 0; }
.dash-alert-warn { background: #fff8e8; border-color: #f3d48a; }
.dash-alert-warn > .bi { color: #b8860b; }
.dash-alert-info { background: rgba(0,156,222,.08); border-color: rgba(0,156,222,.25); }
.dash-alert-info > .bi { color: var(--primary-light); }
@media (max-width: 520px) {
    .dash-alert { flex-wrap: wrap; }
    .dash-alert .btn { width: 100%; }
}

.dash-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .dash-cta-grid { grid-template-columns: 1fr 1fr; }
}
.dash-cta {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    margin: 0;
    transition: box-shadow .2s, transform .2s;
}
a.dash-cta:hover {
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.12);
    transform: translateY(-2px);
}
.dash-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-cta-icon .bi { font-size: 1.35rem; }
.dash-cta-icon.icon-primary { background: rgba(0, 48, 135, 0.12); color: var(--primary); }
.dash-cta-icon.icon-accent { background: rgba(0, 156, 222, 0.14); color: var(--primary-light); }
.dash-cta-body h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.dash-cta-body p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.dash-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.dash-strength { margin-bottom: 1.25rem; }
.dash-strength .form-hint { margin: 0.55rem 0 0.15rem; }
.strength-list li.todo a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}
.strength-list li span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.strength-list li .bi-check-circle-fill { color: var(--success); }
.strength-list li.todo .bi-circle { color: var(--text-muted); }
.strength-pts { font-size: 0.78rem; color: var(--text-muted); }

.dash-note {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.dash-note > .bi { color: var(--primary-light); margin-top: 0.15rem; }
.dash-note p { margin: 0.15rem 0 0; }
.dash-actions-hint { margin: 0.65rem 0 0; display: flex; align-items: flex-start; gap: 0.35rem; }

.form-hint {
    display: block;
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.form-hint .bi { color: var(--primary-light); }

.dashboard-section { margin-bottom: 1.75rem; }
.dashboard-section-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 4px solid var(--primary);
}
.dashboard-card.card { margin-bottom: 0; }
a.dashboard-card:hover {
    box-shadow: 0 6px 20px rgba(0, 48, 135, 0.12);
    transform: translateY(-2px);
}
.dashboard-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 48, 135, 0.08);
    border-radius: var(--radius-sm);
    color: var(--primary);
}
.dashboard-card-icon .bi { font-size: 1.5rem; }
.dashboard-card-icon .dashboard-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
/* Bootstrap Icons – colored variants for dashboard */
.dashboard-card-icon.icon-primary { background: rgba(0, 48, 135, 0.12); color: var(--primary); }
.dashboard-card-icon.icon-primary .bi { color: var(--primary); }
.dashboard-card-icon.icon-success { background: rgba(39, 103, 73, 0.12); color: var(--success); }
.dashboard-card-icon.icon-success .bi { color: var(--success); }
.dashboard-card-icon.icon-accent { background: rgba(0, 156, 222, 0.12); color: var(--primary-light); }
.dashboard-card-icon.icon-accent .bi { color: var(--primary-light); }
.dashboard-card-icon.icon-warning { background: rgba(183, 134, 11, 0.12); color: #b8860b; }
.dashboard-card-icon.icon-warning .bi { color: #b8860b; }
.dashboard-card-icon-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.dashboard-card-body { flex: 1; min-width: 0; }
.dashboard-card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.dashboard-card-value {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.dashboard-card-meta {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.dashboard-card-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.dashboard-card-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
}
a.dashboard-card:hover .dashboard-card-link { text-decoration: underline; }

/* Cosmetic Binance live rates (logged-in dashboard) */
.live-rates-sidebar {
    margin-bottom: 1.75rem;
    padding: 1.25rem;
}
.live-rates-sidebar.card { margin-bottom: 1.75rem; }
.live-rates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}
.live-rates-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.live-rates-title .bi { color: var(--primary-light); }
.live-rates-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}
.live-rates-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b8860b;
    box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.5);
    animation: live-pulse 1.6s ease-out infinite;
}
.live-rates-status.is-live { color: var(--success); }
.live-rates-status.is-live .live-rates-dot {
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(39, 103, 73, 0.45);
}
.live-rates-status.is-error { color: var(--error); }
.live-rates-status.is-error .live-rates-dot {
    background: var(--error);
    animation: none;
}
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.live-rates-note {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.live-rates-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.live-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.live-rates-table th,
.live-rates-table td {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--surface2);
    text-align: left;
    white-space: nowrap;
}
.live-rates-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.live-rates-table th.num,
.live-rates-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.live-rates-table tbody tr { transition: background 0.35s; }
.live-rates-table tbody tr:last-child td { border-bottom: none; }
.live-rates-table tbody tr.flash-up { background: rgba(39, 103, 73, 0.1); }
.live-rates-table tbody tr.flash-down { background: rgba(197, 48, 48, 0.08); }
.live-rates-asset {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.live-rates-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 48, 135, 0.08);
    color: var(--primary);
    flex-shrink: 0;
}
.live-rates-icon .bi { font-size: 1rem; }
.live-rates-names { display: flex; flex-direction: column; line-height: 1.2; }
.live-rates-names strong { font-size: 0.92rem; color: var(--text); }
.live-rates-names span { font-size: 0.75rem; color: var(--text-muted); }
.live-rates-table [data-price] { font-weight: 700; color: var(--primary); }
.live-rates-table [data-change].up { color: var(--success); font-weight: 600; }
.live-rates-table [data-change].down { color: var(--error); font-weight: 600; }
.live-rates-updated {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
@media (max-width: 520px) {
    .live-rates-sidebar { padding: 1rem 0.85rem; }
    .live-rates-table th,
    .live-rates-table td { padding: 0.6rem 0.35rem; font-size: 0.82rem; }
    .live-rates-icon { width: 28px; height: 28px; }
}

.dashboard-section-actions { margin-bottom: 1.5rem; }
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 400px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .quick-actions { grid-template-columns: repeat(5, 1fr); }
}
.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    min-height: 50px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.quick-action-btn:hover { transform: translateY(-1px); }
.quick-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quick-action-icon svg { flex-shrink: 0; }
.quick-action-icon .bi { font-size: 1.35rem; }
.quick-action-icon .quick-action-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.quick-action-label { white-space: nowrap; }
@media (max-width: 480px) {
    .quick-action-label { white-space: normal; text-align: center; font-size: 0.9rem; }
    .quick-action-btn { flex-direction: column; gap: 0.35rem; min-height: 52px; padding: 0.75rem 0.5rem; }
}

.dashboard-disclaimer {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
}
.legal-disclaimer-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dashboard: Secure payments & accreditation */
.dashboard-trust {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(0,48,135,.04) 100%);
    border: 1px solid rgba(0,48,135,.1);
    border-radius: var(--radius);
}
.dashboard-trust .dashboard-section-title { margin-top: 0; }
.dashboard-trust-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.dashboard-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}
.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}
.dashboard-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.dashboard-badge-icon .bi { font-size: 1.25rem; }
.dashboard-badge-icon svg { flex-shrink: 0; }
.dashboard-badge-icon.badge-icon-img { width: 22px; height: 22px; }
.dashboard-badge-icon.icon-primary { color: var(--primary); }
.dashboard-badge-icon.icon-primary .bi { color: var(--primary); }
.dashboard-badge-icon.icon-accent { color: var(--primary-light); }
.dashboard-badge-icon.icon-accent .bi { color: var(--primary-light); }
.dashboard-badge-icon.icon-success { color: var(--success); }
.dashboard-badge-icon.icon-success .bi { color: var(--success); }
@media (max-width: 600px) {
    .dashboard-trust-badges { gap: 0.75rem; }
    .dashboard-badge { font-size: 0.85rem; }
}

.dashboard-faq { margin-bottom: 1.5rem; }
.dashboard-faq .dashboard-section-title { margin-top: 0; }
.faq-list-dashboard .faq-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface2);
}
.faq-list-dashboard .faq-item:last-child { border-bottom: none; }
.faq-list-dashboard .faq-item h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-list-dashboard .faq-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.faq-list-dashboard .faq-item-icon .bi { font-size: 1.1rem; }
.faq-list-dashboard .faq-item-icon.icon-primary .bi { color: var(--primary); }
.faq-list-dashboard .faq-item-icon.icon-accent .bi { color: var(--primary-light); }
.faq-list-dashboard .faq-item-icon.icon-success .bi { color: var(--success); }
.faq-list-dashboard .faq-item-icon.icon-warning .bi { color: #b8860b; }
.faq-list-dashboard .faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.data-table .inr-cell { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }

/* ========== Buttons (PayPal-style: shadow, rounded, icon) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
    min-height: 46px;
    transition: background .2s, box-shadow .2s, border-color .2s, transform .05s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
@media (max-width: 480px) {
    .btn { min-height: 48px; padding: 0.8rem 1.25rem; }
}
.btn-primary {
    background: var(--primary);
    color: var(--btn-text);
    box-shadow: 0 2px 8px rgba(0,48,135,.25);
}
.btn-primary:hover {
    background: var(--primary-dim);
    box-shadow: 0 4px 12px rgba(0,48,135,.3);
}
.btn-secondary {
    background: #374151;
    color: var(--btn-text);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.btn-secondary:hover {
    background: #4b5563;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.btn-outline {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.btn-outline:hover {
    background: rgba(0,48,135,.06);
    box-shadow: 0 2px 8px rgba(0,48,135,.12);
}
.btn-small {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    min-height: 38px;
    border-radius: 8px;
}
.btn-icon { display: inline-flex; align-items: center; }
.btn-icon svg { flex-shrink: 0; width: 20px; height: 20px; }

/* ========== Deposit ========== */
.deposit-box .network-badge { display: inline-block; background: var(--surface2); padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }
.qr-wrap { margin: 1rem 0; padding: 1rem; background: #fff; border-radius: var(--radius-sm); display: inline-block; max-width: 100%; }
.qr-wrap img { display: block; max-width: 100%; height: auto; }
.address-wrap { margin: 1rem 0; }
.address-wrap label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.address-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.address-row input {
    flex: 1; min-width: 0; padding: 0.75rem 1rem;
    border: 1px solid var(--surface2); border-radius: 10px;
    background: var(--surface); color: var(--text);
    font-family: monospace; font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.deposit-tips { margin: 1rem 0; padding-left: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.deposit-tips li { margin-bottom: 0.35rem; }
.record-deposit-form label { display: block; margin-top: 0.75rem; margin-bottom: 0.35rem; font-weight: 500; }
.record-deposit-form input {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--surface2); border-radius: 10px;
    background: var(--surface); color: var(--text);
    font-size: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.record-deposit-form input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.record-deposit-form button { margin-top: 1rem; min-height: 48px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,48,135,.25); }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.card hr { border: none; border-top: 1px solid var(--surface2); margin: 1.5rem 0; }

/* ========== Forms – all inputs/selects ========== */
.main-content input[type="text"],
.main-content input[type="email"],
.main-content input[type="password"],
.main-content input[type="number"],
.main-content input[type="tel"],
.main-content input[type="url"],
.main-content select,
.main-content textarea {
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 0.75rem 1rem;
}
.main-content textarea { min-height: 110px; resize: vertical; }
.main-content input:focus,
.main-content select:focus,
.main-content textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.15);
}
.main-content input, .main-content select, .main-content textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
}
.main-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232f7cf6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.4rem;
}
.profile-form label, .withdraw-form label,
.card form label:not(.field-label):not(.td-cam) {
    display: block;
    margin-top: 0.9rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}
.profile-form input, .withdraw-form input, .withdraw-form select {
    width: 100%;
    max-width: none;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 16px;
    min-height: 48px;
    box-shadow: none;
}
.profile-form input:focus, .withdraw-form input:focus, .withdraw-form select:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.15);
}
.card form .btn-primary,
.card button[type="submit"] {
    width: 100%;
    margin-top: 1.1rem;
    min-height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(47, 124, 246, 0.28);
}
.card button[type="submit"]:hover,
.card .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(47, 124, 246, 0.35);
}
.form-stack .field-label:first-child { margin-top: 0; }

/* ========== Tables - responsive ========== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
    max-width: 100%;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.data-table th, .data-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--surface2); font-size: 0.9rem; }
@media (max-width: 480px) {
    .data-table th, .data-table td { padding: 0.6rem 0.5rem; font-size: 0.85rem; }
}
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; }
.data-table .mono { font-family: monospace; font-size: 0.85rem; }
.data-table .btn-small { margin: 0.2rem 0; }
.status { display: inline-block; padding: 0.25rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 500; }
.status-pending { background: rgba(255,193,7,.2); color: #ffc107; }
.status-awaiting { background: rgba(33,150,243,.2); color: #2196f3; }
.status-confirmed { background: rgba(0,186,124,.2); color: var(--success); }
.status-completed { background: rgba(0,186,124,.2); color: var(--success); }
.status-rejected { background: rgba(244,33,46,.2); color: var(--error); }
.status-verification_failed { background: rgba(244,33,46,.2); color: var(--error); }
.status-open { background: rgba(0, 156, 222, .2); color: var(--primary); }
.status-in_progress { background: rgba(255, 193, 7, .2); color: #b8860b; }
.status-closed { background: rgba(0, 186, 124, .2); color: var(--success); }
.verification-error { font-size: 0.85rem; color: var(--error); display: block; max-width: 240px; }
.status-detail .verification-error { margin: 0; }
.verification-pending { padding: 0.75rem; background: rgba(255,193,7,.12); border-radius: var(--radius-sm); color: #e6b800; margin-bottom: 1rem; }
.inr-conversion { font-size: 0.9rem; color: var(--text-muted); margin: 0.35rem 0 0; }
.inr-conversion strong { color: var(--primary); }

.table-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.table-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.table-pagination .page-link:hover {
    border-color: var(--primary);
}

.table-pagination .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ========== Referral ========== */
.referral-stats { margin-bottom: 1.5rem; }
.ref-code-wrap { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; flex-wrap: wrap; }
.ref-code-wrap code {
    font-size: 1.1rem; letter-spacing: 0.05em; padding: 0.65rem 1rem;
    background: var(--surface); border: 1px solid var(--surface2);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ref-code-wrap .btn-small {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.address-row .btn-small { border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.small { font-size: 0.85rem; color: var(--text-muted); }

/* ========== Messages ========== */
.error, .success {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
}
.error { color: var(--error); background: #fff1f0; border-color: #ffc9c6; }
.error a { color: var(--accent); font-weight: 600; }
.error .bi, .success .bi { flex-shrink: 0; margin-top: 0.12rem; }
.success { color: var(--success); background: #edf8f1; border-color: #b7e4c7; }
.field-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.95rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}
.field-label .bi { color: var(--accent); font-size: 1rem; }
.field-label .req { color: var(--error); font-weight: 700; }
form.was-validated input:invalid,
form.was-validated select:invalid,
form.was-validated textarea:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.12);
}
.empty { color: var(--text-muted); padding: 1rem 0; }
.empty a { color: var(--primary); }
.link { display: inline-block; margin-top: 1rem; color: var(--primary); font-size: 0.9rem; }

/* ========== Live rate, bonus, help, FAQ ========== */
.page-head-compact { margin-bottom: 0.85rem; }
.page-head-compact h2 { color: var(--accent); font-size: 1.25rem; }
.page-head-compact p { margin: 0.25rem 0 0; }
.live-rate-inline { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.bonus-one-liner {
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0,48,135,.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.bonus-one-liner strong { color: var(--primary); }
.live-rate {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 1rem 1.25rem;
}
.live-rate-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.live-rate strong { color: var(--primary); font-size: 1.1rem; }
.bonus-banner {
    background: linear-gradient(135deg, rgba(0,48,135,.08) 0%, rgba(0,156,222,.06) 100%);
    border: 1px solid rgba(0,48,135,.2);
}
.bonus-banner strong { color: var(--primary); }
.help-box h3, .faq-section h3 { margin-bottom: 0.75rem; font-size: 0.95rem; }
.help-steps { margin: 0; padding-left: 1.35rem; color: var(--text); }
.help-steps li { margin-bottom: 0.6rem; }
.help-steps li:last-child { margin-bottom: 0; }
.help-steps a { color: var(--primary); }
.faq-list { margin-top: 0.5rem; }
.faq-item {
    border-bottom: 1px solid var(--surface2);
    padding: 0.75rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { margin: 0 0 0.25rem; font-size: 0.9rem; color: var(--text); }
.faq-item p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }

/* ========== Compact deposit ========== */
.deposit-compact { padding: 1rem; }
.deposit-compact-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .deposit-compact-grid { grid-template-columns: auto 1fr; align-items: start; }
}
.deposit-qr-block .network-badge { margin-bottom: 0.5rem; }
.deposit-qr-block .address-row { margin-top: 0.75rem; }
.deposit-qr-block .address-row input { font-size: 0.8rem; padding: 0.5rem; }
.qr-wrap-small { padding: 0.75rem; }
.qr-wrap-small img { width: 160px; height: 160px; display: block; }
@media (min-width: 600px) {
    .qr-wrap-small img { width: 200px; height: 200px; }
}
.deposit-form-block h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.record-deposit-form-compact label { margin-top: 0.6rem; margin-bottom: 0.25rem; font-size: 0.85rem; }
.record-deposit-form-compact input {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.record-deposit-form-compact button { margin-top: 0.75rem; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,48,135,.2); }
.deposit-form-block .link { margin-top: 0.75rem; display: inline-block; font-size: 0.85rem; }

/* Unique deposit: awaiting / success / failure status from server */
.deposit-status-block {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
}
.deposit-status-block .deposit-status-text { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.deposit-status-block .muted { margin: 0; font-size: 0.9rem; }
.deposit-status-awaiting {
    background: rgba(0, 48, 135, 0.08);
    border-left-color: var(--primary);
    color: var(--primary-dim);
}
.deposit-status-awaiting .deposit-status-text { color: var(--primary); }
.deposit-status-success {
    background: rgba(39, 103, 73, 0.12);
    border-left-color: var(--success);
    color: #1a4d2e;
}
.deposit-status-success .deposit-status-text { color: var(--success); }
.deposit-status-failure {
    background: rgba(197, 48, 48, 0.1);
    border-left-color: var(--error);
    color: #9b2c2c;
}
.deposit-status-failure .deposit-status-text { color: var(--error); }

.deposit-wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.deposit-wallet-card { padding: 1rem; }
.deposit-wallet-header { margin-bottom: 0.75rem; }
.deposit-wallet-header .network-badge { display: inline-block; margin-right: 0.5rem; }
.wallet-compat { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 0.35rem; }
.deposit-wallet-body .qr-wrap { margin: 0.5rem 0; }
.deposit-wallet-body .address-row input { font-size: 0.8rem; }
.deposit-form-block select {
    width: 100%; max-width: 100%; margin-bottom: 0;
    padding: 0.7rem 1rem; min-height: 46px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.faq-dashboard { padding: 1rem 1.25rem; }
.faq-dashboard .faq-item { padding: 0.5rem 0; }
/* dashboard-faq uses faq-list-dashboard above */

/* ========== Footer (user dashboard) ========== */
.user-dashboard .main-footer {
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--surface2);
}
/* ========== Trust strip (accreditation style) ========== */
.trust-strip {
    background: var(--surface);
    border-top: 1px solid var(--surface2);
    padding: 1rem 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
}
.trust-strip-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.trust-badge-icon .bi { font-size: 1.1rem; }
.trust-badge-icon svg { flex-shrink: 0; }
@media (max-width: 600px) {
    .trust-strip-inner { gap: 1rem; }
    .trust-badge { font-size: 0.8rem; }
}

.legal-disclaimer {
    font-size: 0.85em;
    color: var(--text-muted);
    margin: 0.5rem 0;
}
/* ========== Earnings page ========== */
.earnings-summary {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}
.earnings-total { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin: 0.35rem 0 0; }
.earnings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .earnings-grid { grid-template-columns: repeat(2, 1fr); }
}
.earnings-section-title { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--primary); }
.earnings-section-desc { margin: 0 0 1rem; font-size: 0.9rem; color: var(--text-muted); }
.earnings-periods { display: flex; flex-direction: column; gap: 0.75rem; }
.earnings-period {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface2);
}
.earnings-period-label { font-size: 0.9rem; color: var(--text-muted); }
.earnings-period-value { font-weight: 600; color: var(--text); }
.earnings-period-inr { font-size: 0.85rem; color: var(--text-muted); }
.earnings-breakdown { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--surface2); }
.earnings-breakdown h4 { margin: 0 0 0.5rem; font-size: 0.9rem; }
.earnings-breakdown ul { margin: 0; padding-left: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.earnings-by-period-table h3 { margin-bottom: 0.75rem; }

/* ========== Support tickets ========== */
/* Create support ticket form - desktop-friendly */
.support-form-card {
    max-width: 100%;
}
.support-create-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}
.support-create-form label:first-child { margin-top: 0; }
.support-create-form select,
.support-create-form textarea,
.support-create-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--surface2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}
.support-create-form select:focus,
.support-create-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.support-create-form textarea {
    min-height: 140px;
    resize: vertical;
}
.support-create-form input[type="file"] {
    min-height: auto;
    padding: 0.6rem 1rem;
}
.support-create-form .muted.small {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
}
.support-create-form button[type="submit"] {
    margin-top: 1.25rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
}
@media (min-width: 640px) {
    .support-form-card .support-create-form {
        max-width: 560px;
    }
}
.support-thread { padding: 1rem; }
.support-message { margin-bottom: 1.25rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); border-left: 4px solid var(--surface2); }
.support-message-user { background: var(--bg); border-left-color: var(--primary); }
.support-message-staff { background: rgba(0, 156, 222, 0.08); border-left-color: var(--accent); }
.support-message-meta { margin-bottom: 0.35rem; font-size: 0.9rem; }
.support-message-meta .muted { margin-left: 0.5rem; font-size: 0.85rem; }
.support-message-body { white-space: pre-wrap; word-break: break-word; }
.support-message-attachment { margin-top: 0.5rem; font-size: 0.9rem; }
.support-reply-form { margin-top: 1rem; }
.support-reply-form h3 { margin-top: 0; margin-bottom: 0.5rem; }

.main-footer .legal-disclaimer { margin-bottom: 0.5rem; }

/* Mobile-first P2P shell */
.m-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--surface2);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0,48,135,.06);
}
.m-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.2rem 0.4rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}
.m-bottom-link .bi { font-size: 1.25rem; }
.m-bottom-link.active { color: var(--primary); }
.user-dashboard .main-footer { padding-bottom: 4.5rem; }
@media (min-width: 900px) {
    .m-bottom-nav { max-width: 960px; left: 50%; right: auto; transform: translateX(-50%); }
}

.m-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--surface2); margin-bottom: 1rem; }
.m-tab { flex: 1; text-align: center; padding: 0.7rem; text-decoration: none; color: var(--text-muted); font-weight: 700; }
.m-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.m-status-tabs { display: flex; gap: 0.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 0.85rem; }
.m-status-tabs a { flex: 0 0 auto; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--bg); color: var(--text-muted); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.m-status-tabs a.active { background: var(--primary); color: #fff; }
.m-banner { background: #1a2744; color: #fff; border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.m-alert { background: rgba(0,156,222,.1); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.m-title { margin: 0 0 .5rem; font-size: 1.15rem; }
.m-card { padding: 1rem; }
.m-timer { background: #fde8e8; color: #c53030; padding: .45rem .75rem; border-radius: 8px; font-size: .9rem; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: .65rem; }
.btn-buy { min-height: 44px; padding: 0.55rem 1rem; }

.task-list { display: flex; flex-direction: column; gap: 0.65rem; }
.task-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.45rem 0.6rem; align-items: center; margin-bottom: 0; }
.task-row-main { display: flex; flex-direction: column; gap: 0.1rem; }
.task-amt { color: var(--primary); font-size: 1.15rem; }
.task-meta { font-size: 0.82rem; color: var(--text-muted); }
.task-quota { font-size: 0.85rem; color: var(--success); font-weight: 600; }
.task-payee { grid-column: 1 / -1; min-height: 44px; width: 100%; }
.task-row .btn-buy { grid-column: 2; grid-row: 1; }

.wallet-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 0.75rem; }
@media (min-width: 480px) { .wallet-grid { grid-template-columns: repeat(3, 1fr); } }
.wallet-tile { text-decoration: none; color: inherit; padding: 1rem; margin: 0; border-left: 4px solid var(--primary); transition: box-shadow .2s, transform .2s; }
a.wallet-tile:hover { box-shadow: 0 6px 18px rgba(0, 48, 135, 0.1); transform: translateY(-1px); }
.wallet-tile span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.wallet-tile-label { display: flex !important; align-items: center; gap: 0.35rem; font-weight: 600; }
.wallet-tile-label .bi { font-size: 1rem; color: var(--primary); }
.wallet-tile strong { display: block; font-size: 1.25rem; color: var(--primary); margin: 0.2rem 0; }
.wallet-tile em { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }
.wallet-tile-inr { border-left-color: var(--primary); }
.wallet-tile-usdt { border-left-color: var(--primary-light); }
.wallet-tile-usdt .wallet-tile-label .bi { color: var(--primary-light); }
.wallet-tile-comm { border-left-color: #b8860b; }
.wallet-tile-comm .wallet-tile-label .bi { color: #b8860b; }
.wallet-mini span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wallet-mini { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.82rem; font-weight: 600; }
.wallet-mini span { background: #fff; border: 1px solid var(--surface2); border-radius: 999px; padding: 0.3rem 0.65rem; }

.strength-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.4rem; }
.strength-bar { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.strength-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.strength-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.strength-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.88rem; color: var(--text-muted); border-bottom: 1px solid var(--surface2); }
.strength-list li:last-child { border-bottom: none; }
.strength-list li.done { color: var(--success); }
.m-me-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.m-me-links a { display: block; padding: 0.75rem; background: var(--bg); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--primary); font-size: 0.88rem; }

.copy-grid > div { margin-bottom: 0.85rem; }
.copy-grid span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.hist-card { display: block; text-decoration: none; color: inherit; margin-bottom: 0.65rem; }
.hist-card strong { margin-right: 0.4rem; color: var(--primary); }
.m-row-actions { display: flex; gap: 0.4rem; }
.payout-card p { margin: 0.25rem 0; }

.payout-empty { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.9rem; }
.payout-list {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.payout-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--surface2);
}
.payout-item:last-child { border-bottom: 0; }
.payout-item.is-default { background: #f4f8ff; }
.payout-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.payout-ico.is-upi { background: #e8f1ff; color: var(--accent); }
.payout-ico.is-bank { background: #fff4e0; color: #b8860b; }
.payout-item-body { flex: 1; min-width: 0; }
.payout-item-body strong { font-size: 0.95rem; color: var(--text); }
.payout-pill {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
}
.payout-item-body em,
.payout-item-body span {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}
.payout-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}
.payout-item-actions .btn { min-height: 34px; margin: 0; }
.payout-add h3 { margin-bottom: 0.85rem; color: var(--accent); }
.payout-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.payout-toggle button {
    min-height: 44px;
    border: 1px solid var(--surface2);
    background: var(--input-bg);
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}
.payout-toggle button.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.payout-search { margin-bottom: 0.55rem; }
.payout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
}
.payout-chip {
    border: 1px solid var(--surface2);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
}
.payout-chip.is-on {
    background: #e8f1ff;
    border-color: var(--accent);
    color: var(--accent);
}
@media (max-width: 520px) {
    .payout-item { flex-wrap: wrap; }
    .payout-item-actions { flex-direction: row; width: 100%; }
    .payout-item-actions .btn { flex: 1; }
}

@media (max-width: 768px) {
    .user-dashboard .main-header .main-nav { /* drawer still used as overflow menu */ }
}

/* INR Trading — ShowPay-like task flow */
.sp-inr .m-tabs { margin-bottom: 0.35rem; }
.sp-subnav {
    display: flex;
    gap: 1.25rem;
    padding: 0.35rem 0.15rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.sp-subnav a { color: var(--text-muted); text-decoration: none; }
.sp-subnav a.active { color: #2f7cf6; }
.sp-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #1a2744;
    color: #fff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
}
.sp-banner-soft { background: #ece8fb; color: #2f7cf6; }
.sp-coin {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd76a, #f5b942);
    color: #7a4e00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.sp-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2f7cf6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}
.sp-help-card p { margin: 0.35rem 0; }
.sp-mytask-link { text-align: right; margin: 0 0 0.5rem; }
.sp-mytask-link a { color: #2f7cf6; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.sp-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.sp-filter select,
.sp-filter input {
    min-height: 38px;
    border: 0;
    background: #eef1f6;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    width: auto;
    margin: 0;
}
.sp-filter select { flex: 1.2; min-width: 0; }
.sp-filter input { flex: 0 0 64px; width: 64px; text-align: center; }
.sp-filter-dash { color: var(--text-muted); }
.sp-refresh { flex: 0 0 auto; min-height: 38px; padding: 0.4rem 0.85rem; margin: 0; background: #2f7cf6; border: 0; }
.sp-task-list { display: flex; flex-direction: column; }
.sp-task-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
    padding: 0.85rem 0.1rem;
    border-bottom: 1px solid #eef1f6;
}
.sp-task-row .task-row-main { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.5rem; }
.sp-task-row .task-amt { grid-column: 1 / -1; color: #2f7cf6; font-size: 1.15rem; }
.sp-task-row .btn-buy {
    background: #2f7cf6;
    color: #fff;
    border: 0;
    border-radius: 8px;
    min-width: 76px;
    min-height: 42px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.sp-task-row .btn-buy[disabled] { opacity: 0.5; }
.sp-modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.sp-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.15rem 1rem 1.25rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.sp-modal h3 { margin: 0 0 0.85rem; font-size: 1.15rem; }
.sp-modal-close {
    position: absolute;
    top: 0.45rem;
    right: 0.7rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1;
}
.sp-upi-pick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef1f6;
    padding: 0.75rem 0.15rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.sp-upi-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff7a45;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sp-upi-id { flex: 1; font-weight: 600; color: #1a2744; word-break: break-all; }
.sp-notice { color: #e67e22; font-size: 0.82rem; margin: 0.85rem 0 0.4rem; line-height: 1.4; }
.sp-notice em { color: #e03131; font-style: normal; font-weight: 700; }
.sp-page-top {
    display: grid;
    grid-template-columns: 36px 1fr 64px;
    align-items: center;
    margin-bottom: 0.65rem;
}
.sp-page-top h2 { margin: 0; text-align: center; font-size: 1.15rem; color: #2f7cf6; }
.sp-back { color: #2f7cf6; font-size: 1.45rem; text-decoration: none; line-height: 1; }
.sp-top-link { text-align: right; color: #2f7cf6; font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.sp-mine-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0.15rem;
    border-bottom: 1px solid #eef1f6;
    text-decoration: none;
    color: inherit;
}
.sp-mine-main { flex: 1; }
.sp-mine-top { display: flex; align-items: center; gap: 0.5rem; }
.sp-mine-top strong { color: #2f7cf6; font-size: 1.05rem; }
.sp-mine-meta { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.sp-chevron { color: #c5cad3; }
.td-timer {
    background: #fde8e8;
    color: #e03131;
    padding: 0.55rem 0.75rem;
    border-radius: 0;
    margin: 0 -1rem 0.85rem;
    text-align: center;
    font-size: 1rem;
}
.td-pay-line { margin: 0 0 0.5rem; color: #2f7cf6; }
.td-pay-line strong { font-weight: 700; }
.td-bank-label { margin: 0 0 0.5rem; color: #2f7cf6; font-weight: 700; }
.td-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 12px;
    padding: 0.35rem 0.85rem 0.5rem;
    margin-bottom: 0.85rem;
}
.td-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f3f7;
}
.td-row:last-child { border-bottom: 0; }
.td-row span { display: block; font-size: 0.75rem; color: #2f7cf6; }
.td-row strong { display: block; color: #2f7cf6; font-size: 0.95rem; word-break: break-all; }
.td-amt-warn { display: block; color: #e67e22; font-style: normal; font-size: 0.8rem; margin-top: 0.2rem; }
.td-copy {
    background: none;
    border: 0;
    color: #2f7cf6;
    font-size: 1.1rem;
    padding: 0.15rem;
    cursor: pointer;
}
.td-copy.copied { color: var(--success); }
.td-form input[type="text"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.65rem;
}
.td-must { color: #2f7cf6; font-weight: 600; margin: 0 0 0.45rem; }
.td-cam {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #eef1f6;
    border-radius: 10px;
    color: #8b93a7;
    margin-bottom: 0.85rem;
    cursor: pointer;
    font-size: 0.7rem;
    text-align: center;
    overflow: hidden;
}
.td-cam input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.td-cam .bi { font-size: 1.6rem; }
.td-cam-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-cancel-red { background: #e03131; color: #fff; border: 0; margin-top: 0.55rem; }
.td-cancel { margin: 0; }
.td-foot {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #f7f8fb;
    border-radius: 10px;
    padding: 0.75rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.td-foot .bi { font-size: 1.5rem; color: #2f7cf6; }
.td-links { text-align: center; }
.sp-ratio { font-weight: 700; color: #2f7cf6; }
.sp-inr .m-tab.active { color: #2f7cf6; border-bottom-color: #2f7cf6; }
.sp-inr .m-status-tabs a.active { background: #2f7cf6; }
@media (min-width: 900px) {
    .td-timer { margin-left: 0; margin-right: 0; border-radius: 8px; }
}

/* ========== INR rail — ShowPay-like design system ========== */
body.rail-inr {
    --bg: #ffffff;
    --primary: #2f7cf6;
    --primary-dim: #2468d4;
    --accent: #2f7cf6;
    --surface2: #eef1f6;
    background: #fff;
}
body.rail-inr .main-header {
    box-shadow: none;
    border-bottom: 0;
}
body.rail-inr .main-header .logo { color: #2f7cf6; }
body.rail-inr .rail-switch { margin-left: auto; background: #f3f5f8; }
body.rail-inr .nav-toggle { display: none; }
body.rail-inr .trust-strip,
body.rail-inr .main-footer { display: none; }
body.rail-inr .m-bottom-link { color: #9aa3af; }
body.rail-inr .m-bottom-link.active { color: #2f7cf6; }
body.rail-inr .m-bottom-nav { box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04); }
body.rail-inr .m-tab.active { color: #2f7cf6; border-bottom-color: #2f7cf6; }
body.rail-inr .m-status-tabs { gap: 0.85rem; border-bottom: 1px solid #eef1f6; padding-bottom: 0.35rem; }
body.rail-inr .m-status-tabs a { background: none; padding: 0.25rem 0; color: #9aa3af; border-radius: 0; }
body.rail-inr .m-status-tabs a.active { background: none; color: #2f7cf6; }
body.rail-inr .status-pending { background: #f08c00; color: #fff; }
body.rail-inr .status-confirmed,
body.rail-inr .status-completed { background: #12b886; color: #fff; }
body.rail-inr .status-timeout { background: #e03131; color: #fff; }
body.rail-inr .status-cancel { background: #868e96; color: #fff; }
body.rail-inr .page-head h2,
body.rail-inr .dashboard-section-title { color: #2f7cf6; }
body.rail-inr .home-banner { background: #1a2744; }
body.rail-inr .home-banner-cta {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 8px;
}
body.rail-inr .home-rates { border-color: #e8ecf1; }
body.rail-inr .home-stat span { color: #8b93a0; }
body.rail-inr .home-guide-copy strong { color: #2f7cf6; }
body.rail-inr.home-dash .home-next,
body.rail-inr.home-dash .home-notes { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.header-ico {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f7cf6;
    font-size: 1.25rem;
    text-decoration: none;
}
.sp-page-title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #2f7cf6;
}
.sp-sec-title {
    margin: 1.1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2f7cf6;
}
.sp-tabs {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 0.85rem;
}
.sp-tabs a {
    padding: 0.4rem 0 0.55rem;
    text-decoration: none;
    color: #9aa3af;
    font-weight: 700;
}
.sp-tabs a.active {
    color: #2f7cf6;
    box-shadow: inset 0 -2px 0 #2f7cf6;
}

.me-top { margin-bottom: 0.85rem; }
.me-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2f7cf6;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}
.me-id { margin: 0.25rem 0 0; color: #2f7cf6; font-size: 0.92rem; }
.me-quota {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.me-quota span { display: block; color: #2f7cf6; font-weight: 600; font-size: 0.9rem; }
.me-quota strong { display: block; color: #2f7cf6; font-size: 1.55rem; line-height: 1.2; margin: 0.15rem 0; }
.me-quota em { display: block; font-style: normal; color: #2f7cf6; font-size: 0.82rem; }
.me-topup {
    flex-shrink: 0;
    border-radius: 999px;
    min-height: 40px;
    padding: 0.45rem 1.15rem;
    margin: 0;
    background: #2f7cf6;
}
.me-invite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
}
.me-invite strong { display: block; font-size: 1.05rem; color: #d0b4ff; }
.me-invite em { display: block; font-style: normal; font-size: 0.85rem; opacity: 0.9; margin-top: 0.15rem; }
.me-invite .bi { font-size: 1.7rem; color: #ffd76a; }
.me-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.25rem; }
.me-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 0.85rem 0.9rem;
    color: #2f7cf6;
    font-weight: 600;
    text-decoration: none;
}
.me-list a .bi:first-child { font-size: 1.15rem; }
.me-list a .bi-chevron-right { margin-left: auto; color: #9ec0ff; }
.me-edit-box { margin-bottom: 1.25rem; }
.me-edit-box > summary {
    color: #2f7cf6;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0 0.65rem;
}

.team-card {
    background: #2b2f36;
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 1rem;
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 0.5rem;
}
.team-grid strong { display: block; font-size: 1.35rem; }
.team-grid span { display: block; font-size: 0.72rem; color: #c5d4ff; margin-top: 0.15rem; line-height: 1.3; }
.team-count { margin: 0.85rem 0 0; font-size: 0.85rem; }
.team-invite {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 0.35rem 0.55rem 0.35rem 0.75rem;
}
.team-invite input {
    flex: 1;
    border: 0;
    background: transparent;
    min-height: 40px;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: #2f7cf6;
}
.team-copy {
    border: 0;
    background: none;
    color: #2f7cf6;
    font-size: 1.15rem;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
}
.team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eef1f6;
}
.team-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a2744;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.team-row strong,
.team-row em { display: block; color: #2f7cf6; }
.team-row em { font-style: normal; font-size: 0.82rem; }
.team-row-side { margin-left: auto; text-align: right; color: #2f7cf6; font-size: 0.82rem; }
.team-row-side em { display: block; font-style: normal; }

.sp-mine-meta { gap: 1.5rem; }
.sp-mine-meta span { display: flex; flex-direction: column; gap: 0.1rem; }
.sp-mine-meta em { font-style: normal; font-size: 0.75rem; color: #9aa3af; }
.sp-mine-meta b { font-weight: 700; color: #2f7cf6; }
.hist-time { margin-top: 0.25rem; font-size: 0.75rem; color: #9aa3af; }
.hist-row {
    padding: 0.9rem 0.1rem;
    border-bottom: 1px solid #eef1f6;
    color: #2f7cf6;
}
.hist-row strong { display: block; margin-bottom: 0.25rem; }
.hist-kv { display: flex; justify-content: space-between; font-size: 0.88rem; margin-top: 0.15rem; }

body.rail-inr .payout-item {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
}
body.rail-inr .payout-item-body strong { color: #2f7cf6; }
body.rail-inr .m-alert {
    background: #e8f1ff;
    color: #2f7cf6;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

/* Banner slider — just below the header/menu */
.site-banner-wrap {
    margin-top: var(--header-h);
    width: 100%;
    background: #101826;
}
.site-banner-slider {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    height: 50px;
    max-height: 50px;
    background: #152033;
}
@media (min-width: 769px) {
    .site-banner-slider { height: 56px; max-height: 56px; }
}
.site-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}
.site-banner-slide {
    flex: 0 0 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}
.site-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.site-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 0.7rem;
}
.site-banner-nav.prev { left: 6px; }
.site-banner-nav.next { right: 6px; }
.site-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}
.site-banner-dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
.site-banner-dot.is-on { background: #fff; width: 12px; border-radius: 6px; }
body.user-dashboard.has-banner .main-content {
    padding-top: 0.55rem;
}
body.rail-inr .site-banner-wrap { background: #eef3fb; }
@media (max-width: 768px) {
    .site-banner-slider { height: 50px; max-height: 50px; border-radius: 0; }
    .site-banner-nav { width: 20px; height: 20px; font-size: 0.6rem; }
    .site-banner-dots { bottom: 3px; }
}

