/* ==========================================================================
   CORVEX GLOBAL UNIFIED COMMON STYLESHEET (common.css)
   Consolidated Core Styles for Layouts & All Inner Pages
   Typography: Gilroy, Plus Jakarta Sans, Outfit, Inter
   Theme: C1.global Midnight (#141322 / #0f0e1c / #1e213a)
   Version: 1.0 (iOS Safe-Area & Sticky Navigation Engine)
   ========================================================================== */

/* ==========================================================================
   CORVEX DASHBOARD & PORTAL STYLESHEET
   Typography: Gilroy & Plus Jakarta Sans (Matching C1.global)
   Design Pattern & Midnight Palette: C1.global (#141322)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Gilroy';
    src: url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-regular-webfont.woff2') format('woff2'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-regular-webfont.woff') format('woff'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-medium-webfont.woff2') format('woff2'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-medium-webfont.woff') format('woff'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-medium-webfont.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-bold-webfont.woff2') format('woff2'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-bold-webfont.woff') format('woff'),
         url('https://static.c1.global/static/assets/fonts/radomir_tinkov_-_gilroy-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #141322;
    --bg-darker: #0f0e1c;
    --bg-card: rgba(30, 33, 58, 0.92);
    --bg-card-hover: rgba(42, 46, 82, 0.95);
    --primary: #fcd535;
    --primary-hover: #fde047;
    --primary-glow: rgba(252, 213, 53, 0.35);
    --gold-primary: #fcd535;
    --blue-c1: #535efb;
    --blue-c1-light: #646efb;
    --blue-c1-glow: rgba(83, 94, 251, 0.35);
    --cyan-neon: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.3);
    --secondary: #939aba;
    --text-light: #ffffff;
    --text-muted: #939aba;
    --border-glass: #2a2e52;
    --border-gold: rgba(252, 213, 53, 0.45);
    --border-blue: rgba(83, 94, 251, 0.4);
    --border-glow: rgba(42, 46, 82, 0.6);
    --success: #00ca7f;
    --danger: #eb5757;
    --warning: #fcd535;
    --info: #535efb;
}

/* Base Reset & Typography Scale */
html {
    background-color: #141322 !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    --bs-gutter-x: 0 !important;
}

body {
    background-color: #141322 !important;
    color: var(--text-light);
    font-family: 'Gilroy', 'Plus Jakarta Sans', 'Outfit', sans-serif !important;
    font-size: 0.86rem;
    line-height: 1.55;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Prevent auto-zoom on input focus in iOS Safari & mobile browsers */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .form-select,
    .form-dark-control,
    .form-dark-c1,
    .auth-form-control {
        font-size: 16px !important;
    }
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .btn, .nav-link, input, select, textarea, button {
    font-family: 'Gilroy', 'Plus Jakarta Sans', 'Outfit', sans-serif !important;
}

h1, .h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.3px; color: #ffffff; }
h2, .h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.2px; color: #ffffff; }
h3, .h3 { font-size: 1.18rem; font-weight: 700; color: #ffffff; }
h4, .h4 { font-size: 1.02rem; font-weight: 700; color: #ffffff; }
h5, .h5 { font-size: 0.92rem; font-weight: 600; color: #ffffff; }
h6, .h6 { font-size: 0.82rem; font-weight: 600; color: #ffffff; }

.small, small {
    font-size: 0.78rem !important;
}

.text-xs {
    font-size: 0.72rem !important;
}

.text-muted {
    color: var(--text-muted) !important;
}
.text-primary, .text-gold {
    color: var(--primary) !important;
}
.text-cyan {
    color: var(--cyan-neon) !important;
}
.text-blue-c1 {
    color: var(--blue-c1-light) !important;
}
.text-success-neon {
    color: var(--success) !important;
}
.text-danger-neon {
    color: var(--danger) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #fcd535 0%, #fde047 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Banners */
.page-hero-banner, .deposit-hero, .withdraw-hero, .staking-hero, .wallet-hero, .referral-hero, .support-hero, .profile-hero, .security-hero {
    background: radial-gradient(circle at 10% 20%, rgba(83, 94, 251, 0.09) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(252, 213, 53, 0.06) 0%, transparent 45%),
                var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.page-hero-banner::after, .security-hero::after, .profile-hero::after, .deposit-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(83, 94, 251, 0.6), rgba(252, 213, 53, 0.6), transparent);
}

/* Unified Kickers */
.page-kicker, .deposit-kicker, .withdraw-kicker, .staking-kicker, .wallet-kicker, .referral-kicker, .support-kicker, .profile-kicker, .security-kicker, .download-kicker {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(252, 213, 53, 0.08);
    border: 1px solid rgba(252, 213, 53, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* Glass Cards & Containers */
.glass-card, .glass-card-luxury {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass-card:hover, .glass-card-luxury:hover {
    border-color: rgba(83, 94, 251, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(83, 94, 251, 0.08);
    transform: translateY(-2px);
}

/* Info Tiles */
.info-tile {
    background: rgba(15, 14, 28, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.22s ease;
}
.info-tile:hover {
    border-color: rgba(83, 94, 251, 0.4);
    background: rgba(20, 19, 34, 0.9);
}

/* Icon Wrappers */
.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(83, 94, 251, 0.12);
    color: var(--blue-c1-light);
    border: 1px solid rgba(83, 94, 251, 0.25);
}
.stat-icon-wrap.gold {
    background: rgba(252, 213, 53, 0.1);
    color: var(--primary);
    border: 1px solid rgba(252, 213, 53, 0.25);
}
.stat-icon-wrap.cyan {
    background: rgba(56, 189, 248, 0.1);
    color: var(--cyan-neon);
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.stat-icon-wrap.emerald {
    background: rgba(0, 202, 127, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 202, 127, 0.25);
}
.stat-icon-wrap.purple {
    background: rgba(116, 53, 221, 0.12);
    color: #8d59e3;
    border: 1px solid rgba(116, 53, 221, 0.25);
}

/* ==========================================================================
   TABLES: Dark Midnight Table Styling (Matches C1.global #141322 / #1e213a)
   ========================================================================== */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch !important;
    background: transparent !important;
    border: 1px solid var(--border-glass) !important;
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .table-responsive table,
    .table-responsive .table {
        min-width: 680px !important;
    }
}

.table-responsive::-webkit-scrollbar {
    height: 5px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 14, 28, 0.6);
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #2a2e52;
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--blue-c1, #535efb);
}

table,
.table,
.table-custom-dark,
table.table,
.table-responsive table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-color: #f8fafc !important;
    --bs-table-hover-bg: rgba(83, 94, 251, 0.08) !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-border-color: #2a2e52 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #f8fafc !important;
    border-color: #2a2e52 !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
    width: 100%;
    min-width: 620px;
}

.table > :not(caption) > * > *,
.table-custom-dark > :not(caption) > * > *,
table > :not(caption) > * > *,
table tr th,
table tr td {
    background: transparent !important;
    background-color: transparent !important;
    color: #f1f5f9 !important;
    box-shadow: none !important;
    border-color: #2a2e52 !important;
}

.table thead,
.table-custom-dark thead,
table thead,
.table thead tr,
.table-custom-dark thead tr {
    background: #0f0e1c !important;
    background-color: #0f0e1c !important;
}

.table thead th,
.table-custom-dark thead th,
table thead th {
    background: #0f0e1c !important;
    background-color: #0f0e1c !important;
    color: #939aba !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 1px solid #2a2e52 !important;
    border-top: none !important;
    padding: 12px 16px !important;
    white-space: nowrap;
    box-shadow: none !important;
}

.table tbody,
.table-custom-dark tbody,
table tbody {
    background: transparent !important;
    background-color: transparent !important;
}

.table tbody tr,
.table-custom-dark tbody tr,
table tbody tr {
    background: transparent !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease;
}

.table tbody td,
.table-custom-dark tbody td,
table tbody td {
    background: transparent !important;
    background-color: transparent !important;
    color: #f1f5f9 !important;
    font-size: 0.82rem !important;
    border-bottom: 1px solid rgba(42, 46, 82, 0.5) !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.table tbody tr:hover td,
.table-custom-dark tbody tr:hover td,
table tbody tr:hover td {
    background: rgba(83, 94, 251, 0.08) !important;
    background-color: rgba(83, 94, 251, 0.08) !important;
    color: #ffffff !important;
}

.table tbody tr:last-child td,
.table-custom-dark tbody tr:last-child td,
table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ==========================================================================
   BUTTONS: Sleek Scaled Down Variants
   ========================================================================== */
.btn {
    font-size: 0.84rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.22s ease;
}

.btn-sm {
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

.btn-lg {
    font-size: 0.92rem !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
}

.btn-gradient, .btn-gradient-gold {
    background: linear-gradient(135deg, #fcd535 0%, #f59e0b 100%) !important;
    color: #0f0e1c !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.22);
}

.btn-gradient:hover, .btn-gradient-gold:hover {
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%) !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(252, 213, 53, 0.35);
}

.btn-gradient-blue, .btn-blue-c1 {
    background: linear-gradient(135deg, #535efb 0%, #424efb 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(83, 94, 251, 0.3);
}

.btn-gradient-blue:hover, .btn-blue-c1:hover {
    background: linear-gradient(135deg, #646efb 0%, #535efb 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(83, 94, 251, 0.45);
}

.btn-auth-primary {
    background: linear-gradient(135deg, #535efb 0%, #424efb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(83, 94, 251, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-auth-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #646efb 0%, #535efb 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(83, 94, 251, 0.45);
}

.btn-auth-primary .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-primary .btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: #ffffff;
}

.btn-auth-primary.is-loading,
.btn-auth-primary:disabled {
    pointer-events: none;
    opacity: 0.9;
    background: linear-gradient(135deg, #3d49db 0%, #2f38c7 100%) !important;
    box-shadow: 0 0 24px rgba(83, 94, 251, 0.5) !important;
}

.btn-auth-primary.is-loading .btn-text {
    display: none !important;
}

.btn-auth-primary.is-loading .btn-loader {
    display: inline-flex !important;
}

.btn-auth-primary.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: buttonShimmer 1.2s infinite;
}

@keyframes buttonShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Header Navbar Buttons */
.btn-header-dashboard {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    background: linear-gradient(135deg, #fcd535 0%, #fde047 100%);
    color: #0f0e1c !important;
    font-family: 'Gilroy', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 9px;
    text-decoration: none !important;
    border: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(252, 213, 53, 0.25);
    white-space: nowrap;
}

.btn-header-dashboard:hover {
    background: #fde047;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(252, 213, 53, 0.4);
}

.btn-header-dashboard i {
    font-size: 0.88rem;
    color: #0f0e1c;
}

.btn-header-logout {
    height: 38px;
    width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 87, 87, 0.1);
    border: 1px solid rgba(235, 87, 87, 0.3);
    color: #f87171 !important;
    border-radius: 9px;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.btn-header-logout:hover {
    background: rgba(235, 87, 87, 0.22);
    border-color: rgba(235, 87, 87, 0.55);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(235, 87, 87, 0.25);
}

.btn-header-launch {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    background: linear-gradient(135deg, #fcd535 0%, #fde047 100%);
    color: #0f0e1c !important;
    font-family: 'Gilroy', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 9px;
    text-decoration: none !important;
    border: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(252, 213, 53, 0.25);
    white-space: nowrap;
}

.btn-header-launch:hover {
    background: #fde047;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(252, 213, 53, 0.4);
}

.btn-outline-custom {
    border: 1px solid var(--border-glass) !important;
    color: #f1f5f9 !important;
    background: rgba(15, 14, 28, 0.6) !important;
}

.btn-outline-custom:hover {
    background: rgba(83, 94, 251, 0.12) !important;
    border-color: var(--blue-c1-light) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-quick-chip {
    background: rgba(15, 14, 28, 0.8);
    border: 1px solid var(--border-glass);
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-quick-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(252, 213, 53, 0.08);
}

/* ==========================================================================
   FORMS: Dark Controls with Electric / Gold Focus Glow
   ========================================================================== */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
}

.form-control, .form-select, .form-dark-control {
    background: rgba(15, 14, 28, 0.85) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus, .form-dark-control:focus {
    border-color: var(--blue-c1-light) !important;
    box-shadow: 0 0 0 3px rgba(83, 94, 251, 0.2) !important;
    outline: none;
    background: rgba(20, 19, 34, 0.95) !important;
}

.form-control::placeholder {
    color: #64748b;
    font-size: 0.82rem;
}

.input-group-dark-btn {
    background: rgba(15, 14, 28, 0.85);
    border: 1px solid var(--border-glass);
    border-left: none;
    color: var(--secondary);
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    padding: 0 12px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.input-group-dark-btn:hover {
    color: var(--primary);
    background: rgba(30, 33, 58, 0.95);
}

/* ==========================================================================
   STATUS BADGES: Compact Neon Indicators
   ========================================================================== */
.badge-status-completed, .badge-status-approved, .badge-status-resolved {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 202, 127, 0.12);
    border: 1px solid rgba(0, 202, 127, 0.35);
    color: #00ca7f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge-status-pending, .badge-status-open, .badge-status-in-progress {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(252, 213, 53, 0.12);
    border: 1px solid rgba(252, 213, 53, 0.35);
    color: #fcd535;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge-status-rejected, .badge-status-closed, .badge-status-cancelled {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(235, 87, 87, 0.12);
    border: 1px solid rgba(235, 87, 87, 0.35);
    color: #eb5757;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge-status-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(83, 94, 251, 0.12);
    border: 1px solid rgba(83, 94, 251, 0.35);
    color: var(--blue-c1-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   CUSTOM ALERTS
   ========================================================================== */
.alert-custom-success {
    background: linear-gradient(135deg, rgba(0, 202, 127, 0.14) 0%, rgba(15, 28, 22, 0.9) 100%);
    border: 1px solid rgba(0, 202, 127, 0.3);
    border-left: 3px solid #00ca7f;
    color: #73fac8;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.84rem;
}

.alert-custom-error {
    background: linear-gradient(135deg, rgba(235, 87, 87, 0.14) 0%, rgba(28, 15, 20, 0.9) 100%);
    border: 1px solid rgba(235, 87, 87, 0.3);
    border-left: 3px solid #eb5757;
    color: #fca5a5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.84rem;
}

/* SweetAlert2 Custom Dark Theme Adjustments (C1.global #141322 / #1e213a) */
.swal2-container.swal2-backdrop-show {
    background: rgba(4, 8, 17, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.swal2-popup.swal2-modal {
    background: #1e213a !important;
    background-color: #1e213a !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    padding: 24px 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 24px rgba(83, 94, 251, 0.12) !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(252, 213, 53, 0.5) !important;
    color: #fcd535 !important;
}

.swal2-icon.swal2-success {
    border-color: rgba(0, 202, 127, 0.5) !important;
    color: #00ca7f !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(235, 87, 87, 0.5) !important;
    color: #eb5757 !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(83, 94, 251, 0.5) !important;
    color: var(--blue-c1-light) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-family: 'Gilroy', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    padding-top: 6px !important;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-family: 'Gilroy', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
}

.swal2-confirm.btn-gradient, .swal2-confirm:not(.btn) {
    background: linear-gradient(135deg, #fcd535 0%, #fde047 100%) !important;
    color: #0f0e1c !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 22px !important;
    box-shadow: 0 4px 14px rgba(252, 213, 53, 0.28) !important;
}

.swal2-cancel {
    background: rgba(15, 14, 28, 0.85) !important;
    border: 1px solid var(--border-glass) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
}

/* ==========================================================================
   SIDEBAR & MOBILE NAVIGATION DRAWER
   ========================================================================== */
.sidebar {
    width: 270px;
    background: #141322 !important;
    background-color: #141322 !important;
    border-right: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: none;
}

.btn-close-sidebar {
    background: rgba(30, 33, 58, 0.85);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-close-sidebar:hover {
    color: #ffffff;
    background: rgba(235, 87, 87, 0.2);
    border-color: rgba(235, 87, 87, 0.4);
}

.sidebar-clock-card {
    background: rgba(30, 33, 58, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 11px 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00ca7f;
    box-shadow: 0 0 8px #00ca7f;
    display: inline-block;
}

.sidebar-menu {
    list-style: none;
    padding: 0 14px 20px;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #939aba;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.22s ease;
    border-radius: 10px;
    border: 1px solid transparent;
}

.sidebar-menu a i {
    width: 20px;
    font-size: 0.95rem;
    color: #939aba;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-menu a:hover {
    color: #ffffff;
    background: rgba(83, 94, 251, 0.12);
    border-color: rgba(83, 94, 251, 0.35);
    transform: translateX(3px);
}

.sidebar-menu a:hover i {
    color: var(--blue-c1-light);
    transform: scale(1.1);
}

.sidebar-menu li.active a {
    color: #0f0e1c !important;
    background: linear-gradient(135deg, #fcd535 0%, #fde047 100%) !important;
    font-weight: 700;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(252, 213, 53, 0.32);
}

.sidebar-menu li.active a i {
    color: #0f0e1c !important;
}

.sidebar-menu .nav-link-logout {
    color: #eb5757 !important;
    background: rgba(235, 87, 87, 0.08);
    border: 1px solid rgba(235, 87, 87, 0.2);
}

.sidebar-menu .nav-link-logout i {
    color: #eb5757 !important;
}

.sidebar-menu .nav-link-logout:hover {
    background: rgba(235, 87, 87, 0.18) !important;
    border-color: rgba(235, 87, 87, 0.45) !important;
    color: #ffffff !important;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 8, 17, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 991px) {
    .sidebar {
        left: -290px;
        width: 280px;
        background: #141322 !important;
        background-color: #141322 !important;
    }
    .sidebar.active {
        left: 0;
    }
    .top-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        z-index: 1020 !important;
        padding-top: max(0px, env(safe-area-inset-top)) !important;
        background: rgba(15, 14, 28, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid var(--border-glass) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px 14px 35px !important;
        min-height: auto !important;
    }
    .btn-toggle-sidebar {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(30, 33, 58, 0.85);
        border: 1px solid var(--border-glass);
        border-radius: 8px;
        color: #ffffff;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .btn-toggle-sidebar:hover {
        background: rgba(83, 94, 251, 0.2);
        border-color: var(--blue-c1-light);
        color: var(--primary);
    }
}

@media (max-width: 768px) {
    .top-header {
        height: 56px !important;
        padding: 0 12px !important;
    }
    .main-wrapper {
        padding: 14px 12px 30px !important;
        min-height: calc(100vh - 56px) !important;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding: 12px 10px 28px !important;
    }
}


/* ==========================================================================
   CONSOLIDATED INNER PAGES & COMPONENT STYLES
   (Merged from Dashboard Overview, Deposit, Withdraw, Wallets, Staking,
    Ranks, Referrals, Profile, Security, Support, and Downloads)
   ========================================================================== */

/* --- Inner Page: dashboard.php --- */
/* ==========================================================================
       CUSTOMER DASHBOARD - C1.GLOBAL #141322 MIDNIGHT DESIGN PATTERN
       ========================================================================== */
    :root {
        --bg-dark: #141322;
        --bg-darker: #0f0e1c;
        --bg-card: rgba(30, 33, 58, 0.95);
        --bg-card-hover: rgba(42, 46, 82, 0.95);
        --border-c1: #2a2e52;
        --border-glass: #2a2e52;
        --blue-c1: #535efb;
        --blue-c1-light: #646efb;
        --gold-primary: #fcd535;
        --gold-hover: #fde047;
        --gold-glow: rgba(252, 213, 53, 0.35);
        --cyan-neon: #38bdf8;
        --cyan-glow: rgba(56, 189, 248, 0.3);
        --text-muted-c1: #939aba;
        --success-neon: #00ca7f;
    }

    body {
        background-color: var(--bg-dark) !important;
    }

    .text-gold { color: var(--gold-primary) !important; }
    .text-cyan { color: var(--cyan-neon) !important; }
    .text-c1-blue { color: var(--blue-c1-light) !important; }

    /* Dashboard Hero Banner with Rich Gradient Styling */
    .dashboard-hero-card {
        background: linear-gradient(135deg, rgba(83, 94, 251, 0.18) 0%, rgba(30, 33, 58, 0.95) 45%, rgba(252, 213, 53, 0.12) 100%);
        border: 1px solid rgba(83, 94, 251, 0.35);
        border-radius: 16px;
        padding: 24px 26px;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(83, 94, 251, 0.08);
        margin-bottom: 24px;
        transition: all 0.25s ease;
    }

    @media (max-width: 768px) {
        .dashboard-hero-card {
            margin-top: 8px !important;
            margin-bottom: 20px;
            padding: 20px 18px;
        }
    }

    .dashboard-hero-card:hover {
        border-color: rgba(83, 94, 251, 0.6);
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(83, 94, 251, 0.15);
    }

    .dashboard-hero-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #535efb, #38bdf8, #fcd535);
    }

    .dashboard-hero-card::before {
        content: '';
        position: absolute;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle, rgba(83, 94, 251, 0.12) 0%, transparent 70%);
        top: -120px;
        right: -60px;
        pointer-events: none;
        filter: blur(40px);
    }

    .text-gradient {
        background: linear-gradient(135deg, #fcd535 0%, #fde047 50%, #ffffff 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        display: inline-block;
        font-weight: 800;
    }

    .dashboard-welcome-heading {
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.3px;
        color: #ffffff;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    @media (max-width: 768px) {
        .dashboard-welcome-heading { font-size: 1.25rem; }
    }

    /* Dashboard Profile Avatar Display */
    .dashboard-avatar-link {
        display: inline-block;
        position: relative;
        text-decoration: none;
        transition: transform 0.25s ease;
    }
    .dashboard-avatar-link:hover {
        transform: scale(1.05);
    }
    .dashboard-avatar-img {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gold-primary, #fcd535);
        box-shadow: 0 0 16px rgba(252, 213, 53, 0.28);
        background: rgba(15, 14, 28, 0.9);
        display: block;
    }
    @media (max-width: 576px) {
        .dashboard-avatar-img {
            width: 50px;
            height: 50px;
        }
    }

    /* Key Interactive Pills (USDT Address & Referral Link) */
    .dashboard-pill-box {
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-c1);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.22s ease;
    }

    .dashboard-pill-box:hover {
        border-color: rgba(83, 94, 251, 0.45);
        background: rgba(20, 19, 34, 0.95);
    }

    /* Stat Cards */
    .dashboard-stat-card {
        background: var(--bg-card);
        border: 1px solid var(--border-c1);
        border-radius: 16px;
        padding: 24px 22px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dashboard-stat-card:hover {
        transform: translateY(-4px);
        background: var(--bg-card-hover);
        border-color: rgba(83, 94, 251, 0.5);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(83, 94, 251, 0.1);
    }

    .dashboard-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--border-c1), transparent);
        transition: background 0.3s ease;
    }

    .dashboard-stat-card:hover::before {
        background: linear-gradient(90deg, transparent, var(--blue-c1-light), transparent);
    }

    .stat-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        background: rgba(83, 94, 251, 0.12);
        border: 1px solid rgba(83, 94, 251, 0.25);
        color: var(--blue-c1-light);
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

    .stat-icon-wrap.gold {
        background: rgba(252, 213, 53, 0.1);
        border: 1px solid rgba(252, 213, 53, 0.25);
        color: var(--gold-primary);
    }

    .dashboard-stat-card:hover .stat-icon-wrap {
        transform: scale(1.06);
    }

    .stat-label {
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        color: var(--text-muted-c1);
        margin-bottom: 6px;
        display: block;
    }

    .stat-value {
        font-size: 1.6rem;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 4px;
        font-family: monospace;
    }

    .stat-subtext {
        font-size: 0.78rem;
        color: var(--text-muted-c1);
    }

    /* Quick Action Toolbar Chips */
    .quick-action-chip {
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-c1);
        border-radius: 10px;
        padding: 10px 16px;
        color: #ffffff;
        text-decoration: none !important;
        font-size: 0.82rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.22s ease;
    }

    .quick-action-chip:hover {
        background: rgba(83, 94, 251, 0.15);
        border-color: var(--blue-c1-light);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(83, 94, 251, 0.25);
    }

    .quick-action-chip i {
        font-size: 0.92rem;
        color: var(--gold-primary);
    }

    /* Tables & Activity */
    .dashboard-table-card {
        background: var(--bg-card);
        border: 1px solid var(--border-c1);
        border-radius: 16px;
        overflow: hidden;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    }

    .dashboard-table-header {
        padding: 18px 22px;
        border-bottom: 1px solid var(--border-c1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .table-custom-dark {
        margin-bottom: 0;
        color: #f8fafc;
    }

    .table-custom-dark th {
        background: rgba(15, 14, 28, 0.95) !important;
        color: var(--text-muted-c1) !important;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--border-c1);
    }

    .table-custom-dark td {
        background: transparent !important;
        color: #f8fafc !important;
        font-size: 0.82rem;
        padding: 12px 18px;
        vertical-align: middle;
        border-bottom: 1px solid rgba(42, 46, 82, 0.45);
    }

    .table-custom-dark tr:hover td {
        background: rgba(83, 94, 251, 0.05) !important;
    }

    /* Status Badges */
    .badge-status-completed, .badge-status-approved, .badge-status-active {
        background: rgba(14, 203, 129, 0.15);
        border: 1px solid rgba(14, 203, 129, 0.4);
        color: #00ca7f;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .badge-status-pending {
        background: rgba(252, 213, 53, 0.15);
        border: 1px solid rgba(252, 213, 53, 0.4);
        color: #fcd535;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .badge-status-rejected, .badge-status-cancelled {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.4);
        color: #ef4444;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    /* Header Badges with High Contrast & Readability */
    .badge-status-verified {
        background: rgba(14, 203, 129, 0.15) !important;
        border: 1px solid rgba(14, 203, 129, 0.45) !important;
        color: #34d399 !important;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
    }

    .badge-status-unverified {
        background: rgba(252, 213, 53, 0.15) !important;
        border: 1px solid rgba(252, 213, 53, 0.45) !important;
        color: #fde047 !important;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
    }

    .badge-status-tier {
        background: rgba(83, 94, 251, 0.15) !important;
        border: 1px solid rgba(83, 94, 251, 0.45) !important;
        color: #a5b4fc !important;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
    }

    .badge-status-uid {
        background: rgba(15, 14, 28, 0.8) !important;
        border: 1px solid var(--border-c1) !important;
        color: #f1f5f9 !important;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
    }

/* --- Inner Page: deposit.php --- */
.deposit-qr-box {
        background: #ffffff;
        padding: 12px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(252, 213, 53, 0.12);
        display: inline-block;
        transition: transform 0.25s ease;
    }
    .deposit-qr-box:hover {
        transform: scale(1.02);
    }
    .pulse-radar {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #0ecb81;
        box-shadow: 0 0 0 rgba(14, 203, 129, 0.7);
        animation: radarPulse 1.8s infinite;
    }
    @keyframes radarPulse {
        0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.7); }
        70% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); }
        100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, 0); }
    }
    .monitor-badge-waiting {
        background: rgba(252, 213, 53, 0.1);
        border: 1px solid rgba(252, 213, 53, 0.35);
        color: #fcd535;
        font-weight: 700;
        font-size: 0.8rem;
    }

/* --- Inner Page: downloads.php --- */
.download-showcase-card {
        background: var(--bg-card);
        backdrop-filter: blur(14px);
        border: 1px solid var(--border-glass);
        border-radius: 14px;
        padding: 20px 18px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
        transition: all 0.25s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
    }
    .download-showcase-card:hover {
        transform: translateY(-3px);
        border-color: rgba(83, 94, 251, 0.45);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    }
    .badge-lang-tag {
        background: rgba(252, 213, 53, 0.1);
        color: #fcd535;
        border: 1px solid rgba(252, 213, 53, 0.25);
        font-size: 0.7rem;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 6px;
    }

/* --- Inner Page: profile.php --- */
#cropModal {
        z-index: 1065 !important;
    }
    .modal-backdrop {
        z-index: 1060 !important;
    }
    .cropper-view-box,
    .cropper-face {
        border-radius: 50%;
    }
    .cropper-container {
        user-select: auto !important;
        -webkit-user-select: auto !important;
    }
    .avatar-wrapper {
        position: relative;
        display: inline-block;
    }
    .avatar-img {
        width: 84px;
        height: 84px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gold-primary, #fcd535);
        box-shadow: 0 0 14px rgba(252, 213, 53, 0.22);
        background: rgba(15, 14, 28, 0.9);
    }

/* --- Inner Page: ranks.php --- */
.rank-hero-card {
        background: linear-gradient(135deg, rgba(30, 33, 58, 0.95) 0%, rgba(15, 14, 28, 0.98) 100%);
        border: 1px solid var(--border-glass);
        border-radius: 18px;
        padding: 24px 28px;
        position: relative;
        overflow: hidden;
        margin-bottom: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    }
    .rank-hero-card::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(252, 213, 53, 0.12) 0%, transparent 70%);
        top: -100px;
        right: -50px;
        pointer-events: none;
        filter: blur(40px);
    }
    .rank-card {
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: 16px;
        padding: 22px 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: all 0.25s ease;
    }
    .rank-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
    .rank-card.unlocked {
        border-color: rgba(252, 213, 53, 0.55);
        box-shadow: 0 8px 24px rgba(252, 213, 53, 0.12);
        background: linear-gradient(145deg, rgba(26, 25, 45, 0.9) 0%, rgba(18, 17, 34, 0.95) 100%);
    }
    .rank-card.unlocked::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #fcd535, #f59e0b, #eab308);
    }
    .rank-card.current {
        border-color: var(--gold-primary, #fcd535);
        box-shadow: 0 0 25px rgba(252, 213, 53, 0.28);
    }
    .rank-card.locked {
        opacity: 0.72;
        filter: grayscale(25%);
    }
    .rank-number-badge {
        font-family: 'Space Grotesk', monospace;
        font-size: 1.1rem;
        font-weight: 800;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 14, 28, 0.9);
        border: 1px solid var(--border-glass);
    }
    .rank-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-glass);
    }
    .rank-badge-status {
        font-size: 0.68rem;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* --- Inner Page: referral_staking.php --- */
.coin-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        object-fit: cover;
        background: rgba(15, 14, 28, 0.9);
        border: 1px solid var(--border-glass);
        padding: 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }
    .plan-group-banner {
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-left: 3px solid var(--gold-primary, #fcd535);
        border-radius: 14px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    .staking-pool-card {
        background: var(--bg-card);
        backdrop-filter: blur(14px);
        border: 1px solid var(--border-glass);
        border-radius: 14px;
        padding: 20px;
        margin-bottom: 24px;
        transition: all 0.25s ease;
    }
    .staking-pool-card:hover {
        border-color: rgba(83, 94, 251, 0.45);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
    .progress-custom {
        height: 6px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        overflow: hidden;
    }
    .ref-stat-card {
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: 14px;
        padding: 16px 18px;
        height: 100%;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    .ref-stat-card:hover {
        border-color: rgba(252, 213, 53, 0.35);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .ref-stat-card .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    .level-badge-card {
        background: rgba(15, 14, 28, 0.7);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        padding: 12px 14px;
        text-align: center;
        transition: all 0.2s ease;
    }
    .level-badge-card:hover {
        border-color: var(--primary);
        background: rgba(252, 213, 53, 0.06);
        transform: translateY(-2px);
    }
    .table-filter-bar {
        background: rgba(15, 14, 28, 0.65);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        padding: 12px 16px;
        margin-bottom: 16px;
    }

/* --- Inner Page: referrals.php --- */
.matrix-level-card {
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        padding: 12px 10px;
        text-align: center;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    .matrix-level-card.active-level {
        background: rgba(15, 14, 28, 0.95);
        border-color: rgba(14, 203, 129, 0.4);
    }
    .matrix-level-card.active-level:hover {
        transform: translateY(-2px);
        border-color: #00ca7f;
        box-shadow: 0 8px 20px rgba(0, 202, 127, 0.15);
    }
    .matrix-level-card.locked-level {
        opacity: 0.6;
        border-color: rgba(239, 68, 68, 0.3);
    }
    .nav-tabs-custom {
        border-bottom: 1px solid var(--border-glass) !important;
        gap: 6px;
    }
    .nav-tabs-custom .nav-link {
        color: #939aba !important;
        background: transparent !important;
        border: none !important;
        padding: 9px 16px;
        font-weight: 700;
        font-size: 0.82rem;
        transition: all 0.2s ease;
        border-radius: 8px 8px 0 0 !important;
        border-bottom: 2px solid transparent !important;
    }
    .nav-tabs-custom .nav-link:hover {
        color: #ffffff !important;
        background: rgba(83, 94, 251, 0.08) !important;
    }
    .level-badge-card {
        background: rgba(15, 14, 28, 0.7);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        padding: 14px 14px;
        text-align: center;
        transition: all 0.25s ease;
    }
    .level-badge-card.level-unlocked {
        border: 1px solid var(--gold-primary, #fcd535) !important;
        background: rgba(252, 213, 53, 0.05);
        box-shadow: 0 4px 16px rgba(252, 213, 53, 0.12);
    }
    .level-badge-card.level-unlocked:hover {
        border-color: #ffe066 !important;
        box-shadow: 0 6px 20px rgba(252, 213, 53, 0.25);
        transform: translateY(-2px);
    }
    .level-badge-card.level-locked {
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        background: rgba(15, 14, 28, 0.45);
        opacity: 0.65;
    }
    .level-badge-card.level-locked:hover {
        opacity: 0.85;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-2px);
    }

/* --- Inner Page: security.php --- */
.req-badge {
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 0.74rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }
    .req-badge.invalid {
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
        border: 1px solid rgba(239, 68, 68, 0.25);
    }
    .req-badge.valid {
        background: rgba(14, 203, 129, 0.12);
        color: #0ecb81;
        border: 1px solid rgba(14, 203, 129, 0.3);
    }
    .security-check-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        margin-bottom: 10px;
    }

/* --- Inner Page: staking.php --- */
.coin-logo {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        object-fit: cover;
        background: rgba(15, 14, 28, 0.9);
        border: 1px solid var(--border-glass);
        padding: 3px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }
    .plan-group-banner {
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-left: 3px solid var(--gold-primary, #fcd535);
        border-radius: 14px;
        padding: 16px 20px;
        margin-bottom: 20px;
    }
    .staking-pool-card {
        background: var(--bg-card);
        backdrop-filter: blur(14px);
        border: 1px solid var(--border-glass);
        border-radius: 14px;
        padding: 18px;
        margin-bottom: 20px;
        transition: all 0.25s ease;
    }
    .staking-pool-card:hover {
        border-color: rgba(83, 94, 251, 0.45);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
    .progress-custom {
        height: 6px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        overflow: hidden;
    }

/* --- Inner Page: support.php --- */
.support-kicker {
        font-size: 0.74rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--gold-primary, #fcd535);
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(252, 213, 53, 0.1);
        border: 1px solid rgba(252, 213, 53, 0.3);
        padding: 4px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

/* --- Inner Page: support_detail.php --- */
.chat-container {
        max-height: 480px;
        overflow-y: auto;
        padding: 20px;
        background: rgba(4, 10, 22, 0.7);
        border-radius: 14px;
        border: 1px solid rgba(56, 189, 248, 0.15);
    }
    
    .chat-bubble {
        max-width: 80%;
        padding: 14px 18px;
        border-radius: 16px;
        margin-bottom: 18px;
        position: relative;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }

    .chat-bubble.user {
        background: linear-gradient(135deg, rgba(252, 213, 53, 0.18) 0%, rgba(252, 213, 53, 0.08) 100%);
        border: 1px solid rgba(252, 213, 53, 0.35);
        color: #ffffff;
        margin-left: auto;
        border-bottom-right-radius: 4px;
    }

    .chat-bubble.admin {
        background: rgba(6, 15, 30, 0.95);
        color: #f8fafc;
        margin-right: auto;
        border-bottom-left-radius: 4px;
        border: 1px solid rgba(56, 189, 248, 0.25);
    }

    .chat-time {
        font-size: 0.7rem;
        display: block;
        margin-top: 6px;
        opacity: 0.7;
    }

/* --- Inner Page: wallets.php --- */
.sub-balance-box {
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        padding: 12px 16px;
        transition: all 0.22s ease;
    }
    .sub-balance-box:hover {
        border-color: rgba(83, 94, 251, 0.45);
        background: rgba(20, 19, 34, 0.95);
        transform: translateY(-2px);
    }

/* --- Inner Page: withdraw.php --- */
.policy-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px;
        background: rgba(15, 14, 28, 0.85);
        border: 1px solid var(--border-glass);
        border-radius: 8px;
        margin-bottom: 8px;
        font-size: 0.78rem;
        color: #939aba;
    }
    .policy-item i {
        color: #fcd535;
        margin-top: 2px;
    }
    .fee-calc-box {
        background: rgba(15, 14, 28, 0.95);
        border: 1px solid var(--border-glass);
        border-radius: 10px;
        padding: 12px 16px;
    }

