/* ==========================================================================
   DRAGON PAY - PREMIUM FINTECH DESIGN SYSTEM
   Brand Direction: Premium Fintech + Modern Banking + Elegant Digital Wallet
   ========================================================================== */

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

:root {
    /* Brand Color Palette */
    --primary: #37000C;                 /* Deep Dragon Burgundy */
    --primary-rgb: 55, 0, 12;
    --primary-hover: #4F0213;
    --secondary: #65091B;               /* Rich Burgundy */
    --secondary-rgb: 101, 9, 27;
    --accent: #E91E43;                  /* Dragon Red */
    --accent-rgb: 233, 30, 67;
    --accent-hover: #D01538;
    --accent-light: #FFF1F3;
    --accent-border: #FECDD6;
    --gold: #F5B82E;                    /* Warm Amber / Gold */
    --gold-dark: #D97706;
    --gold-light: #FEF8E7;
    --gold-border: #FDE68A;

    /* Semantic States */
    --success: #08AD7B;                 /* Emerald Green */
    --success-hover: #069469;
    --success-light: #E6F7F2;
    --success-border: #A3E5D0;
    --warning: #F5B82E;                 /* Warm Amber */
    --warning-light: #FEF8E7;
    --warning-border: #FCDFA0;
    --danger: #E91E43;
    --danger-light: #FFF1F3;
    --danger-border: #FECDD6;
    --info: #0284C7;
    --info-light: #E0F2FE;
    --info-border: #BAE6FD;

    /* Backgrounds & Neutrals */
    --bg-body: #F7F8FC;                 /* Soft White Body */
    --bg-card: #FFFFFF;                 /* Pure White Card */
    --bg-subtle: #F1F4F9;
    --bg-muted: #E2E8F0;
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);

    /* Text & Borders */
    --text-primary: #0F172A;            /* Dark Navy / Charcoal */
    --text-secondary: #64748B;          /* Muted Slate */
    --text-muted: #94A3B8;
    --border: #E2E8F0;                  /* Thin Elegant Border */
    --border-light: #F1F5F9;
    --border-focus: #E91E43;

    /* Layout Dimensions */
    --max-viewport-width: 480px;
    --bottom-nav-height: 70px;
    --header-height: 60px;

    /* Consistent Border Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Soft Subtle Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.09);

    /* Transitions */
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

/* Headings use Manrope / Sora for a distinct fintech brand feel */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Manrope', 'Sora', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

/* Accessible focus visible states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVE APP CONTAINER / VIEWPORT
   Centered elevated container on desktop, 100% full-bleed on mobile
   ========================================================================== */

.app-viewport,
.dragon-home-viewport,
.wd-page,
.crypto-terminal-page,
.dp-viewport {
    width: 100%;
    max-width: var(--max-viewport-width);
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    margin: 0 auto;
}

@media (min-width: 520px) {
    body {
        background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
        padding: 20px 0;
    }
    .app-viewport,
    .dragon-home-viewport,
    .wd-page,
    .crypto-terminal-page,
    .dp-viewport {
        border-radius: var(--radius-xl);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.8);
    }
}

/* ==========================================================================
   TOPBAR & HEADER COMPONENTS
   Deep Burgundy (#37000C) + Subtle Crimson (#65091B) with Gold accents
   ========================================================================== */

.app-header,
.dragon-header,
.dp-header {
    background: linear-gradient(180deg, #37000C 0%, #200005 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(245, 184, 46, 0.18);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-logo-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #110002;
    border: 1.5px solid var(--gold);
    box-shadow: 0 2px 8px rgba(245, 184, 46, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.dp-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dp-brand-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dp-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    font-family: 'Manrope', sans-serif;
}

.dp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(8, 173, 123, 0.16);
    color: #34D399;
    border: 1px solid rgba(8, 173, 123, 0.35);
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dotPulse 1.8s infinite;
    display: inline-block;
}

@keyframes dotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-header-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.dp-header-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.dp-header-btn.gold {
    background: linear-gradient(135deg, #FDE047 0%, #D97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #451A03;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.dp-balance-chip {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 184, 46, 0.35);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.dp-balance-chip-lbl {
    font-size: 8px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.dp-balance-chip-val {
    font-size: 12px;
    font-weight: 900;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
}

/* Standard Back Button */
.back-btn, .dp-back-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.back-btn:hover, .dp-back-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

.app-content, .dp-content {
    padding: 16px;
    flex: 1;
}

.dp-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.dp-card:hover {
    box-shadow: var(--shadow-md);
}

/* Deep Burgundy Hero Card (For Wallet, Welcome, Portfolios) */
.dp-card-burgundy {
    background: linear-gradient(135deg, #37000C 0%, #200005 60%, #4A0311 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(55, 0, 12, 0.28);
    color: #FFFFFF;
    padding: 20px 18px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.dp-card-burgundy h2,
.dp-card-burgundy h3,
.dp-card-burgundy span {
    color: #FFFFFF;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.dp-btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
}

.dp-btn-accent, .btn-primary {
    background: linear-gradient(135deg, #E91E43 0%, #D01538 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(233, 30, 67, 0.28);
}

.dp-btn-accent:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #D01538 0%, #B00F2E 100%);
    box-shadow: 0 6px 18px rgba(233, 30, 67, 0.38);
    transform: translateY(-1px);
}

.dp-btn-primary {
    background: linear-gradient(135deg, #37000C 0%, #500514 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(55, 0, 12, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dp-btn-primary:hover {
    background: linear-gradient(135deg, #4A0311 0%, #65091B 100%);
    transform: translateY(-1px);
}

.dp-btn-success {
    background: linear-gradient(135deg, #08AD7B 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(8, 173, 123, 0.28);
}

.dp-btn-success:hover {
    background: linear-gradient(135deg, #069469 0%, #047857 100%);
    transform: translateY(-1px);
}

.dp-btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.dp-btn-outline:hover {
    background: var(--bg-subtle);
    border-color: #CBD5E1;
}

.dp-btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    width: auto;
}

.dp-btn-pill {
    border-radius: var(--radius-full);
}

/* Subtle Shimmer for High-Priority Action Buttons */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 35%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 65%
    );
    transform: rotate(25deg);
    animation: btnShimmerSweep 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes btnShimmerSweep {
    0% { transform: translateX(-120%) rotate(25deg); }
    100% { transform: translateX(120%) rotate(25deg); }
}

/* ==========================================================================
   FORM INPUTS & CONTROLS
   ========================================================================== */

.input-group, .dp-form-group {
    margin-bottom: 14px;
}

.dp-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field, .dp-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.input-field:focus, .dp-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3.5px rgba(233, 30, 67, 0.12);
}

.dp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dp-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.dp-input-with-icon {
    padding-left: 42px;
}

.dp-input-action {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

/* ==========================================================================
   STATUS BADGES & PILLS
   ========================================================================== */

.dp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.dp-badge-success {
    background: var(--success-light);
    color: #047857;
    border: 1px solid var(--success-border);
}

.dp-badge-danger {
    background: var(--danger-light);
    color: #BE123C;
    border: 1px solid var(--danger-border);
}

.dp-badge-warning {
    background: var(--warning-light);
    color: #B45309;
    border: 1px solid var(--warning-border);
}

.dp-badge-info {
    background: var(--info-light);
    color: #0369A1;
    border: 1px solid var(--info-border);
}

.dp-badge-neutral {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ==========================================================================
   DRAGON ORDER CARDS (INR & USDT BEP20)
   ========================================================================== */

.dragon-orders-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dragon-order-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 14px 16px 12px;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

.dragon-order-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.dragon-order-card.card-entering {
    animation: orderCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes orderCardEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sold Out State: Refined crimson tint */
.dragon-order-card.sold-out,
.dragon-order-card.user-restricted {
    border-color: #F87171 !important;
    background: linear-gradient(90deg, #FEF2F2 0%, #FFFFFF 100%) !important;
}

/* Card Rows */
.order-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.order-id-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.order-verify-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.order-verify-badge {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 2.5px 12px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    margin-bottom: 3px;
}

.order-receive-label {
    font-size: 9.5px;
    color: var(--text-secondary);
    font-weight: 700;
}

.order-receive-val {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--success);
    font-family: 'Manrope', sans-serif;
}

.order-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 10px;
    gap: 12px;
}

.order-main-amt-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-main-amt {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.5px;
}

.order-main-amt.usdt-mode {
    color: #0284C7;
    font-size: 20px;
}

.order-return-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFBEB;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    width: fit-content;
}

.order-return-pill .return-amt {
    color: #D97706;
}

.order-return-pill .return-txt {
    color: #B45309;
    font-size: 8.5px;
    font-weight: 900;
}

.order-stats-grid {
    display: flex;
    gap: 14px;
    text-align: right;
}

.order-stat-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-stat-col .stat-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.order-stat-col .stat-val {
    font-size: 12px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
}

.stat-comm { color: #DC2626; }
.stat-bonus { color: #D97706; }
.stat-profit { color: var(--success); }

.order-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0 10px;
}

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

.payout-source-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payout-lbl {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.settlement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 800;
    color: #0F172A;
    font-family: 'Manrope', sans-serif;
}

/* Pay & Sold Buttons */
.btn-pay-order {
    background: linear-gradient(135deg, #08AD7B 0%, #059669 100%);
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 173, 123, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-pay-order:hover {
    background: linear-gradient(135deg, #069469 0%, #047857 100%);
    box-shadow: 0 6px 16px rgba(8, 173, 123, 0.38);
    transform: translateY(-1px);
}

.btn-sold-order {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: not-allowed;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.95;
}

/* ==========================================================================
   SEGMENT TABS (UPI vs USDT BEP20)
   ========================================================================== */

.dragon-tabs-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #EAEFF7;
    padding: 5px;
    border-radius: var(--radius-lg);
    margin: 12px 16px;
    border: 1px solid #DFE6F0;
}

.dragon-tab-btn {
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: var(--transition);
}

.dragon-tab-btn.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.tab-range-pill {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

.dragon-tab-btn.active .tab-range-pill {
    color: var(--accent);
}

/* ==========================================================================
   TRUST & TRANSPARENCY BANNERS
   ========================================================================== */

.dp-trust-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
}

.dp-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dp-trust-text {
    flex: 1;
}

.dp-trust-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
}

.dp-trust-desc {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 1px;
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION & LUMINOUS CURRENCY COIN
   ========================================================================== */

.dragon-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-viewport-width);
    height: 68px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-top: 1px solid rgba(225, 29, 72, 0.14);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.05), 0 -1px 2px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 18px env(safe-area-inset-bottom, 0px);
    z-index: 10000;
}

.dragon-nav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 6px 16px;
    border-radius: 16px;
    color: #64748B;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.dragon-nav-btn .nav-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dragon-nav-btn .nav-icon-svg {
    stroke: #64748B;
    transition: stroke 0.25s ease, filter 0.25s ease;
}

.dragon-nav-btn .dragon-nav-label {
    font-size: 10.5px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: #64748B;
    margin-top: 2px;
    letter-spacing: 0.1px;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.dragon-nav-btn.active {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 228, 230, 0.6) 100%);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.1), 0 0 14px rgba(225, 29, 72, 0.08);
}

.dragon-nav-btn.active .nav-icon-wrapper {
    transform: translateY(-1px) scale(1.08);
}

.dragon-nav-btn.active .nav-icon-svg {
    stroke: #E11D48;
    filter: drop-shadow(0 2px 5px rgba(225, 29, 72, 0.35));
}

.dragon-nav-btn.active .dragon-nav-label {
    color: #BE123C;
    font-weight: 900;
}

/* Center Coin Cashier Button */
.dragon-nav-center-coin {
    position: relative;
    width: 56px;
    height: 56px;
    margin-top: -26px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 10001;
}

.dragon-nav-center-coin .coin-halo-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45) 0%, rgba(225, 29, 72, 0.15) 50%, transparent 75%);
    animation: dragonHaloPulse 2.8s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.dragon-nav-center-coin .coin-inner-disc {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #FF3366 0%, #E11D48 40%, #99001A 75%, #58000E 100%);
    border: 3px solid #FFFFFF;
    box-shadow: 
        0 6px 20px rgba(225, 29, 72, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.18),
        inset 0 1.5px 3px rgba(255, 255, 255, 0.65),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    z-index: 2;
    overflow: hidden;
}

.dragon-nav-center-coin:hover .coin-inner-disc {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 
        0 10px 28px rgba(225, 29, 72, 0.58),
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 1.5px 3px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(255, 42, 85, 0.5);
}

.dragon-nav-center-coin.active .coin-inner-disc {
    background: radial-gradient(circle at 30% 25%, #FF4570 0%, #E11D48 35%, #881337 70%, #45030E 100%);
    box-shadow: 
        0 8px 24px rgba(225, 29, 72, 0.52),
        0 0 0 3px rgba(255, 228, 230, 0.9),
        0 0 22px rgba(225, 29, 72, 0.45),
        inset 0 1.5px 3px rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.04);
}

.dragon-nav-center-coin:active {
    transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast-msg {
    pointer-events: auto;
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-msg.success { background: #065F46; border-left: 4px solid var(--success); }
.toast-msg.error { background: #991B1B; border-left: 4px solid var(--accent); }
.toast-msg.info { background: #075985; border-left: 4px solid var(--info); }

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

/* ==========================================================================
   WITHDRAWAL TICKER
   ========================================================================== */

.wd-ticker-wrap {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wd-ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.wd-ticker-item .wd-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-ticker-item .wd-name {
    color: var(--text-primary);
    font-weight: 700;
}

.wd-ticker-item .wd-amt {
    color: var(--success);
    font-weight: 800;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */

.dp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out forwards;
}

.dp-modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: popIn 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   MEDIA QUERIES & ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   SHARED LEGAL / TRUST FOOTER
   ========================================================================== */

.dp-footer {
    border-top: 1px solid var(--border-light);
    background: #FFFFFF;
    padding: 18px 16px calc(var(--bottom-nav-height) + 18px);
    text-align: center;
    width: 100%;
}

.dp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    margin-bottom: 8px;
}

.dp-footer-links a {
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.dp-footer-links a:hover {
    color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}

.dp-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.dp-footer-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
}

.dp-footer-meta a:hover {
    color: var(--accent);
}

/* Bottom nav item text label under icon */
.dragon-nav-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.dp-empty-state {
    text-align: center;
    padding: 34px 20px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
}

.dp-empty-state-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.dp-empty-state-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    margin-bottom: 4px;
}

.dp-empty-state-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.45;
}

/* ==========================================================================
   LOADING SKELETONS
   ========================================================================== */

.dp-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    min-height: 14px;
}

.dp-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.75) 50%, transparent 100%);
    animation: dpSkeletonSweep 1.4s infinite;
}

@keyframes dpSkeletonSweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ==========================================================================
   ACCESSIBILITY HELPERS
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    display: none !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Touch and focus states: clean and outline-free for mobile app navigation */
.dp-header-btn,
.dragon-nav-btn,
.dragon-nav-center-coin {
    -webkit-tap-highlight-color: transparent !important;
}

.dp-header-btn:focus,
.dp-header-btn:focus-visible,
.dragon-nav-btn:focus,
.dragon-nav-btn:focus-visible,
.dragon-nav-center-coin:focus,
.dragon-nav-center-coin:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Center coin icon inherits white glyphs */
.dragon-nav-center-coin {
    color: #FFFFFF;
}
.dragon-nav-center-coin svg {
    display: block;
}

.dragon-nav-center-coin.active {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(233, 30, 67, 0.45);
}

/* ==========================================================================
   DRAGON PAY - 60FPS HARDWARE-ACCELERATED PAGE TRANSITIONS
   Ultra-smooth, native app-grade animations without lag or delay
   ========================================================================== */

/* Top slim glowing progress bar */
#dragon-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #E11D48 0%, #F59E0B 45%, #10B981 100%);
    box-shadow: 0 0 14px rgba(225, 29, 72, 0.85), 0 0 6px rgba(245, 158, 11, 0.7);
    z-index: 9999999;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.26s ease;
    will-change: width, opacity;
}

#dragon-page-progress.progress-running {
    width: 82%;
}

#dragon-page-progress.progress-complete {
    width: 100%;
    opacity: 0;
}

/* Page exit state: subtle upward glide + soft fade (220ms, 60fps GPU accelerated) */
body.page-is-exiting {
    opacity: 0.15 !important;
    transform: translate3d(0, -6px, 0) scale(0.988) !important;
    transition: opacity 0.22s cubic-bezier(0.25, 1, 0.5, 1), transform 0.22s cubic-bezier(0.25, 1, 0.5, 1) !important;
    pointer-events: none !important;
    user-select: none !important;
}

/* Page entrance state: buttery-smooth spring deceleration glide (~380ms) */
@keyframes dragonPageEntrance {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.992);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

body.page-is-entering {
    animation: dragonPageEntrance 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    will-change: transform, opacity;
}

/* Navigation link instant tap feedback */
.dragon-nav-btn.nav-link-tap .nav-icon-wrapper {
    transform: translateY(-3px) scale(1.16);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dragon-nav-center-coin.nav-link-tap .coin-inner-disc {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 0 28px rgba(225, 29, 72, 0.8), 0 0 42px rgba(255, 69, 112, 0.6);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

/* Fallback for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.page-is-exiting,
    body.page-is-entering {
        transition: opacity 0.12s ease !important;
        animation: none !important;
        transform: none !important;
    }
    #dragon-page-progress {
        display: none !important;
    }
}
