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

/* ==========================================================================
   Design Tokens & CSS Variables - Luxury Modern Dark Mode System
   ========================================================================== */
:root {
    --font-arabic: 'Cairo', 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-latin: 'Plus Jakarta Sans', sans-serif;

    /* Base Palette - Matched 100% to Admin Executive Deep Dark Theme */
    --bg-dark: #080C14;
    --bg-surface: #0E1422;
    --bg-surface-elevated: #111827;
    --bg-surface-hover: #151F33;
    --bg-glass: rgba(14, 20, 34, 0.85);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(99, 102, 241, 0.35);

    /* Brand Accents */
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --cyan-glow: rgba(6, 182, 212, 0.25);

    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-cyan: #06B6D4;
    --accent-purple: #A855F7;

    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Dimensions */
    --sidebar-width: 280px;
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    
    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background-color: #080C14;
}

html {
    direction: rtl;
    text-align: right;
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    background-color: #080C14;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Helpers */
.num, .code-font {
    font-family: var(--font-latin);
    direction: ltr;
    display: inline-block;
}
td.num, th.num {
    display: table-cell !important;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #080C14;
    position: relative;
}

/* Sidebar Styles */
.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    align-self: flex-start;
    z-index: 50;
    transition: transform var(--transition-smooth);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px var(--primary-glow);
    color: #fff;
    font-size: 20px;
}

.brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 14px 6px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.94rem;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    transform: translateX(-3px);
}

.nav-item.active {
    background: linear-gradient(270deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.04) 100%);
    color: #fff;
    font-weight: 600;
    border-right: 3px solid var(--primary);
}

.nav-item .icon {
    font-size: 1.15rem;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.nav-badge {
    margin-right: auto;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-latin);
}

/* User Card in Sidebar */
.sidebar-user {
    padding: 16px;
    margin: 12px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3B82F6 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-latin);
}

/* Main Content Area */
.app-main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #080C14;
}

/* Topbar Header */
.app-header {
    height: var(--header-height);
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-stat-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

/* Content Container - Identical to Admin Layout */
.page-content {
    flex: 1;
    min-width: 0;
    padding: 24px 32px;
    zoom: 0.88;
}

/* Multi-column Grid Utilities */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UI Components - Glass Cards, Buttons, Inputs, Tables
   ========================================================================== */

/* Glass Cards */
.glass-card {
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

/* ==========================================================================
   Stepped Notched Tab Cards - High-Tech Executive (Admin Style)
   ========================================================================== */
.notch-card {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.notch-card:hover {
    transform: translateY(-3px);
}

.notch-tab-wrap {
    display: flex;
    justify-content: flex-start;
    margin-right: 6px;
}

.notch-tab {
    background: #111622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.notch-tab-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.notch-body {
    background: #111622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 0 16px 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -1px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notch-body::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.18;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.neon-gold .notch-body::before { background: #FACC15; }
.neon-cyan .notch-body::before { background: #38BDF8; }
.neon-emerald .notch-body::before { background: #10B981; }
.neon-purple .notch-body::before { background: #C084FC; }
.neon-rose .notch-body::before { background: #F43F5E; }

.notch-card:hover .notch-body {
    border-color: rgba(255, 255, 255, 0.18);
}

.notch-card:hover .notch-body::before {
    opacity: 0.35;
}

.notch-sparkline {
    flex: 1;
    height: 36px;
    max-width: 110px;
    margin: 0 14px;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notch-card:hover .notch-sparkline {
    opacity: 0.85;
    transform: scale(1.06);
}

.notch-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.notch-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFF;
    font-family: var(--font-latin);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.notch-sub {
    font-size: 0.76rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notch-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.notch-icon-box svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}

.notch-card:hover .notch-icon-box svg {
    transform: scale(1.12);
}

/* Neon Color Variations */
.neon-gold .notch-icon-box {
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.05);
}
.neon-gold .notch-icon-box svg {
    color: #FACC15;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.85)) drop-shadow(0 0 16px rgba(250, 204, 21, 0.4));
}
.neon-gold .notch-tab-indicator {
    background: #FACC15;
    box-shadow: 0 0 8px #FACC15;
}

.neon-cyan .notch-icon-box {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.05);
}
.neon-cyan .notch-icon-box svg {
    color: #38BDF8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.4));
}
.neon-cyan .notch-tab-indicator {
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
}

.neon-emerald .notch-icon-box {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}
.neon-emerald .notch-icon-box svg {
    color: #10B981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.85)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.4));
}
.neon-emerald .notch-tab-indicator {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.neon-purple .notch-icon-box {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}
.neon-purple .notch-icon-box svg {
    color: #C084FC;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.85)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.4));
}
.neon-purple .notch-tab-indicator {
    background: #C084FC;
    box-shadow: 0 0 8px #C084FC;
}

.neon-rose .notch-icon-box {
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.05);
}
.neon-rose .notch-icon-box svg {
    color: #FB7185;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.85)) drop-shadow(0 0 16px rgba(244, 63, 94, 0.4));
}
.neon-rose .notch-tab-indicator {
    background: #FB7185;
    box-shadow: 0 0 8px #FB7185;
}

/* Active State for Interactive Notch Cards (e.g. Add Funds) */
.notch-card.active .notch-body {
    border-color: #6366F1 !important;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.28) !important;
}
.notch-card.active .notch-tab {
    border-color: #6366F1 !important;
    background: #151D30 !important;
}

/* Metric Cards - Executive Financial Style */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

/* Corner Ambient Glow */
.metric-card::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--card-glow, rgba(99, 102, 241, 0.12));
    filter: blur(28px);
    pointer-events: none;
}

.metric-card.card-balance::before { background: rgba(99, 102, 241, 0.2); }
.metric-card.card-spent::before { background: rgba(16, 185, 129, 0.2); }
.metric-card.card-orders::before { background: rgba(56, 189, 248, 0.2); }
.metric-card.card-processing::before { background: rgba(245, 158, 11, 0.2); }

.metric-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

.metric-card-title {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon-wrap {
    transform: scale(1.08);
}

.metric-card-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    margin-bottom: 12px;
}

.metric-card-value {
    color: #FFFFFF;
    font-size: 1.65rem;
    font-weight: 800;
    font-family: var(--font-latin);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.metric-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-latin);
}

.metric-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-trend-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.metric-trend-pill.emerald {
    color: #34D399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.metric-trend-pill.indigo {
    color: #818CF8;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.24);
}

.metric-trend-pill.cyan {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
}

.metric-trend-pill.amber {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.metric-card-link {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.metric-card-link:hover {
    color: #FFFFFF;
}

/* Interactive Gateway Cards - Transparent wrapper for notch-card */
.gateway-card {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.gateway-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gateway-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gateway-title-h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
}

.gateway-limits-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-latin);
}

/* VIP Loyalty Tier Progression Component */
.vip-tier-card {
    background: linear-gradient(145deg, rgba(20, 28, 48, 0.85) 0%, rgba(11, 16, 28, 0.96) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.05);
}

.vip-tier-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vip-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.vip-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 22px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.vip-tier-title-wrap {
    flex: 1;
    min-width: 240px;
}

.vip-tier-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.vip-tier-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.vip-tier-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FBBF24;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.vip-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.14);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.vip-tier-desc {
    color: var(--text-secondary);
    font-size: 0.84rem;
    margin: 0;
    line-height: 1.5;
}

.vip-next-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.vip-next-pill .next-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.vip-next-pill .next-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #818CF8;
}

.vip-track-wrapper {
    margin-bottom: 20px;
}

.vip-track-bar {
    background: rgba(255, 255, 255, 0.06);
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}

.vip-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
    border-radius: 99px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-milestones {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 6px;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    position: relative;
}

.milestone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1E293B;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.milestone.active .milestone-dot {
    background: #10B981;
    border-color: #34D399;
    box-shadow: 0 0 10px #10B981;
}

.milestone.active span {
    color: #E2E8F0;
    font-weight: 600;
}

.vip-stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.vip-stat-item {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-stat-item .muted {
    color: var(--text-muted);
}

/* Deposit Presets & Currency Converter */
.deposit-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 16px;
}

.preset-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-latin);
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #FFF;
    transform: translateY(-1px);
}

.currency-preview {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-preview .egp-val {
    font-weight: 800;
    color: #34D399;
    font-size: 0.95rem;
}

/* Rich Empty State Component */
.rich-empty-state {
    text-align: center;
    padding: 45px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(21, 29, 48, 0.7) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i, .stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 500;
}

.stat-value {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    margin-top: 4px;
    font-family: var(--font-latin);
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Platform Filter Toolbar */
.platform-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.platform-selector::-webkit-scrollbar {
    display: none;
}

.platform-pill {
    padding: 8px 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.platform-pill:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.platform-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(79, 70, 229, 0.35) 100%);
    border: 1px solid #818CF8;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control, .form-select {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-surface-hover);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
    color: #fff;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

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

/* Modern Data Tables */
/* Modern Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 99px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 99px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

.smm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    min-width: 680px;
}

.smm-table th {
    background: #111827;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.smm-table td {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0E1422;
    color: #F8FAFC;
    font-size: 0.9rem;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.smm-table td.nowrap,
.smm-table th.nowrap {
    white-space: nowrap;
}

.smm-table tr:hover td {
    background: #172237;
}

@media (max-width: 1024px) {
    .smm-table th,
    .smm-table td {
        padding: 11px 12px;
        font-size: 0.82rem;
    }

    /* Sticky Actions column on the left (RTL) so buttons never scroll out of view */
    .smm-table th:last-child {
        position: sticky;
        left: 0;
        background: #111827 !important;
        z-index: 10;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    }

    .smm-table td:last-child {
        position: sticky;
        left: 0;
        background: #0E1422 !important;
        z-index: 9;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-blue { background: rgba(59, 130, 246, 0.12); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.25); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-rose { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.25); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-slate { background: rgba(100, 116, 139, 0.15); color: var(--text-secondary); border: 1px solid rgba(100, 116, 139, 0.25); }

/* Executive Status Tabs Navigation */
.tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    padding: 8px 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.tab-link:hover {
    color: #F1F5F9;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.tab-link .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-latin);
    background: rgba(255, 255, 255, 0.07);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

/* Distinct High-Contrast Active States */
.tab-link.active {
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-link.tab-all.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(79, 70, 229, 0.36) 100%);
    border: 1px solid #818CF8;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.tab-link.tab-all.active .tab-count {
    background: #6366F1;
    color: #FFFFFF;
    border-color: #818CF8;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.tab-link.tab-pending.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.34) 100%);
    border: 1px solid #FBBF24;
    color: #FEF3C7;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.tab-link.tab-pending.active .tab-count {
    background: #F59E0B;
    color: #080C14;
    border-color: #FBBF24;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.tab-link.tab-processing.active,
.tab-link.tab-in_progress.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.34) 100%);
    border: 1px solid #38BDF8;
    color: #E0F2FE;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}
.tab-link.tab-processing.active .tab-count,
.tab-link.tab-in_progress.active .tab-count {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #38BDF8;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.tab-link.tab-completed.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.34) 100%);
    border: 1px solid #34D399;
    color: #D1FAE5;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.tab-link.tab-completed.active .tab-count {
    background: #10B981;
    color: #080C14;
    border-color: #34D399;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.tab-link.tab-partial.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(147, 51, 234, 0.34) 100%);
    border: 1px solid #C084FC;
    color: #F3E8FF;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
}
.tab-link.tab-partial.active .tab-count {
    background: #9333EA;
    color: #FFFFFF;
    border-color: #C084FC;
    box-shadow: 0 2px 6px rgba(147, 51, 234, 0.4);
}

.tab-link.tab-canceled.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.34) 100%);
    border: 1px solid #FB7185;
    color: #FFE4E6;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}
.tab-link.tab-canceled.active .tab-count {
    background: #E11D48;
    color: #FFFFFF;
    border-color: #FB7185;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

/* Alerts / Flash Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34D399; }
.alert-error { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.3); color: #FB7185; }

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(14, 20, 34, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item .icon {
    font-size: 1.3rem;
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 90;
    transition: opacity var(--transition-fast);
}
.sidebar-backdrop.active {
    display: block;
}

/* Responsive Grid Layouts */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.responsive-grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* User Info Rows */
.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.user-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.user-info-row .val {
    word-break: break-all;
    text-align: left;
    font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Universal Sidebar Toggle & Close Buttons */
.sidebar-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #E2E8F0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary, #6366F1);
    color: #FFFFFF;
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.sidebar-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #94A3B8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #EF4444;
}

.sidebar-close-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Desktop Collapsible Sidebar (> 1024px)
   ========================================================================== */
@media (min-width: 1025px) {
    .app-sidebar {
        transition: margin-right 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    }

    .app-container.sidebar-collapsed .app-sidebar {
        margin-right: -270px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints for Tablets (iPad <= 1024px) & Mobile
   ========================================================================== */
@media (max-width: 1024px) {
    .responsive-grid-2,
    .responsive-grid-equal {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        height: 100vh !important;
        transform: translateX(100%) !important;
        margin-right: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1050 !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .app-sidebar.open {
        transform: translateX(0) !important;
    }

    #sidebarToggle,
    .sidebar-toggle-btn {
        display: inline-flex !important;
    }

    .app-main {
        width: 100% !important;
        min-width: 100% !important;
    }

    .app-header {
        padding: 0 16px !important;
    }

    .page-content {
        padding: 20px 16px 40px;
    }

    .header-stats .header-stat-chip {
        display: none !important;
    }

    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .header-actions .header-stat-chip {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .header-actions .header-stat-chip span {
        display: none;
    }
    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.84rem;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .page-content {
        padding: 16px 12px 85px !important;
    }
    .app-header {
        padding: 0 12px !important;
    }
}

/* ========================================================
   SMM Prime Flagship Header Stat Cards & Modern Order Form
   ======================================================== */

.smm-notch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .smm-notch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .smm-notch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.smm-notch-card {
    position: relative;
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.smm-notch-card:hover {
    border-color: rgba(250, 204, 21, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.smm-notch-tab {
    position: absolute;
    top: -12px;
    right: 18px;
    background: #141B2B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #F1F5F9;
    z-index: 2;
}

.smm-notch-tab .tab-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FACC15;
    color: #080C14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
}

.smm-notch-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.08);
    border: 1.5px solid rgba(250, 204, 21, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FACC15;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.12);
}

.smm-notch-icon svg,
.smm-notch-icon i {
    width: 22px;
    height: 22px;
}

.smm-notch-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: right;
    width: 100%;
    padding-left: 12px;
}

.smm-notch-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    font-family: var(--font-latin), sans-serif;
    letter-spacing: -0.01em;
}

.smm-notch-sub {
    font-size: 0.74rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modern Form Enhancements */
.order-form-card {
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.order-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.order-form-card .form-group {
    margin-bottom: 20px;
}

.order-form-card .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #F1F5F9;
    margin-bottom: 8px;
}

.order-form-card .label-step {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818CF8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.order-form-card .form-select,
.order-form-card .form-control {
    background: #080C14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #FFFFFF !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.order-form-card .form-select:focus,
.order-form-card .form-control:focus {
    border-color: #818CF8 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
    background: #0B101C !important;
}

.details-sticky-card {
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 85px;
}

/* ========================================================
   Searchable Compact Custom Select Component
   ======================================================== */

.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    background: #080C14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: #0B101C;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #818CF8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: #0B101C;
}

.custom-select-trigger .custom-select-label {
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
    padding-left: 8px;
    flex: 1;
    text-align: right;
}

.custom-select-arrow {
    width: 16px;
    height: 16px;
    color: #94A3B8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
    color: #818CF8;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0E1422;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.custom-select-wrapper.open .custom-select-dropdown {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
}

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

.custom-select-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
}

.custom-select-search svg,
.custom-select-search i {
    width: 14px;
    height: 14px;
    color: #94A3B8;
    flex-shrink: 0;
}

.custom-select-search input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.custom-select-search input::placeholder {
    color: #64748B;
}

.custom-select-options {
    max-height: 290px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.custom-option {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #CBD5E1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #FFFFFF;
}

.custom-option.selected {
    background: rgba(99, 102, 241, 0.2);
    color: #818CF8;
    font-weight: 700;
}

.custom-option-text {
    white-space: normal;
    word-break: break-word;
    line-height: 1.55;
    text-align: right;
    flex: 1;
}

.custom-option-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    white-space: nowrap;
}

.custom-option-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.custom-option:hover .custom-option-price {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    color: #FFFFFF !important;
    transform: scale(1.05);
}

.custom-option.selected .custom-option-price {
    background: rgba(99, 102, 241, 0.4);
    border-color: rgba(129, 140, 248, 0.7);
    color: #FFFFFF !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.custom-select-empty {
    padding: 18px;
    text-align: center;
    color: #64748B;
    font-size: 0.82rem;
}

/* ==========================================================================
   Modern Luxury Dark Mode Pagination
   ========================================================================== */
.smm-pagination-container {
    width: 100%;
}

.pagination-page:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(99, 102, 241, 0.22) !important;
    color: #FFFFFF !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
}

/* Safety rule to prevent any unstyled giant pagination SVGs across the entire app */
nav[role="navigation"] svg,
.pagination svg {
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Universal removal of ugly browser number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* ==========================================================================
   Executive Price Stepper Control (Compact & Proportional)
   ========================================================================== */
.smm-price-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 3px 5px;
    gap: 4px;
    width: fit-content;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.smm-price-stepper:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.stepper-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    user-select: none;
    padding: 0;
}
.stepper-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.45);
    color: #FFFFFF;
}
.stepper-btn:active {
    transform: scale(0.92);
}
.stepper-btn-minus:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}
.stepper-btn-plus:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34D399;
}
.stepper-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 4px;
}
.stepper-currency-symbol {
    font-size: 0.95rem;
    font-weight: 800;
    color: #34D399;
}
.stepper-input {
    width: 48px;
    max-width: 60px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #FFFFFF !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    padding: 0 !important;
    font-family: var(--font-latin, monospace) !important;
}
.stepper-currency-label {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 600;
    margin-right: 2px;
}
.stepper-presets {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.stepper-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #CBD5E1;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}
.stepper-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #FFFFFF;
}

/* ==========================================================================
   Universal Modal & Close Button
   ========================================================================== */
.smm-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 8, 16, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}
.smm-modal-overlay.active,
.smm-modal-overlay[style*="display: flex"] {
    display: flex !important;
}
.smm-modal-card {
    background: #0E1422 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: smmModalZoom 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes smmModalZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.smm-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.smm-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    transform: rotate(90deg) scale(1.06);
}

/* ==========================================================================
   Child Panels Side-by-Side Main Grid
   ========================================================================== */
.smm-panels-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-bottom: 28px;
    align-items: start;
}
@media (max-width: 1024px) {
    .smm-panels-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Select & Option Styling for Dark Mode Consistency */
:root {
    color-scheme: dark !important;
}

select, select.form-control, select.form-select, .form-select {
    color-scheme: dark !important;
    background-color: #0E1422 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

select option, select optgroup {
    color-scheme: dark !important;
    background-color: #12192A !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

select option:checked, select option:hover {
    background-color: #1E293B !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.custom-currency-item:hover {
    background: rgba(99, 102, 241, 0.16) !important;
}

