/* ====================================================================
   LOLZ MARKET THEME (Dark Mode & Signature Lolz Green Aesthetics)
   Brand Accent: #22c55e / #15b67d | Surfaces: #0f1011 / #16181a / #1d1f22
   ==================================================================== */

:root {
    /* Main Theme Overrides */
    --accent-blue:       #22c55e !important;
    --accent-light-blue: #4ade80 !important;
    --color-info:          #22c55e !important;
    --color-success:       #22c55e !important;
    --border-radius:       14px;
}

/* Completely hide fraud warning modal */
.safety-warning-overlay, .safety-warning, [class*="safety-warning"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Force Default / Dark Mode to Signature Lolz Palette */
:root, :root[data-theme="dark"] {
    --primary-bg:        #0e1012 !important;
    --secondary-bg:      #151719 !important;
    --card-bg:           #1c1e22 !important;
    --text-primary:      #f4f4f5 !important;
    --text-secondary:    #a1a1aa !important;
    --border-color:      rgba(255, 255, 255, 0.08) !important;

    --overlay-1: rgba(255, 255, 255, 0.04) !important;
    --overlay-2: rgba(255, 255, 255, 0.08) !important;
    --overlay-3: rgba(255, 255, 255, 0.12) !important;
    --overlay-fade: rgba(34, 197, 94, 0.05) !important;

    --surface-elevated: #24272c !important;
    --surface-pressed:  rgba(34, 197, 94, 0.12) !important;
    --tabbar-bg:        rgba(14, 16, 18, 0.88) !important;
    --tabbar-shadow:    0 -4px 24px rgba(0, 0, 0, 0.6) !important;

    --btn-secondary-bg:        #23262a !important;
    --btn-secondary-bg-hover:  #2d3137 !important;
    --btn-secondary-border:    rgba(255, 255, 255, 0.1) !important;

    --shadow-small:  0 2px 8px rgba(0, 0, 0, 0.4) !important;
    --shadow-medium: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
    --shadow-large:  0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

body {
    background-color: var(--primary-bg) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* === TOP BAR (Lolz Market Brand Header) === */
.lolz-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(20, 22, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lolz-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.lolz-top-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.45));
    transition: transform 0.2s ease;
}

.lolz-top-logo:hover {
    transform: scale(1.05);
}

.lolz-top-brand {
    display: flex;
    flex-direction: column;
}

.lolz-brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lolz-market-accent {
    color: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.lolz-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 6px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 2px;
}

.lolz-network-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
}

.lolz-network-status .status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: lolzPulse 2s infinite ease-in-out;
}

@keyframes lolzPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* === ALL BUTTONS IN LOLZ GREEN === */
.btn,
.btn-primary,
.btn-secondary,
.btn-block,
.action-btn,
.action-buttons .btn,
#create-order-btn,
#deposit-btn,
#withdraw-btn,
#admin-credit-self,
#admin-volume-set,
#admin-volume-clear,
button.btn,
button.btn-primary,
button.btn-secondary,
.modal-content .btn,
.owner-action,
.deal-action-btn,
#ton-connect-button button,
[class*="tonconnect"] button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(74, 222, 128, 0.45) !important;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35) !important;
    border-radius: 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Secondary & Outline Buttons with Green Accent */
.btn-secondary,
#withdraw-btn,
button.btn-secondary,
.action-buttons .btn-secondary:not(.active) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(20, 80, 45, 0.35) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(74, 222, 128, 0.2) !important;
}

.btn-secondary.active,
.action-buttons .btn-secondary.active,
.order-filters .filter-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4) !important;
    font-weight: 700 !important;
}

/* Button Hover & Active states */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
button.btn:hover,
#create-order-btn:hover,
#deposit-btn:hover,
#withdraw-btn:hover,
#admin-credit-self:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5) !important;
    border-color: #4ade80 !important;
    color: #ffffff !important;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
button.btn:active,
#create-order-btn:active,
#deposit-btn:active,
#withdraw-btn:active {
    transform: scale(0.98) !important;
    filter: brightness(0.95) !important;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4) !important;
}

/* === CARDS & PANELS === */
.info-card, .orders-list .order-card, .df-card, .order-summary {
    background: #1c1e22 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
}

.info-card:hover, .order-card:hover {
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.card-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Stat Grid */
.stat-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
}

.stat-item .stat-value {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.stat-item.stat-highlight .stat-value {
    color: #22c55e !important;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* === TAB BAR (Bottom Navigation) === */
.bottom-tabbar {
    background: rgba(14, 16, 18, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4) !important;
}

.tab-button {
    color: #71717a !important;
    transition: color 0.2s ease !important;
}

.tab-button.active {
    color: #22c55e !important;
}

.tab-button.active .tab-icon {
    stroke: #22c55e !important;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

.tab-indicator {
    background: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8) !important;
    border-radius: 3px !important;
}

/* === TOGGLE SWITCH === */
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #22c55e 0%, #15b67d 100%) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
}

/* === PROGRESS BARS & HIGHLIGHTS === */
.progress-bar-fill, .progress-inner, .progress-fill {
    background: linear-gradient(90deg, #22c55e, #4ade80) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
}

/* Currency Strip */
.currency-strip-item.active, .currency-chip.active {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #4ade80 !important;
    font-weight: 700 !important;
}

/* Modals & Overlays */
.modal-content, .order-detail-page, .modal-sheet {
    background: #181a1d !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #f4f4f5 !important;
}

.order-summary__amount {
    color: #22c55e !important;
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
    font-weight: 800 !important;
}

/* Links */
a.tg-user-link, a.handover-mgr-link {
    color: #4ade80 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

a.tg-user-link:hover, a.handover-mgr-link:hover {
    text-decoration: underline !important;
    color: #22c55e !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0e1012;
}
::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}


/* ====================================================================
   LOLZ LEADERBOARD SPLASH (Emerald & Neon Lolz Green Aesthetics)
   ==================================================================== */
.leaders-page, :root[data-theme="dark"] .leaders-page, :root .leaders-page {
    --splash-bg:           linear-gradient(180deg, #101c15 0%, #080c09 100%) !important;
    --splash-border:       rgba(34, 197, 94, 0.25) !important;
    --splash-shadow:       0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 35px rgba(34, 197, 94, 0.15) !important;
    --splash-text:         #ffffff !important;
    --splash-text-muted:   rgba(255, 255, 255, 0.7) !important;
    --splash-cap-text:     rgba(255, 255, 255, 0.5) !important;
    --splash-glass-bg:     rgba(34, 197, 94, 0.08) !important;
    --splash-glass-border: rgba(34, 197, 94, 0.25) !important;
    --splash-glass-shadow: 0 4px 16px rgba(0, 30, 15, 0.5) !important;
    --splash-halo:         radial-gradient(70% 60% at 50% 0%, rgba(34, 197, 94, 0.45), transparent 70%) !important;
    --splash-sparkle:      #4ade80 !important;
    --splash-accent:       #22c55e !important;
    --splash-accent-deep:  #16a34a !important;
    --splash-accent-soft:  #4ade80 !important;
    --splash-accent-pale:  #11291b !important;
}

.leaders-splash {
    background: linear-gradient(180deg, #101c15 0%, #080c09 100%) !important;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(34, 197, 94, 0.25) !important;
}

/* Glowing Trophy */
.leaders-splash__trophy {
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.65)) !important;
}

/* Participants Pill */
.leaders-participants {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.32) !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.2) !important;
}

.leaders-participants__icon svg {
    color: #22c55e !important;
}

.leaders-participants__text b {
    color: #4ade80 !important;
}

/* Countdown Cards */
.leaders-cd__card {
    background: rgba(16, 28, 20, 0.8) !important;
    border: 1px solid rgba(34, 197, 94, 0.32) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(74, 222, 128, 0.25) !important;
}

.leaders-cd__card::before {
    background: rgba(34, 197, 94, 0.35) !important;
}

.leaders-cd__num {
    color: #4ade80 !important;
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.6) !important;
}

.leaders-cd__cap {
    color: #a1a1aa !important;
}

/* Prize Pool in Lolz Green */
.leaders-prize-pool {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(74, 222, 128, 0.3) !important;
}

.leaders-prize-pool__label {
    color: #a1a1aa !important;
}

.leaders-prize-pool__amount {
    color: #22c55e !important;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.65) !important;
    font-weight: 800 !important;
}

/* 1st, 2nd, 3rd Prize Cards */
.leaders-prize-card {
    background: rgba(16, 26, 20, 0.7) !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    border-radius: 16px !important;
}

.leaders-prize-card--gold {
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3) !important;
}

.leaders-prize-card--gold .leaders-prize-card__amount {
    color: #4ade80 !important;
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.6) !important;
}

.leaders-prize-card__medal {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6) !important;
    font-weight: 800 !important;
}

.leaders-prize-card__amount {
    color: #22c55e !important;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.5) !important;
}

.leaders-prize-card__label {
    color: #a1a1aa !important;
}

/* Bonus Card in Lolz Green */
.leaders-bonus {
    background: linear-gradient(135deg, rgba(20, 38, 28, 0.9) 0%, rgba(10, 20, 14, 0.98) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.42) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 24px rgba(34, 197, 94, 0.22) !important;
    border-radius: 18px !important;
}

.leaders-bonus__halo {
    background: radial-gradient(circle at 18% 50%, rgba(34, 197, 94, 0.4), transparent 60%) !important;
}

.leaders-bonus__icon {
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.4), transparent 60%), linear-gradient(135deg, #22c55e, #15803d) !important;
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.7), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

.leaders-bonus__amount {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.leaders-bonus__badge {
    background: rgba(34, 197, 94, 0.22) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
    font-weight: 700 !important;
}

.leaders-bonus__cta {
    background: rgba(34, 197, 94, 0.16) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    color: #e4e4e7 !important;
}

.leaders-bonus__cta svg {
    color: #22c55e !important;
}

/* Tier Rows */
.leaders-tier-row {
    background: rgba(16, 26, 20, 0.65) !important;
    border: 1px solid rgba(34, 197, 94, 0.22) !important;
    border-radius: 14px !important;
}

.leaders-tier-row__range {
    color: #e4e4e7 !important;
    font-weight: 700 !important;
}

.leaders-tier-row__amount {
    color: #4ade80 !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
    font-weight: 700 !important;
}

.leaders-tier-row__sep {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.45) 0%, rgba(34, 197, 94, 0.1) 100%) !important;
}

.leaders-tier-row__badge {
    background: rgba(34, 197, 94, 0.22) !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    color: #4ade80 !important;
}

/* Winners Note */
.leaders-winners-note {
    color: #a1a1aa !important;
}

/* How It Works */
.leaders-how__num {
    background: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #4ade80 !important;
}

.leaders-how__step {
    background: rgba(16, 26, 20, 0.55) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 14px !important;
}

.leaders-how__step-title {
    color: #ffffff !important;
}

.leaders-how__step-body {
    color: #a1a1aa !important;
}

/* Reminder Card */
.leaders-reminder {
    background: rgba(16, 26, 20, 0.75) !important;
    border: 1px solid rgba(34, 197, 94, 0.32) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(34, 197, 94, 0.18) !important;
    border-radius: 16px !important;
}

.leaders-reminder__icon {
    background: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    color: #22c55e !important;
}

.leaders-reminder__title {
    color: #ffffff !important;
}

.leaders-reminder__body {
    color: #a1a1aa !important;
}

/* Active Leaderboard Podium & Rows (if season starts) */
.leaders-slot__block {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.25) 0%, rgba(20, 35, 25, 0.6) 100%) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

.leaders-row__pill {
    background: rgba(18, 28, 22, 0.7) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

.leaders-row__amount {
    color: #4ade80 !important;
}
