/* =====================================================
   Jazz Investment — White Theme v5.0
   Primary: #d71920 | Accent: #e6a800
   White Background | Black Icons | Mobile-First
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary:       #d71920;
    --primary-dark:  #a51017;
    --primary-light: #f93c44;
    --primary-glow:  rgba(215,25,32,0.15);
    --accent:        #e6a800;
    --accent-light:  #ffcb05;
    --bg:            #f2f2f7;
    --card:          #ffffff;
    --border:        #e8e8e8;
    --border-red:    rgba(215,25,32,0.15);
    --text:          #111111;
    --text-2:        #444444;
    --text-3:        #888888;
    --text-4:        #bbbbbb;
    --navbar-h:      60px;
    --radius:        14px;
    --radius-lg:     20px;
    --shadow:        0 2px 10px rgba(0,0,0,0.07);
    --shadow-md:     0 4px 18px rgba(0,0,0,0.1);
    --shadow-lg:     0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-top: var(--navbar-h);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   LOADER
============================================================ */
#page-loader {
    position: fixed; inset: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    transition: opacity 0.5s ease;
}
.loader-ring {
    position: relative; width: 58px; height: 58px;
}
.loader-ring::before, .loader-ring::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
}
.loader-ring::before {
    border: 5px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 0.9s linear infinite;
}
.loader-ring::after {
    inset: 10px; border: 4px solid transparent;
    border-bottom-color: var(--accent);
    border-left-color: var(--accent);
    animation: spin 0.65s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-ring-track { position: absolute; inset: 0; border-radius: 50%; border: 5px solid #eee; }
.loader-brand { font-size: 1.35rem; font-weight: 900; color: #111; }
.loader-brand span { color: var(--primary); }
.loader-dots { display: flex; gap: 7px; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; animation: dotPulse 1.2s ease-in-out infinite; }
.loader-dots span:nth-child(1) { background: var(--primary); }
.loader-dots span:nth-child(2) { background: var(--accent); animation-delay: .2s; }
.loader-dots span:nth-child(3) { background: var(--primary); animation-delay: .4s; }
@keyframes dotPulse { 0%,80%,100% { transform: scale(.5); opacity: .3; } 40% { transform: scale(1); opacity: 1; } }
.loader-logo-wrap { text-align: center; }

/* ============================================================
   NAVBAR
============================================================ */
.main-navbar {
    background: #ffffff;
    border-bottom: 2.5px solid var(--primary);
    padding: 0 1.1rem;
    height: var(--navbar-h);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1050;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 12px rgba(215,25,32,0.08);
}
.logo-text { font-size: 1.1rem; font-weight: 900; color: #111; white-space: nowrap; }
.logo-text span { color: var(--primary); }
.logo-crescents { position: relative; width: 48px; height: 38px; flex-shrink: 0; }
.logo-yellow { position: absolute; top: 0; left: 0; }
.logo-red    { position: absolute; top: 0; left: 9px; }
.logo-wrapper { display: flex; align-items: center; gap: 9px; }
.logo-yellow path { fill: var(--accent-light) !important; }
.logo-red    path { fill: var(--primary) !important; }

/* ============================================================
   LAYOUT
============================================================ */
.main-content { max-width: 540px; margin: 0 auto; padding: 1.2rem 0.85rem 6.5rem; }

/* ============================================================
   CARDS
============================================================ */
.card-dark {
    background: var(--card);
    border: 2px solid var(--border-red);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.stat-card {
    background: var(--card);
    border: 2px solid var(--border-red);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.stat-value { font-size: 1.6rem; font-weight: 900; color: #111; }
.stat-label { color: #444; font-size: 0.78rem; margin-top: 3px; font-weight: 600; }
.stat-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.stat-icon.green { background: #111;    color: #fff; border: none; }
.stat-icon.gold  { background: #e6a800; color: #fff; border: none; }
.stat-icon.blue  { background: #d71920; color: #fff; border: none; }
.stat-icon.red   { background: #d71920; color: #fff; border: none; }

/* ============================================================
   ICONS  — RED / YELLOW / BLACK ROTATING
============================================================ */
.icon-3d {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: #d71920;
    border: none;
    box-shadow: 0 3px 10px rgba(215,25,32,0.25);
    color: #fff !important;
    font-size: 1.15rem; flex-shrink: 0;
    transition: all 0.25s ease; text-decoration: none;
}
.icon-3d:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 18px rgba(215,25,32,0.35); color: #fff !important; background: #a51017; }
.icon-sm { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 9px; }
.icon-lg { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 15px; }
.icon-red  { background: #d71920 !important; color: #fff !important; box-shadow: 0 3px 10px rgba(215,25,32,0.25); }
.icon-gold { background: #e6a800 !important; color: #fff !important; box-shadow: 0 3px 10px rgba(230,168,0,0.3); }
.icon-black { background: #111 !important; color: #fff !important; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.icon-pulse { animation: iconPulse 2s infinite; }
@keyframes iconPulse { 0%,100%{ box-shadow:0 3px 10px rgba(215,25,32,0.25),0 0 0 0 rgba(215,25,32,0.2); } 50%{ box-shadow:0 3px 10px rgba(215,25,32,0.25),0 0 0 7px rgba(215,25,32,0); } }

/* ============================================================
   BUTTONS
============================================================ */
.btn-red {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important; border: none; padding: 11px 24px;
    border-radius: 11px; font-weight: 700; cursor: pointer;
    box-shadow: 0 3px 10px var(--primary-glow);
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--primary-glow); color: #fff !important; }
.btn-outline-red {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    padding: 10px 22px; border-radius: 11px; font-weight: 700; transition: all 0.2s; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-red:hover { background: var(--primary); color: #fff !important; }
.btn-gold {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #111 !important; border: none; padding: 11px 24px;
    border-radius: 11px; font-weight: 800; cursor: pointer; transition: all 0.2s;
}

/* ============================================================
   FORMS
============================================================ */
.form-control-dark {
    background: #fff; border: 1.5px solid #ddd; color: #111;
    border-radius: 11px; padding: 11px 14px; width: 100%;
    font-family: inherit; font-size: 0.92rem; transition: all 0.2s;
}
.form-control-dark:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(215,25,32,0.1); outline: none; color: #111; }
.form-control-dark::placeholder { color: #bbb; }
.form-label { color: #111; font-weight: 700; margin-bottom: 6px; display: block; font-size: 0.84rem; }

/* ============================================================
   BADGES
============================================================ */
.badge-pending  { background: rgba(230,168,0,0.15);  color: #a07800; border: 1.5px solid rgba(230,168,0,0.5);  border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; display: inline-block; }
.badge-approved { background: rgba(22,163,74,0.15);  color: #15803d; border: 1.5px solid rgba(22,163,74,0.45); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; display: inline-block; }
.badge-rejected { background: rgba(215,25,32,0.12); color: #c0000a; border: 1.5px solid rgba(215,25,32,0.4); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; display: inline-block; }
.badge-active   { background: rgba(33,150,243,0.15); color: #1565c0; border: 1.5px solid rgba(33,150,243,0.4); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; display: inline-block; }
.badge-verified { background: rgba(22,163,74,0.15);  color: #15803d; border: 1.5px solid rgba(22,163,74,0.45); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; display: inline-block; }

/* ============================================================
   TABLES
============================================================ */
.table-dark-custom { width: 100%; border-collapse: collapse; }
.table-dark-custom th { background: #fff0f0; color: #c0000a; padding: 10px 13px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 2px solid rgba(215,25,32,0.25); white-space: nowrap; }
.table-dark-custom td { padding: 12px 13px; color: #222; border-bottom: 1px solid #f0f0f0; font-size: 0.87rem; vertical-align: middle; }
.table-dark-custom tr:hover td { background: #fff8f8; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }

/* ============================================================
   MENU GRID
============================================================ */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 0.9rem; }
.menu-item {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 0.55rem;
    text-align: center; text-decoration: none; color: var(--text);
    transition: all 0.22s; display: flex; flex-direction: column;
    align-items: center; gap: 7px; position: relative; overflow: hidden;
    box-shadow: var(--shadow);
}
.menu-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.22s; border-radius: 0 0 2px 2px; }
.menu-item:hover::after, .menu-item.active::after { transform: scaleX(1); }
.menu-item:hover { border-color: rgba(215,25,32,0.2); transform: translateY(-3px); box-shadow: var(--shadow-md); color: #111; }
.menu-item.active { border-color: rgba(215,25,32,0.3); background: #fff8f8; }
.menu-item .menu-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: #111;
    color: #fff !important;
    border: none;
    transition: all 0.22s;
}
/* Rotating icon colors — every 3rd icon gets a different color */
.menu-item:nth-child(3n+1) .menu-icon { background: #d71920; }
.menu-item:nth-child(3n+2) .menu-icon { background: #111111; }
.menu-item:nth-child(3n+3) .menu-icon { background: #e6a800; }
.menu-item:hover .menu-icon, .menu-item.active .menu-icon { background: #d71920 !important; color: #fff !important; transform: scale(1.06); box-shadow: 0 4px 14px rgba(215,25,32,0.3); }
.menu-item.gold-item .menu-icon { background: #e6a800; color: #fff !important; }
.menu-item.gold-item:hover .menu-icon { background: #c98f00 !important; color: #fff !important; }
.menu-item .menu-label { font-size: 0.7rem; font-weight: 700; color: #222; transition: color 0.2s; }
.menu-item:hover .menu-label, .menu-item.active .menu-label { color: #d71920; }
.menu-item .menu-badge { position: absolute; top: 7px; right: 7px; background: var(--primary); color: #fff; border-radius: 50%; width: 17px; height: 17px; font-size: 0.55rem; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ============================================================
   PROFILE HEADER
============================================================ */
.jc-profile-header {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary), #f93c44);
    border-radius: var(--radius-lg); padding: 1.4rem 1.2rem 1.1rem;
    position: relative; overflow: hidden; margin-bottom: 1.2rem;
    box-shadow: 0 6px 24px var(--primary-glow);
}
.jc-profile-header::before { content: ''; position: absolute; top: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none; }
.jc-avatar-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; overflow: hidden; flex-shrink: 0; cursor: pointer; background: rgba(255,255,255,0.2); box-shadow: 0 0 0 4px rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; transition: transform 0.2s; }
.jc-avatar-ring:hover { transform: scale(1.05); }
.jc-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.jc-avatar-ring .avatar-icon { font-size: 1.6rem; color: rgba(255,255,255,0.9); }
.jc-profile-name { font-size: 1.05rem; font-weight: 800; color: #fff; }
.jc-profile-phone { font-size: 0.76rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.jc-profile-balance-badge { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 5px 13px; }
.jc-balance-label { font-size: 0.62rem; color: rgba(255,255,255,0.7); display: block; }
.jc-balance-value { font-size: 0.97rem; font-weight: 900; color: #fff; display: block; }
.jc-ref-bar { margin-top: 0.9rem; position: relative; z-index: 2; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.jc-ref-label { font-size: 0.7rem; color: rgba(255,255,255,0.65); }
.jc-ref-code  { font-size: 0.85rem; font-weight: 800; color: #fff; flex: 1; }
.jc-ref-copy-btn { background: #fff; color: var(--primary); border: none; border-radius: 7px; padding: 4px 11px; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.jc-ref-copy-btn:hover { background: #ffe0e0; }
.jc-kyc-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 30px; padding: 3px 10px; font-size: 0.68rem; font-weight: 700; color: #fff; margin-top: 4px; }
.jc-kyc-chip.approved { background: rgba(255,255,255,0.2); }
.jc-kyc-chip.pending  { background: rgba(255,203,5,0.2); color: #ffe066; border-color: rgba(255,203,5,0.5); }
.jc-kyc-chip.rejected { background: rgba(255,255,255,0.08); }

/* ============================================================
   ALERTS
============================================================ */
.alert { border-radius: 11px; padding: 11px 15px; font-size: 0.87rem; }
.alert-success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.22); color: #15803d; }
.alert-danger  { background: rgba(215,25,32,0.06); border: 1px solid rgba(215,25,32,0.2); color: var(--primary); }
.alert-info    { background: rgba(33,150,243,0.07); border: 1px solid rgba(33,150,243,0.2); color: #1565c0; }
.alert-auto    { animation: fadeOut 4.5s forwards; }
@keyframes fadeOut { 0%,75%{opacity:1} 100%{opacity:0;pointer-events:none} }

/* ============================================================
   PLAN CARDS (index.php)
============================================================ */
.plan-card { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 1.4rem; text-align: center; transition: all 0.28s; cursor: pointer; box-shadow: var(--shadow); }
.plan-card:hover, .plan-card.selected { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 28px var(--primary-glow); }
.plan-card.featured { border-color: var(--accent); }
.plan-profit { font-size: 2.1rem; font-weight: 900; color: var(--primary); }
.plan-name   { font-size: 1.05rem; font-weight: 700; color: #111; margin: 0.35rem 0; }

/* ============================================================
   AUTH
============================================================ */
.auth-wrapper { min-height: 100vh; padding-top: 0 !important; background: linear-gradient(160deg, #fff5f5 0%, #fff 50%, #fffdf5 100%); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
body:has(.auth-wrapper) { padding-top: 0 !important; }
.auth-card { background: #fff; border: 2px solid rgba(215,25,32,0.2); border-radius: var(--radius-lg); padding: 2.2rem; width: 100%; max-width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,0.09); }
.auth-header-strip { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); margin: -2.2rem -2.2rem 1.7rem; padding: 1.4rem 2.2rem 1.2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; text-align: center; }
.auth-header-strip .jc-logo-mark { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.35); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.login-bonus-teaser { background: rgba(215,25,32,0.05); border: 1px solid rgba(215,25,32,0.15); border-radius: 10px; padding: 9px 13px; text-align: center; font-size: 0.82rem; color: #fff; margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.signup-bonus-teaser { background: rgba(230,168,0,0.07); border: 1px solid rgba(230,168,0,0.25); border-radius: 10px; padding: 9px 13px; text-align: center; font-size: 0.82rem; color: #fff; margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.auth-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(215,25,32,0.18), transparent); margin: 1.1rem 0; }

/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announcement-bar { background: rgba(215,25,32,0.05); border: 1px solid rgba(215,25,32,0.14); border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; margin-bottom: 1.2rem; font-size: 0.84rem; color: #111; }

/* ============================================================
   BOTTOM NAV
============================================================ */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #ffffff;
    border-top: 2px solid rgba(215,25,32,0.12);
    z-index: 1050; padding: 4px 0 max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px rgba(0,0,0,0.07);
}
.mobile-bottom-nav .nav-items { display: flex; justify-content: space-around; align-items: center; }
.mobile-bottom-nav .nav-item-m { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #bbb; font-size: 0.57rem; font-weight: 700; letter-spacing: 0.3px; padding: 5px 7px; border-radius: 11px; transition: all 0.2s; min-width: 52px; position: relative; }
.mobile-bottom-nav .nav-item-m i { font-size: 1.18rem; color: #bbb; transition: all 0.2s; }
.mobile-bottom-nav .nav-item-m.active { color: var(--primary); }
.mobile-bottom-nav .nav-item-m.active i { color: var(--primary); transform: translateY(-2px); }
.mobile-bottom-nav .nav-item-m:hover { color: var(--primary); }
.mobile-bottom-nav .nav-item-m:hover i { color: var(--primary); }
.mobile-bottom-nav .nav-item-m.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--primary), var(--accent-light)); }
.mobile-bottom-nav .nav-item-m .dot { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; border: 1.5px solid #fff; }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay-custom { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal-frame-custom { background: #fff; border: 2px solid rgba(215,25,32,0.25); border-radius: var(--radius-lg); padding: 1.4rem; width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 55px rgba(0,0,0,0.18); position: relative; animation: modalUp 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modalUp { from { transform: translateY(36px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-close-btn { position: absolute; top: 12px; right: 12px; background: #f0f0f0; border: none; color: #666; font-size: 1rem; border-radius: 50%; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.modal-close-btn:hover { background: #ffe0e0; color: var(--primary); }

/* Announcement modal */
.ann-icon-row { display: flex; justify-content: center; margin-bottom: 11px; }
.ann-icon-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(215,25,32,0.08); border: 2px solid rgba(215,25,32,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ann-title { font-size: 1.15rem; font-weight: 800; color: #111; text-align: center; margin-bottom: 11px; }
.ann-body { color: #333; line-height: 1.75; font-size: 0.88rem; background: #f9f9f9; border: 1px solid #eee; border-radius: 11px; padding: 13px; margin-bottom: 13px; }

/* Lucky box */
.lucky-box-modal { text-align: center; }
.lucky-box-title { font-size: 1.45rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.lucky-box-subtitle { font-size: 0.78rem; color: #555; display: block; margin-bottom: 14px; }
.lucky-box-chest { cursor: pointer; padding: 1.6rem 1.4rem; transition: all 0.22s; border: 2px solid rgba(230,168,0,0.28); background: linear-gradient(135deg, #fffdf0, #fff); border-radius: 20px; margin: 0 auto 13px; max-width: 175px; position: relative; }
.lucky-box-chest:hover { transform: scale(1.05); border-color: var(--accent); }
.chest-glow { position: absolute; inset: 0; background: radial-gradient(circle, rgba(230,168,0,0.1) 0%, transparent 70%); animation: chestGlow 2s ease-in-out infinite; border-radius: 20px; }
@keyframes chestGlow { 0%,100%{opacity:.4} 50%{opacity:1} }
.chest-icon { font-size: 4.2rem; display: block; line-height: 1; }
.chest-label { color: #555; font-size: 0.8rem; margin-top: 7px; font-weight: 600; }
.prize-reveal-amount { font-size: 2.4rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: prizePopIn 0.5s cubic-bezier(0.34,1.56,0.64,1); display: block; margin-bottom: 4px; }
@keyframes prizePopIn { 0%{transform:scale(0) rotate(-10deg);opacity:0} 100%{transform:scale(1) rotate(0);opacity:1} }
.countdown-timer { font-size: 0.8rem; color: #555; margin-top: 9px; padding: 5px 13px; background: #f0f0f0; border-radius: 20px; display: inline-block; }

/* Spin wheel */
.wheel-modal { max-width: 350px; }
.wheel-modal-header { text-align: center; margin-bottom: 12px; }
.wheel-title { font-size: 1.35rem; font-weight: 900; background: linear-gradient(135deg, var(--accent-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.wheel-subtitle { font-size: 0.76rem; color: #555; }
.wheel-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.wheel-canvas-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.wheel-pointer-top { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--primary); z-index: 10; }
.spin-btn { margin-top: 13px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border: none; border-radius: 50px; padding: 12px 38px; font-size: 1.05rem; font-weight: 900; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 9px; box-shadow: 0 4px 14px var(--primary-glow); }
.spin-btn:hover:not(:disabled) { transform: translateY(-2px); }
.spin-btn:disabled { opacity: .45; cursor: not-allowed; }
.spin-hand { font-size: 1.3rem; animation: handBounce 1s ease-in-out infinite; display: inline-block; }
@keyframes handBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.wheel-stats { display: flex; margin-top: 13px; background: #f5f5f5; border: 1.5px solid #ddd; border-radius: 13px; overflow: hidden; width: 100%; }
.wheel-stat-item { flex: 1; text-align: center; padding: 9px 5px; border-right: 1px solid #ddd; }
.wheel-stat-item:last-child { border-right: none; }
.wheel-stat-item span { display: block; font-size: 0.66rem; color: #666; margin-bottom: 2px; font-weight: 600; }
.wheel-stat-item strong { color: var(--primary); font-size: 0.86rem; font-weight: 800; }
.wheel-result-area { text-align: center; padding: 0.9rem; animation: modalUp 0.3s ease; }
.wheel-result-prize { font-size: 2.1rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; }
.claim-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 13px; font-size: 1rem; font-weight: 800; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 11px; animation: handBounce 1s ease-in-out infinite; }
.claim-btn:hover { transform: translateY(-2px); animation: none; }

/* Confetti */
.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 99999; overflow: hidden; }
.confetti-piece { position: absolute; width: 7px; height: 7px; top: -10px; animation: confettiFall linear forwards; border-radius: 2px; }
@keyframes confettiFall { 0%{transform:translateY(-10px) rotate(0deg);opacity:1} 100%{transform:translateY(110vh) rotate(720deg);opacity:0} }

/* Referral */
.referral-modal { max-width: 380px; }
.referral-modal-title { font-size: 1.2rem; font-weight: 900; color: #111; text-align: center; margin-bottom: 4px; }
.referral-modal-sub { font-size: 0.78rem; color: #555; text-align: center; margin-bottom: 14px; }
.referral-congrats { background: rgba(215,25,32,0.05); border: 1px solid rgba(215,25,32,0.13); border-radius: 11px; padding: 9px 13px; color: #333; font-size: 0.83rem; margin-bottom: 13px; text-align: center; }
.referral-circle-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.referral-svg { position: absolute; top: 0; left: 0; }
.referral-circle-inner { position: relative; z-index: 2; text-align: center; padding-bottom: 18px; }
.referral-count-num { font-size: 2.1rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; line-height: 1; }
.referral-count-lbl { font-size: 0.76rem; color: #555; display: block; margin-top: 4px; }
.referral-ribbon { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 4px 16px; border-radius: 28px; white-space: nowrap; z-index: 3; }
.referral-link-row { display: flex; align-items: center; gap: 8px; background: #f5f5f5; border: 1.5px solid #ddd; border-radius: 11px; padding: 8px 11px; margin-bottom: 11px; }
.referral-link-text { flex: 1; font-size: 0.73rem; color: var(--primary); word-break: break-all; min-width: 0; }
.copy-ref-btn { background: rgba(215,25,32,0.08); border: 1px solid rgba(215,25,32,0.18); color: var(--primary); border-radius: 8px; padding: 5px 10px; cursor: pointer; flex-shrink: 0; transition: all 0.2s; font-size: 0.83rem; }
.copy-ref-btn:hover { background: rgba(215,25,32,0.15); }
.invite-friends-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border: none; border-radius: 13px; font-size: 0.97rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 4px 14px var(--primary-glow); transition: all 0.2s; margin-bottom: 11px; }
.invite-friends-btn:hover { transform: translateY(-2px); }
.invite-hand { font-size: 1.35rem; animation: handBounce 1s ease-in-out infinite; display: inline-block; }
.share-options-row { display: flex; gap: 7px; margin-bottom: 7px; }
.share-opt-btn { flex: 1; padding: 8px 5px; border-radius: 9px; font-size: 0.76rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s; border: 1px solid transparent; }
.share-wa  { background: rgba(37,211,102,0.08); color: #16a34a; border-color: rgba(37,211,102,0.2); }
.share-sms { background: rgba(215,25,32,0.06); color: var(--primary); border-color: rgba(215,25,32,0.15); }
.share-copy { background: #f5f5f5; color: #666; border-color: #ddd; }
.modal-dismiss-link { background: transparent; border: none; color: #888; font-size: 0.76rem; cursor: pointer; width: 100%; text-align: center; padding: 6px 0; transition: color 0.2s; }
.modal-dismiss-link:hover { color: #444; }

/* Toast */
.toast-container-custom { position: fixed; top: 68px; right: 13px; z-index: 10000; display: flex; flex-direction: column; gap: 7px; max-width: 300px; }
.toast-custom { background: #fff; border: 1px solid #eee; border-left: 3px solid var(--primary); border-radius: 11px; padding: 0.8rem 1.1rem; color: #111; min-width: 240px; animation: toastIn 0.35s ease; box-shadow: 0 4px 18px rgba(0,0,0,0.1); font-size: 0.86rem; }
@keyframes toastIn { from{transform:translateX(55px);opacity:0} to{transform:translateX(0);opacity:1} }

/* Upload zone */
.upload-zone { border: 2px dashed rgba(215,25,32,0.22); border-radius: 11px; padding: 1.4rem; text-align: center; cursor: pointer; transition: all 0.28s; background: #fafafa; }
.upload-zone:hover { border-color: var(--primary); background: #fff8f8; }

/* Progress bar */
.progress-dark { background: #eee; border-radius: 50px; height: 7px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--primary), var(--accent-light)); height: 100%; border-radius: 50px; transition: width 0.9s ease; }

/* Admin extras */
.admin-stat { background: #fff; border: 2px solid var(--border-red); border-radius: 13px; padding: 1.2rem; box-shadow: var(--shadow); }
.segment-locked-badge { background: rgba(215,25,32,0.07); color: var(--primary); border: 1px solid rgba(215,25,32,0.18); border-radius: 6px; padding: 3px 9px; font-size: 0.73rem; }
.segment-open-badge   { background: rgba(22,163,74,0.07); color: #15803d; border: 1px solid rgba(22,163,74,0.18); border-radius: 6px; padding: 3px 9px; font-size: 0.73rem; }

/* ============================================================
   MISSING CLASSES FIX
============================================================ */
/* Green confirm/collect button — used in announcement & lucky box modals */
.btn-green-custom {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff !important; border: none;
    padding: 12px 28px; border-radius: 11px;
    font-weight: 800; font-size: 0.95rem;
    cursor: pointer; width: 100%;
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
    transition: all 0.2s;
}
.btn-green-custom:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.4); }

/* Notification badge on bell icon */
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--primary); color: #fff;
    border-radius: 50%; width: 18px; height: 18px;
    font-size: 0.6rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* Yellow/gold icon variant */
.icon-yellow { background: #e6a800 !important; color: #fff !important; box-shadow: 0 3px 10px rgba(230,168,0,0.3) !important; }
.icon-yellow:hover { background: #c98f00 !important; }

/* Wheel result text fix — white bg pe visible */
.wheel-result-subtext { color: #333; font-size: 0.88rem; margin-bottom: 2px; }

/* Utility */
.text-primary-jc { color: var(--primary) !important; }
.text-accent-jc  { color: var(--accent) !important; }
.jc-gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-wrapper { padding-top: 0 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: rgba(215,25,32,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(215,25,32,0.5); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media(max-width: 768px) {
    .main-content { padding: 1rem 0.75rem 5.5rem; }
    .hero-title { font-size: 1.85rem; }
    .stat-value { font-size: 1.3rem; }
    .menu-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
    .menu-item { padding: 0.82rem 0.48rem; }
    .menu-item .menu-icon { width: 43px; height: 43px; font-size: 1rem; border-radius: 11px; }
    .menu-item .menu-label { font-size: 0.67rem; }
    .card-dark { padding: 1rem; }
    .stat-card { padding: 1rem; }
    .auth-card { padding: 1.65rem; }
    .auth-header-strip { margin: -1.65rem -1.65rem 1.5rem; padding: 1.2rem 1.65rem 1rem; }
    .table-dark-custom th, .table-dark-custom td { padding: 8px 7px; font-size: 0.76rem; }
    .table-dark-custom th { font-size: 0.65rem; letter-spacing: 0.3px; }
    /* Hide date column on very small - show short */
    .col-date { font-size: 0.7rem !important; white-space: nowrap; }
    /* Row wrap fix */
    .row.g-3 > [class*="col-md"] { margin-bottom: 0; }
}
@media(max-width: 480px) {
    .main-content { padding: 0.9rem 0.7rem 5.5rem; }
    .hero-title { font-size: 1.55rem; }
    .menu-item .menu-icon { width: 40px; height: 40px; font-size: 0.95rem; }
    .menu-item .menu-label { font-size: 0.64rem; }
    #wheelCanvas { width: 230px !important; height: 230px !important; }
    .modal-frame-custom { padding: 1.15rem; }
    .stat-value { font-size: 1.2rem; }
}
@media(max-width: 360px) {
    .main-content { padding: 0.75rem 0.6rem 5.5rem; }
    .menu-grid { gap: 6px; }
    .menu-item .menu-icon { width: 37px; height: 37px; font-size: 0.9rem; }
    .menu-item .menu-label { font-size: 0.62rem; }
}
