/* ExRupee Exchange — original design system
   Dark theme (site-wide). Home-specific .dark-*
   .swap-* classes are preserved. */
:root {
    --navy: #0f172a;
    --navy-700: #1e293b;
    --indigo: #4f46e5;
    --indigo-600: #4338ca;
    --emerald: #10b981;
    --emerald-600: #059669;
    --bg: #090d16;
    /* page background */
    --card: #0f172a;
    /* card / surface */
    --surface-2: #1e293b;
    /* inputs, chips, table headers */
    --border: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, .14);
    --warn: #fbbf24;
    --warn-bg: rgba(180, 83, 9, .18);
    --ok-bg: rgba(16, 185, 129, .14);
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 15px;
}

a {
    color: #818cf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
    color: var(--text);
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 460px;
}

.container-mid {
    max-width: 760px;
}

/* ---------- Top nav ---------- */
.nav {
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    color: #fff;
}

.brand:hover {
    text-decoration: none;
    color: #fff;
}

.brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: grid;
    place-items: center;
    color: #0f172a;
    font-weight: 800;
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .04s ease, background .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #0f172a;
    font-weight: 700;
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-accent {
    background: var(--emerald);
    color: #04121a;
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--emerald-600);
}

.btn-ghost {
    background: var(--surface-2);
    border-color: #334155;
    color: #e2e8f0;
}

.btn-ghost:hover {
    background: #334155;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(.95);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.btn-swap-primary {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    padding: 12px 24px;
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-swap-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
    text-decoration: none;
}

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.card+.card {
    margin-top: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.card-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 18px;
}

/* ---------- Forms ---------- */
.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.input,
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #334155;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--surface-2);
    color: var(--text);
}

.input::placeholder,
textarea::placeholder {
    color: #64748b;
}

.input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

select option {
    background: #0f172a;
    color: var(--text);
}

.hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 5px;
}

.inline-row {
    display: flex;
    gap: 12px;
}

.inline-row>* {
    flex: 1;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-ok {
    background: var(--ok-bg);
    color: #34d399;
    border-color: rgba(16, 185, 129, .35);
}

.alert-error {
    background: var(--danger-bg);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, .35);
}

.alert-info {
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, .35);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-gray {
    background: #1e293b;
    color: #94a3b8;
}

.badge-blue {
    background: rgba(99, 102, 241, .18);
    color: #a5b4fc;
}

.badge-green {
    background: rgba(16, 185, 129, .16);
    color: #34d399;
}

.badge-amber {
    background: rgba(180, 83, 9, .20);
    color: #fbbf24;
}

.badge-red {
    background: rgba(220, 38, 38, .16);
    color: #fca5a5;
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.data th,
table.data td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.data th {
    background: #111c30;
    font-weight: 600;
    color: var(--muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

table.data tr:last-child td {
    border-bottom: none;
}

table.data tr:hover td {
    background: #16233b;
}

.mono {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
}

/* ---------- Hero / landing ---------- */
.hero {
    padding: 64px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero h1 .grad {
    background: linear-gradient(120deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 30em;
}

.trust-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.trust-row .item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

.trust-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
}

/* FastChanger-style dark aesthetics (home) */
.dark-page {
    background: #090d16;
    color: #f8fafc;
}

.dark-hero {
    padding: 64px 0 48px;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%), #090d16;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.swap-dark {
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.12), 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    padding: 24px;
}

.swap-dark .swap-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.swap-dark .swap-hdr .badge-sync {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.swap-dark .swap-leg {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.swap-dark .swap-leg label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.swap-dark .swap-leg input {
    color: #f8fafc;
    font-size: 26px;
    font-weight: 800;
}

.swap-dark .swap-leg select {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 10px;
}

.swap-dark .swap-mid-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    border: 5px solid #0f172a;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -18px auto;
    font-size: 20px;
    font-weight: 800;
    z-index: 10;
    position: relative;
    cursor: pointer;
    transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background .2s ease, color .2s ease;
}

.swap-dark .swap-mid-btn:hover {
    background: #10b981;
    color: #0f172a;
    transform: rotate(180deg) scale(1.1);
}

.swap-dark .btn-swap-primary {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.swap-dark .btn-swap-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.dark-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    transition: transform .2s ease, border-color .2s ease;
}

.dark-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
}

.dark-card .icon-teal {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 14px;
}

/* Swap widget (light variant — now dark for consistency) */
.swap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 22px;
}

.swap h3 {
    font-size: 16px;
}

.swap-leg {
    background: var(--surface-2);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.swap-leg label {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.swap-leg .row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.swap-leg input {
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    padding: 0;
    color: var(--text);
}

.swap-leg input:focus {
    box-shadow: none;
}

.swap-leg select {
    width: auto;
    font-weight: 600;
}

.swap-rate {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 4px 14px;
}

.swap-mid {
    text-align: center;
    margin: -4px 0;
    color: var(--emerald);
    font-size: 20px;
}

/* Sections */
.section {
    padding: 56px 0;
}

.section h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
}

.section .sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
}

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

.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.feature .ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.feature h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.cta {
    background: linear-gradient(120deg, #0f172a, #4338ca);
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    border: 1px solid #1e293b;
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: #cbd5e1;
    max-width: 34em;
    margin: 0 auto 24px;
}

/* ---------- Footer ---------- */
.footer {
    background: #05070c;
    color: #cbd5e1;
    margin-top: 64px;
    padding: 40px 0;
    border-top: 1px solid #1e293b;
}

.footer .cols {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer a {
    color: #cbd5e1;
    display: block;
    padding: 3px 0;
}

.footer h5 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer .fine {
    border-top: 1px solid #1e293b;
    margin-top: 28px;
    padding-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

/* ---------- Auth pages ---------- */
.auth-wrap {
    min-height: calc(100vh - 66px);
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 24px;
}

.auth-foot {
    text-align: center;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Page scaffold ---------- */
.page {
    padding: 36px 0 64px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head h1 {
    font-size: 26px;
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.5);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat .n {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    margin-top: 4px;
}

.stat .l {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.stat-icon.indigo {
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
}

.stat-icon.emerald {
    background: rgba(16, 185, 129, .15);
    color: #34d399;
}

.stat-icon.amber {
    background: rgba(180, 83, 9, .18);
    color: #fbbf24;
}

.stat-icon.navy {
    background: #1e293b;
    color: #cbd5e1;
}

.active-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.active-banner .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255, 255, 255, 0.12);
    color: #a5b4fc;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.active-banner .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.kv {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.kv:last-child {
    border-bottom: none;
}

.kv .k {
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flex-between {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.wrap-gap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Steps / timeline */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline li {
    position: relative;
    padding: 0 0 18px 26px;
    border-left: 2px solid var(--border);
}

.timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
}

.timeline li.done::before {
    background: var(--emerald);
}

.timeline li.active::before {
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}

.timeline .t {
    font-weight: 600;
}

.timeline .d {
    color: var(--muted);
    font-size: 13px;
}

/* Deposit box */
.deposit {
    background: #111c30;
    border: 1px dashed #334155;
    border-radius: 12px;
    padding: 16px;
}

/* ---------- Admin layout ---------- */
.admin {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: #090d16;
}

.admin-side {
    background: #060911;
    color: #cbd5e1;
    padding: 24px 16px;
    border-right: 1px solid #1e293b;
}

.admin-side .brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0 8px 26px;
}

.admin-side .logo {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    background: #111827;
    color: #f8fafc;
    text-decoration: none;
}

.admin-nav a.active {
    background: rgba(16, 185, 129, 0.12);
    color: #38bdf8;
    font-weight: 700;
    border-left: 3px solid #10b981;
}

.admin-nav .group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin: 22px 14px 8px;
}

.admin-main {
    padding: 32px 36px;
    background: #090d16;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1e293b;
}

.admin-top .who {
    color: #94a3b8;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.pagination a,
.pagination span {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: #e2e8f0;
    font-size: 14px;
}

.pagination .cur {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filters a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    color: #cbd5e1;
}

.filters a.on {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero h1,
    .dark-hero h1 {
        font-size: 34px !important;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin {
        grid-template-columns: 1fr;
    }

    .admin-side {
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }

    .admin-side .brand {
        margin: 0 0 10px;
    }

    .admin-nav {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav .group {
        display: none;
    }

    .admin-nav a {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .nav-inner {
        height: 58px;
    }

    .brand {
        font-size: 17px;
    }

    .brand .logo {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a.hide-sm {
        display: none;
    }

    .dark-hero,
    .hero {
        padding: 36px 0 32px;
    }

    .hero h1,
    .dark-hero h1 {
        font-size: 28px !important;
        margin-bottom: 10px;
    }

    .hero p.lead {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .wrap-gap {
        flex-direction: column;
        width: 100%;
    }

    .wrap-gap .btn {
        width: 100%;
        justify-content: center;
    }

    .swap-dark,
    .swap {
        padding: 16px;
        border-radius: 16px;
    }

    .swap-dark .swap-hdr {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .swap-dark .swap-leg,
    .swap-leg {
        padding: 12px;
        border-radius: 12px;
    }

    .swap-dark .swap-leg input,
    .swap-leg input {
        font-size: 22px;
        width: 50% !important;
    }

    .swap-dark .swap-leg select,
    .swap-leg select {
        padding: 5px 8px;
        font-size: 13px;
        max-width: 48%;
    }

    .swap-dark .swap-mid-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin: -14px auto;
    }

    .swap-rate {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        font-size: 12px;
        padding: 6px 2px 10px;
    }

    .tx-widget-card {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .tx-widget-header {
        margin-bottom: 14px;
    }

    .tx-widget-title {
        font-size: 17px;
    }

    .tx-widget-badge {
        font-size: 11.5px;
        padding: 4px 10px;
    }

    .tx-row-item {
        padding: 12px;
    }

    .tx-ref-code {
        font-size: 13px;
    }

    .tx-user-name {
        font-size: 12px;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tx-crypto-val {
        font-size: 15px;
    }

    .tx-fiat-val {
        font-size: 11.5px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer .cols {
        flex-direction: column;
        gap: 20px;
    }

    .active-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }

    .inline-row {
        flex-direction: column;
        gap: 10px;
    }

    .auth-wrap {
        padding: 24px 0;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .table-wrap {
        border-radius: 12px;
    }

    table.data th,
    table.data td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .tx-row-top {
        margin-bottom: 8px;
    }

    .tx-row-bottom {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tx-amounts {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
        padding-top: 6px;
        margin-top: 4px;
    }

    .tx-fiat-val {
        margin-top: 0;
    }
}

/* ============================ POLISH PASS ============================ */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(16, 185, 129, .28);
    color: #fff;
}

/* Themed scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Custom select arrow (removes the default light dropdown chrome) */
select.input,
.field select,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Accessible focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}

/* Smoother, more tactile interactions */
.btn {
    transition: transform .06s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-primary:hover,
.btn-accent:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, .28);
    transform: translateY(-1px);
}

.card {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input,
select,
textarea {
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Table rows a touch cleaner */
table.data tr {
    transition: background .12s ease;
}

.table-wrap {
    box-shadow: var(--shadow);
}

/* Badges: consistent vertical rhythm */
.badge {
    line-height: 1.5;
    vertical-align: middle;
}

/* Section headings a bit more refined */
.card-title {
    letter-spacing: -.01em;
}

.page-head h1 {
    letter-spacing: -.02em;
}

/* Sidebar active item accent */
.admin-nav a.active {
    box-shadow: inset 3px 0 0 #10b981;
}

/* Settings toggle rows */
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0d1626;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .15s ease;
}

.toggle-row:hover {
    border-color: #334155;
}

.toggle-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #10b981;
    flex-shrink: 0;
}

.toggle-row strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Latest Transactions Widget (Replica) ---------- */
.tx-widget-card {
    background: #080d17;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.tx-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.tx-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.tx-widget-badge {
    background: #131c2e;
    border: 1px solid #223046;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
}

.tx-widget-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-row-item {
    background: #0f1828;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 18px;
    transition: background .15s ease, border-color .15s ease;
}

.tx-row-item:hover {
    background: #142035;
    border-color: rgba(16, 185, 129, 0.25);
}

.tx-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tx-row-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-ref-code {
    color: #00d2c4;
    font-weight: 800;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    letter-spacing: .02em;
}

.tx-user-name {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tx-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.tx-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-pair-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
}

.tx-pair-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.tx-pair-icon.upi {
    background: linear-gradient(135deg, #f97316, #10b981);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.tx-pair-icon.usdt {
    background: #26a17b;
    color: #fff;
}

.tx-arrow {
    color: #64748b;
    font-size: 13px;
    margin: 0 2px;
}

.tx-amounts {
    text-align: right;
}

.tx-crypto-val {
    color: #00d2c4;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.tx-fiat-val {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 2px;
}


/* ===================================================================
   MOBILE / RESPONSIVE FIXES
   Paste this block at the VERY END of public/assets/css/style.css.
   It overrides the earlier rules where needed (CSS cascade).
   Fixes: header overflow, user dashboard, admin panel, forms, tables.
   =================================================================== */

/* Kill any horizontal scroll / "zoomed-out" mobile rendering */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* ------------------------- Tablets & phones ------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header: compact; actions scroll horizontally instead of breaking */
    .nav-inner {
        height: 58px;
    }

    .brand {
        font-size: 16px;
        gap: 8px;
    }

    .brand .logo {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .nav-links {
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 66vw;
        justify-content: flex-end;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 7px 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-links form {
        flex-shrink: 0;
        margin: 0;
    }

    .nav-links .btn {
        padding: 7px 11px;
    }

    /* Spacing & type */
    .page {
        padding: 22px 0 48px;
    }

    .card {
        padding: 18px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 24px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p.lead {
        font-size: 16px;
    }

    .cta {
        padding: 30px 20px;
    }

    /* Forms: paired fields stack; comfortable tap targets */
    .inline-row {
        flex-direction: column;
        gap: 0;
    }

    .btn {
        min-height: 42px;
    }

    /* Grids collapse */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }

    /* User dashboard / page headers */
    .page-head {
        align-items: flex-start;
        gap: 10px;
    }

    /* Admin panel */
    .admin-main {
        padding: 18px 16px;
    }

    .admin-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-top .who {
        font-size: 13px;
    }

    /* Swap widgets */
    .swap-dark,
    .swap {
        padding: 18px;
    }

    .swap-dark .swap-leg input,
    .swap-leg input {
        font-size: 20px;
    }

    /* Buy/Sell tabs: let labels shrink & wrap instead of overflowing */
    .filters .js-mode-tab {
        font-size: 12.5px;
        padding: 8px 6px;
        white-space: normal;
        line-height: 1.25;
    }

    /* Tables readable; long refs/addresses wrap */
    table.data th,
    table.data td {
        padding: 11px 12px;
        font-size: 13px;
    }

    .mono {
        overflow-wrap: anywhere;
    }
}

/* ------------------------- Small phones ------------------------- */
@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 27px;
    }

    .section h2 {
        font-size: 21px;
    }

    .card {
        padding: 16px;
    }

    .cta {
        padding: 26px 16px;
    }

    .auth-card h1 {
        font-size: 21px;
    }

    /* Full-width primary actions so they're easy to tap */
    .page-head .btn {
        width: 100%;
    }

    .wrap-gap .btn {
        flex: 1 1 auto;
    }

    .kv {
        font-size: 13.5px;
    }
}

/* Admin Mobile User Badge & Desktop visibility */
.admin-user-mobile {
    display: none !important;
}

@media (max-width: 900px) {
    .admin-user-mobile {
        display: flex !important;
    }

    .admin-who-desktop {
        display: none !important;
    }

    .admin-main {
        padding: 16px 12px !important;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    table.data {
        min-width: 480px;
    }
}

/* Fix CSS Grid min-width expansion bug causing mobile viewport overflow */
.admin,
.admin-side,
.admin-main {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .admin {
        width: 100% !important;
        display: block !important;
        overflow-x: hidden !important;
    }

    .admin-side {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .admin-nav {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-main {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 16px 12px !important;
    }

    .stat,
    .card,
    .grid-2,
    .grid-3,
    .grid-4 {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Fix header navigation bar layout and eliminate brand / links overlap */
.nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.brand {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    z-index: 2 !important;
}

.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #10b981;
    text-transform: uppercase;
    margin-top: 1px;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex !items;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #10b981;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-icon-only:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

@media (max-width: 768px) {
    .nav-inner {
        height: 60px !important;
        gap: 8px !important;
    }

    .brand {
        font-size: 16px !important;
    }

    .nav-links {
        max-width: none !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
        z-index: 1 !important;
    }

    .nav-links .hide-sm,
    .hide-sm {
        display: none !important;
    }

    .nav-links .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .nav-links .btn-icon-only {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
    }
}

@media (max-width: 380px) {
    .brand-tagline {
        display: none !important;
    }
}

/* ---------- 3-Dot Mobile Menu & Pro Drawer Styling ---------- */
.mobile-menu-btn {
    display: none;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 17, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    z-index: 999;
}

.mobile-dropdown-menu.active,
.mobile-dropdown-menu.open {
    display: block;
    animation: mobileMenuSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-drawer-inner {
    padding: 16px 20px 20px;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.mobile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-user-email {
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-role {
    font-size: 11.5px;
    color: #34d399;
    font-weight: 500;
    margin-top: 1px;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14.5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-item.accent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mobile-badge-live {
    margin-left: auto;
    background: #10b981;
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

.mobile-nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e293b, transparent);
    margin: 12px 0;
}

.mobile-nav-foot {
    margin-top: 4px;
}

.mobile-auth-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    font-size: 14px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: inline-flex !important;
    }
}

/* Deposit wallet box & Sell order polish */
.deposit-wallet-box {
    background: #0b111e;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Smooth Scrolling & Mobile Auto-Scroll Anchor Positioning */
html {
    scroll-behavior: smooth;
}

#swap-widget,
.swap-dark {
    scroll-margin-top: 76px;
}

@media (max-width: 768px) {
    #swap-widget,
    .swap-dark {
        scroll-margin-top: 68px;
    }
}

/* Enhanced Mobile UI/UX Optimizations */
@media (max-width: 480px) {
    /* Hero section */
    .hero h1, .dark-hero h1 { font-size: 32px !important; }
    .hero p.lead { font-size: 15px !important; }
    .hero-pill { font-size: 11.5px; padding: 4px 10px; margin-bottom: 12px; }
    .wrap-gap { display: flex; flex-direction: column; width: 100%; gap: 10px; }
    .wrap-gap .btn { width: 100%; text-align: center; justify-content: center; }

    /* Swap Widget */
    .swap-dark { padding: 16px; border-radius: 16px; }
    .swap-dark .swap-leg { padding: 12px; }
    .swap-dark .swap-leg input { font-size: 20px !important; }
    
    .gateway-logos-bar { flex-wrap: wrap; justify-content: center; gap: 6px !important; padding: 10px !important; }
    .gateway-logos-bar span { font-size: 10.5px !important; }
    .gateway-logos-bar .pay-tag { padding: 4px 8px !important; }

    /* Transaction Feed */
    .tx-row-item { padding: 12px !important; }
    .tx-row-top { flex-wrap: wrap; gap: 6px; }
    .tx-row-user { width: 100%; justify-content: space-between; }
    .tx-done-badge { font-size: 10.5px !important; padding: 3px 8px !important; }
    .tx-ref-code { font-size: 11px !important; }
    .tx-user-name { font-size: 12px !important; }
    .tx-pair-info { font-size: 11.5px !important; }
    .tx-amounts { text-align: right; }
    .tx-amounts .amt-usdt { font-size: 13px !important; }
    .tx-amounts .amt-inr { font-size: 11px !important; }
}