:root{
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark: #0f172a;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg) !important;
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
}

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

.container {
    max-width: var(--container);
}

.navbar {
    background: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    min-height: 74px;
}

.navbar-brand {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    letter-spacing: -0.5px;
}

.header-user-name {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.panel-wrap,
.section-space,
.homepage-wrap {
    padding-top: 34px;
    padding-bottom: 50px;
}

.page-shell {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-header__left h1,
.page-header__left h2 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.page-header__left p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.page-header__right {
    margin-left: auto;
}

.admin-top-nav,
.user-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.card-base,
.form-card,
.user-panel-card,
.admin-panel-card,
.stat-card,
.exchange-card,
.hero-card-soft {
    background: var(--surface);
    border: 1px solid #e8eef5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-card,
.user-panel-card,
.admin-panel-card,
.exchange-card,
.hero-card-soft {
    padding: 24px;
}

.stat-card {
    padding: 24px 18px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 6px;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    box-shadow: none !important;
    transition: 0.2s ease;
}

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

.btn-sm {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.btn-lg {
    padding: 12px 18px !important;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--primary-hover) !important;
}

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

.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: #fff !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-outline-dark,
.btn-admin-nav {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid #dbe3ee !important;
}

.btn-outline-dark:hover,
.btn-admin-nav:hover {
    background: #f8fafc !important;
    color: var(--text) !important;
    border-color: #cbd5e1 !important;
}

.btn-admin-nav.active,
.active-user-nav {
    background: var(--dark) !important;
    color: #fff !important;
    border-color: var(--dark) !important;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.form-control,
.form-select {
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid #dbe3ee !important;
    background: #fff !important;
    color: var(--text) !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.10) !important;
}

textarea.form-control {
    min-height: 120px !important;
    resize: vertical;
}

.alert {
    border: 0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
}

.badge {
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
}

.table {
    width: 100%;
    margin-bottom: 0 !important;
    background: #fff;
}

.table thead th {
    background: var(--surface-2) !important;
    color: var(--text);
    border-color: var(--border) !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.table td {
    border-color: var(--border) !important;
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

.table td, .table th {
    padding: 13px 12px !important;
}

.quick-info p {
    margin-bottom: 10px;
    font-size: 15px;
}

.quick-info strong {
    color: var(--text);
}

.hero-modern {
    min-height: 100%;
    border-radius: 28px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(37,99,235,0.96), rgba(15,23,42,0.96));
    color: #fff;
    box-shadow: 0 18px 50px rgba(37,99,235,0.18);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.hero-modern::after {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}

.hero-modern > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-modern h1 {
    margin: 0 0 14px;
    font-size: 50px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.7;
}

.hero-points {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-point-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px 16px;
}

.hero-point-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.hero-point-card span {
    font-size: 14px;
    color: rgba(255,255,255,0.84);
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-hero-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.26) !important;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.10) !important;
}

.hero-support-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.support-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 14px 16px;
}

.support-item small {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.70);
    font-size: 12px;
}

.support-item strong {
    color: #fff;
    font-size: 15px;
    word-break: break-word;
}

.exchange-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.exchange-card-head h3 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}

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

.exchange-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.payment-info-box {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
}

.payment-info-line + .payment-info-line {
    margin-top: 4px;
}

.summary-input {
    background: #f8fafc !important;
    font-weight: 700;
}

.login-required-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-locked-box {
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 34px 24px;
    text-align: center;
    margin-top: 8px;
}

.login-lock-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 14px;
}

.login-locked-box h4 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.login-locked-box p {
    margin: 0 auto 22px;
    max-width: 480px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.login-required-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.login-note-box {
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
}

.exchange-bottom-note {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #dbe3ee;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.home-feature-strip {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.feature-strip-item {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.feature-strip-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 15px;
}

.feature-strip-item span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-width: 180px;
}

.thumb-preview-btn {
    background: transparent;
    border: 0;
    color: var(--primary);
    font-weight: 700;
    padding: 0;
}

.thumb-preview-btn:hover {
    text-decoration: underline;
}

.modal-image-wrap {
    text-align: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
}

.modal-image-wrap img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
}

.section-mini-title {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title-main {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-text-muted {
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.steps-list-modern {
    display: grid;
    gap: 16px;
}

.step-item-modern {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #f8fbff;
}

.step-number-modern {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-item-modern h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.step-item-modern p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.faq-modern {
    display: grid;
    gap: 12px;
}

.faq-item-modern {
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.faq-question-modern {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 18px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.faq-question-modern span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.faq-answer-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.faq-item-modern.active .faq-answer-modern {
    padding-bottom: 18px;
}

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

.trust-strip-item {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.04);
}

.trust-strip-item strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
}

.trust-strip-item span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer-modern {
    background: #0f172a;
    color: #e2e8f0;
    padding: 42px 0 18px;
    margin-top: 18px;
}

.footer-brand-box h4 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand-box p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.footer-link-box h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-link-box a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-link-box a:hover {
    color: #fff;
}

.footer-link-box p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(148,163,184,0.18);
    margin-top: 28px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 13px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 18px;
    font-size: 14px;
    color: #334155;
}

.order-detail-grid div {
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 12px;
    padding: 12px 14px;
}

.order-note-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Dark exchange form */
.exchange-card-dark {
    background: rgba(42, 42, 42, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(4px);
    padding: 18px;
}

.exchange-form-dark {
    color: #fff;
}

.form-label-dark {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-select-dark,
.form-control-dark {
    background: #161616 !important;
    color: #fff !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    box-shadow: none !important;
}

.form-select-dark:focus,
.form-control-dark:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
}

.form-control-dark::placeholder {
    color: #94a3b8 !important;
}

.form-control-readonly-dark {
    color: #cbd5e1 !important;
}

.payment-info-box-dark {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== Sample style rate slab ===== */
.rate-slabs-sample {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.rate-slab-box {
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid #334a6b;
    border-radius: 14px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.rate-slab-price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #94a3b8;
    margin-bottom: 4px;
}

.rate-slab-range {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #64748b;
}

.rate-slab-box.active {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.rate-slab-box.active .rate-slab-price {
    color: #22f5b5;
}

.rate-slab-box.active .rate-slab-range {
    color: #fbbf24;
}

/* USD amount input sample feel */
.form-control-dark,
.form-select-dark,
.form-control,
.form-select {
    box-shadow: none !important;
}

#usd_amount,
#bdt_total {
    font-weight: 700;
}

/* number input spinner cleaner */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
}

/* upload box cleaner */
.upload-box-light {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-box-light:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.upload-plus-light {
    color: #94a3b8;
    font-size: 34px;
    line-height: 1;
}

.upload-text-light {
    color: #64748b;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
    padding: 0 8px;
}

/* upload preview */
.upload-preview-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-preview-wrap img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #fff;
}


.form-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

.exchange-card-dark .form-label,
.hero-dark-wrap .form-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

/* mobile */
@media (max-width: 575px) {
    .rate-slabs-sample {
        gap: 8px;
    }

    .rate-slab-box {
        min-height: 68px;
        padding: 8px 5px;
        border-radius: 12px;
    }

    .rate-slab-price {
        font-size: 14px;
    }

    .rate-slab-range {
        font-size: 10px;
    }
}

.fee-info-inline-dark {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
}

.min-note-dark {
    color: #10b981 !important;
    font-size: 11px;
    font-weight: 600;
}

.upload-box-dark {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border: 1px dashed #475569;
    border-radius: 14px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-box-dark:hover {
    border-color: #10b981;
}

.upload-plus-dark {
    color: #94a3b8;
    font-size: 34px;
    line-height: 1;
}

.upload-text-dark {
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
    padding: 0 8px;
}

.submit-btn-dark {
    background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%) !important;
    border: none !important;
    color: #031b14 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    border-radius: 10px !important;
    padding: 13px 18px !important;
}

.submit-btn-dark:hover {
    filter: brightness(1.03);
    transform: none !important;
}

.delivery-note-dark {
    margin-top: 16px;
    text-align: center;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
}

.login-locked-box-dark {
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed #334155;
    color: #fff;
}

.login-locked-box-dark p {
    color: #cbd5e1;
}

@media (max-width: 1199px) {
    .page-header__left h1,
    .page-header__left h2 {
        font-size: 28px;
    }

    .hero-modern h1 {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 26px !important;
    }

    .panel-wrap,
    .section-space,
    .homepage-wrap {
        padding-top: 24px;
        padding-bottom: 34px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header__right {
        margin-left: 0;
    }

    .admin-top-nav,
    .user-top-nav {
        justify-content: flex-start;
    }

    .hero-modern,
    .exchange-card,
    .form-card,
    .user-panel-card,
    .admin-panel-card {
        padding: 20px;
        border-radius: 20px;
    }

    .hero-modern h1 {
        font-size: 36px;
    }

    .hero-support-box,
    .home-feature-strip,
    .trust-strip-modern {
        grid-template-columns: 1fr;
    }

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

    .stat-card h3 {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .navbar .container {
        gap: 12px;
    }

    .header-user-name {
        font-size: 13px;
        padding: 7px 12px;
    }

    .page-header__left h1,
    .page-header__left h2 {
        font-size: 26px;
    }

    .exchange-card-head h3 {
        font-size: 24px;
    }

    .hero-modern h1 {
        font-size: 32px;
    }

    .hero-action-row,
    .login-required-actions {
        flex-direction: column;
    }

    .hero-action-row .btn,
    .login-required-actions .btn {
        width: 100%;
    }

    .table td,
    .table th {
        font-size: 13px;
        padding: 11px 10px !important;
    }

    .btn {
        font-size: 14px !important;
    }

    .section-title-main {
        font-size: 24px;
    }

    .step-item-modern {
        padding: 14px;
    }

    .faq-question-modern {
        padding: 16px;
        font-size: 14px;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .navbar {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar .container {
        flex-direction: column;
        align-items: stretch !important;
    }

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

    .navbar .ms-auto {
        margin-left: 0 !important;
        justify-content: flex-start;
    }

    .page-header__left h1,
    .page-header__left h2 {
        font-size: 24px;
    }

    .hero-modern h1 {
        font-size: 28px;
    }

    .form-control,
    .form-select {
        min-height: 44px !important;
    }
    .upload-box-dark {
        width: 104px;
        height: 104px;
    }

    .footer-brand-box h4 {
        font-size: 24px;
    }

    .footer-bottom-modern {
        flex-direction: column;
    }
}



.usd-page-bg {
    background:
        linear-gradient(135deg, rgba(37,99,235,0.12), rgba(59,130,246,0.06)),
        linear-gradient(180deg, #eef4ff 0%, #f5f8ff 100%);
}

.usd-simple-text {
    padding: 34px 12px 34px 8px;
    color: #fff;
}

.usd-simple-text h1 {
    font-size: 50px;
    line-height: 1.05;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -1px;
}

.usd-simple-text .hero-subtitle {
    color: rgba(255,255,255,0.88);
    max-width: 560px;
}

.simple-text-points {
    margin: 22px 0 24px;
}

.simple-text-points p {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    font-weight: 500;
}

.usd-form-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(37,99,235,0.10);
}

.rate-slabs-sample {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.rate-slab-box {
    background: #aeb8c6;
    border: 1px solid #415a7d;
    border-radius: 14px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.rate-slab-price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #8aa0c1;
    margin-bottom: 4px;
}

.rate-slab-range {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #6e84a3;
}

.rate-slab-box.active {
    background: #1f5949;
    border: 1px solid #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.rate-slab-box.active .rate-slab-price {
    color: #22f5b5;
}

.rate-slab-box.active .rate-slab-range {
    color: #fbbf24;
}

.fee-info-inline {
    color: #d97706;
    font-size: 12px;
    font-weight: 700;
}

.upload-row-side {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.upload-box-light {
    width: 110px;
    height: 110px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.upload-box-light:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.upload-plus-light {
    color: #94a3b8;
    font-size: 34px;
    line-height: 1;
}

.upload-text-light {
    color: #64748b;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
    padding: 0 8px;
}

.upload-preview-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-preview-side img {
    width: 95px;
    height: 95px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: #fff;
}

.delivery-note-box {
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #b45309;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 991px) {
    .usd-simple-text {
        padding: 12px 4px 20px;
    }

    .usd-simple-text h1 {
        font-size: 38px;
    }
}

@media (max-width: 575px) {
    .usd-simple-text h1 {
        font-size: 30px;
    }

    .simple-text-points p {
        font-size: 15px;
    }

    .rate-slabs-sample {
        gap: 8px;
    }

    .rate-slab-box {
        min-height: 68px;
        padding: 8px 5px;
    }

    .rate-slab-price {
        font-size: 14px;
    }

    .rate-slab-range {
        font-size: 10px;
    }

    .upload-row-side {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .upload-box-light {
        width: 96px;
        height: 96px;
    }

    .upload-preview-side img {
        width: 86px;
        height: 86px;
    }
}

.usd-hero-section {
    background: linear-gradient(90deg, #0b0f14 0%, #10141b 48%, #15181c 100%);
    padding: 70px 0 54px;
}

.usd-left-panel {
    max-width: 620px;
    padding-right: 30px;
}

.usd-main-title {
    margin: 0 0 18px;
    font-size: 60px;
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
}

.usd-main-title span {
    color: #00d79a;
}

.usd-sub-copy {
    margin: 0 0 22px;
    color: #c2ccda;
    font-size: 16px;
    line-height: 1.8;
    max-width: 520px;
}

.usd-trust-list {
    margin-bottom: 26px;
}

.usd-trust-list p {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.usd-left-cta {
    margin-bottom: 28px;
}

.usd-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 999px;
    background: #3a3a3a;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 700;
}

.usd-pill-btn:hover {
    color: #ffffff;
}

.usd-pill-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.usd-mini-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    max-width: 520px;
}

.usd-mini-badge-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 14px 16px;
}

.usd-mini-badge-card small {
    display: block;
    margin-bottom: 5px;
    color: #93a4bc;
    font-size: 12px;
}

.usd-mini-badge-card strong {
    color: #ffffff;
    font-size: 14px;
    word-break: break-word;
}

.usd-order-card {
    background: linear-gradient(180deg, #2c2a2a 0%, #292828 100%);
    border: 1px solid rgba(0,215,154,0.28);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
    padding: 24px;
}

.usd-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.usd-order-head h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
}

.usd-order-head p {
    margin: 0;
    color: #bac5d4;
    font-size: 14px;
}

.usd-order-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #dbeafe;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 700;
}

.usd-label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
}

.usd-input {
    background: #171717 !important;
    color: #ffffff !important;
    border: 1px solid #35507a !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    box-shadow: none !important;
}

.usd-input::placeholder {
    color: #8ea0b8 !important;
}

.usd-input:focus {
    border-color: #00d79a !important;
    box-shadow: 0 0 0 3px rgba(0,215,154,0.10) !important;
}

.usd-input-readonly {
    color: #dbeafe !important;
    font-weight: 700;
}

.usd-payment-box {
    background: #1c2737;
    border: 1px solid #2a4668;
    border-radius: 14px;
    padding: 14px 16px;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.8;
}

.usd-payment-box strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
}

.usd-payment-box small {
    color: #9fb6d2;
}

.usd-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.usd-rate-card {
    background: #222b39;
    border: 1px solid #35507a;
    border-radius: 14px;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.usd-rate-price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #93a7c5;
    margin-bottom: 4px;
}

.usd-rate-range {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #6f85a7;
}

.usd-rate-card.active {
    background: #1e5b4b;
    border: 1px solid #00d79a;
    box-shadow: 0 0 0 1px rgba(0,215,154,0.08);
}

.usd-rate-card.active .usd-rate-price {
    color: #15f0b2;
}

.usd-rate-card.active .usd-rate-range {
    color: #fbbf24;
}

.usd-fee-inline {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
}

.usd-min-note {
    color: #00d79a !important;
    font-size: 11px;
    font-weight: 600;
}

.usd-upload-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.usd-upload-box {
    width: 108px;
    height: 108px;
    border: 1px dashed #475569;
    border-radius: 14px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.usd-upload-box:hover {
    border-color: #00d79a;
}

.usd-upload-plus {
    color: #94a3b8;
    font-size: 34px;
    line-height: 1;
}

.usd-upload-text {
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
    padding: 0 8px;
}

.usd-upload-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.usd-upload-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #475569;
    background: #111827;
}

.usd-remove-btn {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.usd-submit-btn {
    background: linear-gradient(90deg, #00c98b 0%, #00d79a 100%) !important;
    border: none !important;
    color: #031b14 !important;
    font-weight: 800 !important;
    height: 52px;
    border-radius: 12px !important;
}

.usd-delivery-note {
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #b45309;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.usd-login-box {
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    background: rgba(255,255,255,0.03);
}

.usd-login-lock {
    font-size: 42px;
    margin-bottom: 12px;
}

.usd-login-box h4 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.usd-login-box p {
    color: #cbd5e1;
    margin-bottom: 18px;
}

.usd-login-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.usd-trust-strip-section {
    background: #0f1318;
    padding: 0 0 28px;
}

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

.usd-trust-item {
    background: #161c23;
    border: 1px solid #1f2a37;
    border-radius: 18px;
    padding: 18px 20px;
}

.usd-trust-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 15px;
}

.usd-trust-item span {
    color: #93a4bc;
    font-size: 14px;
    line-height: 1.6;
}

.usd-content-section {
    background: #0f1318;
    padding: 20px 0 48px;
}

.usd-white-card {
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
}

.usd-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.usd-section-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
}

.usd-section-text {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

.usd-steps {
    display: grid;
    gap: 14px;
}

.usd-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #f8fbff;
}

.usd-step-no {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.usd-step h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.usd-step p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.usd-faq {
    display: grid;
    gap: 12px;
}

.usd-faq-item {
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

.usd-faq-q {
    width: 100%;
    border: 0;
    background: #ffffff;
    text-align: left;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.usd-faq-q span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.usd-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.usd-faq-item.active .usd-faq-a {
    padding-bottom: 18px;
}

.usd-footer {
    background: #0b0f14;
    color: #e2e8f0;
    padding: 42px 0 18px;
}

.usd-footer h4 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.usd-footer p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.8;
}

.usd-footer-links h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.usd-footer-links a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 14px;
}

.usd-footer-links a:hover {
    color: #ffffff;
}

.usd-footer-bottom {
    border-top: 1px solid rgba(148,163,184,0.18);
    margin-top: 28px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .usd-main-title {
        font-size: 52px;
    }
}

@media (max-width: 991px) {
    .usd-hero-section {
        padding: 34px 0 26px;
    }

    .usd-left-panel {
        max-width: 100%;
        padding-right: 0;
    }

    .usd-main-title {
        font-size: 40px;
    }

    .usd-mini-badges,
    .usd-trust-strip {
        grid-template-columns: 1fr;
    }

    .usd-upload-row {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .usd-main-title {
        font-size: 32px;
    }

    .usd-trust-list p {
        font-size: 15px;
    }

    .usd-order-card,
    .usd-white-card {
        padding: 18px;
        border-radius: 18px;
    }

    .usd-order-head h3 {
        font-size: 24px;
    }

    .usd-rate-grid {
        gap: 8px;
    }

    .usd-rate-card {
        min-height: 70px;
        padding: 8px 6px;
    }

    .usd-rate-price {
        font-size: 14px;
    }

    .usd-rate-range {
        font-size: 10px;
    }

    .usd-upload-preview img {
        width: 64px;
        height: 64px;
    }

    .usd-footer h4 {
        font-size: 24px;
    }

    .usd-footer-bottom {
        flex-direction: column;
    }
}


.admin-panel-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    border: 1px solid #eef2f7;
}

.panel-wrap .display-6 {
    font-size: 2rem;
    line-height: 1.1;
}

.table td,
.table th {
    vertical-align: middle;
}

.admin-panel-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    border: 1px solid #eef2f7;
}

.panel-wrap .display-6 {
    font-size: 2rem;
    line-height: 1.1;
}

.table td,
.table th {
    vertical-align: middle;
}

.thumb-preview-btn {
    border: 1px solid #d0d7e2;
    background: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.thumb-preview-btn:hover {
    background: #f8fafc;
}

.modal-image-wrap {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.modal-image-wrap img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
}

.detail-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 14px 16px;
}

.detail-label {
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    font-weight: 700;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 120px 120px;
    gap: 12px;
}

@media (max-width: 991px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.detail-box {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    padding: 14px 16px;
}

.detail-label {
    font-size: 12px;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    font-weight: 700;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 120px 120px;
    gap: 12px;
}

@media (max-width: 991px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.user-top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-top-nav .btn {
    white-space: nowrap;
}

textarea.form-control.form-control-sm {
    min-height: 70px;
}


.user-top-nav-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.user-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.user-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.user-nav-link:hover {
    background: #f8fafc;
    border-color: #c9d5e6;
    color: #0f172a;
    transform: translateY(-1px);
}

.user-nav-link.is-active {
    background: #111827;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.user-nav-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.user-nav-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .user-top-nav-wrap {
        justify-content: flex-start;
    }

    .user-top-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .user-nav-link {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 12px;
    }
}


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header__left {
    flex: 1 1 320px;
}

.page-header__right {
    flex: 1 1 420px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .page-header__right {
        justify-content: flex-start;
    }
}

.admin-top-nav-wrap {
    display: flex;
    justify-content: center; /* center align */
    width: 100%;
}

.admin-top-nav {
    display: flex;
    flex-wrap: nowrap; /* IMPORTANT: wrap বন্ধ */
    gap: 10px;
    justify-content: center;
    align-items: center;
    overflow-x: auto; /* screen ছোট হলে scroll হবে */
    padding-bottom: 5px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.admin-nav-link:hover {
    background: #f8fafc;
    border-color: #c9d5e6;
    color: #0f172a;
    transform: translateY(-1px);
}

.admin-nav-link.is-active {
    background: #111827;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

@media (max-width: 991px) {
    .admin-top-nav-wrap {
        justify-content: flex-start;
    }

    .admin-top-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .admin-nav-link {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header__left {
    flex: 1 1 320px;
}

.page-header__right {
    flex: 1 1 420px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .page-header__right {
        justify-content: flex-start;
    }
}

/* scrollbar clean (optional) */
.admin-top-nav::-webkit-scrollbar {
    height: 6px;
}
.admin-top-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

/* button */
.admin-nav-link {
    flex: 0 0 auto; /* shrink না করে */
    white-space: nowrap;
}

.admin-top-nav {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 14px;
}

/* =========================
   UI Refresh Pack
   ========================= */

body {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(15,23,42,0.04), transparent 22%),
        var(--bg) !important;
    color: var(--text);
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-shell {
    min-height: 84px;
    gap: 16px;
}

.brand-mark {
    gap: 14px !important;
}

.brand-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(37,99,235,0.12);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-logo-fallback {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 22px;
    letter-spacing: -0.4px;
    color: var(--text);
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.navbar-actions {
    row-gap: 10px !important;
}

.page-header-card,
.user-summary-banner,
.admin-overview-band,
.auth-side-panel,
.auth-card,
.admin-surface-card,
.metric-card {
    position: relative;
    overflow: hidden;
}

.page-header-card::before,
.user-summary-banner::before,
.admin-overview-band::before,
.auth-side-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(255,255,255,0));
    pointer-events: none;
}

.page-header-card {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5edf6;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.page-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.page-header__left,
.page-header__right,
.auth-side-panel > *,
.admin-overview-band > *,
.user-summary-banner > * {
    position: relative;
    z-index: 1;
}

.admin-top-nav-wrap,
.user-top-nav-wrap {
    display: flex;
    justify-content: flex-end;
}

.admin-top-nav,
.user-top-nav {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 20px;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.admin-nav-link,
.user-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    transition: all .2s ease;
}

.admin-nav-link:hover,
.user-nav-link:hover {
    color: var(--text);
    background: #fff;
}

.admin-nav-link.is-active,
.user-nav-link.is-active,
.user-nav-link.user-nav-primary {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,0.18);
}

.admin-overview-band,
.user-summary-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf6;
    box-shadow: var(--shadow-md);
}

.overview-band-copy h3,
.user-summary-banner h4 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.overview-band-copy p,
.user-summary-banner p {
    max-width: 680px;
    color: var(--muted);
}

.metric-card {
    min-height: 100%;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e6edf5;
    box-shadow: 0 14px 34px rgba(15,23,42,0.05);
}

.metric-card h3 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.metric-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card-primary {
    background: linear-gradient(135deg, rgba(37,99,235,0.96), rgba(30,64,175,0.94));
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(37,99,235,0.22);
}

.metric-card-primary .metric-label {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.92);
}

.metric-card-primary h3,
.metric-card-primary p {
    color: #fff;
}

.metric-card-soft {
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.admin-surface-card,
.auth-card {
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e7edf5;
    box-shadow: 0 16px 38px rgba(15,23,42,0.06);
}

.surface-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 1px solid #e5edf6;
    border-radius: 18px;
}

.mini-list-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.mini-list-item span {
    color: var(--muted);
    font-size: 13px;
}

.mini-list-item small {
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.modern-table-wrap {
    border: 1px solid #e5edf6;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.table-modern {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: #f8fbff !important;
    border-bottom: 1px solid #e5edf6 !important;
    border-top: 0 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}

.table-modern tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

.table-modern tbody tr:hover {
    background: #fbfdff;
}

.table-modern tbody td {
    border-top: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
}

.table-modern tbody tr:last-child td {
    border-bottom: 0 !important;
}

.auth-shell {
    padding-top: 42px;
    padding-bottom: 56px;
}

.auth-side-panel {
    min-height: 100%;
    padding: 34px;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(37,99,235,0.94));
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
}

.auth-side-register {
    background: linear-gradient(135deg, rgba(2,6,23,0.96), rgba(29,78,216,0.96));
}

.auth-side-panel h1 {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -1px;
}

.auth-side-panel p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.75;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.auth-chip-light {
    background: #eff6ff;
    border-color: #dbeafe;
    color: var(--primary);
}

.auth-feature-list {
    display: grid;
    gap: 14px;
}

.auth-feature-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
}

.auth-feature-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.auth-feature-item span {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.65;
}

.auth-card {
    padding: 30px;
}

.auth-card-head {
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid #edf2f7;
}

.auth-bottom-link {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.auth-bottom-link a {
    font-weight: 700;
}

.form-card,
.user-panel-card,
.admin-panel-card,
.exchange-card,
.hero-card-soft {
    border-radius: 24px;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 0 1px 0 !important;
}

.badge {
    border-radius: 999px !important;
    padding: 8px 12px !important;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 24px !important;
    }

    .page-header-card,
    .admin-overview-band,
    .user-summary-banner,
    .auth-side-panel,
    .auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .page-header__right,
    .admin-top-nav-wrap,
    .user-top-nav-wrap {
        width: 100%;
    }

    .admin-top-nav,
    .user-top-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
    }

    .auth-side-panel h1 {
        font-size: 34px;
    }
}

@media (max-width: 767.98px) {
    .navbar-shell {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .page-header__left h1,
    .page-header__left h2 {
        font-size: 26px;
    }

    .overview-band-copy h3,
    .user-summary-banner h4 {
        font-size: 24px;
    }

    .metric-card {
        padding: 20px;
    }

    .metric-card h3 {
        font-size: 30px;
    }

    .auth-shell {
        padding-top: 24px;
    }

    .auth-side-panel h1 {
        font-size: 30px;
    }

    .auth-card {
        padding: 22px;
    }
}

a.user-nav-link.user-nav-primary {
    background: red;
    border: none;
}