/* ============================================================
   GoldenAura Casino — Cashier Page Styles
   Uses clean.css CSS variables as the single source of truth.
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   PAGE SHELL
───────────────────────────────────────────────────────────── */
.cashier-page {
    padding-top: calc(var(--header-h) + var(--ticker-h) + 20px);
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Flash messages */
.cashier-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}
.cashier-flash-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--accent);
}
.cashier-flash-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* ─────────────────────────────────────────────────────────────
   WALLET HERO CARD
───────────────────────────────────────────────────────────── */
.cashier-wallet-section {
    margin-bottom: 0;
}
.wallet-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background:
        linear-gradient(168deg,
            rgba(26, 35, 50, 0.95) 0%,
            rgba(18, 24, 33, 0.98) 40%,
            rgba(12, 18, 26, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.03) inset,
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 1px 3px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* Top highlight edge — mimics card bevel */
.wallet-hero-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(34, 197, 94, 0.35) 50%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent 95%);
    z-index: 2;
}
/* Ambient glow orb — bottom right */
.wallet-hero-card::after {
    content: "";
    position: absolute;
    bottom: -60px; right: -40px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.wallet-hero-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}
.wallet-hero-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.wallet-hero-amount {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.wallet-hero-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-weight: 500;
}
.wallet-hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.wallet-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}
.wallet-action-deposit {
    background: linear-gradient(135deg, var(--accent) 0%, #1dd3b0 100%);
    color: #0a0a0a;
    box-shadow:
        0 4px 18px var(--accent-glow),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.wallet-action-deposit:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #17b89a 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px var(--accent-glow),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.wallet-action-deposit:active { transform: translateY(0); }
.wallet-action-withdraw {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.wallet-action-withdraw:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.wallet-action-withdraw:active { transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   TAB NAVIGATION
───────────────────────────────────────────────────────────── */
.cashier-nav-section {
    margin: 24px 0;
}
.cashier-nav-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 5px;
    width: fit-content;
}
.cashier-nav-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
    white-space: nowrap;
}
.cashier-nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.cashier-nav-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ─────────────────────────────────────────────────────────────
   PANELS
───────────────────────────────────────────────────────────── */
.cashier-panels-wrapper {
    position: relative;
}
.cashier-panel {
    display: none;
    animation: cashierFadeIn 0.28s var(--ease);
}
.cashier-panel.active {
    display: block;
}
@keyframes cashierFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cashier-panel-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   SEGMENT CONTROL (Crypto / Fiat)
───────────────────────────────────────────────────────────── */
.segment-row {
    margin-bottom: 24px;
}
.segment-control {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}
.segment-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
}
.segment-btn.active {
    background: var(--bg-elevated);
    color: var(--accent);
    border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────
   DEPOSIT / WITHDRAW SECTIONS
───────────────────────────────────────────────────────────── */
.deposit-section { display: none; }
.deposit-section.active { display: block; }
.withdraw-section { display: none; }
.withdraw-section.active { display: block; animation: cashierFadeIn 0.25s var(--ease); }

.deposit-step { animation: cashierFadeIn 0.25s var(--ease); }

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
}

/* ─────────────────────────────────────────────────────────────
   METHOD CARDS GRID
───────────────────────────────────────────────────────────── */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
    text-align: center;
}
.method-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.method-card.active {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 8px 24px rgba(34, 197, 94, 0.12);
}
.method-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}
.mi-btc  { background: rgba(247, 147, 26, 0.15); color: #f7931a; }
.mi-eth  { background: rgba(98, 126, 234, 0.15); color: #627eea; }
.mi-usdt { background: rgba(38, 161, 123, 0.15); color: #26a17b; }
.mi-ltc  { background: rgba(190, 190, 190, 0.12); color: #bebebe; }
.mi-trx  { background: rgba(235, 0, 25, 0.12); color: #eb0019; font-size: 0.7rem; font-weight: 900; }
.mi-fiat { background: var(--accent-subtle); color: var(--accent); }

.method-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}
.method-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2px 8px;
}

/* ─────────────────────────────────────────────────────────────
   STEP BACK / CHIP
───────────────────────────────────────────────────────────── */
.step-back-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.step-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.step-back-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}
.selected-method-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   FORM CARDS
───────────────────────────────────────────────────────────── */
.deposit-form-card,
.withdraw-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.label-icon { width: 14px; height: 14px; opacity: 0.7; }

.amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.amount-prefix {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}
.amount-input-wrap input {
    padding-left: 30px !important;
}

.form-group input,
.form-group select,
.form-group textarea,
.cashier-select,
.wallet-address-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.cashier-select:focus,
.wallet-address-input:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.wallet-address-input::placeholder {
    color: rgba(248, 248, 248, 0.25);
}

.cashier-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(248,248,248,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}
.cashier-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────
   QUICK AMOUNT BUTTONS
───────────────────────────────────────────────────────────── */
.quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.quick-btn {
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.quick-btn:hover,
.quick-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
}

/* ─────────────────────────────────────────────────────────────
   ESTIMATE BOX
───────────────────────────────────────────────────────────── */
.estimate-box {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.estimate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.estimate-row strong {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}
.estimate-note {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* ─────────────────────────────────────────────────────────────
   PRIMARY SUBMIT BUTTON
───────────────────────────────────────────────────────────── */
.cashier-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}
.cashier-submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.cashier-submit-btn:active { transform: translateY(0); }
.cashier-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
.cashier-submit-btn.loading {
    pointer-events: none;
    opacity: 0.75;
}
.cashier-submit-btn.loading::after {
    content: "";
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    border: 2px solid rgba(10, 10, 10, 0.4);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ─────────────────────────────────────────────────────────────
   FORM MESSAGE
───────────────────────────────────────────────────────────── */
.form-message {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0;
    display: none;
}
.form-message.show { display: block; padding: 10px 14px; }
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--accent);
}
.form-message.info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

/* ─────────────────────────────────────────────────────────────
   PAYMENT ADDRESS CARD (Step 3)
───────────────────────────────────────────────────────────── */
.payment-address-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Status bar */
.payment-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-waiting {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    animation: pulse 1.8s ease-in-out infinite;
}
.status-confirmed {
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.status-failed {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.status-refresh-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.status-refresh-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Amount display */
.payment-amount-display {
    text-align: center;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}
.pa-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pa-crypto-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.pa-currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}
.pa-fiat-equivalent {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* QR code */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}
.qr-image {
    width: 180px; height: 180px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    display: block;
}
.qr-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 0;
}

/* Address display */
.address-container {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.address-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.address-text {
    flex: 1;
    font-size: 0.82rem;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
}
.copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.copy-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}
.copy-btn.copied {
    background: rgba(34, 197, 94, 0.25);
    border-color: var(--accent);
}
.address-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: #fbbf24;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Expiry */
.expiry-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.expiry-row strong { color: #fbbf24; }

/* Payment confirmed */
.payment-confirmed-box {
    text-align: center;
    padding: 36px 24px;
    animation: cashierFadeIn 0.4s var(--ease);
}
.confirmed-icon {
    color: var(--accent);
    margin-bottom: 12px;
}
.icon-32 { width: 32px; height: 32px; }
.payment-confirmed-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.payment-confirmed-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 20px;
}
.payment-confirmed-box .btn-primary {
    display: inline-flex;
    padding: 12px 32px;
}

/* ─────────────────────────────────────────────────────────────
   SPACEREMIT CONTAINER
───────────────────────────────────────────────────────────── */
.spaceremit-shell {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}
.spaceremit-methods-container {
    min-height: 60px;
}
.spaceremit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-process-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

/* ─────────────────────────────────────────────────────────────
   WITHDRAW TAB
───────────────────────────────────────────────────────────── */
.withdraw-balance-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.wbc-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wbc-icon {
    color: var(--accent);
    flex-shrink: 0;
}
.wbc-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.wbc-amount {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Withdraw summary */
.withdraw-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.ws-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
}
.ws-row strong { color: var(--text-primary); font-weight: 700; }
.ws-total {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}
.ws-total strong { color: var(--accent); font-size: 1rem; }

/* ─────────────────────────────────────────────────────────────
   TRANSACTIONS TAB
───────────────────────────────────────────────────────────── */
.txn-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.txn-filter-btn {
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.txn-filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}
.txn-filter-btn.active {
    background: var(--accent-subtle);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--accent);
}

.cashier-txn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.txn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Transaction row */
.cashier-txn-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.18s var(--ease);
}
.cashier-txn-row:hover { border-color: rgba(255, 255, 255, 0.14); }

.txn-type-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.txn-type-icon.deposit-icon { background: var(--accent-subtle); color: var(--accent); }
.txn-type-icon.withdrawal-icon { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.txn-main-info { flex: 1; min-width: 0; }
.txn-type-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.txn-type-label.deposit { background: var(--accent-subtle); color: var(--accent); }
.txn-type-label.withdrawal { background: rgba(239, 68, 68, 0.1); color: #f87171; }

.txn-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.txn-currency-badge {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount-val { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.txn-amount-val.deposit { color: var(--accent); }
.txn-amount-val.withdrawal { color: #f87171; }

.txn-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
}
.txn-status-badge.pending   { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.txn-status-badge.completed { background: var(--accent-subtle); color: var(--accent); }
.txn-status-badge.failed    { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.txn-status-badge.partial   { background: rgba(251, 146, 60, 0.12); color: #fb923c; }

.txn-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
}
.txn-empty-icon { width: 48px; height: 48px; margin: 0 auto 14px; opacity: 0.3; }
.txn-empty p { font-size: 0.9rem; margin: 0; }

/* Pagination */
.txn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.txn-page-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.txn-page-btn:hover:not(:disabled) { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.txn-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.txn-page-info { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* Tx Hash chip */
.txn-tx-hash {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: rgba(139, 92, 246, 0.9);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: "Courier New", Courier, monospace;
    cursor: default;
    transition: background 0.15s, border-color 0.15s;
}
.txn-tx-hash:hover { background: rgba(139, 92, 246, 0.18); border-color: rgba(139, 92, 246, 0.4); }

/* ─────────────────────────────────────────────────────────────
   PROFILE TAB
───────────────────────────────────────────────────────────── */
.profile-card-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.profile-identity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.profile-avatar-circle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #0a0a0a;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.profile-identity-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.profile-identity-email {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}
.profile-stat {
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.profile-stat:last-child { border-right: none; }
.ps-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.ps-value { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.ps-active { color: var(--accent); }

.profile-form-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.profile-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px;
}
.profile-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 12px;
}
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.18s var(--ease);
    text-decoration: none;
}
.profile-link:hover { color: var(--text-primary); }
.profile-link-danger:hover { color: #f87171; }

/* ─────────────────────────────────────────────────────────────
   WITHDRAWAL CONFIRMATION MODAL
───────────────────────────────────────────────────────────── */
.cashier-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cashierFadeIn 0.22s var(--ease);
}
.cashier-modal-box {
    background: var(--bg-secondary);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
}
.cashier-modal-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
}
.cashier-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.cashier-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.cashier-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}
.cashier-modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.cashier-modal-body { padding: 20px 24px; }
.modal-intro-text { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 16px; }

.confirm-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}
.confirm-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    background: var(--bg-card);
}
.cd-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.cd-value { font-size: 0.87rem; color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-all; }
.cd-wallet { font-family: "SFMono-Regular", "Consolas", monospace; font-size: 0.76rem; max-width: 200px; }

.confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 12px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: #fbbf24;
    line-height: 1.45;
}
.cashier-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--border);
}
.cashier-modal-footer .btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font);
}
.cashier-modal-footer .btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 22px var(--accent-glow);
    transform: translateY(-1px);
}
.cashier-modal-footer .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost {
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: var(--font);
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }

/* ─────────────────────────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────────────────────────── */
.cashier-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
}
.cashier-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius-full);
    background: rgba(18, 24, 33, 0.97);
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    backdrop-filter: blur(10px);
}
.toast-icon { color: var(--accent); flex-shrink: 0; }
.toast-inner.toast-error { border-color: rgba(239, 68, 68, 0.35); }
.toast-inner.toast-error .toast-icon { color: #f87171; }

/* ─────────────────────────────────────────────────────────────
   POLLING TIMEOUT BOX
───────────────────────────────────────────────────────────── */
.polling-timeout-box {
    margin: 12px 0 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.06);
    overflow: hidden;
}
.ptb-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}
.ptb-icon { flex-shrink: 0; color: #fbbf24; margin-top: 2px; }
.ptb-text { flex: 1; min-width: 0; }
.ptb-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: #f0c040; margin-bottom: 3px; }
.ptb-text span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); line-height: 1.45; }
.btn-manual-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
    margin-top: 2px;
}
.btn-manual-refresh:hover { background: rgba(251, 191, 36, 0.22); border-color: rgba(251, 191, 36, 0.75); transform: translateY(-1px); }
.btn-manual-refresh:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ─────────────────────────────────────────────────────────────
   WITHDRAWAL SUCCESS CARD
───────────────────────────────────────────────────────────── */
.withdrawal-success-card {
    margin: 0;
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}
.wsc-icon-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.wsc-icon { color: #10b981; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45)); }
.icon-40 { width: 40px; height: 40px; }
.wsc-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.wsc-subtitle { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.5; }
.wsc-details {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
    text-align: left;
}
.wsc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}
.wsc-row:last-child { border-bottom: none; }
.wsc-label { font-size: 0.8rem; color: var(--text-muted); }
.wsc-value { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.wsc-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   FIAT CONTACT BOX
───────────────────────────────────────────────────────────── */
.fiat-contact-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.fiat-contact-box .icon-24 { width: 40px; height: 40px; flex-shrink: 0; color: var(--accent); }
.fiat-contact-box div { flex: 1; min-width: 180px; }
.fiat-contact-box strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fiat-contact-box p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.fiat-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
}
.fiat-contact-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 22px var(--accent-glow); }

/* ─────────────────────────────────────────────────────────────
   CUSTOM SELECT COMPONENT
───────────────────────────────────────────────────────────── */
.custom-select {
    position: relative;
}
.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    cursor: pointer;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
    text-align: left;
}
.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.14);
}
.custom-select.open .custom-select-trigger {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.cs-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-select-trigger[data-empty="true"] .cs-trigger-text {
    color: rgba(248, 248, 248, 0.25);
}
.cs-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s var(--ease);
}
.custom-select.open .cs-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 500;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: csDropIn 0.18s var(--ease);
    max-height: 320px;
    overflow-y: auto;
}
.custom-select.open .custom-select-dropdown {
    display: block;
}
@keyframes csDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search inside dropdown */
.cs-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.cs-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font);
}
.cs-search-input::placeholder { color: var(--text-dim); }

/* Option items */
.cs-options {
    padding: 4px;
}
.cs-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.12s var(--ease);
    text-align: left;
}
.cs-option:hover {
    background: rgba(255, 255, 255, 0.06);
}
.cs-option.selected {
    background: var(--accent-subtle);
    color: var(--accent);
}
.cs-option.hidden { display: none; }
.cs-opt-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.mi-doge { background: rgba(196, 161, 38, 0.15); color: #c4a126; }
.fw-method-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.cs-opt-label { flex: 1; font-weight: 500; }
.cs-opt-check {
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.12s;
    flex-shrink: 0;
}
.cs-option.selected .cs-opt-check { opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   FIAT WITHDRAW — DYNAMIC FIELDS
───────────────────────────────────────────────────────────── */
.fw-dynamic-fields {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    animation: cashierFadeIn 0.25s var(--ease);
}
.fw-fields-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.fw-fields-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fw-field-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 6px 0 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.fw-field-group-label:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.fw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fw-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.fw-field input,
.fw-field textarea,
.fw-field select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.fw-field input:focus,
.fw-field textarea:focus,
.fw-field select:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.fw-field input::placeholder,
.fw-field textarea::placeholder {
    color: rgba(248, 248, 248, 0.2);
}
.fw-field .fw-field-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
}
/* Two-column grid for banking forms on desktop */
.fw-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.fw-fields-grid .fw-field-full { grid-column: 1 / -1; }

/* ─────────────────────────────────────────────────────────────
   FIAT WITHDRAW — INFO NOTE
───────────────────────────────────────────────────────────── */
.fw-info-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    animation: cashierFadeIn 0.25s var(--ease);
}
.fw-info-icon {
    color: #60a5fa;
    flex-shrink: 0;
    margin-top: 1px;
}
.fw-info-note p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   FIAT WITHDRAW — PAYOUT SUMMARY
───────────────────────────────────────────────────────────── */
.fw-payout-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    animation: cashierFadeIn 0.25s var(--ease);
}
.fw-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.fw-summary-rows {
    padding: 4px 0;
}
.fw-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.fw-summary-row strong {
    color: var(--text-primary);
    font-weight: 600;
}
.fw-summary-highlight {
    border-top: 1px solid var(--border);
    margin-top: 2px;
    padding-top: 10px;
}
.fw-summary-highlight strong {
    color: var(--accent);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   UTILITY OVERRIDES
───────────────────────────────────────────────────────────── */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cashier-page {
        padding-top: calc(var(--header-h) + var(--ticker-h) + 10px);
        padding-bottom: 60px;
    }
    .wallet-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
    }
    .wallet-hero-amount { font-size: 2rem; }
    .wallet-hero-actions { width: 100%; }
    .wallet-action-btn { flex: 1; justify-content: center; }

    .cashier-nav-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        gap: 4px;
        padding: 4px;
    }
    .cashier-nav-tab {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.8rem;
    }
    .cashier-nav-tab span { display: none; }

    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .deposit-form-card, .withdraw-form-card { padding: 20px; }

    .profile-stats-row { grid-template-columns: 1fr; }
    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
    }
    .profile-stat:last-child { border-bottom: none; }
    .ps-label { margin-bottom: 0; }

    .cashier-txn-row { flex-wrap: wrap; gap: 10px; }
    .txn-right {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .fiat-contact-box { flex-direction: column; text-align: center; }
    .fiat-contact-box .icon-24 { margin: 0 auto; }
    .fiat-contact-btn { width: 100%; justify-content: center; }

    .fw-fields-grid { grid-template-columns: 1fr; }
    .fw-fields-grid .fw-field-full { grid-column: auto; }

    .cashier-modal-footer { flex-direction: column; }
    .cashier-modal-footer .btn-primary,
    .cashier-modal-footer .btn-ghost { width: 100%; }

    .ptb-inner { flex-wrap: wrap; }
    .btn-manual-refresh { width: 100%; justify-content: center; margin-top: 6px; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wallet-hero-amount { font-size: 1.7rem; }
    .method-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .method-icon { width: 40px; height: 40px; }
    .method-name { font-size: 0.75rem; }
    .method-card { padding: 14px 8px 12px; }
    .quick-btn { padding: 7px 12px; font-size: 0.78rem; }
    .qr-image { width: 150px; height: 150px; }
    .pa-crypto-amount { font-size: 1.5rem; }
    .cashier-modal-box { margin: 10px; max-width: 100%; }
    .profile-form-section { padding: 16px; }
    .profile-links-row { padding: 14px 16px; }
    .fiat-methods-grid { grid-template-columns: 1fr !important; }
    .fiat-method-card { flex-direction: row; padding: 12px; }
}

/* ============================================================
   CUSTOM FIAT GATEWAY
   ============================================================ */
.crypto-recommend-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md, 10px);
    font-size: 0.82rem;
    color: var(--text-secondary, #a1a1aa);
    margin-bottom: 16px;
    line-height: 1.4;
}
.crypto-recommend-note i { color: var(--accent, #22c55e); flex-shrink: 0; }
.crypto-recommend-note strong { color: var(--accent, #22c55e); }

/* Category Tabs */
.fiat-category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fiat-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-full, 50px);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #71717a);
    cursor: pointer;
    transition: all 0.2s ease;
}
.fiat-cat-tab:hover {
    border-color: rgba(255,255,255,0.12);
    color: var(--text-primary, #fff);
}
.fiat-cat-tab.active {
    background: var(--accent-subtle, rgba(34,197,94,0.1));
    border-color: var(--border-accent, rgba(34,197,94,0.3));
    color: var(--accent, #22c55e);
}
.fiat-cat-icon { font-size: 0.9rem; }

/* Methods Grid */
.fiat-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 768px) {
    .fiat-methods-grid { grid-template-columns: repeat(2, 1fr); }
}
.fiat-methods-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-muted, #71717a);
    font-size: 0.85rem;
}
.fiat-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-md, 10px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.fiat-method-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: var(--bg-elevated, #1e1e36);
    transform: translateY(-2px);
}
.fiat-method-card.selected {
    border-color: var(--accent, #22c55e);
    background: rgba(34,197,94,0.06);
    box-shadow: 0 0 12px rgba(34,197,94,0.15);
}
.fiat-method-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    line-height: 1.2;
}
.fiat-method-fee {
    font-size: 0.7rem;
    color: var(--text-muted, #71717a);
}
.fiat-method-fee.free {
    color: var(--accent, #22c55e);
    font-weight: 600;
}

/* Step 2: Order Summary */
.fiat-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-sm, 6px);
    color: var(--text-muted, #71717a);
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}
.fiat-back-btn:hover {
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary, #fff);
}

.fiat-order-summary {
    background: var(--bg-elevated, #1e1e36);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-md, 10px);
    padding: 20px;
    margin-bottom: 20px;
}
.fiat-order-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}
.fiat-order-amounts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.fiat-amt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary, #a1a1aa);
}
.fiat-amt-row strong { color: var(--text-primary, #fff); }
.fiat-amt-total {
    font-size: 0.95rem;
    padding-top: 6px;
}
.fiat-amt-total strong {
    color: var(--accent, #22c55e);
    font-size: 1.05rem;
}

/* Payment Details */
.fiat-payment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.fiat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-sm, 6px);
}
.fiat-detail-label {
    font-size: 0.78rem;
    color: var(--text-muted, #71717a);
    white-space: nowrap;
}
.fiat-detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent, #22c55e);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fiat-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 4px;
    color: var(--text-muted, #71717a);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.fiat-copy-btn:hover {
    background: rgba(34,197,94,0.1);
    border-color: var(--accent, #22c55e);
    color: var(--accent, #22c55e);
}
.fiat-instructions {
    font-size: 0.82rem;
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.5;
    padding: 10px;
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-radius: var(--radius-sm, 6px);
}

/* File Upload */
.fiat-file-upload {
    border: 2px dashed var(--border, rgba(255,255,255,0.1));
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.fiat-file-upload:hover, .fiat-file-upload.dragover {
    border-color: var(--accent, #22c55e);
}
.fiat-file-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    color: var(--text-muted, #71717a);
    font-size: 0.85rem;
}
.fiat-file-placeholder small {
    font-size: 0.72rem;
    opacity: 0.6;
}
.fiat-file-preview {
    position: relative;
    padding: 8px;
}
.fiat-file-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm, 6px);
}
.fiat-file-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}
.fiat-file-remove:hover { background: #ef4444; }

/* Confirm Form */
.fiat-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fiat-confirm-form .form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-sm, 6px);
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.fiat-confirm-form .form-input:focus {
    border-color: var(--accent, #22c55e);
}
#fiatConfirmBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
