:root {
    --bg-main: #070A0E;
    --bg-secondary: #0D1219;
    --bg-card: rgba(17, 24, 34, 0.85);
    --bg-card-hover: rgba(23, 33, 47, 0.95);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-emerald: rgba(16, 185, 129, 0.35);
    --border-gold: rgba(245, 158, 11, 0.35);

    --emerald: #10B981;
    --emerald-bright: #34D399;
    --emerald-dark: #059669;
    --emerald-glow: rgba(16, 185, 129, 0.22);

    --gold: #F59E0B;
    --gold-bright: #FBBF24;
    --gold-glow: rgba(245, 158, 11, 0.2);

    --text-main: #F3F6FA;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .brand-name, .balance-value, .pkg-r {
    font-family: 'Outfit', sans-serif;
}

/* Ambient Background Glows (Subtle Wealth Vibe) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
}

.glow-emerald {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: -120px;
    left: 15%;
}

.glow-gold {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: 5%;
}

/* Live Ticker Topbar */
.live-ticker-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 20px;
    background: rgba(9, 13, 19, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
}

.ticker-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--emerald-bright);
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding-right: 16px;
    border-right: 1px solid var(--border-subtle);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald-bright);
    animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    margin: 0 16px;
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    width: max-content;
    animation: tickerMarquee 48s linear infinite;
    will-change: transform;
}

.ticker-track-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    animation: fadeInSlide 0.4s ease;
}

.ticker-item strong {
    color: var(--text-main);
}

.ticker-item .ticker-amount {
    color: var(--emerald-bright);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
}

.topbar-right-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switcher-top .lang-btns {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lang-switcher-top .lang-btn {
    padding: 4px 10px;
    font-size: 0.74rem;
    line-height: 1.2;
}

.stock-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.stock-pill span {
    color: var(--text-secondary);
}

.stock-pill strong {
    color: var(--gold-bright);
}

/* Main App Layout */
.app-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 40px);
}

/* Sidebar */
.sidebar {
    background: rgba(11, 16, 23, 0.85);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.18s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-emerald);
    border-radius: 12px;
    box-shadow: 0 0 20px var(--emerald-glow);
}

.brand-logo svg {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-emerald {
    color: var(--emerald-bright);
}

.text-gold {
    color: var(--gold-bright);
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-bright);
    box-shadow: inset 3px 0 0 var(--emerald-bright);
}

.nav-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
}

.nav-badge.emerald {
    background: rgba(16, 185, 129, 0.18);
    color: var(--emerald-bright);
}

.nav-badge.gold {
    background: rgba(245, 158, 11, 0.18);
    color: var(--gold-bright);
}

/* Sidebar Daily Goal Card */
.sidebar-goal-card {
    margin-top: auto;
    background: linear-gradient(145deg, rgba(19, 28, 40, 0.9), rgba(13, 19, 28, 0.95));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.goal-header span {
    color: var(--text-secondary);
}

.goal-header strong {
    color: var(--emerald-bright);
}

.goal-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-bright));
    border-radius: 99px;
    transition: width 0.35s ease;
}

.goal-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.btn-claim-goal {
    width: 100%;
    padding: 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: not-allowed;
    transition: all 0.2s;
}

.btn-claim-goal.ready {
    background: linear-gradient(135deg, var(--gold), #D97706);
    color: #070A0E;
    border-color: var(--gold-bright);
    cursor: pointer;
    box-shadow: 0 0 15px var(--gold-glow);
}

.sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.lang-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.lang-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(16, 185, 129, 0.16);
    border-color: var(--border-emerald);
    color: var(--emerald-bright);
}

/* Main Content Area */
.main-wrapper {
    padding: 28px 36px;
    max-width: 1360px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

/* Top Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Streak Button */
.streak-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.streak-btn:hover {
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.streak-tag {
    background: var(--gold);
    color: #070A0E;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Balance Pill (Core Wealth Element) */
.balance-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(13, 22, 30, 0.95) 100%);
    border: 1px solid var(--border-emerald);
    padding: 7px 10px 7px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.balance-pill.bump {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.45);
}

.robux-coin-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald-bright), var(--emerald-dark));
    color: #051B11;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    color: var(--emerald-bright);
    font-weight: 700;
}

.balance-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

.balance-value::after {
    content: ' R$';
    font-size: 0.9rem;
    color: var(--emerald-bright);
}

.balance-add-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.balance-add-btn:hover {
    background: var(--emerald);
    color: #06150E;
    border-color: var(--emerald-bright);
}

/* User Chip */
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 7px 14px 7px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.online-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--emerald-bright);
    border: 2px solid var(--bg-main);
    border-radius: 50%;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta strong {
    font-size: 0.86rem;
}

.vip-badge {
    font-size: 0.7rem;
    color: var(--gold-bright);
    font-weight: 600;
}

/* Tab Content Switching */
.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

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

/* Hero Banner & Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.hero-banner {
    background: linear-gradient(130deg, rgba(16, 185, 129, 0.16) 0%, rgba(17, 24, 34, 0.95) 55%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: visible;
    margin-top: 12px;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--emerald-bright), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 470px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-visual {
    position: relative;
    flex: 0 0 185px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}

.hero-character-glow {
    position: absolute;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.36) 0%, rgba(245, 158, 11, 0.16) 45%, transparent 72%);
    filter: blur(12px);
    z-index: 0;
}

.hero-character-img {
    position: relative;
    z-index: 2;
    height: 268px;
    width: auto;
    max-width: none;
    object-fit: contain;
    margin-top: -16px;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.25));
    transform: translateY(-4px);
    animation: heroMascotFloat 4.2s ease-in-out infinite;
}

@keyframes heroMascotFloat {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(-10px); }
}

/* Stats Cards */
.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.stat-icon.emerald-bg {
    background: rgba(16, 185, 129, 0.14);
    color: var(--emerald-bright);
    border: 1px solid var(--border-emerald);
}

.stat-icon.gold-bg {
    background: rgba(245, 158, 11, 0.14);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-details strong {
    font-size: 1.45rem;
    font-family: 'Outfit', sans-serif;
    margin: 2px 0;
}

.stat-details small {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--emerald-bright) 0%, var(--emerald-dark) 100%);
    color: #04150D;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, #D97706 100%);
    color: #090C10;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.full-width {
    width: 100%;
}

/* Quest Section & Filters */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 1.35rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: rgba(16, 185, 129, 0.16);
    color: var(--emerald-bright);
    border-color: var(--border-emerald);
}

/* Quests Grid */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.quest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.quest-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.quest-card.completed {
    opacity: 0.65;
    border-color: rgba(16, 185, 129, 0.2);
}

.quest-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.quest-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.quest-reward-tag {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid var(--border-emerald);
    color: var(--emerald-bright);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 5px 12px;
    border-radius: 99px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.quest-body h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.quest-body p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.45;
}

.quest-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
}

.quest-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-emerald);
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-bright);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quest-btn:hover:not(:disabled) {
    background: var(--emerald);
    color: #04150D;
}

.quest-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: var(--text-muted);
    cursor: default;
}

.quest-btn.pending:disabled {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: var(--gold-bright);
}

/* Offerwalls Tab */
.offerwall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.offerwall-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.offerwall-card.featured {
    border-color: var(--border-emerald);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
}

.ow-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--emerald);
    color: #05180F;
}

.ow-badge.gold {
    background: var(--gold);
}

.ow-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.ow-logo.emerald { color: var(--emerald-bright); }
.ow-logo.gold { color: var(--gold-bright); }
.ow-logo.purple { color: #C084FC; }
.ow-logo.blue { color: #60A5FA; }

.offerwall-card p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
}

.ow-rating {
    color: var(--gold-bright);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.ow-rating span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

/* Withdraw Tab */
.withdraw-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.withdraw-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.wd-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 9px;
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--emerald-bright);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid var(--border-emerald);
}

.wd-requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    max-height: 360px;
    overflow-y: auto;
}

.wd-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(11, 16, 23, 0.78);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.wd-req-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.wd-req-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wd-req-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--emerald-bright);
}

.wd-req-id {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.wd-req-date {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.wd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.wd-status-badge.pending {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--gold-bright);
}

.wd-status-badge.approved {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: var(--emerald-bright);
}

.wd-status-badge.rejected {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.38);
    color: #FCA5A5;
}

.wd-empty-state {
    color: var(--text-secondary);
    font-size: 0.84rem;
    padding: 14px 10px;
    text-align: center;
    background: rgba(9, 13, 19, 0.55);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
}

.withdraw-form-card, .info-card, .vault-crate-card, .promo-code-card, .profile-card, .history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.min-withdraw-badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    padding: 4px 10px;
    border-radius: 99px;
}

.muted-text {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

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

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

.input-with-button {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    background: rgba(9, 13, 19, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--emerald-bright);
}

.btn-verify-user {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-bright);
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.verify-status {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
}

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

.pkg-card {
    background: rgba(11, 16, 23, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.pkg-card.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--emerald-bright);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.18);
}

.pkg-r {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--emerald-bright);
}

.pkg-card small {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.gamepass-instruction-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.gp-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.gp-header strong {
    color: var(--gold-bright);
}

.gamepass-instruction-box p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-withdraw-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--emerald-bright), var(--emerald-dark));
    color: #04150D;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-withdraw-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.step-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.step-list strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.step-list p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Crates Showcase & Promocodes Pages */
.crates-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.vault-crate-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vault-crate-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 44px;
}

.vault-crate-card > button {
    margin-top: auto;
}

.crate-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.crate-card-head .crate-tag {
    margin-bottom: 0;
}

.crate-range-pill {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2px;
}

.crate-range-pill.emerald {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--emerald-bright);
}

.crate-range-pill.gold {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.38);
    color: var(--gold-bright);
}

.vault-crate-card.emerald-crate-theme {
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 78, 59, 0.32) 52%, rgba(8, 17, 15, 0.96) 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(52, 211, 153, 0.22);
}

.vault-crate-card.gold-crate-theme {
    background: linear-gradient(155deg, rgba(251, 191, 36, 0.2) 0%, rgba(146, 64, 14, 0.3) 52%, rgba(18, 13, 6, 0.96) 100%);
    border: 1px solid rgba(251, 191, 36, 0.48);
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.14), inset 0 1px 0 rgba(251, 191, 36, 0.24);
}

.crate-visual-box {
    margin: 18px 0 20px;
    padding: 18px;
    width: 100%;
    min-width: 0;
    height: 192px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(9, 13, 19, 0.94) 78%);
    border: 1px dashed var(--border-emerald);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.crate-visual-box.emerald-visual-box {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.22) 0%, rgba(5, 20, 16, 0.96) 76%);
    border: 1px solid rgba(52, 211, 153, 0.28);
}

.crate-visual-box.gold-visual-box {
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.2) 0%, rgba(20, 14, 6, 0.96) 76%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.crate-visual-box.spinning {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.15), inset 0 0 28px rgba(0, 0, 0, 0.55);
}

.crate-emblem {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    animation: crateFloat 3.4s ease-in-out infinite;
}

.crate-emblem.emerald {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.26), rgba(6, 78, 59, 0.6));
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.crate-emblem.gold {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.28), rgba(146, 64, 14, 0.55));
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.crate-emblem.shake {
    animation: crateShake 0.45s ease infinite;
}

@keyframes crateFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.crate-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.16);
    color: var(--emerald-bright);
    margin-bottom: 10px;
}

.crate-tag.gold {
    background: rgba(245, 158, 11, 0.16);
    color: var(--gold-bright);
}

.crate-spinner-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 110px;
    overflow: hidden;
    contain: layout inline-size;
    border-radius: 12px;
    background: rgba(5, 8, 13, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9);
}

.crate-spinner-viewport.emerald {
    border-color: rgba(52, 211, 153, 0.34);
}

.crate-spinner-viewport.gold {
    border-color: rgba(251, 191, 36, 0.36);
}

.crate-pointer-line {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(253, 230, 138, 0.95), #F59E0B, rgba(253, 230, 138, 0.95));
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
    z-index: 5;
    pointer-events: none;
}

.crate-pointer-top,
.crate-pointer-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    line-height: 1;
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.95);
    z-index: 6;
    pointer-events: none;
}

.crate-pointer-top {
    top: 1px;
}

.crate-pointer-bottom {
    bottom: 1px;
}

.crate-spinner-fade-left,
.crate-spinner-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    z-index: 4;
    pointer-events: none;
}

.crate-spinner-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 8, 13, 0.98) 12%, transparent);
}

.crate-spinner-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(5, 8, 13, 0.98) 12%, transparent);
}

.crate-reel-track {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    will-change: transform;
}

.crate-reel-item {
    position: relative;
    flex: 0 0 90px;
    height: 78px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.crate-reel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(148, 163, 184, 0.55);
}

.crate-reel-item .reel-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.crate-reel-item .reel-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
}

.crate-reel-item.tier-low {
    background: linear-gradient(170deg, rgba(71, 85, 105, 0.24), rgba(15, 23, 42, 0.94));
    border-color: rgba(148, 163, 184, 0.24);
}

.crate-reel-item.tier-low::before {
    background: #94A3B8;
}

.crate-reel-item.tier-mid {
    background: linear-gradient(170deg, rgba(16, 185, 129, 0.22), rgba(7, 22, 18, 0.96));
    border-color: rgba(52, 211, 153, 0.42);
}

.crate-reel-item.tier-mid::before {
    background: var(--emerald-bright);
}

.crate-reel-item.tier-mid .reel-val {
    color: var(--emerald-bright);
}

.crate-reel-item.tier-gold {
    background: linear-gradient(170deg, rgba(245, 158, 11, 0.28), rgba(28, 18, 5, 0.96));
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.14);
}

.crate-reel-item.tier-gold::before {
    background: linear-gradient(90deg, #FDE68A, #F59E0B, #FDE68A);
}

.crate-reel-item.tier-gold .reel-val {
    color: var(--gold-bright);
}

.crate-reel-item.winner {
    transform: scale(1.04);
    border-color: var(--emerald-bright);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.55);
    z-index: 3;
}

.crate-reel-item.tier-gold.winner {
    border-color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.72);
}

/* Promocodes Tab & Official Channels */
.promocodes-shell {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-social-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.promo-social-copy h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.promo-social-copy p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.promo-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.promo-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.promo-social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.promo-social-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
}

.promo-social-btn.social-x:hover {
    border-color: rgba(226, 232, 240, 0.45);
    color: #ffffff;
}

.promo-social-btn.social-ig:hover {
    border-color: rgba(236, 72, 153, 0.55);
    color: #F472B6;
}

.promo-social-btn.social-tt:hover {
    border-color: rgba(45, 212, 191, 0.55);
    color: #2DD4BF;
}

.promo-social-btn.social-yt:hover {
    border-color: rgba(239, 68, 68, 0.55);
    color: #F87171;
}

.crate-icon {
    font-size: 3.4rem;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.crate-icon.shake {
    animation: crateShake 0.5s ease infinite;
}

@keyframes crateShake {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.crate-result {
    font-weight: 700;
    color: var(--emerald-bright);
}

.crate-odds {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.odd-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.odd-pill.emerald { color: var(--emerald-bright); }
.odd-pill.gold { color: var(--gold-bright); }

.promo-hint-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin: 18px 0;
}

.promo-hint-box code {
    color: var(--gold-bright);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Account & History Tab */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-big-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--emerald-bright), #2563EB);
    color: #05140D;
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-pill {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.14);
    padding: 3px 10px;
    border-radius: 99px;
}

.xp-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--gold-bright));
}

.divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 20px 0;
}

.referral-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-md);
    padding: 16px;
}

.referral-box h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.referral-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ref-link-row {
    display: flex;
    gap: 8px;
}

.btn-copy {
    background: var(--emerald);
    color: #04150D;
    border: none;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    max-height: 420px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(11, 16, 23, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.history-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-left strong {
    font-size: 0.88rem;
}

.history-left small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.history-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
}

.history-amount.plus { color: var(--emerald-bright); }
.history-amount.minus { color: var(--gold-bright); }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 10, 0.82);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    background: #0F1622;
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

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

.modal-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--emerald-bright);
    background: rgba(16, 185, 129, 0.14);
    padding: 4px 10px;
    border-radius: 99px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-box h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.modal-box p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.modal-reward-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-emerald);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.modal-reward-banner strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--emerald-bright);
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.m-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.m-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.verification-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.84rem;
    color: var(--gold-bright);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(245, 158, 11, 0.3);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 22, 34, 0.96);
    border: 1px solid var(--border-emerald);
    border-left: 4px solid var(--emerald-bright);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.86rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease;
}

.toast.warn {
    border-color: var(--border-gold);
    border-left-color: var(--gold-bright);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Header Avatar Image & Logout Button */
.header-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.btn-logout-user {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #FCA5A5;
    padding: 9px 13px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout-user:hover {
    background: rgba(239, 68, 68, 0.24);
    color: #FFFFFF;
}

/* Two-Step Roblox Auth Overlay */
.user-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 11, 0.88);
    backdrop-filter: blur(12px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.user-auth-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: linear-gradient(160deg, rgba(17, 24, 34, 0.98), rgba(10, 15, 22, 0.99));
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72), 0 0 40px rgba(16, 185, 129, 0.12);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    line-height: 1;
}

.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-step-pill {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: var(--emerald-bright);
    margin-top: 2px;
}

.user-auth-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.auth-subtext {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 18px;
}

.user-auth-card input[type="text"] {
    width: 100%;
}

.auth-error-box {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #FCA5A5;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-trust-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.confirm-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(9, 13, 19, 0.9);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.confirm-avatar-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--emerald-bright), #2563EB);
    color: #05140D;
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(52, 211, 153, 0.45);
}

.confirm-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirm-user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.confirm-user-details strong {
    font-size: 1.1rem;
    color: var(--text-main);
    word-break: break-word;
}

.confirm-handle {
    font-size: 0.84rem;
    color: var(--emerald-bright);
    font-weight: 600;
}

.confirm-id-badge {
    display: inline-block;
    width: fit-content;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 99px;
}

.auth-confirm-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: var(--gold-bright);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.auth-confirm-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.auth-confirm-actions .btn-primary,
.auth-confirm-actions .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Offerwall Side-by-Side Expandable Selector & Drawer */
.offerwall-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.offerwall-select-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    user-select: none;
}

.offerwall-select-card:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(16, 23, 35, 0.96);
}

.offerwall-select-card.active {
    border-color: var(--emerald-bright);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.28), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.ow-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ow-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ow-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.offerwall-select-card[data-provider="offerwallme"] .ow-card-icon {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
}

.offerwall-select-card[data-provider="cpagrip"] .ow-card-icon {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.32);
}

.offerwall-select-card[data-provider="splitgrid"] .ow-card-icon {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.32);
}

.ow-card-title-wrap h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.offerwall-select-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.48;
    flex: 1;
}

.ow-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.ow-card-tag {
    color: var(--text-muted);
    font-weight: 600;
}

.ow-card-toggle {
    color: var(--emerald-bright);
    font-weight: 700;
}

.offerwall-select-card:not(.active) .ow-card-toggle {
    color: var(--gold-bright);
}

/* Direct Offerwall Embed Drawer */
.bitcotasks-embed-shell {
    background: var(--bg-card);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bitcotasks-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.bitcotasks-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ow-logo-inline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--emerald-bright);
}

.ow-badge-inline {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--emerald);
    color: #05180F;
}

.bitcotasks-notice {
    padding: 28px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    background: rgba(9, 13, 19, 0.85);
    border: 1px dashed var(--border-gold);
    color: var(--gold-bright);
    font-size: 0.92rem;
    font-weight: 600;
}

.offerwall-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sm-inline {
    padding: 6px 12px;
    font-size: 0.78rem;
    text-decoration: none;
}

#bitcotasksIframe {
    width: 100%;
    height: 720px;
    max-height: 76vh;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: #090d13;
}

/* Referrals & Legal Tabs */
.referrals-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}

.referral-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.ref-stat-box {
    background: rgba(9, 13, 19, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ref-stat-box span {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ref-stat-box strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.referral-milestones-wrap {
    margin-top: 18px;
    padding: 16px;
    background: rgba(9, 13, 19, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.ref-milestones-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ref-milestones-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.ref-bar-seg {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ref-bar-seg.filled {
    background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
    border-color: var(--border-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.ref-milestones-circles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.ref-circle-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ref-circle-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.ref-circle-node.reached .ref-circle-dot {
    color: #05180F;
    background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
    border-color: var(--emerald-bright);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.42);
}

.ref-circle-node[data-step="5"].reached .ref-circle-dot {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border-color: var(--gold-bright);
    box-shadow: 0 0 20px var(--gold-glow);
}

.ref-circle-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.ref-circle-node.reached .ref-circle-sub {
    color: var(--emerald-bright);
}

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

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-card h3 {
    font-size: 1.15rem;
}

.legal-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.legal-text p {
    margin-bottom: 10px;
}

.legal-text p:last-child {
    margin-bottom: 0;
}

.legal-list {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-link {
    color: var(--emerald-bright);
    text-decoration: none;
    font-weight: 600;
}

.legal-link:hover {
    text-decoration: underline;
}

.partner-banner-slot {
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 250px;
    overflow: hidden;
}

.site-footer {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-legal-btn {
    background: transparent;
    border: none;
    color: var(--emerald-bright);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.footer-legal-btn:hover {
    text-decoration: underline;
}

/* ============================
   LEADERBOARD (TOP 50 EARNERS)
============================ */
.leaderboard-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.leaderboard-head-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.06) 55%, rgba(15, 22, 33, 0.92));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}

.leaderboard-head-copy h3 {
    font-size: 1.35rem;
    margin: 8px 0 6px;
}

.leaderboard-head-copy p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.leaderboard-list-wrap {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-table-head {
    display: grid;
    grid-template-columns: 68px 1fr 120px 140px;
    align-items: center;
    padding: 13px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    background: rgba(7, 10, 14, 0.55);
    border-bottom: 1px solid var(--border-subtle);
}

.lb-col-tasks,
.lb-col-earned {
    text-align: right;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 68px 1fr 120px 140px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.leaderboard-row.top-1 {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.02) 60%, transparent);
}

.leaderboard-row.top-2 {
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.1), rgba(203, 213, 225, 0.015) 55%, transparent);
}

.leaderboard-row.top-3 {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.11), rgba(217, 119, 6, 0.015) 55%, transparent);
}

.lb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}

.leaderboard-row.top-1 .lb-rank-badge {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(251, 191, 36, 0.55);
    color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.leaderboard-row.top-2 .lb-rank-badge {
    background: rgba(226, 232, 240, 0.16);
    border-color: rgba(226, 232, 240, 0.45);
    color: #E2E8F0;
}

.leaderboard-row.top-3 .lb-rank-badge {
    background: rgba(217, 119, 6, 0.2);
    border-color: rgba(245, 158, 11, 0.42);
    color: #FDBA74;
}

.lb-player {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #07130e;
    background: linear-gradient(135deg, #34D399, #10B981);
}

.leaderboard-row.top-1 .lb-avatar {
    background: linear-gradient(135deg, #FDE68A, #F59E0B);
    color: #1A1002;
}

.leaderboard-row.top-2 .lb-avatar {
    background: linear-gradient(135deg, #F1F5F9, #94A3B8);
    color: #0F172A;
}

.leaderboard-row.top-3 .lb-avatar {
    background: linear-gradient(135deg, #FDBA74, #B45309);
    color: #1C0D02;
}

.lb-username {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-tasks {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.lb-earned {
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--emerald-bright);
}

/* Fade-out gradient after #50 ("sanki devami varmis gibi kararti") */
.leaderboard-fade-zone {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    user-select: none;
}

.leaderboard-ghost-rows {
    display: flex;
    flex-direction: column;
    filter: blur(2.5px);
    opacity: 0.45;
    pointer-events: none;
}

.leaderboard-fade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 10, 14, 0.15) 0%,
        rgba(7, 10, 14, 0.72) 48%,
        rgba(7, 10, 14, 0.98) 92%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 16px;
    text-align: center;
}

.leaderboard-fade-overlay span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

/* Current user rank summary bar pinned at bottom */
.leaderboard-my-rank-bar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(13, 18, 25, 0.97) 58%);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
}

.lb-my-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lb-my-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-bright);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.lb-my-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lb-my-meta strong {
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-my-meta small {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.lb-my-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lb-my-earned {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--emerald-bright);
}

/* ============================
   FULLSCREEN MAINTENANCE LOCK
============================ */
body.maintenance-locked {
    overflow: hidden;
}

body.maintenance-locked .live-ticker-bar,
body.maintenance-locked .app-layout,
body.maintenance-locked .user-auth-overlay,
body.maintenance-locked .modal-overlay {
    display: none !important;
}

.maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.12), rgba(7, 10, 14, 0.98) 65%);
    backdrop-filter: blur(18px);
}

.maintenance-card {
    width: 100%;
    max-width: 780px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
    background: linear-gradient(140deg, rgba(17, 24, 34, 0.96), rgba(9, 13, 19, 0.98));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72), 0 0 40px rgba(245, 158, 11, 0.1);
}

.maintenance-character-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-character-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.34), rgba(16, 185, 129, 0.14) 55%, transparent 74%);
    filter: blur(14px);
    z-index: 0;
}

.maintenance-character-img {
    position: relative;
    z-index: 1;
    height: 235px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.65));
    animation: heroMascotFloat 4s ease-in-out infinite;
}

.maintenance-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.38);
    color: var(--gold-bright);
}

.maintenance-copy h2 {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.maintenance-copy p {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-main);
    font-weight: 600;
}

.maintenance-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.pulse-dot.amber {
    background-color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-bright);
}

/* ============================
   MOBILE & TABLET OPTIMIZATION
============================ */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sidebar {
        padding: 12px 14px;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        position: relative;
        z-index: 40;
    }

    .brand {
        padding: 0 2px;
        gap: 10px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-logo svg {
        width: 22px;
        height: 22px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-sub {
        font-size: 0.58rem;
    }

    .nav-menu {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        width: auto;
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .sidebar-goal-card {
        margin-top: 0;
        padding: 10px 12px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 6px 12px;
    }

    .sidebar-goal-card .goal-header {
        margin-bottom: 0;
        font-size: 0.78rem;
    }

    .sidebar-goal-card .goal-progress-bg {
        grid-column: 1 / -1;
        margin-bottom: 0;
        height: 6px;
    }

    .sidebar-goal-card .goal-desc {
        margin-bottom: 0;
        font-size: 0.74rem;
    }

    .sidebar-goal-card .btn-claim-goal {
        width: auto;
        padding: 7px 12px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .hero-stats-grid,
    .withdraw-container,
    .account-grid,
    .referrals-grid,
    .legal-grid,
    .crates-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .live-ticker-bar {
        height: auto;
        flex-wrap: wrap;
        gap: 5px 8px;
        padding: 6px 12px;
    }

    .ticker-badge {
        padding-right: 0;
        border-right: none;
        font-size: 0.7rem;
        gap: 6px;
    }

    .topbar-right-tools {
        margin-left: auto;
        gap: 6px;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 2px 6px;
        font-size: 0.66rem;
    }

    .stock-pill {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .ticker-track-wrapper {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ticker-item {
        font-size: 0.73rem;
    }

    /* All 9 tabs visible at once in clean 3x3 mobile grid */
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
        padding-bottom: 0;
    }

    .nav-item {
        width: 100%;
        padding: 8px 6px;
        border-radius: 10px;
        font-size: 0.73rem;
        font-weight: 700;
        gap: 5px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-item.active {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
        border-color: rgba(52, 211, 153, 0.45);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    .nav-item span {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.15;
    }

    /* Compact Daily Goal Bar */
    .sidebar-goal-card {
        padding: 9px 12px;
        gap: 6px 10px;
    }

    .sidebar-goal-card .goal-desc {
        display: none;
    }

    /* Main Workspace & Top Header */
    .main-wrapper {
        padding: 14px 12px 26px;
    }

    .top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .header-left h1 {
        font-size: 1.28rem;
        line-height: 1.2;
    }

    .header-left p {
        font-size: 0.79rem;
        line-height: 1.35;
        margin-top: 2px;
    }

    .header-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .balance-pill {
        order: 1;
        width: 100%;
        padding: 6px 10px;
        gap: 8px;
        justify-content: space-between;
    }

    .robux-coin-icon {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .balance-label {
        font-size: 0.56rem;
    }

    .balance-value {
        font-size: 1rem;
    }

    .balance-add-btn {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    .streak-btn {
        order: 2;
        width: 100%;
        padding: 6px 10px;
        font-size: 0.76rem;
        justify-content: space-between;
        gap: 6px;
    }

    .streak-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-left: auto;
    }

    .user-chip {
        order: 3;
        width: 100%;
        min-width: 0;
        padding: 6px 10px 6px 6px;
        gap: 8px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .user-meta {
        min-width: 0;
        flex: 1;
    }

    .user-meta strong {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vip-badge {
        font-size: 0.64rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #headerSignInBtn,
    .btn-logout-user {
        order: 4;
        width: 100%;
        height: 100%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: var(--radius-md);
    }

    /* Hero Banner & Stats Cards */
    .hero-stats-grid {
        margin-bottom: 20px;
        gap: 12px;
    }

    .hero-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 15px;
        gap: 12px;
        margin-top: 2px;
    }

    .hero-kicker {
        font-size: 0.66rem;
        padding: 3px 9px;
        margin-bottom: 8px;
    }

    .hero-content h2 {
        font-size: 1.32rem;
        line-height: 1.22;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        padding: 10px 10px;
        font-size: 0.8rem;
        text-align: center;
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        flex: none;
        height: 138px;
        margin-top: -4px;
        margin-bottom: -8px;
    }

    .hero-character-glow {
        width: 130px;
        height: 130px;
    }

    .hero-character-img {
        height: 162px;
        margin-top: 0;
    }

    .stats-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .stat-details span {
        font-size: 0.72rem;
    }

    .stat-details strong {
        font-size: 1.15rem;
    }

    .stat-details small {
        font-size: 0.68rem;
    }

    /* Quests Section & Filters */
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-header h3 {
        font-size: 1.15rem;
    }

    .section-header p {
        font-size: 0.78rem;
    }

    .filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 12px;
        font-size: 0.76rem;
    }

    .quests-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quest-card {
        padding: 15px;
        gap: 12px;
    }

    .quest-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .quest-reward-tag {
        font-size: 0.92rem;
        padding: 4px 10px;
    }

    /* Offerwalls Tab */
    .offerwall-selector-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .offerwall-select-card {
        padding: 14px 15px;
        gap: 8px;
    }

    .bitcotasks-embed-shell {
        padding: 12px;
        gap: 10px;
    }

    .bitcotasks-embed-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .offerwall-modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .offerwall-modal-actions .btn-sm-inline {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    #bitcotasksIframe {
        height: 520px;
        max-height: 72vh;
    }

    /* Common Card Padding & Title Row */
    .withdraw-form-card,
    .info-card,
    .vault-crate-card,
    .promo-code-card,
    .profile-card,
    .history-card,
    .legal-card,
    .leaderboard-head-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .card-title-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-title-row h3 {
        font-size: 1.1rem;
    }

    /* Withdraw Tab */
    .withdraw-packages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .pkg-card {
        padding: 12px 8px;
    }

    .pkg-r {
        font-size: 1.08rem;
    }

    .btn-withdraw-submit {
        font-size: 0.94rem;
        padding: 13px;
    }

    /* Crates & Promocodes Tabs */
    .vault-crate-card > p {
        min-height: 0;
        font-size: 0.83rem;
    }

    .crate-visual-box {
        height: 168px;
        padding: 14px;
        margin: 14px 0 16px;
    }

    .crate-emblem {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .crate-spinner-viewport {
        height: 96px;
    }

    .crate-reel-item {
        flex: 0 0 80px;
        height: 68px;
    }

    .promo-social-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 14px;
        gap: 12px;
    }

    .promo-social-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .promo-social-btn {
        justify-content: center;
        padding: 10px;
    }

    /* Referrals Tab */
    .referral-box {
        padding: 13px;
    }

    .ref-link-row {
        flex-direction: column;
        gap: 8px;
    }

    .ref-link-row input[type="text"] {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .btn-copy {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.85rem;
        text-align: center;
    }

    .referral-milestones-wrap {
        padding: 12px;
    }

    .ref-milestones-circles {
        gap: 4px;
    }

    .ref-circle-dot {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .ref-circle-sub {
        font-size: 0.62rem;
    }

    /* Leaderboard Tab */
    .leaderboard-table-head,
    .leaderboard-row {
        grid-template-columns: 46px minmax(0, 1fr) 92px;
        padding: 10px 12px;
        gap: 8px;
    }

    .lb-col-tasks,
    .lb-tasks {
        display: none;
    }

    .lb-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.74rem;
    }

    .lb-username {
        font-size: 0.84rem;
    }

    .lb-earned {
        font-size: 0.85rem;
    }

    .leaderboard-my-rank-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        gap: 10px;
        bottom: 8px;
    }

    /* Modals, Auth Overlay, Toasts & Maintenance */
    .modal-backdrop,
    .user-auth-overlay {
        padding: 12px;
    }

    .modal-box,
    .user-auth-card {
        padding: 20px 16px;
        border-radius: 16px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .confirm-profile-card {
        padding: 12px;
        gap: 12px;
    }

    .confirm-avatar-wrap {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        width: 100%;
        min-width: 0;
        font-size: 0.82rem;
        padding: 12px 14px;
    }

    .maintenance-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        gap: 16px;
    }

    .maintenance-copy {
        align-items: center;
    }

    .maintenance-copy h2 {
        font-size: 1.35rem;
    }

    .maintenance-copy p {
        font-size: 0.92rem;
    }

    .maintenance-character-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .nav-item {
        padding: 7px 4px;
        font-size: 0.68rem;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .header-right {
        grid-template-columns: 1fr;
    }
}


