/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Colors - Criminal Empire Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-tertiary: #1f1f1f;
    --bg-card: linear-gradient(145deg, #1a1a1a, #252525);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    --accent-gold: #ffd700;
    --accent-red: #ff3838;
    --accent-green: #00ff88;
    --accent-blue: #3b82f6;

    --premium-gradient: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    --power-gradient: linear-gradient(135deg, #ff3838, #ff6b6b);

    /* Rarity Colors */
    --rarity-common: #9ca3af;
    --rarity-rare: #3b82f6;
    --rarity-epic: #a855f7;
    --rarity-legendary: #fbbf24;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

/* ===== LUXURY MAFIA HEADER ===== */
.header {
    background: linear-gradient(180deg, #161a29 0%, #0d0f18 100%);
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-avatar-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2d1842, #181926);
    border: 1.5px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.player-text {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #111;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-top: 1px;
    width: fit-content;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-icon-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-icon-btn.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
}

.audio-icon-btn.muted {
    opacity: 0.4;
}

.header-casino-btn {
    background: linear-gradient(135deg, #ff0077, #7928ca);
    border: 1px solid #ffd700;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 119, 0.4);
    animation: pulse 2s infinite;
}

.prestige-badge-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.1);
    border: 1.5px solid #ffd700;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    color: #ffd700;
}

/* 4 Compact Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.res-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.res-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.res-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.res-amount {
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-money .res-amount { color: #ffd700; }
.res-gems .res-amount { color: #00e5ff; }
.res-influence .res-amount { color: #c084fc; }
.res-power .res-amount { color: #ff3838; }

.res-rate {
    font-size: 9px;
    font-weight: 700;
    color: #00ff88;
    white-space: nowrap;
}

.res-sub {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
}

/* ===== MAIN CONTENT ===== */
.content {
    flex: 1;
    padding: var(--spacing-md);
    padding-bottom: 80px;
    overflow-y: auto;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== COLLECT BUTTON ===== */
.collect-section {
    margin-bottom: var(--spacing-lg);
}

.btn-collect {
    width: 100%;
    background: var(--premium-gradient);
    border: none;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg), var(--shadow-glow) rgba(255, 215, 0, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-collect:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-md);
}

.collect-icon {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.collect-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--bg-primary);
}

/* ===== BUILDINGS ===== */
.buildings-section {
    margin-bottom: var(--spacing-lg);
}

.buildings-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.building-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.building-card.premium {
    border: 1px solid var(--accent-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow) rgba(255, 215, 0, 0.2);
}

.building-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.building-info {
    flex: 1;
}

.building-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.building-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.building-icon {
    font-size: 32px;
}

.building-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-green);
}

.btn-upgrade {
    width: 100%;
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.1s, background 0.2s;
}

.btn-upgrade:active {
    transform: scale(0.98);
}

.btn-upgrade:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== ACCELERATORS ===== */
.accelerators-section {
    margin-bottom: var(--spacing-lg);
}

.accelerators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.accelerator-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s, border-color 0.3s;
}

.accelerator-card.premium {
    border: 1px solid var(--accent-gold);
}

.accelerator-card:active {
    transform: scale(0.95);
}

.accelerator-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-xs);
}

.accelerator-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.accelerator-price {
    font-size: 11px;
    color: var(--accent-gold);
}

.active-accelerator {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-green);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--accent-green);
}

/* ===== BOSSES ===== */
.bosses-tabs,
.pvp-tabs,
.ranking-tabs,
.shop-tabs,
.missions-tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    background: var(--bg-tertiary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.bosses-content,
.pvp-content,
.ranking-content,
.family-content,
.shop-content,
.missions-content,
.prestige-content {
    min-height: 300px;
}

.boss-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.boss-card.rarity-rare {
    border: 1px solid var(--rarity-rare);
}

.boss-card.rarity-epic {
    border: 1px solid var(--rarity-epic);
}

.boss-card.rarity-legendary {
    border: 1px solid var(--rarity-legendary);
    box-shadow: var(--shadow-md), var(--shadow-glow) rgba(251, 191, 36, 0.3);
}

/* ===== LUXURY BOTTOM NAVIGATION DOCK ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(13, 16, 26, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px 8px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
    z-index: 500;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 4px 2px;
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #71717a;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.nav-btn:active {
    transform: scale(0.92);
}

.nav-btn.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

.nav-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: #ef4444;
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.nav-notification {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 900;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
}

.reward-modal {
    text-align: center;
}

.offline-reward {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-gold);
}

.money-icon {
    font-size: 48px;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.big-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-gold);
}

.vip-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
    width: 100%;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-shield {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent-gold);
    z-index: 2000;
    max-width: 90%;
    text-align: center;
    font-weight: 600;
}

.toast.hidden {
    display: none;
}

.toast.success {
    border-color: var(--accent-green);
}

.toast.error {
    border-color: var(--accent-red);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* ===== PVP SPECIFIC ===== */
.pvp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.attacks-remaining {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-tertiary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.shields-section {
    margin-bottom: var(--spacing-md);
}

.active-shield {
    margin-top: var(--spacing-sm);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--accent-blue);
}

/* ===== LEAGUE DISPLAY ===== */
.league-display {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.league-icon {
    font-size: 32px;
}

.league-name {
    font-size: 18px;
    font-weight: 700;
}

/* ===== PRESTIGE ===== */
.prestige-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.prestige-icon-large {
    font-size: 64px;
    margin-top: var(--spacing-md);
}

/* ===== AUDIO CONTROLS ===== */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-btn.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.audio-btn.muted {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ===== CASINO STYLES ===== */
.casino-modal-content {
    max-width: 440px;
    background: linear-gradient(180deg, #181926 0%, #11131c 100%);
    border: 2px solid #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
    padding: 20px;
}

.casino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.casino-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.casino-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.casino-subtitle {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* Roulette */
.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ffd700;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
    animation: pulse 1.5s infinite;
}

#rouletteCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.3);
}

.roulette-controls {
    width: 100%;
    text-align: center;
}

.spin-wheel-btn {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
    margin-bottom: 8px;
}

.spin-status-text {
    font-size: 11px;
    color: #aaa;
}

/* Slots */
.slots-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slots-machine {
    position: relative;
    background: #0b0d14;
    border: 3px solid #ffd700;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.3);
}

.slots-reels {
    display: flex;
    gap: 12px;
}

.slot-reel {
    width: 70px;
    height: 90px;
    background: #1e2230;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.8);
}

.slot-reel.spinning {
    animation: pulse 0.1s infinite;
}

.reel-icon {
    font-size: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.slots-line {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255, 0, 100, 0.6);
    box-shadow: 0 0 8px #ff0055;
    pointer-events: none;
}

.slots-bet-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.bet-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffd700;
}

.bet-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.bet-btn.active {
    background: #ffd700;
    color: #111;
    border-color: #ffd700;
}

.spin-slots-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    margin-bottom: 12px;
}

.slots-paytable {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    font-size: 10px;
    color: #aaa;
    text-align: center;
}

.paytable-item span {
    color: #ffd700;
    font-weight: 700;
}

/* ===== PRESTIGE SKILL TREE ===== */
.prestige-banner-card {
    background: linear-gradient(135deg, #2d1842, #181926);
    border: 2px solid var(--accent-gold);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.prestige-header-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    margin-bottom: 8px;
}

.prestige-points-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pts-val {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
}

.pts-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.prestige-hint {
    font-size: 11px;
    color: #999;
}

.ascension-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ascension-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ff9900;
}

.ascension-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.asc-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 3px;
}

.txt-green { color: var(--accent-green); font-weight: 700; }
.txt-red { color: var(--accent-red); font-weight: 700; }

.btn-ascend {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

.skill-tree-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px;
}

.skill-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-tree-header h3 {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent-gold);
}

.btn-reset-tree {
    background: rgba(255, 56, 56, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.tree-branch-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.branch-btn {
    flex: 1;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    cursor: pointer;
    text-align: center;
}

.branch-btn.active.cartel-tab { background: rgba(16, 185, 129, 0.2); border-color: #10b981; color: #10b981; }
.branch-btn.active.syndicate-tab { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #ef4444; }
.branch-btn.active.corruption-tab { background: rgba(217, 119, 6, 0.2); border-color: #d97706; color: #f59e0b; }

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    transition: all 0.2s ease;
}

.skill-card.skill-max {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.skill-card.skill-locked {
    opacity: 0.5;
}

.skill-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 22px;
}

.skill-lvl-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #ffd700;
    color: #111;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 6px;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.skill-desc {
    font-size: 11px;
    color: #999;
}

.skill-lock-msg {
    font-size: 10px;
    color: #ef4444;
    margin-top: 2px;
}

.btn-skill-upgrade {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #111;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.btn-skill-upgrade:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
}

/* ===== TACTICAL COMBAT ARENA MODAL ===== */
.combat-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.combat-modal.active {
    display: flex;
}

.combat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 15, 0.94);
    backdrop-filter: blur(10px);
}

.combat-arena-box {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 420px;
    background: linear-gradient(180deg, #1f121e 0%, #11131c 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.4);
    text-align: center;
}

.combat-arena-title {
    font-size: 16px;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.combat-fighters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.fighter-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fighter-card.attacking-right {
    transform: translateX(35px) scale(1.08);
}

.fighter-card.attacking-left {
    transform: translateX(-35px) scale(1.08);
}

.fighter-avatar {
    font-size: 40px;
    margin-bottom: 4px;
}

.fighter-name {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fighter-power {
    font-size: 11px;
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 6px;
}

.fighter-hp-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.fighter-hp-fill {
    height: 100%;
    background: #00ff88;
    transition: width 0.4s ease;
}

.enemy-fighter .fighter-hp-fill {
    background: #ef4444;
}

.combat-vs-badge {
    font-size: 16px;
    font-weight: 900;
    color: #ffd700;
    padding: 0 10px;
    animation: pulse 1s infinite;
}

.combat-action-feed {
    min-height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.txt-player-hit { color: #00e5ff; }
.txt-enemy-hit { color: #f59e0b; }
.txt-finish-hit { color: #00ff88; }
.txt-defeat-hit { color: #ff3333; }

.combat-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 22, 0.95);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
}

.combat-result-icon {
    font-size: 54px;
    margin-bottom: 8px;
}

.combat-result-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.txt-victory { color: var(--accent-green); }
.txt-defeat { color: var(--accent-red); }

.combat-result-loot {
    font-size: 16px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 18px;
}

.combat-continue-btn {
    min-width: 180px;
}