/* ============================================
   TROPHY CASE - PREMIUM EDITION CSS
   Профессиональный дизайн с SVG иконками
   ============================================ */

:root {
    /* Основная палитра */
    --bg-primary: #0a0c15;
    --bg-secondary: #12141e;
    --bg-card: #1a1d2b;
    --bg-elevated: #222635;
    
    /* Текст */
    --text-primary: #ffffff;
    --text-secondary: #c5ccd9;
    --text-muted: #8a90a6;
    
    /* Золотой градиент */
    --gold-start: #fbbf24;
    --gold-end: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
    
    /* Редкость */
    --common-color: #a78bfa;
    --rare-color: #f87171;
    --mythic-color: #fbbf24;
    
    /* Статусы */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Градиенты карточек */
    --gradient-card: linear-gradient(145deg, #1a1d2b, #151824);
    --gradient-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    
    /* Тени */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 8px 32px rgba(251, 191, 36, 0.3);
    
    /* Тени для редкости - усиленные */
    --shadow-common: 0 0 20px rgba(167, 139, 250, 0.6);
    --shadow-rare: 0 0 20px rgba(248, 113, 113, 0.6);
    --shadow-mythic: 0 0 24px rgba(251, 191, 36, 0.7);
    
    /* Скругления */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Шрифты */
    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Consolas', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

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

.loading-logo {
    margin-bottom: 24px;
    animation: float 2s ease-in-out infinite;
}

.trophy-icon-big {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

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

.loading-text {
    font-size: 32px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gold-gradient);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* ============================================
   APP CONTAINER
   ============================================ */

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ============================================
   FIXED HEADER
   ============================================ */

.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(18, 20, 30, 0.95) 0%, rgba(15, 17, 25, 0.98) 100%);
    backdrop-filter: blur(12px);
    padding: 12px 16px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.header-balances {
    display: flex;
    gap: 8px;
}

.balance-item {
    flex: 1;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.balance-item:active {
    transform: scale(0.98);
}

.balance-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.balance-item.trophy .balance-icon {
    color: var(--mythic-color);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.balance-item.ton .balance-icon {
    color: var(--rare-color);
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.5));
}

.balance-item.energy .balance-icon {
    color: var(--success-color);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.balance-details {
    flex: 1;
    min-width: 0;
}

.balance-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-item.trophy .balance-value {
    color: var(--mythic-color);
}

.balance-item.ton .balance-value {
    color: var(--rare-color);
}

.balance-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.energy-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
}

.energy-bar-mini {
    height: 3px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 64px 14px 76px;
    scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
    display: none;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

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

/* ============================================
   PREMIUM CARDS
   ============================================ */

.premium-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    width: 20px;
    height: 20px;
    color: var(--mythic-color);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   INCOME HERO
   ============================================ */

.income-hero {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 191, 36, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: var(--shadow-gold);
}

.income-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.income-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.income-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   ADVENTURE BLOCK
   ============================================ */

.adventure-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.stat-value.gold {
    color: var(--mythic-color);
}

.stat-value.success {
    color: var(--success-color);
}

.stat-value.timer {
    color: var(--warning-color);
}

.progress-section {
    margin: 16px 0;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar.premium {
    background: rgba(251, 191, 36, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   DURATION CARDS
   ============================================ */

.duration-grid {
    display: grid;
    gap: 10px;
}

.duration-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mythic-color);
    transform: translateY(-2px);
}

.duration-card:active {
    transform: scale(0.98);
}

.duration-time {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.duration-reward {
    font-size: 14px;
    font-weight: 600;
    color: var(--mythic-color);
    margin-bottom: 4px;
}

.duration-cost {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   TOP ANIMALS - PREMIUM STYLE
   ============================================ */

.top-animals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.animal-slot-premium {
    background: var(--gradient-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.animal-slot-premium:not(.empty):hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.animal-slot-premium:not(.empty):active {
    transform: scale(0.96);
}

.animal-slot-premium.empty {
    cursor: default;
    opacity: 0.6;
}

/* Редкость с усиленными цветами */
.animal-slot-premium[data-rarity="common"] {
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: var(--shadow-common);
}

.animal-slot-premium[data-rarity="rare"] {
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: var(--shadow-rare);
}

.animal-slot-premium[data-rarity="mythic"] {
    border-color: rgba(251, 191, 36, 0.8);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(26, 29, 43, 1));
    box-shadow: var(--shadow-mythic);
}

/* Крупное изображение без текста */
.top-animal-image-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.top-animal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Placeholder для пустого слота */
.slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.placeholder-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   STREAK CARD
   ============================================ */

.streak-card-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
}

.streak-flame {
    flex-shrink: 0;
}

.flame-icon {
    width: 48px;
    height: 48px;
    animation: flameFlicker 2s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.streak-details {
    flex: 1;
}

.streak-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.streak-bonus {
    font-size: 14px;
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 4px;
}

.streak-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: linear-gradient(145deg, #222635, #1a1d2b);
    border-color: var(--mythic-color);
    transform: translateY(-2px);
}

.action-card:active {
    transform: scale(0.98);
}

.action-icon {
    width: 40px;
    height: 40px;
    color: var(--mythic-color);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.action-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-premium {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium.collect {
    background: var(--gradient-green);
    color: #0a0c15;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-premium.collect:not(:disabled) {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6); }
}

.btn-premium.daily {
    background: var(--gradient-gold);
    color: #0a0c15;
    box-shadow: var(--shadow-gold);
}

.btn-premium.invite {
    background: var(--gradient-green);
    color: #0a0c15;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-premium:active:not(:disabled) {
    transform: scale(0.96) translateY(2px);
    filter: brightness(1.15);
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.25);
}

.btn-premium:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    animation: none;
    opacity: 0.6;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   COLLECTION SCREEN
   ============================================ */

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

.screen-header h2 {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screen-icon {
    width: 32px;
    height: 32px;
    color: var(--mythic-color);
}

.collection-badge {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card-mini {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-mini-icon {
    width: 32px;
    height: 32px;
    color: var(--mythic-color);
}

.stat-mini-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--success-color);
    display: block;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.animals-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Карточки животных */
.animal-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.animal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

.animal-card:active {
    transform: scale(0.98);
}

.animal-card.locked {
    opacity: 0.7;
}

.animal-card[data-rarity="common"] {
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: var(--shadow-common);
}

.animal-card[data-rarity="rare"] {
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: var(--shadow-rare);
}

.animal-card[data-rarity="mythic"] {
    border-color: rgba(251, 191, 36, 0.8);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(26, 29, 43, 1));
    box-shadow: var(--shadow-mythic);
}

.rarity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rarity-badge.common {
    background: rgba(167, 139, 250, 0.4);
    color: #e0d5ff;
    border: 1px solid rgba(167, 139, 250, 0.7);
}

.rarity-badge.rare {
    background: rgba(248, 113, 113, 0.4);
    color: #ffd5d5;
    border: 1px solid rgba(248, 113, 113, 0.7);
}

.rarity-badge.mythic {
    background: rgba(251, 191, 36, 0.4);
    color: #fff5d6;
    border: 1px solid rgba(251, 191, 36, 0.8);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.5);
}

.lock-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.animal-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.animal-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 12px;
}

.animal-level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gradient-gold);
    color: #0a0c15;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
}

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

.animal-level {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.animal-income {
    font-size: 12px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 8px;
}

.animal-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--mythic-color);
    margin-bottom: 8px;
}

.upgrade-mini-btn, 
.buy-mini-btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    will-change: transform;
}

.upgrade-mini-btn {
    background: var(--gradient-green);
    color: #0a0c15;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.upgrade-mini-btn:hover {
    box-shadow: 0 3px 14px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.upgrade-mini-btn:active {
    transform: scale(0.96) translateY(1px);
    filter: brightness(1.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upgrade-mini-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.buy-mini-btn {
    background: var(--gradient-gold);
    color: #0a0c15;
    box-shadow: var(--shadow-gold);
}

.buy-mini-btn:hover {
    box-shadow: 0 3px 16px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.buy-mini-btn:active {
    transform: scale(0.96) translateY(1px);
    filter: brightness(1.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.buy-mini-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   SHOP SCREEN
   ============================================ */

.shop-tabs-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.tab-premium {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-premium.active {
    background: var(--gradient-gold);
    border-color: var(--mythic-color);
    color: #0a0c15;
    box-shadow: var(--shadow-gold);
}

.tab-premium:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
}

.tab-icon {
    width: 20px;
    height: 20px;
}

.shop-tab-panel {
    display: none;
}

.shop-tab-panel.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.shop-section {
    margin-bottom: 24px;
}

.shop-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-animal-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
    transition: all 0.2s ease;
}

.shop-animal-card:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.shop-animal-card[data-rarity="common"] {
    border-left: 2px solid var(--common-color);
}

.shop-animal-card[data-rarity="rare"] {
    border-left: 2px solid var(--rare-color);
}

.shop-animal-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.shop-animal-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

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

.shop-animal-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.shop-animal-rarity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.shop-animal-rarity.common {
    background: rgba(167, 139, 250, 0.2);
    color: var(--common-color);
}

.shop-animal-rarity.rare {
    background: rgba(248, 113, 113, 0.2);
    color: var(--rare-color);
}

.shop-animal-income {
    font-size: 11px;
    font-weight: 700;
    color: var(--success-color);
}

.shop-animal-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--mythic-color);
    text-align: right;
    margin-right: 8px;
}

.shop-buy-btn {
    padding: 8px 16px;
    background: var(--gradient-gold);
    color: #0a0c15;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    white-space: nowrap;
}

.shop-buy-btn:hover {
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

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

.shop-buy-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.shop-mythic-card {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(26, 29, 43, 1));
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
}

.shop-mythic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.mythic-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent);
    border-radius: 50%;
}

.mythic-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
}

.mythic-info {
    margin-bottom: 12px;
}

.mythic-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mythic-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: var(--mythic-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mythic-bonus {
    font-size: 13px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 12px;
}

.mythic-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--rare-color);
    margin-bottom: 12px;
}

.mythic-buy-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-gold);
    color: #0a0c15;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-gold);
}

.mythic-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.5);
}

.mythic-buy-btn:active {
    transform: scale(0.98);
}

.mythic-buy-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ============================================
   TASKS SCREEN
   ============================================ */

.daily-bonus-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: var(--shadow-gold);
}

.daily-bonus-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-gold);
}

.bonus-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--mythic-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.streak-display {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.streak-display strong {
    color: var(--mythic-color);
    font-weight: 800;
}

.daily-bonus-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-gold);
    color: #0a0c15;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.daily-bonus-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(251, 191, 36, 0.6);
}

.daily-bonus-btn:active {
    transform: scale(0.98);
}

.daily-bonus-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-item {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

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

.task-item.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(26, 29, 43, 1));
}

.task-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.task-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
}

.task-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.task-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.task-reward {
    font-size: 16px;
    font-weight: 800;
    color: var(--success-color);
    flex-shrink: 0;
}

.task-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.task-progress-bar {
    height: 100%;
    background: var(--gradient-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.claim-btn {
    padding: 8px 20px;
    background: var(--gradient-gold);
    color: #0a0c15;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}

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

.claimed-badge {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.achievement-item {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    transition: all 0.2s ease;
}

.achievement-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.achievement-item.completed {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.1), rgba(26, 29, 43, 1));
}

.achievement-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.achievement-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.achievement-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.achievement-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.achievement-reward {
    color: var(--mythic-color);
}

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

.bonus-icon-wrapper {
    flex-shrink: 0;
}

.bonus-icon {
    width: 48px;
    height: 48px;
    animation: bounce 2s ease-in-out infinite;
}

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

.bonus-details {
    flex: 1;
}

.bonus-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bonus-day {
    font-size: 13px;
    color: var(--text-secondary);
}

.bonus-reward {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bonus-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--mythic-color);
}

.trophy-mini {
    width: 20px;
    height: 20px;
    color: var(--mythic-color);
}

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

/* ============================================
   PROFILE SCREEN
   ============================================ */

.player-premium {
    text-align: center;
    position: relative;
    margin-bottom: 16px;
}

.player-avatar-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    position: relative;
}

.player-avatar-circle svg {
    width: 36px;
    height: 36px;
    color: #0a0c15;
}

.player-level-badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0c15;
    border: 2px solid var(--mythic-color);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mythic-color);
}

.player-name-premium {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stats-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

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

.stat-card-icon {
    width: 24px;
    height: 24px;
    color: var(--mythic-color);
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--success-color);
    display: block;
    margin-bottom: 2px;
}

.stat-card-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.referral-stats-premium {
    display: flex;
    align-items: center;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.ref-stat {
    flex: 1;
    text-align: center;
}

.ref-value {
    font-size: 28px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.ref-value.income {
    color: var(--success-color);
}

.ref-label {
    font-size: 12px;
    color: var(--text-muted);
}

.ref-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px;
}

.ref-link-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ref-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-mono);
}

.btn-copy {
    background: var(--gradient-green);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy svg {
    width: 20px;
    height: 20px;
    color: #0a0c15;
}

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

.rewards-premium-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.reward-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.reward-card.achieved {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.1), rgba(26, 29, 43, 1));
}

.reward-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.reward-info {
    flex: 1;
}

.reward-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.reward-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.reward-progress {
    font-size: 14px;
    font-weight: 700;
    color: var(--mythic-color);
    flex-shrink: 0;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.bottom-nav-premium {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(15, 17, 25, 0.98) 0%, rgba(18, 20, 30, 0.95) 100%);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 4px max(env(safe-area-inset-bottom), 6px);
    display: flex;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    background: transparent;
    border: none;
    min-height: 48px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-item:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.nav-item.active .nav-icon {
    color: var(--mythic-color);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.nav-item.active .nav-label {
    color: var(--mythic-color);
    font-weight: 700;
}

/* ============================================
   MODALS
   ============================================ */

.modal-premium {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modal-premium.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-premium {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes modalSlideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close-premium {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.2s ease;
}

.modal-close-premium:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-close-premium:active {
    transform: scale(0.9);
}

.modal-body-premium {
    padding: 24px;
}

.modal-title-premium {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   ANIMAL MODAL
   ============================================ */

.modal-animal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-animal-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.modal-animal-image[data-rarity="common"] {
    border-color: var(--common-color);
    border-width: 3px;
    box-shadow: var(--shadow-common);
}

.modal-animal-image[data-rarity="rare"] {
    border-color: var(--rare-color);
    border-width: 3px;
    box-shadow: var(--shadow-rare);
}

.modal-animal-image[data-rarity="mythic"] {
    border-color: var(--mythic-color);
    border-width: 3px;
    box-shadow: var(--shadow-mythic);
}

.modal-animal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-animal-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-stats {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.upgrade-modal-btn {
    width: 100%;
    background: var(--gradient-green);
    color: #0a0c15;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
}

.upgrade-modal-btn:active {
    transform: scale(0.98);
}

.upgrade-modal-btn .cost {
    font-size: 18px;
    color: #0a0c15;
}

.max-level-badge {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 800;
    color: var(--mythic-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SVG ИКОНКИ С ГРАДИЕНТАМИ
   ============================================ */

/* Иконки кнопок */
.icon-upgrade, .icon-trophy, .icon-star {
    display: inline-block;
    vertical-align: middle;
}

.icon-upgrade {
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

.icon-upgrade path {
    fill: url(#upgradeGradient);
}

.icon-trophy {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.icon-trophy path {
    fill: url(#trophyGradient);
}

.icon-star {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.icon-star path {
    fill: url(#starGradient);
}

/* ============================================
   FAVORITES MODAL
   ============================================ */

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.favorite-select-card {
    background: var(--gradient-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.favorite-select-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.favorite-select-card.selected {
    border-color: var(--mythic-color);
    border-width: 3px;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.1), rgba(26, 29, 43, 1));
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.favorite-select-card[data-rarity="common"].selected {
    border-color: var(--common-color);
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.1), rgba(26, 29, 43, 1));
    box-shadow: var(--shadow-common);
}

.favorite-select-card[data-rarity="rare"].selected {
    border-color: var(--rare-color);
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.1), rgba(26, 29, 43, 1));
    box-shadow: var(--shadow-rare);
}

.favorite-select-card[data-rarity="mythic"].selected {
    border-color: var(--mythic-color);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(26, 29, 43, 1));
    box-shadow: var(--shadow-mythic);
}

.favorite-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #0a0c15;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.favorite-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.favorite-name {
    font-size: 13px;
    font-weight: 700;
}

/* ============================================
   STATISTICS MODAL
   ============================================ */

.stats-section-premium {
    margin-bottom: 20px;
}

.stats-section-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-box-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-box-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.stat-box-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-box-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--mythic-color);
    display: block;
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   TASK BADGES
   ============================================ */

.task-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
}

.task-badge.daily {
    background: rgba(251, 191, 36, 0.2);
    color: var(--mythic-color);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #0a0c15;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .spinner {
    margin-right: 8px;
}

/* ============================================
   CONFIRMATION MODAL
   ============================================ */

.confirm-modal-content {
    text-align: center;
    padding: 24px;
}

.confirm-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.confirm-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.confirm-message {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn {
    min-height: 48px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.confirm-btn.cancel:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.confirm-btn.confirm {
    background: var(--gradient-gold);
    color: #0a0c15;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.confirm-btn.confirm:active {
    transform: scale(0.96);
    filter: brightness(1.1);
}

.confirm-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* ============================================
   ONBOARDING TUTORIAL
   ============================================ */

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: none;
    animation: fadeIn 0.3s ease;
}

.onboarding-overlay.active {
    display: block;
}

.onboarding-spotlight {
    position: absolute;
    border: 3px solid var(--mythic-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 40px rgba(251, 191, 36, 0.8);
    pointer-events: none;
    z-index: 10002;
    transition: all 0.3s ease;
}

.onboarding-tooltip {
    position: fixed;
    background: var(--bg-secondary);
    border: 2px solid var(--mythic-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 300px;
    z-index: 10003;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.3);
}

.onboarding-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.onboarding-arrow.bottom {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--mythic-color);
}

.onboarding-arrow.top {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--mythic-color);
}

.onboarding-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--mythic-color);
    margin-bottom: 8px;
}

.onboarding-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.onboarding-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-steps {
    font-size: 13px;
    color: var(--text-muted);
}

.onboarding-buttons {
    display: flex;
    gap: 8px;
}

.onboarding-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-btn.skip {
    background: transparent;
    color: var(--text-muted);
}

.onboarding-btn.skip:active {
    color: var(--text-primary);
}

.onboarding-btn.next {
    background: var(--gradient-gold);
    color: #0a0c15;
}

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

/* ============================================
   ACHIEVEMENT POPUP
   ============================================ */

.achievement-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(26, 29, 43, 0.98));
    border: 2px solid var(--mythic-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.achievement-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.achievement-popup-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.achievement-popup-content {
    flex: 1;
}

.achievement-popup-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--mythic-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.achievement-popup-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ============================================
   PROGRESS BARS IMPROVED
   ============================================ */

.task-progress,
.achievement-progress,
.progress-bar {
    position: relative;
}

.task-progress-bar,
.achievement-progress-bar,
.progress-fill {
    position: relative;
    overflow: visible;
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ============================================
   COLOR CODING
   ============================================ */

.btn-success {
    background: var(--gradient-green) !important;
    color: #0a0c15 !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 360px) {
    .animals-premium-grid,
    .shop-tab-panel.active {
        grid-template-columns: 1fr;
    }
    
    .top-animals-grid {
        gap: 10px;
    }
    
    .income-value {
        font-size: 40px;
    }
}

@media (min-width: 420px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gold { color: var(--mythic-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }