/* ============================================================
   STONEFX — MAIN STYLESHEET
   All portal styles are centralized here.
   No inline styles should exist in blade templates.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
    /* Color Palette */
    --clr-bg-primary: #0b1120;
    --clr-bg-secondary: #111827;
    --clr-bg-card: #1a2236;
    --clr-bg-card-alt: #151e2f;
    --clr-bg-input: #0d1526;
    --clr-bg-nav: #0d1526;
    --clr-bg-announcement: #ffffff;
    --clr-bg-sidebar: #111827;
    --clr-bg-order-buy: rgba(16, 185, 129, 0.06);
    --clr-bg-order-sell: rgba(239, 68, 68, 0.06);

    /* Text Colors */
    --clr-text-primary: #f1f5f9;
    --clr-text-secondary: #94a3b8;
    --clr-text-muted: #64748b;
    --clr-text-announcement: #0b1120;
    --clr-text-white: #ffffff;

    /* Brand / Accent Colors */
    --clr-accent: #3b82f6;
    --clr-accent-hover: #2563eb;
    --clr-green: #10b981;
    --clr-green-light: rgba(16, 185, 129, 0.15);
    --clr-red: #ef4444;
    --clr-red-light: rgba(239, 68, 68, 0.15);
    --clr-gold: #f59e0b;
    --clr-border: rgba(255, 255, 255, 0.07);
    --clr-border-focus: #3b82f6;

    /* Component Sizes */
    --announcement-height: 40px;
    --nav-height: 64px;
    --footer-height: 60px;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow-green: 0 -4px 24px rgba(16, 185, 129, 0.35);
    --shadow-glow-red: 0 -4px 24px rgba(239, 68, 68, 0.35);
    --shadow-glow-blue: 0 0 32px rgba(59, 130, 246, 0.2);
    --shadow-btn: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ── Base Reset & Global ──────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg-primary);
    color: var(--clr-text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Offset for fixed announcement + nav */
.body-offset {
    padding-top: calc(var(--announcement-height) + var(--nav-height));
}

/* ── Scrollbar Styling ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-text-muted);
}

/* ── Announcement Bar ─────────────────────────────────────── */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--announcement-height);
    background-color: var(--clr-bg-announcement);
    color: var(--clr-text-announcement);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.announcement-bar__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1rem;
}

.announcement-bar__badge {
    background-color: var(--clr-accent);
    color: var(--clr-text-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Main Navigation ──────────────────────────────────────── */
.main-navbar {
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--nav-height);
    background-color: var(--clr-bg-nav);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    backdrop-filter: blur(10px);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo__icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--clr-accent), #6366f1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--clr-text-white);
}

.navbar-logo__text {
    font-weight: 700;
    font-size: 17px;
    color: var(--clr-text-primary);
    letter-spacing: -0.3px;
}

.navbar-logo__text span {
    color: var(--clr-accent);
}

.navbar-center-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link-item {
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    letter-spacing: 0.2px;
}

.nav-link-item:hover {
    color: var(--clr-text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link-item.active {
    color: var(--clr-accent);
    background-color: rgba(59, 130, 246, 0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-secondary);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 13px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--clr-accent);
    color: var(--clr-text-primary);
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-primary);
    border-radius: var(--radius-pill);
    padding: 5px 12px 5px 5px;
    font-size: 13px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-avatar-btn:hover {
    border-color: var(--clr-accent);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-text-white);
    flex-shrink: 0;
}

/* Dropdown */
.paxo-dropdown-menu {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    min-width: 180px;
    padding: 6px;
}

.paxo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-text-secondary);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.paxo-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-primary);
}

.paxo-dropdown-item.danger:hover {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

.paxo-dropdown-divider {
    height: 1px;
    background-color: var(--clr-border);
    margin: 4px 0;
}

/* ── Global Footer ────────────────────────────────────────── */
.global-footer {
    background-color: var(--clr-bg-nav);
    border-top: 1px solid var(--clr-border);
    padding: 20px;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 13px;
}

/* ── Page Layout Wrappers ─────────────────────────────────── */
.page-content {
    min-height: calc(100vh - var(--announcement-height) - var(--nav-height) - var(--footer-height));
    padding: 2rem 0;
}

.page-content-delivery {
    min-height: calc(100vh - var(--announcement-height) - var(--nav-height));
    padding-bottom: 80px;
    /* space for sticky action footer */
}

/* ── Cards ────────────────────────────────────────────────── */
.paxo-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-normal);
}

.paxo-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.paxo-card-alt {
    background-color: var(--clr-bg-card-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

/* Balance Card — large white-styled card */
.balance-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2a4a 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem 2rem 1.5rem;
    box-shadow: var(--shadow-card), var(--shadow-glow-blue);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.balance-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.balance-card__amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--clr-text-white);
    letter-spacing: -1px;
    line-height: 1.1;
}

.balance-card__currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 6px;
    vertical-align: super;
}

.balance-card__trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    font-size: 13px;
    color: var(--clr-green);
    font-weight: 500;
}

.balance-card__trend-line {
    height: 36px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.balance-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Metric Cards — Win/Lose */
.metric-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.metric-card.win-card {
    border-bottom: 3px solid var(--clr-green);
    box-shadow: var(--shadow-card), var(--shadow-glow-green);
}

.metric-card.lose-card {
    border-bottom: 3px solid var(--clr-red);
    box-shadow: var(--shadow-card), var(--shadow-glow-red);
}

.metric-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--clr-text-muted);
    margin-bottom: 0.6rem;
}

.metric-card__value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-text-white);
    letter-spacing: -0.5px;
}

.metric-card.win-card .metric-card__value {
    color: var(--clr-green);
}

.metric-card.lose-card .metric-card__value {
    color: var(--clr-red);
}

.metric-card__pct {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-top: 0.25rem;
}

.metric-card.win-card .metric-card__pct {
    background-color: var(--clr-green-light);
    color: var(--clr-green);
}

.metric-card.lose-card .metric-card__pct {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

.metric-card__icon {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.win-card .metric-card__icon {
    background-color: var(--clr-green-light);
    color: var(--clr-green);
}

.lose-card .metric-card__icon {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

.metric-card__wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 40px;
    opacity: 0.12;
}

/* ── Transaction List ─────────────────────────────────────── */
.tx-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--clr-border);
    transition: background-color var(--transition-fast);
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tx-icon.in {
    background-color: var(--clr-green-light);
    color: var(--clr-green);
}

.tx-icon.out {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

.tx-icon.pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--clr-gold);
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-order {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-bottom: 1px;
}

.tx-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-time {
    font-size: 11px;
    color: var(--clr-text-muted);
    margin-top: 1px;
}

.tx-amount {
    text-align: right;
    flex-shrink: 0;
}

.tx-amount__value {
    font-size: 14px;
    font-weight: 700;
}

.tx-amount__value.positive {
    color: var(--clr-green);
}

.tx-amount__value.negative {
    color: var(--clr-red);
}

.tx-amount__status {
    font-size: 11px;
    margin-top: 2px;
}

/* Status Badges */
.badge-paxo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-success {
    background-color: var(--clr-green-light);
    color: var(--clr-green);
}

.badge-danger {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--clr-gold);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--clr-accent);
}

.badge-win {
    background-color: var(--clr-green-light);
    color: var(--clr-green);
}

.badge-lose {
    background-color: var(--clr-red-light);
    color: var(--clr-red);
}

/* ── Form Controls (Dark Theme) ───────────────────────────── */
.paxo-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clr-text-muted);
    margin-bottom: 6px;
}

.paxo-input {
    width: 100%;
    background-color: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.paxo-input:focus {
    border-color: var(--clr-border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.paxo-input::placeholder {
    color: var(--clr-text-muted);
}

.paxo-input.is-invalid {
    border-color: var(--clr-red);
}

.paxo-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.paxo-textarea {
    resize: vertical;
    min-height: 90px;
}

.input-group-paxo {
    position: relative;
    display: flex;
}

.input-group-paxo .paxo-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-prefix {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 10px 14px;
    color: var(--clr-text-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-normal), background-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--clr-accent);
    background-color: rgba(59, 130, 246, 0.04);
}

.upload-area.dragover {
    border-color: var(--clr-accent);
    background-color: rgba(59, 130, 246, 0.08);
}

.upload-area__icon {
    font-size: 2.5rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-area__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-secondary);
}

.upload-area__hint {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 4px;
}

.upload-area__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Checkbox & Radio Custom */
.paxo-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--clr-text-secondary);
    user-select: none;
}

.paxo-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--clr-accent);
    cursor: pointer;
    border-radius: 4px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-paxo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.btn-paxo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent), #4f46e5);
    color: var(--clr-text-white);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-accent-hover), #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: var(--clr-text-white);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--clr-text-secondary);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--clr-green), #059669);
    color: var(--clr-text-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    color: var(--clr-text-white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--clr-red), #dc2626);
    color: var(--clr-text-white);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    color: var(--clr-text-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-secondary);
}

.btn-outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-sm {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    font-size: 16px;
    padding: 14px 28px;
}

.btn-full {
    width: 100%;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 13px;
    color: var(--clr-text-muted);
}

.section-divider {
    height: 1px;
    background-color: var(--clr-border);
    margin: 1.5rem 0;
}

/* ── Dashboard Greeting ───────────────────────────────────── */
.dashboard-greeting {
    margin-bottom: 1.5rem;
}

.dashboard-greeting__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-text-white);
    letter-spacing: -0.5px;
}

.dashboard-greeting__subtitle {
    font-size: 14px;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-outer {
    min-height: 100vh;
    background-color: var(--clr-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-outer::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    pointer-events: none;
}

.auth-outer::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.auth-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
}

.auth-card-wide {
    max-width: 860px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.auth-logo__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--clr-accent), #6366f1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--clr-text-white);
}

.auth-logo__text {
    font-weight: 800;
    font-size: 22px;
    color: var(--clr-text-primary);
}

.auth-logo__text span {
    color: var(--clr-accent);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 0.4rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--clr-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--clr-border);
}

.auth-divider__text {
    position: relative;
    background-color: var(--clr-bg-card);
    padding: 0 12px;
    font-size: 12px;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 13px;
    color: var(--clr-text-muted);
}

.auth-footer a {
    color: var(--clr-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.1rem;
}

/* Turnstile widget container */
.turnstile-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Password strength indicator */
.password-strength {
    margin-top: 6px;
    display: flex;
    gap: 4px;
}

.strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background-color: var(--clr-border);
    transition: background-color var(--transition-normal);
}

.strength-bar.weak {
    background-color: var(--clr-red);
}

.strength-bar.medium {
    background-color: var(--clr-gold);
}

.strength-bar.strong {
    background-color: var(--clr-green);
}

/* ── Wallet Page ──────────────────────────────────────────── */
.wallet-balance-card {
    background: linear-gradient(135deg, #0f2a48 0%, #142240 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::after {
    content: 'USDT';
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.18);
    color: var(--clr-accent);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
}

.wallet-balance-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.wallet-balance-card__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.wallet-balance-card__amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--clr-text-white);
}

.wallet-tabs .nav-link {
    color: var(--clr-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1.25rem;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border-radius: 0;
    transition: all var(--transition-fast);
}

.wallet-tabs .nav-link:hover {
    color: var(--clr-text-primary);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.wallet-tabs .nav-link.active {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
    background: transparent;
}

.policy-note {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 12px;
    color: var(--clr-gold);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.policy-note__icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Delivery / Trading Engine ────────────────────────────── */
.market-header {
    background-color: var(--clr-bg-nav);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.market-stat {
    flex-shrink: 0;
}

.market-stat__label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clr-text-muted);
    margin-bottom: 2px;
}

.market-stat__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.market-stat__value.up {
    color: var(--clr-green);
}

.market-stat__value.down {
    color: var(--clr-red);
}

.market-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.market-pair__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--clr-text-white);
    letter-spacing: -0.5px;
}

.market-pair__badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(59, 130, 246, 0.18);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.market-separator {
    width: 1px;
    height: 28px;
    background-color: var(--clr-border);
    flex-shrink: 0;
}

/* Chart container */
.chart-container {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    flex-direction: column;
    gap: 12px;
    color: var(--clr-text-muted);
}

.chart-placeholder__icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* Order Book */
.order-book {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-book__header {
    display: flex;
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--clr-border);
}

.order-book__header-cell {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clr-text-muted);
}

.order-book__header-cell.right {
    text-align: right;
}

.order-book-row {
    display: flex;
    align-items: center;
    padding: 5px 14px;
    position: relative;
    transition: background-color var(--transition-fast);
}

.order-book-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.order-book-row__depth {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.order-book-row.buy .order-book-row__depth {
    background: linear-gradient(to left, rgba(16, 185, 129, 0.12), transparent);
}

.order-book-row.sell .order-book-row__depth {
    background: linear-gradient(to left, rgba(239, 68, 68, 0.12), transparent);
}

.order-book-row__price {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.order-book-row.buy .order-book-row__price {
    color: var(--clr-green);
}

.order-book-row.sell .order-book-row__price {
    color: var(--clr-red);
}

.order-book-row__size {
    flex: 1;
    font-size: 12px;
    color: var(--clr-text-secondary);
    text-align: center;
}

.order-book-row__total {
    flex: 1;
    font-size: 12px;
    color: var(--clr-text-muted);
    text-align: right;
}

.order-book__spread {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-book__spread .spread-label {
    font-size: 11px;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Activity Tabs */
.activity-tabs .nav-link {
    color: var(--clr-text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1rem;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border-radius: 0;
    transition: all var(--transition-fast);
}

.activity-tabs .nav-link.active {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
    background: transparent;
}

/* Countdown timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-gold);
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

/* Trade card */
.trade-card {
    background-color: var(--clr-bg-card-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition-fast);
}

.trade-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* History Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--clr-text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--clr-border);
    text-align: left;
    background-color: var(--clr-bg-card-alt);
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--clr-text-secondary);
    vertical-align: middle;
}

.history-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--clr-text-primary);
}

/* Action Sticky Footer */
.action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--clr-bg-nav);
    border-top: 1px solid var(--clr-border);
    padding: 12px 1.5rem;
    display: flex;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.btn-buy-up {
    flex: 1;
    background: linear-gradient(135deg, var(--clr-green), #059669);
    color: var(--clr-text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
}

.btn-buy-up:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-buy-down {
    flex: 1;
    background: linear-gradient(135deg, var(--clr-red), #dc2626);
    color: var(--clr-text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
}

.btn-buy-down:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* ── Profile Page ─────────────────────────────────────────── */
.profile-sidebar {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-text-white);
    margin: 0 auto 1rem;
    border: 3px solid rgba(59, 130, 246, 0.3);
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.profile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-primary);
}

.profile-nav-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--clr-accent);
}

.profile-pane {
    display: none;
}

.profile-pane.active {
    display: block;
}

.readonly-field {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--clr-text-muted);
    cursor: not-allowed;
}

/* Bank card display */
.bank-card-item {
    background-color: var(--clr-bg-card-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color var(--transition-fast);
}

.bank-card-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.bank-card-item__icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.bank-card-item__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.bank-card-item__number {
    font-size: 12px;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

/* ── Alerts & Notices ─────────────────────────────────────── */
.alert-paxo {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.alert-paxo.info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.alert-paxo.success {
    background-color: var(--clr-green-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.alert-paxo.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.alert-paxo.danger {
    background-color: var(--clr-red-light);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* ── Page Section Utility ─────────────────────────────────── */
.card-header-paxo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-center-menu {
        display: none;
    }

    .balance-card__amount {
        font-size: 2rem;
    }

    .market-header {
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    .action-footer {
        padding: 10px 1rem;
    }

    .btn-buy-up,
    .btn-buy-down {
        font-size: 13px;
        padding: 12px 12px;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .main-navbar {
        padding: 0 1rem;
    }

    .navbar-logo__text {
        display: none;
    }

    .page-content {
        padding: 1.25rem 0;
    }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: var(--shadow-card), 0 -4px 20px rgba(16, 185, 129, 0.25);
    }

    50% {
        box-shadow: var(--shadow-card), 0 -4px 32px rgba(16, 185, 129, 0.5);
    }
}

@keyframes ticker {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.animate-fade-up {
    animation: fadeInUp var(--transition-slow) both;
}

.animate-delay-1 {
    animation-delay: 0.05s;
}

.animate-delay-2 {
    animation-delay: 0.10s;
}

.animate-delay-3 {
    animation-delay: 0.15s;
}

.animate-delay-4 {
    animation-delay: 0.20s;
}

.animate-delay-5 {
    animation-delay: 0.25s;
}

.win-card {
    animation: pulse-glow 3s ease-in-out infinite;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

/* ── Auth Refresh ─────────────────────────────────────────── */
.auth-shell {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(28, 74, 140, 0.14), transparent 30%),
        radial-gradient(circle at bottom center, rgba(55, 93, 163, 0.10), transparent 32%),
        linear-gradient(180deg, #050912 0%, #02060d 100%);
    overflow: hidden;
}

.auth-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-background__dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(119, 196, 236, 0.55);
    box-shadow: 0 0 20px rgba(119, 196, 236, 0.25);
}

.auth-background__dot--1 {
    top: 15%;
    left: 9%;
}

.auth-background__dot--2 {
    top: 44%;
    left: 30%;
}

.auth-background__dot--3 {
    top: 72%;
    left: 14%;
}

.auth-background__dot--4 {
    top: 28%;
    right: 13%;
}

.auth-background__dot--5 {
    top: 82%;
    right: 22%;
}

.auth-background__line {
    position: absolute;
    border-top: 1px solid rgba(44, 88, 136, 0.18);
    transform-origin: left center;
}

.auth-background__line--1 {
    top: 18%;
    left: 9%;
    width: 150px;
    transform: rotate(72deg);
}

.auth-background__line--2 {
    top: 49%;
    left: 30%;
    width: 130px;
    transform: rotate(12deg);
}

.auth-background__line--3 {
    top: 31%;
    right: 13%;
    width: 160px;
    transform: rotate(28deg);
}

.auth-language {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
}

.auth-language__button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: #fff;
    color: #1c2431;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-language__button:hover,
.auth-language__button:focus,
.auth-language__button.show {
    background-color: #fff;
    color: #1c2431;
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-language__button::after {
    margin-left: 0.3rem;
}

.auth-language__menu {
    border-radius: 12px;
    overflow: hidden;
}

.auth-outer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 2rem;
    position: relative;
    z-index: 1;
}

.auth-panel {
    width: 100%;
    max-width: 492px;
    background: linear-gradient(180deg, rgba(18, 25, 43, 0.98) 0%, rgba(15, 22, 39, 0.98) 100%);
    border: 1px solid rgba(120, 149, 204, 0.08);
    border-radius: 24px;
    padding: 2.2rem 2.2rem 2rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    position: relative;
}

.auth-panel::after {
    content: '';
    position: absolute;
    inset: auto 12% -26px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 72%);
    filter: blur(18px);
    pointer-events: none;
}

.auth-panel--wide {
    max-width: 732px;
    padding: 2rem 2.15rem 2rem;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.4rem;
    text-decoration: none;
}

.auth-brand__badge {
    width: min(100%, 188px);
    min-height: 106px;
    border-radius: 2px;
    background:
        linear-gradient(90deg, rgba(47, 110, 190, 0.45), rgba(47, 110, 190, 0.05)),
        #030507;
    color: rgba(226, 235, 247, 0.76);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(58, 85, 121, 0.2);
}

.auth-heading {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-title {
    font-size: clamp(2rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #f3f4f8;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.auth-subtitle {
    color: rgba(214, 219, 229, 0.62);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-label {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: rgba(234, 237, 244, 0.86);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-control {
    display: flex;
    align-items: center;
    position: relative;
}

.auth-control--prefix .auth-input {
    padding-left: 5.2rem;
}

.auth-input {
    width: 100%;
    min-height: 3.25rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 213, 233, 0.22);
    background-color: #202839;
    color: #f5f7fb;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    box-shadow: none;
}

.auth-input::placeholder {
    color: rgba(229, 233, 241, 0.7);
}

.auth-input:focus,
.auth-select:focus {
    background-color: #202839;
    color: #f5f7fb;
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow: 0 0 0 0.2rem rgba(164, 188, 237, 0.12);
}

.auth-input.is-invalid {
    border-color: rgba(255, 134, 134, 0.95);
}

.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23c9d3e9' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 8px;
    padding-right: 2.75rem;
}

.auth-select option {
    color: #111827;
}

.auth-prefix {
    position: absolute;
    left: 1.15rem;
    color: rgba(245, 247, 251, 0.92);
    font-size: 0.95rem;
    z-index: 1;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.55rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(214, 219, 229, 0.65);
    font-size: 0.95rem;
}

.auth-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #ffffff;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(229, 233, 241, 0.64);
}

.auth-submit {
    width: 100%;
    min-height: 3.5rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
    color: #18202d;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(198, 214, 250, 0.12);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #18202d;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.auth-error {
    margin-top: 0.45rem;
    color: #ff9d9d;
    font-size: 0.8rem;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 130, 130, 0.18);
    border-radius: 14px;
    background: rgba(124, 30, 30, 0.18);
    color: #ffd5d5;
}

.auth-alert--stacked {
    margin-bottom: 1.5rem;
}

.auth-alert__list {
    margin: 0.4rem 0 0;
    padding-left: 1rem;
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    margin-top: 1.45rem;
    font-size: 0.95rem;
    color: rgba(214, 219, 229, 0.65);
}

.auth-footer a {
    color: #f1f3f8;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 767.98px) {
    .auth-outer {
        padding-top: 5.25rem;
        align-items: flex-start;
    }

    .auth-panel,
    .auth-panel--wide {
        max-width: 100%;
        padding: 1.65rem 1.15rem 1.5rem;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 1.85rem;
    }

    .auth-language {
        top: 12px;
        right: 12px;
    }

    .auth-language__button {
        min-height: 34px;
        padding: 0.45rem 0.8rem;
        font-size: 0.88rem;
    }
}

/* ── App Shell Refresh ────────────────────────────────────── */
body.body-offset {
    background-color: #151b2a;
}

.announcement-bar {
    background-color: #f6f6f7;
    color: #2a3345;
    border-top: 3px solid #3d3d3d;
    font-size: 0.92rem;
    font-weight: 600;
}

.announcement-bar__text {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.announcement-bar__link {
    color: inherit;
    text-decoration: none;
}

.announcement-bar__link:hover {
    text-decoration: underline;
}

.announcement-bar__badge {
    display: none;
}

.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 0 2rem;
    box-shadow: 0 10px 28px rgba(14, 19, 33, 0.04);
}

.navbar-logo {
    gap: 0.9rem;
    min-width: 190px;
}

.navbar-logo__mark {
    width: 190px;
    height: 104px;
    background:
        linear-gradient(90deg, rgba(52, 110, 186, 0.45), rgba(52, 110, 186, 0.06)),
        #040507;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(70, 97, 143, 0.18);
}

.navbar-logo__glyph {
    color: rgba(94, 145, 221, 0.4);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.navbar-logo__text {
    display: none;
}

.navbar-center-menu {
    justify-content: flex-start;
    gap: 1rem;
    margin-left: 1rem;
}

.nav-link-item {
    color: #81889a;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 0.5rem;
    border-radius: 0;
    background: transparent;
}

.nav-link-item:hover {
    color: #242c3b;
    background: transparent;
}

.nav-link-item.active {
    color: #f4efe9;
    background: transparent;
}

.navbar-right {
    gap: 1rem;
}

.lang-btn,
.user-avatar-btn {
    gap: 0.65rem;
    border: 0;
    background: transparent;
    color: #171d29;
    padding: 0.45rem 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.lang-btn:hover,
.user-avatar-btn:hover {
    border-color: transparent;
    color: #171d29;
}

.lang-btn__chevron {
    font-size: 0.7rem;
}

.user-avatar {
    display: none;
}

.paxo-dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.paxo-dropdown-item {
    color: #334155;
}

.paxo-dropdown-item:hover {
    background-color: #f8fafc;
    color: #111827;
}

.page-content.dashboard-page {
    padding: 2rem 0 0;
    min-height: calc(100vh - var(--announcement-height) - var(--nav-height) - var(--footer-height));
}

.dashboard-shell {
    max-width: 1560px;
    padding: 0 2.2rem 2.5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #f3f4f8;
    letter-spacing: -0.04em;
}

.dashboard-balance-card {
    background: #f8f8fa;
    border-radius: 24px;
    padding: 1.65rem 1.55rem 1.35rem;
    margin-bottom: 2.15rem;
}

.dashboard-balance-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-balance-card__label {
    color: #5d6473;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.dashboard-balance-card__amount {
    color: #1a2130;
    font-size: clamp(2rem, 3vw, 3.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.dashboard-balance-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #d1d5db;
    color: #39404d;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-balance-card__chart {
    display: block;
    width: 100%;
    height: 150px;
    margin-top: 0.4rem;
}

.dashboard-stats {
    margin-bottom: 2.2rem;
}

.dashboard-stat-card {
    min-height: 224px;
    background: #171d2c;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 1.6rem 1.45rem 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard-stat-card__icon {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    color: #f5f5f5;
    font-size: 1.7rem;
}

.dashboard-stat-card--lose .dashboard-stat-card__icon {
    color: #ff4545;
}

.dashboard-stat-card__label {
    color: #8c95a8;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.dashboard-stat-card__value {
    color: #f5f7fb;
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-stat-card__meta {
    margin-top: 0.55rem;
    color: #cfd5de;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-stat-card--lose .dashboard-stat-card__meta {
    color: #ff4e4e;
}

.dashboard-stat-card__chart {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 96px;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.dashboard-section-heading__title {
    margin: 0;
    color: #f3f4f8;
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-section-heading__link {
    color: rgba(223, 227, 235, 0.58);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dashboard-transaction {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    background: #161c2b;
    box-shadow: 0 14px 30px rgba(6, 10, 18, 0.12);
}

.dashboard-transaction--featured {
    border: 2px solid rgba(202, 208, 219, 0.48);
    box-shadow: 0 14px 30px rgba(6, 10, 18, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dashboard-transaction__icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(125, 41, 52, 0.45);
    color: #ff5a58;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-transaction__content {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-transaction__title {
    color: #f4f5f9;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-transaction__time {
    margin-top: 0.25rem;
    color: #8f97a9;
    font-size: 0.95rem;
}

.dashboard-transaction__meta {
    flex: 0 0 auto;
    text-align: right;
    min-width: 150px;
}

.dashboard-transaction__amount {
    font-size: clamp(1.35rem, 1.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-transaction__amount.is-positive {
    color: #58d26c;
}

.dashboard-transaction__amount.is-negative {
    color: #ff574d;
}

.dashboard-transaction__status {
    margin-top: 0.25rem;
    color: #edf0f5;
    font-size: 0.95rem;
}

.dashboard-empty-state {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: #161c2b;
    text-align: center;
}

.dashboard-empty-state__title {
    color: #f3f4f8;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dashboard-empty-state__text {
    color: #97a0b3;
}

.global-footer {
    background: transparent;
    border-top: 0;
    padding: 3rem 1rem 2.5rem;
    color: rgba(223, 227, 235, 0.55);
    font-size: 1rem;
}

@media (max-width: 1199.98px) {
    .navbar-logo__mark {
        width: 132px;
        height: 72px;
    }

    .navbar-center-menu {
        gap: 0.45rem;
        margin-left: 0.75rem;
    }

    .dashboard-shell {
        padding: 0 1.25rem 2rem;
    }
}

@media (max-width: 991.98px) {
    .body-offset {
        padding-top: calc(var(--announcement-height) + 84px);
    }

    .main-navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .navbar-center-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .navbar-right {
        margin-left: auto;
    }

    .dashboard-transaction {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-transaction__meta {
        width: 100%;
        min-width: 0;
        text-align: left;
        padding-left: 4.8rem;
    }
}

@media (max-width: 767.98px) {
    .announcement-bar {
        font-size: 0.8rem;
    }

    .announcement-bar__text span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 3rem);
    }

    .navbar-logo__mark {
        width: 108px;
        height: 60px;
    }

    .lang-btn,
    .user-avatar-btn {
        font-size: 0.88rem;
    }

    .dashboard-header {
        margin-bottom: 1.35rem;
    }

    .dashboard-header__title {
        font-size: 1.8rem;
    }

    .dashboard-balance-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-balance-card__chart {
        height: 120px;
    }

    .dashboard-transaction {
        padding: 1.1rem 1rem;
        gap: 1rem;
    }

    .dashboard-transaction__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .dashboard-transaction__title {
        white-space: normal;
    }

    .dashboard-transaction__meta {
        padding-left: 0;
    }
}

/* ── Delivery Refresh ─────────────────────────────────────── */
.delivery-page {
    padding: 1.2rem 0 7rem;
}

.delivery-shell {
    max-width: 1560px;
    padding: 0 1.6rem;
}

.delivery-market-card,
.delivery-order-book-card,
.delivery-data-card {
    background: #171d2c;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(8, 12, 20, 0.16);
}

.delivery-market-card {
    padding: 1.35rem 1.35rem 1.5rem;
}

.delivery-market-toolbar {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.delivery-market-toolbar__filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.delivery-filter-chip {
    min-width: 114px;
    min-height: 3.1rem;
    border: 0;
    border-radius: 10px;
    background: #232b3b;
    color: #f2f4f8;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.delivery-filter-chip--active {
    min-width: 92px;
}

.delivery-asset-selector {
    margin: 0;
}

.delivery-asset-selector__input {
    min-width: 138px;
    min-height: 3.1rem;
    border: 0;
    border-radius: 10px;
    background: #232b3b;
    color: #f2f4f8;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    box-shadow: none;
}

.delivery-asset-selector__input:focus {
    outline: 2px solid rgba(79, 152, 255, 0.35);
    outline-offset: 0;
}

.delivery-market-toolbar__spot {
    color: #51cd60;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.delivery-market-toolbar__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    justify-self: end;
    width: min(100%, 690px);
}

.delivery-market-stat__label {
    color: #8f97a9;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.delivery-market-stat__value {
    color: #edf0f5;
    font-size: 0.95rem;
    font-weight: 700;
}

.delivery-market-stat__value--up {
    color: #56d06d;
}

.delivery-chart-card {
    border-radius: 18px;
    overflow: hidden;
}

.delivery-chart-surface {
    width: 100%;
    height: 355px;
    background: #171c28;
    border-radius: 18px;
}

.delivery-order-book-card {
    margin-top: 1.2rem;
    padding: 1.15rem 1.15rem 1rem;
}

.delivery-section-title {
    color: #f4f5f9;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.delivery-order-book {
    border-top: 1px solid rgba(138, 148, 170, 0.24);
    padding-top: 1rem;
}

.delivery-order-book__header {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.delivery-order-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.delivery-order-book__header {
    color: #8f97a9;
    font-size: 0.9rem;
    padding: 0 1rem 0.8rem;
}

.delivery-order-book__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.delivery-order-book__side {
    display: flex;
    flex-direction: column;
}

.delivery-order-row {
    position: relative;
    padding: 0.16rem 1rem;
    font-size: 0.95rem;
    overflow: hidden;
}

.delivery-order-row__depth {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 0;
}

.delivery-order-row>*:not(.delivery-order-row__depth) {
    position: relative;
    z-index: 1;
}

.delivery-order-row--buy .delivery-order-row__depth {
    left: 0;
    background: rgba(70, 134, 86, 0.34);
}

.delivery-order-row--sell .delivery-order-row__depth {
    right: 0;
    background: rgba(113, 56, 62, 0.4);
}

.delivery-order-row__price,
.delivery-order-row__size,
.delivery-order-row__sum {
    color: #c4c9d4;
}

.delivery-order-row--buy .delivery-order-row__price {
    color: #5bd171;
}

.delivery-order-row--sell .delivery-order-row__price {
    color: #f1746b;
}

.delivery-order-row__size {
    text-align: center;
}

.delivery-order-row__sum {
    text-align: right;
}

.delivery-depth-10 .delivery-order-row__depth {
    width: 10%;
}

.delivery-depth-20 .delivery-order-row__depth {
    width: 20%;
}

.delivery-depth-30 .delivery-order-row__depth {
    width: 30%;
}

.delivery-depth-40 .delivery-order-row__depth {
    width: 40%;
}

.delivery-depth-50 .delivery-order-row__depth {
    width: 50%;
}

.delivery-depth-60 .delivery-order-row__depth {
    width: 60%;
}

.delivery-depth-70 .delivery-order-row__depth {
    width: 70%;
}

.delivery-depth-80 .delivery-order-row__depth {
    width: 80%;
}

.delivery-depth-90 .delivery-order-row__depth {
    width: 90%;
}

.delivery-activity {
    margin-top: 1.7rem;
}

.delivery-tabs {
    border-bottom: 1px solid rgba(138, 148, 170, 0.16);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-tabs .nav-link {
    color: #8f97a9;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    border-radius: 0;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.delivery-tabs .nav-link.active {
    color: #f4f5f9;
    border-bottom-color: #ffffff;
    background: transparent;
}

.delivery-data-card {
    padding: 1.55rem 1.55rem 1.35rem;
    background: #252345;
}

.delivery-data-card__title {
    margin: 0 0 1rem;
    color: #f4f5f9;
    font-size: 1rem;
    font-weight: 700;
}

.delivery-contract-list,
.delivery-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-contract-item,
.delivery-history-row {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.15rem 1.1rem;
}

.delivery-contract-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.delivery-contract-item__pair {
    color: #f5f7fb;
    font-size: 1.05rem;
    font-weight: 800;
    margin-right: 0.6rem;
}

.delivery-direction-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.delivery-direction-pill.is-up {
    background: rgba(83, 199, 101, 0.18);
    color: #53c765;
}

.delivery-direction-pill.is-down {
    background: rgba(241, 68, 68, 0.18);
    color: #f14444;
}

.delivery-contract-item__order {
    color: #8f97a9;
    font-size: 0.95rem;
}

.delivery-result-badge {
    min-width: 90px;
    min-height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.delivery-result-badge.is-win {
    background: #2c9f4b;
}

.delivery-result-badge.is-lose {
    background: #f14444;
}

.delivery-contract-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin-top: 1rem;
}

.delivery-contract-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.delivery-contract-field__label,
.delivery-history-cell__label {
    color: #8f97a9;
    font-size: 0.92rem;
}

.delivery-contract-field__value,
.delivery-history-cell__value {
    color: #edf0f5;
    font-size: 0.95rem;
    font-weight: 700;
}

.delivery-contract-field__value.is-profit {
    color: #59d36e;
}

.delivery-contract-field__value.is-loss,
.delivery-history-cell__value.is-loss {
    color: #f1746b;
}

.delivery-countdown.is-ending {
    color: #f14444;
}

.delivery-history-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.delivery-history-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.delivery-history-cell--amount {
    text-align: left;
}

.delivery-empty-state {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f97a9;
    font-size: 1rem;
}

.delivery-order-modal .modal-dialog {
    max-width: 640px;
}

.delivery-order-modal__content {
    border: 0;
    border-radius: 28px;
    background: #252345;
    color: #f4f5f9;
    padding: 1.9rem 2rem 1.8rem;
    box-shadow: 0 24px 60px rgba(4, 8, 18, 0.35);
}

.delivery-order-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.delivery-order-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.delivery-order-modal__close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #aeb5c7;
    font-size: 1.3rem;
}

.delivery-order-modal__pair-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.delivery-order-modal__pair {
    color: #dfe4ee;
    font-size: 1.3rem;
    font-weight: 800;
}

.delivery-order-modal__direction {
    font-size: 1.15rem;
    font-weight: 800;
}

.delivery-order-modal__direction.is-up {
    color: #18e36d;
}

.delivery-order-modal__direction.is-down {
    color: #ff6660;
}

.delivery-order-modal__section {
    margin-bottom: 1.45rem;
}

.delivery-order-modal__section-title {
    color: #aeb5c7;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.delivery-order-modal__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.delivery-order-option {
    min-height: 116px;
    border: 0;
    border-radius: 14px;
    background: #45516a;
    color: #e8ebf1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-weight: 700;
}

.delivery-order-option.is-active {
    background: #2d63ed;
    box-shadow: inset 0 0 0 2px rgba(82, 153, 255, 0.55);
}

.delivery-order-option__seconds {
    font-size: 1.15rem;
}

.delivery-order-option__rate {
    font-size: 0.95rem;
}

.delivery-order-modal__balance {
    color: #8f97a9;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.delivery-order-modal__amount-wrap {
    position: relative;
}

.delivery-order-modal__amount-input {
    width: 100%;
    min-height: 3.3rem;
    border: 0;
    border-radius: 12px;
    background: #44516a;
    color: #f4f5f9;
    font-size: 1.05rem;
    padding: 0.9rem 5.8rem 0.9rem 0.9rem;
}

.delivery-order-modal__amount-input::placeholder {
    color: #c6ccda;
}

.delivery-order-modal__amount-suffix {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: #c5cbd8;
    font-size: 0.95rem;
    font-weight: 700;
}

.delivery-order-modal__percentages {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.delivery-order-modal__percentage {
    border: 0;
    background: transparent;
    color: #4f94ff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0;
}

.delivery-order-modal__submit {
    width: 100%;
    min-height: 4.25rem;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0.6rem;
}

.delivery-order-modal__submit.is-up {
    background: #1f874a;
}

.delivery-order-modal__submit.is-down {
    background: #a03043;
}

.delivery-order-modal__error {
    margin-top: 0.45rem;
    color: #ff9d9d;
    font-size: 0.84rem;
}

.delivery-order-summary {
    border-radius: 12px;
    background: rgba(68, 81, 106, 0.28);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.delivery-order-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.14rem 0;
}

.delivery-order-summary__label {
    color: #9da5b7;
    font-size: 0.88rem;
}

.delivery-order-summary__value {
    color: #f4f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.delivery-order-summary__value.is-up {
    color: #18e36d;
}

.delivery-order-summary__value.is-down {
    color: #ff6660;
}

.delivery-action-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(18, 24, 37, 0.94);
    border-top: 1px solid rgba(138, 148, 170, 0.12);
    backdrop-filter: blur(10px);
}

.delivery-action-footer__form {
    flex: 1;
}

.delivery-action-button {
    width: 100%;
    min-height: 3.25rem;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.delivery-action-button--up {
    background: #53c765;
}

.delivery-action-button--down {
    background: #f14444;
}

@media (max-width: 1199.98px) {
    .delivery-market-toolbar {
        grid-template-columns: 1fr;
    }

    .delivery-market-toolbar__stats {
        justify-self: start;
        width: 100%;
    }

    .delivery-contract-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .delivery-order-book__body,
    .delivery-history-row {
        grid-template-columns: 1fr;
    }

    .delivery-order-book__header {
        display: none;
    }

    .delivery-order-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .delivery-market-toolbar__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .delivery-shell {
        padding: 0 1rem;
    }

    .delivery-page {
        padding-bottom: 7.5rem;
    }

    .delivery-market-card,
    .delivery-order-book-card,
    .delivery-data-card {
        border-radius: 18px;
    }

    .delivery-market-toolbar__filters {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .delivery-market-toolbar__filters>form {
        width: 100%;
        min-width: 0;
    }

    .delivery-market-toolbar__filters>form .delivery-asset-selector__input {
        width: 100%;
        min-width: 0;
    }

    .delivery-filter-chip {
        min-width: 88px;
        min-height: 2.8rem;
        font-size: 0.95rem;
    }

    .delivery-market-toolbar__stats,
    .delivery-contract-grid,
    .delivery-history-row {
        grid-template-columns: 1fr;
    }

    .delivery-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .delivery-tabs .nav-link {
        white-space: nowrap;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .delivery-action-footer {
        padding: 0.7rem 1rem;
        gap: 0.75rem;
        bottom: 74px;
        /* tab bar 72px + 28px gap above raised Trade button */
    }

    .delivery-action-button {
        min-height: 3rem;
        font-size: 0.95rem;
    }

    .delivery-order-modal__content {
        padding: 1.35rem 1rem 1.2rem;
    }

    .delivery-order-modal__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Extra bottom padding: action footer + gap above tab bar */
    .page-content-delivery {
        padding-bottom: 190px;
    }
}
/* ── User Rank Badge ──────────────────────────────────────── */
.user-rank-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
}
.user-rank-badge--classic  { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.user-rank-badge--silver   { background: rgba(192,192,192,0.15); color: #c0c0c0; border: 1px solid rgba(192,192,192,0.4); }
.user-rank-badge--gold     { background: rgba(234,179,8,0.15);   color: #eab308; border: 1px solid rgba(234,179,8,0.4); }
.user-rank-badge--platinum { background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.4); }
.user-rank-badge--vip      { background: rgba(168,85,247,0.15);  color: #a855f7; border: 1px solid rgba(168,85,247,0.4); }
.user-rank-badge--vvip     { background: rgba(239,68,68,0.15);   color: #ef4444; border: 1px solid rgba(239,68,68,0.4); }
