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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1f3c 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

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

/* Stats Section */
.stats-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: #4fc3f7;
}

/* Market Section */
.market-section {
    margin-bottom: 20px;
}

.market-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.market-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #4fc3f7, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.market-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.market-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.2);
}

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

.market-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stars-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.premium-icon {
    filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.6));
}

.nomer-icon {
    filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.6));
}

.gift-icon {
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

.market-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.market-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

/* Bottom Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.menu-item:hover {
    opacity: 1;
}

.menu-item.active {
    opacity: 1;
}

.menu-item-large {
    transform: scale(1.15);
    opacity: 1;
}

.menu-item-large .menu-icon {
    font-size: 28px;
}

.menu-item-large .menu-label {
    font-size: 13px;
    font-weight: 700;
    color: #4fc3f7;
}

.menu-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.menu-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Telegram WebApp Theme Support */
@supports (backdrop-filter: blur(10px)) {
    .stat-card,
    .market-card,
    .market-item,
    .bottom-menu {
        backdrop-filter: blur(10px);
    }
}

/* Responsive */
@media (max-width: 360px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: calc(33.333% - 7px);
    }
}
