/* Mobile First High-Yield Investment App CSS - v2.6 (iPhone & Android Sleek Native Mobile Refinement) */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-primary: #080d18;
    --bg-card: rgba(15, 22, 41, 0.92);
    --bg-card-solid: #0f1629;
    --bg-card-border: rgba(255, 255, 255, 0.09);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --accent-red: #e60012;
    --accent-red-hover: #cc0010;
    --accent-red-glow: rgba(230, 0, 18, 0.35);
    --accent-red-light: rgba(230, 0, 18, 0.12);

    --accent-gold: #fbbf24;
    --accent-gold-hover: #f59e0b;

    --accent-green: #10b981;
    --accent-green-light: rgba(16, 185, 129, 0.12);

    --accent-blue: #38bdf8;
    --accent-blue-light: rgba(56, 189, 248, 0.12);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;

    --nav-height: 60px;
    --header-height: 54px;
    --app-max-width: 450px;

    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 18px;
    --border-radius-pill: 50px;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 14px;
    --spacing-lg: 20px;
    --spacing-xl: 28px;
}

/* --- Base Reset & iPhone / Android Optimization --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: #02050e;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    line-height: 1.45;
    font-size: 13.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Mobile Viewport (iPhone & Android Frame) --- */
.app-viewport {
    width: 100%;
    max-width: var(--app-max-width);
    background-color: var(--bg-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* --- Sleek Mobile App Header --- */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: var(--app-max-width);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(8, 13, 24, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    z-index: 1000;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-red), #99000c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

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

.lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--bg-card-border);
    color: #fff;
    padding: 3px 7px;
    border-radius: var(--border-radius-sm);
    font-size: 10.5px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.notif-bell {
    position: relative;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-decoration: none;
    transition: color 0.2s;
}

.notif-bell:hover {
    color: #fff;
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(25%, -25%);
}

.balance-pill {
    background: var(--accent-red-light);
    border: 1px solid rgba(230, 0, 18, 0.35);
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.2s;
}

.balance-pill:hover {
    background: rgba(230, 0, 18, 0.25);
}

.balance-pill__amount {
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 13px;
}

.btn-header-login {
    background: var(--accent-blue-light);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

/* --- Notice Ticker --- */
.notice-ticker {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--bg-card-border);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
}

.notice-ticker__badge {
    background: var(--accent-red);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
}

.notice-ticker__text {
    white-space: nowrap;
    animation: marquee 16s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- Flash Toast --- */
.flash-toast {
    position: fixed;
    top: calc(var(--header-height) + var(--spacing-sm) + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1050;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.3s;
}

.flash-toast--success {
    background: rgba(16, 185, 129, 0.92);
    border: 1px solid var(--accent-green);
    color: #fff;
}

.flash-toast--error {
    background: rgba(239, 68, 68, 0.92);
    border: 1px solid var(--accent-red);
    color: #fff;
}

.flash-toast--info {
    background: rgba(56, 189, 248, 0.92);
    border: 1px solid var(--accent-blue);
    color: #fff;
}

.flash-toast__icon { font-size: 15px; }
.flash-toast__message { flex: 1; }
.flash-toast__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 15px;
}
.flash-toast__close:hover { color: #fff; }

/* --- Floating Support Action Buttons --- */
.floating-actions {
    position: fixed !important;
    bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
    right: max(14px, calc(50% - 210px)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 999998 !important;
}

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.floating-btn:active {
    transform: scale(0.90);
}

.floating-btn--support {
    background: linear-gradient(135deg, #F40009, #99000C);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 18px rgba(244, 0, 9, 0.65);
    overflow: hidden;
    padding: 0;
}

.floating-btn--telegram {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.5);
}

.telegram-icon-circle {
    width: 25px;
    height: 25px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- Native Mobile Bottom Navigation Bar (iPhone / Android Touch Target) --- */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: var(--app-max-width) !important;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(12, 18, 33, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(244, 0, 9, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 999999 !important;
    padding: 3px 0 max(3px, env(safe-area-inset-bottom, 0px)) 0 !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.75) !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 20%;
    height: 100%;
}

.nav-item__pill {
    width: 44px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item__label {
    margin-top: 1px;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Active State — Coca-Cola Red Premium Theme */
.nav-item--active {
    color: #F40009;
}

.nav-item--active .nav-item__pill {
    background: rgba(244, 0, 9, 0.12);
    border: 1.5px solid rgba(244, 0, 9, 0.7);
    box-shadow: 0 0 12px rgba(244, 0, 9, 0.35);
    transform: scale(1.04);
}

.nav-item--active .nav-item__icon {
    color: #F40009;
    filter: drop-shadow(0 0 5px rgba(244, 0, 9, 0.75));
    transform: scale(1.08);
}

.nav-item--active .nav-item__label {
    color: #F40009;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.1px;
}

/* Hover/Touch state for inactive items */
.nav-item:not(.nav-item--active):active {
    transform: scale(0.95);
}

/* --- Layout Utility Classes --- */
.container { padding: var(--spacing-md); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.font-bold { font-weight: 700; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.d-none { display: none !important; }
.d-block { display: block; }
.w-100 { width: 100%; }

/* --- Dashboard Components --- */

/* Banner Carousel */
.banner-carousel {
    padding: var(--spacing-md);
    position: relative;
}

.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    border-radius: var(--border-radius-lg);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.banner-slider::-webkit-scrollbar { display: none; }

.banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.banner-content h4 { font-size: 14px; color: #fff; margin-bottom: 2px;}
.banner-content p { font-size: 10.5px; color: var(--text-muted); }

/* Wallet Card */
.wallet-card {
    margin: 0 var(--spacing-md) var(--spacing-md);
    background: linear-gradient(135deg, #1e1b4b, #060b26);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: var(--accent-red);
    filter: blur(40px);
    opacity: 0.35;
    border-radius: 50%;
}

.wallet-card__label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    position: relative; z-index: 1;
}

/* Wallet Check-In Quick Badge */
a.wallet-checkin-badge,
.wallet-checkin-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(20, 83, 45, 0.95)) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    border-radius: 18px !important;
    padding: 3px 7px 3px 8px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
}

a.wallet-checkin-badge:active {
    transform: scale(0.96) !important;
}

.wallet-checkin-badge__icon {
    width: 20px !important;
    height: 20px !important;
    background: rgba(34, 197, 94, 0.25) !important;
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.wallet-checkin-badge__title {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.1px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.wallet-checkin-badge__btn {
    background: #10b981 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.wallet-card__balance {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}

.wallet-card__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    position: relative; z-index: 1;
}

.wallet-stat__label { font-size: 10.5px; color: var(--text-muted); margin-bottom: 2px;}
.wallet-stat__value { font-size: 14px; color: var(--accent-gold); font-weight: 700; }

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.action-btn:active { transform: scale(0.94); }
.action-btn:hover {
    border-color: rgba(230, 0, 18, 0.5);
    background: rgba(230, 0, 18, 0.08);
}

.action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.action-btn span { font-size: 10.5px; font-weight: 700; color: #cbd5e1; line-height: 1.2; }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px var(--spacing-md) 10px;
}

.section-header__title { font-size: 16px; font-weight: 800; color: #fff; }
.section-header__link { font-size: 12px; color: var(--accent-red); text-decoration: none; font-weight: 700; }

/* Packages List */
.packages-list {
    padding: 0 var(--spacing-md) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.package-card:active {
    transform: scale(0.98);
}

.package-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-red), #99000c);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 16px;
}

.package-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.package-card__img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: #1e293b;
    border: 1.5px solid rgba(230, 0, 18, 0.5);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.35);
}

.package-card__title { font-size: 15px; color: #fff; margin-bottom: 2px; font-weight: 800; }
.package-card__price { font-size: 12.5px; color: var(--accent-gold); font-weight: 800; }

.package-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 8px;
    gap: 6px;
    margin-bottom: 12px;
    text-align: center;
}

.package-stat__label { font-size: 10px; color: var(--text-muted); display: block; margin-bottom: 2px;}
.package-stat__value { font-size: 12.5px; color: #fff; font-weight: 700;}

/* --- Mobile Buttons (Standard Touch Target: 44px Height) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--primary {
    background: linear-gradient(135deg, var(--accent-red), #b3000e);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-red-glow);
}

.btn--primary:hover { background: linear-gradient(135deg, #cc0010, #99000c); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--accent-red);
    color: var(--accent-red);
}
.btn--outline:hover { background: var(--accent-red-light); }

.btn--success {
    background: var(--accent-green);
    color: #fff;
}
.btn--success:hover { background: #059669; }

.btn--sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 8px;
}

/* Forms & Input Controls (Mobile Touch Optimized) */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 18px 16px;
    margin: var(--spacing-md);
}

.form-group { margin-bottom: 12px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus { border-color: var(--accent-red); }
.form-control::placeholder { color: rgba(148, 163, 184, 0.5); }
.form-control:disabled, .form-control[readonly] {
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 1em; padding-right: 36px; }
select.form-control option { background: var(--bg-card-solid); color: #fff;}

/* Alerts */
.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
}

.alert--danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert--success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #86efac; }
.alert--info { background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.4); color: #93c5fd; }
.alert--warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-md);
}

.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
    background: #0f172a;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    max-width: 360px;
    width: 100%;
    padding: var(--spacing-md);
    position: relative;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 12px; text-align: center; }

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

/* Quick Info Box */
.info-box {
    margin: 0 var(--spacing-md) var(--spacing-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.info-box__title { font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px;}
.info-box__value { font-size: 15px; font-weight: 800; color: #fff; }

/* Status Badges */
.badge {
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-block;
}
.badge--success { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.3); }
.badge--warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245,158,11,0.3); }
.badge--danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge--info { background: rgba(56, 189, 248, 0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* --- Spin Wheel Styles --- */
.spin-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px 14px;
    margin: var(--spacing-md);
    text-align: center;
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wheel-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 16px auto;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 34px;
    background: var(--accent-gold);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #334155;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.segment {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: 0% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    box-sizing: border-box;
    padding-left: 16px;
}

.segment span {
    transform: rotate(60deg) translateX(24px);
    display: inline-block;
}

/* App Download Header Button */
.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(244, 0, 9, 0.2), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(244, 0, 9, 0.45);
    color: #fff;
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}
.app-download-btn:active {
    transform: scale(0.95);
}

/* ═══ Custom Animated Purchase Confirmation Modal ═══ */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    animation: fadeIn 0.2s ease-out forwards;
}

.custom-modal-box {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border: 1.5px solid rgba(244, 0, 9, 0.45);
    border-radius: 18px;
    padding: 16px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(244, 0, 9, 0.2);
    transform: scale(0.94);
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to { transform: scale(1); }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom-modal-badge {
    background: rgba(244, 0, 9, 0.15);
    color: #ef4444;
    border: 1px solid rgba(244, 0, 9, 0.3);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 16px;
    letter-spacing: 0.3px;
}

.custom-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.custom-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.custom-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 14px;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
}

.modal-stat-label {
    font-size: 10.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.modal-stat-val {
    font-size: 13px;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLAIM REWARD POPUP MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.claim-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.claim-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.claim-modal-card {
    width: 100%;
    max-width: 310px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(230, 0, 18, 0.25);
    transform: scale(0.85) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.claim-modal-overlay.active .claim-modal-card {
    transform: scale(1) translateY(0);
}

.claim-modal-header {
    background: linear-gradient(135deg, #e60012 0%, #b91c1c 60%, #991b1b 100%);
    padding: 22px 16px 18px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.claim-modal-header--error {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
}

.claim-modal-sparkle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    animation: sparklePulse 2s ease-in-out infinite alternate;
}

@keyframes sparklePulse {
    0% { transform: scale(0.92) rotate(-5deg); opacity: 0.88; }
    100% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.claim-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
}

.claim-modal-subtitle {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.3;
}

.claim-modal-body {
    padding: 20px 18px 18px;
    text-align: center;
    background: #0f172a;
}

.claim-modal-meta-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.claim-modal-amount {
    font-size: 32px;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1;
}

.claim-modal-wallet {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 18px;
}

.claim-modal-done-btn {
    width: 100%;
    min-height: 42px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e60012, #c20010);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
    box-shadow: 0 6px 18px -4px rgba(230, 0, 18, 0.55);
    transition: background 0.2s, transform 0.15s;
}

.claim-modal-done-btn:active {
    transform: scale(0.96);
}

.claim-modal-done-btn--error {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAYMENT GATEWAY CHECKOUT UI
   ═══════════════════════════════════════════════════════════════════════════ */
.gateway-wrapper {
    max-width: var(--app-max-width);
    margin: 0 auto 24px;
}

.gateway-top-banner {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%);
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gateway-top-banner__amount-label {
    font-size: 10.5px;
    color: #a7f3d0;
    margin-bottom: 2px;
}

.gateway-top-banner__amount-val {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
}

.gateway-top-banner__order-label {
    font-size: 9.5px;
    color: #a7f3d0;
    text-align: right;
    margin-bottom: 2px;
}

.gateway-top-banner__order-val {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
}

/* Notice Box */
.gateway-notice-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid #10b981;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.gateway-notice-box ul {
    margin: 0;
    padding-left: 16px;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
}

.gateway-notice-box li {
    margin-bottom: 5px;
}

.gateway-notice-box li:last-child {
    margin-bottom: 0;
}

.gateway-notice-box strong {
    color: #ef4444;
}

/* Step Header */
.gateway-step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.gateway-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #047857;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gateway Bank Selection Grid */
.gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.gateway-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    user-select: none;
}

.gateway-card:active {
    transform: scale(0.96);
}

.gateway-card.active {
    border-color: #e60012;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.gateway-card__logo {
    width: 38px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gateway-card__name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.gateway-card__badge {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    display: none;
}

.gateway-card.active .gateway-card__badge {
    display: block;
}

/* Copy Account Card */
.gateway-copy-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
}

.gateway-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gateway-copy-row:last-child {
    border-bottom: none;
}

.gateway-copy-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.gateway-copy-val {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', monospace, sans-serif;
}

.gateway-copy-val--red {
    color: #e60012;
}

.gateway-copy-btn {
    background: #e60012;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
    box-shadow: 0 3px 10px rgba(230, 0, 18, 0.3);
}

.gateway-copy-btn:active {
    transform: scale(0.94);
}

/* Input Fields & Submit */
.gateway-input {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}

.gateway-input:focus {
    border-color: #e60012;
}

.gateway-help-link {
    display: inline-block;
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 18px;
    cursor: pointer;
}

.gateway-submit-btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e60012, #c20010);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.45);
    transition: transform 0.15s;
}

.gateway-submit-btn:active {
    transform: scale(0.97);
}
