/* Modern CosmoMine Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --mining-gradient: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    
    --dark-bg: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.25);
    
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 25% 25%, #667eea22 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #f093fb22 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #4facfe11 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Navigation */
.nav-tabs {
    margin-bottom: 24px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: var(--shadow-lg);
}

.nav-tab {
    flex: 1;
    background: transparent;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    padding: 16px 12px;
    font-size: 1.35rem; /* bigger emojis */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--border-radius-sm);
}

.nav-tab.active::before {
    opacity: 1;
}

.nav-tab.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-tab span {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: logoFloat 6s ease-in-out infinite;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: var(--primary-gradient);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0.6;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    margin-bottom: 24px;
}

.stats-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #4facfe !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3) !important;
    -webkit-text-fill-color: #4facfe !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* Profile Section */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.credits-section, .wallet-section, .referral-section {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.credits-section::before, .wallet-section::before, .referral-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.credits-section h4, .wallet-section h4, .referral-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.credits-info, .wallet-info, .referral-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Wallet Section Specific Styles */
.wallet-info p {
    margin-bottom: 8px;
}

.wallet-info strong {
    color: var(--text-primary);
}

.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wallet-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Courier New', monospace;
}

.wallet-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.wallet-input::placeholder {
    color: var(--text-muted);
    font-family: inherit;
}

.save-wallet-btn {
    background: var(--success-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.save-wallet-btn:hover::before {
    left: 100%;
}

.save-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.save-wallet-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wallet-status {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: var(--border-radius-sm);
    animation: fadeInUp 0.3s ease;
}

.saved-address {
    color: #4facfe;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.changes-info {
    color: var(--text-muted);
    font-weight: 500;
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

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

/* Buttons */
.watch-ad-btn, .withdraw-btn, .play-btn {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-ad-btn::before, .withdraw-btn::before, .play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.watch-ad-btn:hover::before, .withdraw-btn:hover::before, .play-btn:hover::before {
    left: 100%;
}

.watch-ad-btn:hover, .withdraw-btn:hover, .play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.withdraw-btn {
    background: var(--success-gradient);
}

.withdraw-btn:disabled, .play-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Elements */
.address-input, .referral-link input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.address-input:focus, .referral-link input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-link {
    display: flex;
    gap: 12px;
    align-items: center;
}

.referral-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-item {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
}

.referral-item .left {
    color: var(--text-primary);
    font-weight: 600;
}

.referral-item .right {
    display: none; /* hide credits column */
}

.copy-btn {
    background: var(--secondary-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 16px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Mystery Box Game */
.mystery-game {
    text-align: center;
    padding: 24px;
}

.mystery-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mystery-box {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.mystery-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mystery-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mystery-box:hover::before {
    opacity: 0.1;
}

.mystery-box.picking {
    animation: mysteryPulse 0.6s ease-in-out infinite alternate;
}

.mystery-box.winner {
    background: var(--success-gradient);
    border-color: #4facfe;
    animation: winBounce 0.8s ease;
}

.mystery-box.loser {
    background: var(--danger-gradient);
    border-color: #fa709a;
    animation: loseShake 0.6s ease;
}

.mystery-box.game-active {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    animation: gameActivePulse 1.5s infinite alternate;
}

@keyframes gameActivePulse {
    0% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

.box-content {
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    color: var(--text-primary);
}

@keyframes mysteryPulse {
    0% { transform: scale(1); box-shadow: var(--shadow-lg); }
    100% { transform: scale(1.1); box-shadow: var(--shadow-xl); }
}

@keyframes winBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes loseShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Probability Bet Game */
.probability-bet-game {
    text-align: center;
    padding: 24px;
}

.betting-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.stake-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.stake-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stake-input {
    width: 100px;
    padding: 12px;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.stake-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chance-section {
    margin-bottom: 20px;
}

.chance-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: block;
}

.chance-slider-container {
    position: relative;
    margin-bottom: 16px;
}

.chance-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--card-border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.chance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chance-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chance-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.current-chance {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.probability-bar {
    height: 8px;
    background: var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.quick-select {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    padding: 8px 12px;
    border: 2px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.quick-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.quick-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: var(--text-primary);
}

.payout-info {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

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

.payout-row:last-child {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.payout-label {
    color: var(--text-secondary);
}

.payout-value {
    font-weight: 600;
    color: var(--text-primary);
}

.payout-value.positive {
    color: #22c55e;
}

.payout-value.negative {
    color: #ef4444;
}

.game-display {
    margin: 32px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-display {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.result-display.win {
    color: #22c55e;
    text-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.result-display.lose {
    color: #ef4444;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.result-display.waiting {
    color: var(--text-secondary);
}

.odds-visualizer {
    width: 100%;
    margin: 20px 0;
}

.odds-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    position: relative;
}

.result-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--text-primary);
    transform: translateX(-50%);
    z-index: 10;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: left 0.1s ease;
}

.result-line.moving {
    transition: none;
}

.result-line.final-move {
    transition: left 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.win-section {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: flex 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.lose-section {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: flex 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.odds-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.win-label {
    color: #22c55e;
}

.lose-label {
    color: #ef4444;
}

.result-amount {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 12px;
}

.result-amount.win {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.result-amount.lose {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--text-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.hidden {
    display: none !important;
}

/* Particle effects */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
}

.particle.win {
    background: #22c55e;
}

.particle.lose {
    background: #ef4444;
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate(var(--dx), var(--dy));
    }
}

.particle.animate {
    animation: particleBurst 1.5s ease-out forwards;
}

/* Leaderboard */
.leaderboard-content {
    padding: 24px;
    text-align: center;
}

/* Season end banner above stats */
.season-end-banner {
    margin: -8px 0 16px 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
}

/* Community banner for leaderboard */
/* Season card styles */
.season-card .season-header h3 {
    margin-bottom: 6px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.season-card .season-header p {
    margin: 2px 0;
    color: var(--text-secondary);
}

.season-card .season-sub {
    margin-top: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.prize-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prize-list li {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.season-footer {
    margin-top: 12px;
    text-align: center;
}

.season-countdown {
    font-weight: 800;
}

.season-cta {
    color: var(--text-secondary);
    margin-top: 6px;
}

@media (max-width: 480px) {
    .prize-list li {
        padding: 10px;
    }
}

.leaderboard-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-list {
    margin-bottom: 24px;
}

.leaderboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-secondary);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.leaderboard-item.top-3 {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item.current-user {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 120px;
}

.rank-number {
    font-size: 1.4rem;
    font-weight: 800;
    width: 32px;
    text-align: center;
}

.rank-number.gold { color: #FFD700; }
.rank-number.silver { color: #C0C0C0; }
.rank-number.bronze { color: #CD7F32; }

.player-info {
    flex: 1;
    text-align: left;
    margin-left: 16px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.player-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-points {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
    min-width: 80px;
}

.leaderboard-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: left;
}

.leaderboard-note p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.leaderboard-note p:last-child {
    margin-bottom: 0;
}

/* Mobile spacing tweaks for leaderboard (prevents truncation on phones) */
@media (max-width: 480px) {
    .leaderboard-item {
        padding: 12px 14px;
    }
    .leaderboard-rank {
        min-width: 0; /* reduce reserved width next to badge */
        gap: 8px;
    }
    .player-info {
        margin-left: 8px; /* pull name slightly left */
    }
    .player-points {
        min-width: 68px; /* keep points visible but tighter */
        text-align: right;
    }
}

.leaderboard-empty,
.leaderboard-error {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.leaderboard-error .retry-btn {
    margin-top: 16px;
    background: var(--primary-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-error .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Game Info */
.game-info {
    margin-top: 24px;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Notifications */
.notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notification.success .notification-content {
    background: var(--success-gradient);
    border-color: #4facfe;
}

.notification.error .notification-content {
    background: var(--danger-gradient);
    border-color: #fa709a;
}

.notification.info .notification-content {
    background: var(--primary-gradient);
    border-color: #667eea;
}

/* Daily Reminder Notification Styles */
.daily-reminder-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    z-index: 10001;
    max-width: 95%;
    min-width: 300px;
    animation: reminderSlideDown 0.5s ease-out;
}

.daily-reminder-notification.task {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #4facfe;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.4);
}

.daily-reminder-notification.game {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f093fb;
    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.4);
}

.daily-reminder-notification.motivation {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: #4facfe;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.4);
}

.reminder-content {
    display: flex;
    align-items: center;
    padding: 20px;
    color: white;
    position: relative;
}

.reminder-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.reminder-text {
    flex: 1;
}

.reminder-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reminder-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.reminder-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reminder-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes reminderSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .logo-icon {
        width: 72px;
        height: 72px;
        font-size: 2.8rem;
    }

    .stats-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .game-card {
        padding: 24px;
    }

    .mystery-boxes {
        gap: 12px;
        max-width: 300px;
    }

    .mystery-box {
        width: 60px;
        height: 60px;
    }

    .box-content {
        font-size: 0.8rem;
    }

    .roulette-wheel {
        width: 240px;
        height: 240px;
    }

    .slider-track {
        height: 40px;
    }

    .stake-row {
        flex-direction: column;
        gap: 12px;
    }

    .result-display {
        font-size: 2.5rem;
    }

    .betting-section {
        padding: 20px;
    }

    .game-display {
        padding: 24px;
    }

    .referral-link {
        flex-direction: column;
        gap: 12px;
    }

    .nav-tab {
        padding: 14px 10px;
        font-size: 1.2rem; /* larger emoji on phones */
    }
    /* Tighten top navigation spacing on small screens */
    .nav-card {
        padding: 6px; /* reduce outer padding */
        gap: 2px;    /* reduce space between tabs */
    }
    .nav-tab {
        padding: 12px 8px; /* balanced touch target with edge */
        letter-spacing: 0; 
    }
    
    .wallet-form {
        gap: 12px;
    }
    
    .wallet-input {
        font-size: 0.9rem;
        padding: 14px;
    }
    
    .save-wallet-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --card-border: rgba(255, 255, 255, 0.3);
    }
    
    .game-card, .stats-card, .nav-card {
        border-width: 2px;
    }
}

/* Ladder Game Styles */
.ladder-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ladder-row.current-row {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    animation: currentRowPulse 2s infinite alternate;
}

@keyframes currentRowPulse {
    0% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.3);
        transform: scale(1.01);
    }
}

.ladder-row-label {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.row-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.row-multiplier {
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ladder-boxes {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.ladder-box {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ladder-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ladder-box.playable {
    border-color: #667eea;
    cursor: pointer;
    animation: ladderBoxPulse 1.5s infinite alternate;
}

.ladder-box.playable:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.ladder-box.playable:hover::before {
    opacity: 0.1;
}

@keyframes ladderBoxPulse {
    0% { 
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    }
    100% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
}

.ladder-box.winner {
    background: var(--success-gradient);
    border-color: #4facfe;
    animation: ladderWinBounce 0.8s ease;
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.4);
}

.ladder-box.loser {
    background: var(--danger-gradient);
    border-color: #fa709a;
    animation: ladderLoseShake 0.6s ease;
    box-shadow: 0 0 25px rgba(247, 112, 154, 0.4);
}

.ladder-box.winner-revealed {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
}

.ladder-box.loser-revealed {
    background: rgba(247, 112, 154, 0.2);
    border-color: rgba(247, 112, 154, 0.4);
}

.ladder-box.near-miss-highlight {
    background: var(--warning-gradient);
    border-color: #fbbf24;
    animation: nearMissFlicker 0.2s ease;
}

.ladder-box.selected-highlight {
    background: var(--primary-gradient);
    border-color: #667eea;
    animation: selectedBoxGlow 0.5s ease;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

@keyframes ladderWinBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-15px) scale(1.1); }
    60% { transform: translateY(-8px) scale(1.05); }
}

@keyframes ladderLoseShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px) rotate(-2deg); }
    20%, 40%, 60%, 80% { transform: translateX(6px) rotate(2deg); }
}

@keyframes nearMissFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes selectedBoxGlow {
    0% { 
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
        transform: scale(1.1);
    }
    100% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

.ladder-box-content {
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    color: var(--text-primary);
}

/* Control buttons specific to ladder game */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.control-buttons .btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.control-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.control-buttons .btn:hover::before {
    left: 100%;
}

.control-buttons .btn-primary {
    background: var(--primary-gradient);
}

.control-buttons .btn-success {
    background: var(--success-gradient);
}

.control-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
}

.control-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Betting section enhancements for ladder */
.betting-section .stake-row {
    align-items: center;
    margin-bottom: 16px;
}

.betting-section .payout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.betting-section .payout-value {
    font-weight: 700;
    color: var(--text-primary);
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile responsive adjustments for ladder */
@media (max-width: 480px) {
    .ladder-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px 12px;
    }
    
    .ladder-row-label {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .ladder-boxes {
        gap: 8px;
    }
    
    .ladder-box {
        width: 50px;
        height: 50px;
    }
    
    .ladder-box-content {
        font-size: 0.8rem;
    }
    
    .row-number, .row-multiplier {
        font-size: 0.9rem;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-buttons .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* High contrast adjustments for ladder */
@media (prefers-contrast: high) {
    .ladder-row {
        border-width: 2px;
    }
    
    .ladder-box {
        border-width: 3px;
    }
    
    .ladder-box.current-row {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* How It Works Panel Styles */
.how-it-works-card {
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.how-it-works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    transition: background 0.3s ease;
}

.how-it-works-header:hover {
    background: linear-gradient(135deg, #667eea30 0%, #764ba230 100%);
}

.how-it-works-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.collapse-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.1);
}

.how-it-works-content {
    padding: 0 20px 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 1000px; /* Large enough to show all content when expanded */
    opacity: 1;
}

.how-it-works-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.step-icon {
    font-size: 24px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.step-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.how-it-works-footer {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #4facfe10 0%, #00f2fe10 100%);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.how-it-works-footer .tip {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.how-it-works-footer .tip strong {
    color: #4facfe;
}

/* Mobile responsiveness for How It Works */
@media (max-width: 768px) {
    .how-it-works-header {
        padding: 16px;
    }
    
    .how-it-works-content {
        padding: 0 16px 16px;
    }
    
    .step-item {
        padding: 12px;
        gap: 10px;
    }
    
    .step-icon {
        font-size: 20px;
        min-width: 36px;
        height: 36px;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 13px;
    }
    
    .how-it-works-footer {
        padding: 12px;
        margin-top: 16px;
    }
    
    .how-it-works-footer .tip {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .how-it-works-header {
        padding: 12px;
    }
    
    .how-it-works-content {
        padding: 0 12px 12px;
    }
    
    .step-item {
        padding: 10px;
        gap: 8px;
    }
    
    .step-icon {
        font-size: 18px;
        min-width: 32px;
        height: 32px;
    }
    
    .step-content h4 {
        font-size: 14px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

/* Tasks Section Styles */
.tasks-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.tasks-section h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tasks-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.task-item.completed {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
}

.task-icon {
    font-size: 24px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-content h5 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.task-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.task-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
}

.reward-amount {
    color: #4facfe;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.reward-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
}

.task-status {
    flex-shrink: 0;
}

.task-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.task-btn.join-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.task-btn.join-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.task-btn.claim-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.task-btn.claim-btn:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
    transform: translateY(-1px);
}

.task-btn.available {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.task-btn.available:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
    transform: translateY(-1px);
}

.task-btn.watch-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.task-btn.watch-btn:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465c 100%);
    transform: translateY(-1px);
}

.task-btn.claimed {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    cursor: not-allowed;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.task-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.task-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for Tasks */
@media (max-width: 768px) {
    .task-item {
        padding: 12px;
        gap: 10px;
    }
    
    .task-icon {
        font-size: 20px;
        min-width: 36px;
        height: 36px;
    }
    
    .task-content h5 {
        font-size: 15px;
    }
    
    .task-content p {
        font-size: 12px;
    }
    
    .reward-amount {
        font-size: 16px;
    }
    
    .reward-label {
        font-size: 10px;
    }
    
    .task-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* =============================================
   RewardRush — Collect → Upgrade → Earn Theme
   Overrides + new components for mining loop
   ============================================= */

:root {
    --bg-0: #0b0b14;
    --bg-1: #101022;
    --bg-2: #151530;
    --ink-0: #ffffff;
    --ink-1: rgba(255,255,255,0.75);
    --ink-2: rgba(255,255,255,0.55);
    --brand: #8b5cf6; /* violet */
    --brand-2: #22d3ee; /* cyan */
    --accent: #f59e0b; /* amber */
    --success: #22c55e;
    --danger: #ef4444;
    --surface: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-1: 0 6px 24px rgba(0,0,0,0.25);
}

body {
    background: radial-gradient(1200px 800px at 10% -10%, #1e1b4b 0%, transparent 60%),
                radial-gradient(900px 600px at 110% 10%, #0ea5e9 0%, transparent 50%),
                var(--bg-0);
    color: var(--ink-0);
}

.nav-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.nav-tab {
    color: var(--ink-2);
    border: 1px solid transparent;
}

.nav-tab.active::before { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
.nav-tab.active { color: #fff; box-shadow: 0 6px 20px rgba(139,92,246,0.35); }

.header .logo-icon {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.game-card,
.stats-card,
.credits-section, .wallet-section, .referral-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

/* Removed conflicting stat-number rule */

.copy-btn, .save-wallet-btn, .btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.btn-secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--border); }

/* Mining Card */
.mining-card {
    background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(34,211,238,0.05));
    border: 1px solid rgba(139,92,246,0.35);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.mine-btn {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.mine-btn:hover { transform: translateY(-2px); }
.mine-btn:active { transform: translateY(0); }

.streak-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.streak-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-weight: 700;
    font-size: 0.9rem;
}

.boost-badges {
    display: flex;
    gap: 8px;
}

.boost-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34,211,238,0.12);
    border: 1px solid rgba(34,211,238,0.35);
    color: #a5f3fc;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Upgrades Grid */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.upgrade-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.upgrade-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.upgrade-title { font-weight: 800; }
.upgrade-level { color: var(--ink-2); font-weight: 700; }

.upgrade-desc { color: var(--ink-1); font-size: 0.92rem; margin-bottom: 12px; }

.upgrade-actions { display: flex; gap: 8px; }

.stars-btn, .ads-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.stars-btn { background: linear-gradient(135deg, #f59e0b, #fde047); color: #1f2937; }
.ads-btn { background: linear-gradient(135deg, #f472b6, #fb7185); color: #fff; }

.stars-btn:hover, .ads-btn:hover { transform: translateY(-2px); }

/* Referral Panel */
.referral-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 14px;
}

.referral-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16,185,129,0.16);
    color: #86efac;
    font-weight: 800;
}

/* Leaderboard polish */
.leaderboard-item.top-3 { background: linear-gradient(180deg, rgba(253,224,71,0.10), rgba(253,224,71,0.04)); border-color: rgba(253,224,71,0.35); }
.leaderboard-item.current-user { background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(34,211,238,0.06)); }

/* Notification tone */
.notification-content { border: 1px solid var(--border); }

/* CosmoMine Mining Game Styles */

/* Boost Status */
.boost-status {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

/* Mining Card */
.mining-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.mining-content {
    text-align: center;
}

.mining-info {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Prominent live STX amount display */
.auto-mine-amount {
    margin-top: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(79, 172, 254, 0.25);
}

@media (max-width: 480px) {
    .auto-mine-amount {
        font-size: 1.6rem;
    }
}

.mining-area {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.mine-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--mining-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mine-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mine-btn:active {
    transform: scale(0.95);
}

.mine-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mine-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.mine-text {
    font-weight: 700;
    font-size: 0.8rem;
    color: #1f2937;
}

.mining-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
        flex-wrap: wrap;
    }
    
.action-btn {
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.watch-btn {
    background: var(--success-gradient);
    color: white;
}

.box-btn {
    background: var(--secondary-gradient);
    color: white;
}

.box-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Upgrades Section */
.upgrades-content h3 {
    margin-bottom: 8px;
}

.upgrades-info {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upgrades-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upgrade-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.upgrade-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.upgrade-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

/* Star icon styling for boost items */
.upgrade-icon.star-icon {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Star icon hover effect */
.upgrade-icon.star-icon:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.upgrade-info {
    flex: 1;
}

.upgrade-info h4 {
    margin-bottom: 4px;
    font-weight: 600;
}

.upgrade-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.upgrade-btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.upgrade-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* Referral Stats */
.referral-stats {
    margin-top: 12px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.referral-stats p {
    color: #86efac;
    font-weight: 600;
    margin: 0;
}

/* Withdraw Button */
.withdraw-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    background: var(--success-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
        margin-top: 8px;
    width: 100%;
}

.withdraw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
}

/* Floating Animation */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1.2);
    }
}

.floating-number {
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 480px) {
    .mining-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .upgrade-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .upgrade-btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mine-btn {
        width: 100px;
        height: 100px;
    }
    
    .mine-icon {
        font-size: 1.5rem;
    }
}

/* Tasks Section Styles */
.tasks-content {
    padding: 20px;
}

.tasks-info {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    gap: 16px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-info h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
        gap: 8px;
}

.task-info p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 12px;
        margin-top: 8px;
    }

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}
    
    .task-btn {
    padding: 10px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
        width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.task-btn:hover:not(:disabled)::before {
    left: 100%;
}

.task-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.task-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
    transform: none;
    box-shadow: none;
}

.task-btn:disabled::before {
    display: none;
}

/* Task completion states */
.task-item.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.task-btn.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.task-btn.completed:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive design for tasks */
@media (max-width: 480px) {
    .task-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .task-btn {
        min-width: auto;
        width: 100%;
    }
    
    .task-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .progress-text {
        text-align: center;
    }
}

/* Wallet Styles */
.wallet-content {
    padding: 20px;
}

.wallet-info {
    margin-bottom: 20px;
}

.wallet-info p {
    margin: 8px 0;
    color: #b0b0b0;
    font-size: 14px;
}

.wallet-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.wallet-input {
    padding: 12px 16px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: #6366f1;
}

.withdraw-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.withdraw-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Milestones Section */
.milestones-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.milestones-section h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
}

.milestone-item {
    margin: 12px 0;
}

.milestone-label {
    display: block;
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 5px;
}

.milestone-progress {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.milestone-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.milestone-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Requirements Section */
.requirements-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.requirements-section h4 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 16px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 0;
}

.requirement-label {
    color: #b0b0b0;
    font-size: 14px;
}

.requirement-status {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.requirement-status.completed {
    color: #22c55e;
}

.requirement-status.pending {
    color: #f59e0b;
}

/* Withdraw Note */
.withdraw-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.withdraw-note p {
    margin: 8px 0;
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.4;
}

/* Boost Section Styles */
.boosts-content {
    padding: 20px;
}

.boosts-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.boosts-info {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.boost-status-container {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.boost-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.boost-status .boost-icon {
    font-size: 20px;
}

.boost-status .boost-name {
    color: #fff;
}

.active-boost {
    color: #22c55e;
}

.no-boost {
    color: #b0b0b0;
}

.boosts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.boost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.boost-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.boost-info {
    flex: 1;
}

.boost-info h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.boost-info p {
    margin: 0 0 8px 0;
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.4;
}

.boost-price {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 600;
}

.boost-purchase-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.boost-purchase-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.boost-purchase-btn:active:not(.disabled) {
    transform: translateY(0);
}

.boost-purchase-btn.disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.boost-purchase-btn.disabled:hover {
    background: #4b5563;
    transform: none;
    box-shadow: none;
}

.boost-note {
    padding: 15px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.boost-note p {
    margin: 5px 0;
    color: #b0b0b0;
    font-size: 12px;
    line-height: 1.4;
}

/* Energy → Boost with Tickets buttons */
.energy-boost-content .boosts-list {
    flex-direction: column;
    gap: 12px;
    margin-top: 1cm;
}

.ticket-boost-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ticket-boost-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.ticket-boost-btn:hover::before { left: 100%; }
.ticket-boost-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Themed variants by multiplier */
.ticket-boost-btn[data-type="2x"] { background: linear-gradient(135deg, #16a34a22, #22c55e22); border-color: rgba(34,197,94,0.35); }
.ticket-boost-btn[data-type="5x"] { background: linear-gradient(135deg, #8b5cf622, #22d3ee22); border-color: rgba(139,92,246,0.35); }
.ticket-boost-btn[data-type="10x"] { background: linear-gradient(135deg, #f59e0b22, #ef444422); border-color: rgba(245,158,11,0.35); }

.ticket-boost-btn.active {
    border-color: #fbbf24;
    box-shadow: 0 8px 28px rgba(251,191,36,0.25);
    transform: translateY(-1px);
}

.ticket-boost-btn.active::after {
    content: 'Active';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.ticket-boost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    .ticket-boost-btn { width: 100%; }
}

/* Energy page spacing */
.energy-content .task-btn {
    margin-top: 1cm;
}

/* Mining button boost indicator */
.mine-btn.boosted {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* ... existing code ... */
.store-pack-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.store-pack-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.store-pack-btn:hover::before { left: 100%; }
.store-pack-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Themed variants by type */
.store-pack-btn[data-pack^="energy_"] {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-color: rgba(59, 130, 246, 0.35);
}

.store-pack-btn[data-pack^="tickets_"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    border-color: rgba(139, 92, 246, 0.35);
}

.store-pack-btn:active { transform: translateY(0); }
.store-pack-btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; transform: none; }

@media (max-width: 480px) {
    .store-pack-btn { width: 100%; }
}
/* ... existing code ... */