:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --orange: #FFAC42;
    --orange-light: #FFBE66;
    --orange-dark: #E6992E;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --border-color: #262626;
    --green: #00cc66;
    --red: #ff4444;
    --shadow: 0 8px 32px rgba(255, 172, 66, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 26px; font-weight: 800; letter-spacing: -1px; text-decoration: none; color: var(--text-primary); }
.logo span { color: var(--orange); }
.nav { display: flex; gap: 6px; align-items: center; }

.nav-link {
    color: var(--text-secondary); padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; transition: all 0.2s; text-decoration: none;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--orange); background: rgba(255, 172, 66, 0.1); }

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; font-family: inherit;
}

.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 172, 66, 0.35); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--orange); background: rgba(255, 172, 66, 0.05); }
.btn-large { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 8px; }
.btn-open-case { display: inline-flex; align-items: center; gap: 8px; padding: 18px 48px; font-size: 18px; margin: 20px auto 0; border-radius: 16px; }

/* ========== FLASH ========== */
.flash-messages { position: fixed; top: 80px; right: 32px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash { padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; animation: slideInRight 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.flash-success { background: #0d2818; border: 1px solid #1a5c30; color: #4cff88; }
.flash-error { background: #280d0d; border: 1px solid #5c1a1a; color: #ff4c4c; }
.flash-info { background: #0d1a28; border: 1px solid #1a3a5c; color: #4c9eff; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }

/* ========== HERO ========== */
.hero { padding: 80px 32px; text-align: center; background: radial-gradient(ellipse at center, rgba(255, 172, 66, 0.08) 0%, transparent 70%); }
.hero h1 { font-size: 52px; font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--orange), var(--orange-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== ТОП ДОНАТЕРОВ ========== */
.top-donors-section { padding: 50px 32px 10px; max-width: 700px; margin: 0 auto; text-align: center; }
.top-donors-section .section-title { font-size: 28px; padding-top: 0; margin-bottom: 6px; }
.top-donors-section .section-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; min-height: 300px; padding: 0 10px; }
.podium-place { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.place-1 { order: 2; } .place-2 { order: 1; } .place-3 { order: 3; }

.podium-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px 16px; text-align: center; width: 130px; transition: all 0.3s ease; z-index: 2; margin-bottom: 14px; }
.place-1 .podium-card { width: 160px; padding: 18px 20px; border-color: rgba(255, 215, 0, 0.25); box-shadow: 0 8px 32px rgba(255, 215, 0, 0.08); }
.podium-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(255, 172, 66, 0.15); }
.place-1 .podium-card:hover { box-shadow: 0 16px 48px rgba(255, 215, 0, 0.15); }

.podium-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin: 0 auto 8px; color: var(--text-secondary); }
.place-1 .podium-avatar { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; font-size: 20px; width: 48px; height: 48px; }
.podium-nick { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.place-1 .podium-nick { font-size: 15px; }
.podium-amount { color: var(--orange); font-weight: 700; font-size: 12px; }
.place-1 .podium-amount { font-size: 14px; color: #FFD700; }

.podium-details { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.3s ease; font-size: 11px; color: var(--text-muted); margin-top: 0; }
.podium-card:hover .podium-details { max-height: 40px; margin-top: 8px; }

.podium-cup { width: 40px; height: 48px; z-index: 1; margin-bottom: 4px; }
.place-1 .podium-cup { width: 52px; height: 62px; }

.podium-base { width: 90px; height: 50px; border-radius: 6px 6px 0 0; }
.place-2 .podium-base { height: 40px; } .place-3 .podium-base { height: 30px; } .place-1 .podium-base { height: 65px; }
.base-gold { background: linear-gradient(180deg, #FFD700, #B8860B); }
.base-silver { background: linear-gradient(180deg, #C0C0C0, #888); }
.base-bronze { background: linear-gradient(180deg, #CD7F32, #6B3A1F); }

/* ========== СЕРВЕРЫ С ПЕРЕВОРОТОМ ========== */
.servers-flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 32px 60px; }
.flip-card-wrapper { perspective: 1200px; height: 300px; }
.flip-card { position: relative; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; cursor: pointer; }
.flip-card-wrapper:hover .flip-card:not(.disabled) { transform: rotateY(180deg); }
.flip-card.disabled { cursor: default; opacity: 0.45; }
.flip-front, .flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: var(--radius); border: 1px solid var(--border-color); background: var(--bg-secondary); display: flex; flex-direction: column; }
.flip-front { padding: 24px 28px 20px; justify-content: space-between; }
.flip-back { transform: rotateY(180deg); padding: 28px 28px 24px; justify-content: center; overflow: hidden; }

.flip-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.flip-server-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 172, 66, 0.1); display: flex; align-items: center; justify-content: center; color: var(--orange); transition: all 0.3s; }
.flip-card-wrapper:hover .flip-server-icon { background: var(--orange); color: #000; box-shadow: 0 4px 16px rgba(255, 172, 66, 0.3); }
.flip-card-body { flex-grow: 1; }
.flip-server-name { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.flip-server-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.flip-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border-color); }
.flip-hint { text-align: center; font-size: 12px; color: var(--orange); font-weight: 500; letter-spacing: 0.4px; padding-top: 14px; border-top: 1px solid var(--border-color); opacity: 0; transform: translateY(4px); transition: all 0.35s ease; margin-top: 12px; }
.flip-card-wrapper:hover .flip-hint { opacity: 1; transform: translateY(0); }

.flip-back-header { text-align: center; margin-bottom: 20px; }
.flip-back-icon { width: 44px; height: 44px; margin: 0 auto 10px; background: rgba(255, 172, 66, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.flip-back h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.flip-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.flip-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.flip-step-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 172, 66, 0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange); }
.flip-step-icon svg { width: 15px; height: 15px; }
.flip-step-text strong { color: var(--text-primary); font-weight: 600; }
.flip-ip { display: flex; align-items: center; gap: 8px; background: var(--bg-primary); padding: 10px 14px; border-radius: var(--radius-sm); }
.flip-ip-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 172, 66, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange); }
.flip-ip code { font-size: 14px; font-weight: 700; color: var(--orange); font-family: 'Consolas', 'Monaco', 'Courier New', monospace; letter-spacing: 0.3px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flip-coming-soon { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.flip-coming-soon .coming-soon-badge { display: inline-block; background: var(--orange); color: #000; padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.flip-coming-soon p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; max-width: 240px; }

/* ========== ЛЕНТА ПОКУПОК ========== */
.purchase-ticker-wrapper { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 16px 0; overflow: hidden; position: relative; }
.purchase-ticker-wrapper::before, .purchase-ticker-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.purchase-ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
.purchase-ticker-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }
.purchase-ticker { display: flex; gap: 60px; animation: scrollTicker 40s linear infinite; width: max-content; }
.purchase-ticker:hover { animation-play-state: paused; }

@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.ticker-item { display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; }
.ticker-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.ticker-info { display: flex; flex-direction: column; }
.ticker-name { font-weight: 600; font-size: 13px; }
.ticker-detail { font-size: 12px; color: var(--text-muted); }
.ticker-price { background: rgba(255, 172, 66, 0.15); color: var(--orange); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.ticker-time { font-size: 11px; color: var(--text-muted); margin-left: 8px; }

/* ========== SECTION TITLE ========== */
.section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 40px; padding-top: 60px; }
.section-title .hl { color: var(--orange); }

/* ========== СЕТКА СЕРВЕРОВ ========== */
.servers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 32px 60px; }
.server-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 0; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none; color: var(--text-primary); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.server-card:not(.server-card-disabled):hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(255, 172, 66, 0.12); }
.server-card:not(.server-card-disabled)::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); opacity: 0; transition: opacity 0.3s; }
.server-card:not(.server-card-disabled):hover::after { opacity: 1; }
.server-card-disabled { opacity: 0.45; cursor: default; }

.server-card-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.server-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 172, 66, 0.1); display: flex; align-items: center; justify-content: center; color: var(--orange); transition: all 0.3s; }
.server-card:not(.server-card-disabled):hover .server-icon { background: var(--orange); color: #000; box-shadow: 0 4px 16px rgba(255, 172, 66, 0.3); }
.server-icon-locked { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); }

.server-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
.server-online { background: rgba(0, 255, 106, 0.08); color: #00cc66; }
.server-offline { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #00cc66; box-shadow: 0 0 8px #00cc66; animation: statusPulse 2s infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.status-dot-static { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }

.server-card-body { padding: 18px 24px; flex-grow: 1; }
.server-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; word-break: break-word; }
.server-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.server-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); }
.server-version, .server-players { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.server-version svg, .server-players svg { opacity: 0.5; flex-shrink: 0; }
.server-version-muted, .server-players-muted { color: var(--text-muted); }

/* ========== КАТЕГОРИИ ========== */
.categories-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 32px 0; }
.categories-nav { display: flex; gap: 6px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.categories-nav::-webkit-scrollbar { height: 0; display: none; }
.cat-btn { flex-shrink: 0; padding: 10px 18px; border-radius: 8px; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; font-family: inherit; text-decoration: none; }
.cat-btn:hover { color: var(--text-primary); background: var(--bg-card); }
.cat-btn.active { background: var(--orange); color: #000; font-weight: 600; box-shadow: 0 2px 8px rgba(255, 172, 66, 0.3); }

/* ========== МАГАЗИН ========== */
.shop-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 32px; text-align: center; }
.shop-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.shop-header .server-info { color: var(--text-secondary); font-size: 14px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; padding: 32px 32px 60px; }
.product-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { border-color: var(--orange); box-shadow: 0 12px 40px rgba(255, 172, 66, 0.12); transform: translateY(-4px); }
.product-image { width: 100%; }
.product-image-inner { width: 100%; aspect-ratio: 4/3; background: var(--bg-card); overflow: hidden; position: relative; }
.product-image-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .product-image-inner img { transform: scale(1.05); }
.product-image-inner .fallback-icon { width: 100%; height: 100%; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #000; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.product-content { padding: 20px 24px 28px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.3px; }
.product-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; line-height: 1.5; }
.product-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.product-features li { padding: 5px 0; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.product-features li::before { content: ''; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.product-price { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.product-price .currency { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.product-period { font-size: 12px; color: var(--text-muted); background: var(--bg-card); padding: 4px 10px; border-radius: 6px; }

/* ========== МОДАЛКА ========== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px); z-index: 10000; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 24px; padding: 36px; width: 90%; max-width: 460px; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ========== АВТОРИЗАЦИЯ ========== */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 40px 20px; }
.auth-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 24px; padding: 40px; width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.auth-card .auth-subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 32px; font-size: 14px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-link a { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { width: 100%; padding: 14px 18px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 15px; transition: all 0.2s; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 172, 66, 0.1); }
.form-input::placeholder { color: var(--text-muted); }

/* ========== TOS ========== */
.tos-page { max-width: 800px; margin: 0 auto; padding: 60px 32px; }
.tos-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.tos-page .tos-date { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.tos-page h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--orange); }
.tos-page p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.8; }
.tos-page ul { color: var(--text-secondary); margin-bottom: 14px; padding-left: 20px; }
.tos-page ul li { margin-bottom: 8px; line-height: 1.7; }

/* ========== ПРОФИЛЬ ========== */
.profile-page { max-width: 1000px; margin: 0 auto; padding: 40px 32px 60px; }
.profile-header { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; flex-wrap: wrap; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; flex-shrink: 0; box-shadow: 0 8px 32px rgba(255, 172, 66, 0.3); }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.profile-info .profile-email { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.profile-info .profile-joined { color: var(--text-muted); font-size: 12px; }
.profile-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 172, 66, 0.1); color: var(--orange); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; text-align: center; transition: all 0.3s; }
.stat-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; background: rgba(255, 172, 66, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.stat-value { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 4px; width: fit-content; }
.tab-btn { padding: 10px 20px; border-radius: 8px; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; font-family: inherit; text-decoration: none; }
.tab-btn.active { background: var(--orange); color: #000; font-weight: 600; }
.tab-btn:hover:not(.active) { color: var(--text-primary); background: var(--bg-card); }

/* ========== ЗАКАЗЫ ========== */
.order-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; margin-bottom: 12px; transition: all 0.3s; position: relative; overflow: hidden; }
.order-card:hover { border-color: #333; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.order-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 4px 4px 0; }
.order-card.status-completed::before { background: var(--green); }
.order-card.status-failed::before { background: var(--red); }
.order-card.status-pending::before { background: var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.order-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.order-product { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; overflow: hidden; }
.order-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-card); overflow: hidden; flex-shrink: 0; }
.order-icon img { width: 100%; height: 100%; object-fit: cover; }
.order-icon .fallback-icon { width: 100%; height: 100%; background: var(--orange); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.order-name { font-weight: 700; font-size: 15px; word-break: break-word; overflow-wrap: break-word; }
.order-meta { color: var(--text-secondary); font-size: 12px; word-break: break-all; overflow-wrap: anywhere; max-width: 100%; line-height: 1.4; }
.order-right { text-align: right; flex-shrink: 0; }
.order-price { font-weight: 700; font-size: 18px; }
.order-status-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; display: inline-block; margin-top: 4px; }
.order-status-badge.completed { background: rgba(0,255,106,0.1); color: var(--green); }
.order-status-badge.failed { background: rgba(255,68,68,0.1); color: var(--red); }
.order-status-badge.pending { background: rgba(255, 172, 66, 0.1); color: var(--orange); }
.order-date { color: var(--text-muted); font-size: 12px; margin-top: 10px; }

.empty-state { text-align: center; padding: 60px; color: var(--text-muted); }
.empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: rgba(255, 172, 66, 0.05); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.empty-state h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ========== КЕЙСЫ ========== */
.cases-page { max-width: 1100px; margin: 0 auto; padding: 0 32px 60px; }
.w-coins-balance { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 172, 66, 0.1); color: var(--orange); padding: 10px 20px; border-radius: 20px; font-weight: 700; font-size: 16px; margin-bottom: 32px; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.case-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 32px 28px; text-align: center; position: relative; overflow: hidden; transition: all 0.4s ease; text-decoration: none; color: var(--text-primary); display: block; }
.case-card:hover { border-color: var(--case-color, var(--orange)); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.case-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, var(--case-color, var(--orange)) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.case-card:hover .case-glow { opacity: 0.05; }
.case-icon { width: 72px; height: 72px; border-radius: 16px; background: rgba(255, 172, 66, 0.1); display: flex; align-items: center; justify-content: center; color: var(--orange); margin: 0 auto 16px; transition: all 0.3s; }
.case-card:hover .case-icon { background: var(--orange); color: #000; box-shadow: 0 4px 20px rgba(255, 172, 66, 0.3); }
.case-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.case-price { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.case-items-preview { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.case-item-badge { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 172, 66, 0.08); color: var(--orange); }
.case-item-badge svg { width: 20px; height: 20px; }

/* ========== АНИМАЦИЯ ОТКРЫТИЯ КЕЙСА ========== */
.case-opening-animation { text-align: center; padding: 40px 0; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.case-box { position: relative; width: 160px; height: 160px; border-radius: 24px; background: var(--bg-secondary); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.case-box-inner { color: var(--orange); }
.case-glow-effect { position: absolute; inset: -10px; border-radius: 30px; background: transparent; transition: all 0.5s; pointer-events: none; }
.case-box.shaking { animation: shake 0.15s infinite; }
.case-box.shaking .case-glow-effect { background: rgba(255, 172, 66, 0.15); box-shadow: 0 0 40px rgba(255, 172, 66, 0.3); }
@keyframes shake { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-8px) rotate(-3deg); } 75% { transform: translateX(8px) rotate(3deg); } }
.case-box.opening { animation: openCase 1s ease forwards; }
.case-box.opening .case-glow-effect { background: rgba(255, 172, 66, 0.3); box-shadow: 0 0 80px rgba(255, 172, 66, 0.6); }
@keyframes openCase { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.case-reward-reveal { animation: revealIn 0.6s ease; }
@keyframes revealIn { 0% { transform: scale(0) rotate(-10deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.reward-item-icon { margin-bottom: 16px; animation: bounceReward 0.8s ease; }
@keyframes bounceReward { 0% { transform: translateY(-50px); opacity: 0; } 50% { transform: translateY(10px); } 100% { transform: translateY(0); opacity: 1; } }
.reward-item-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.reward-item-rarity { font-size: 14px; font-weight: 600; padding: 6px 16px; border-radius: 12px; display: inline-block; }

/* ========== ДЕТАЛИ КЕЙСА ========== */
.case-detail-page { max-width: 800px; margin: 0 auto; padding: 40px 32px 60px; }
.case-detail-header { text-align: center; margin-bottom: 20px; }
.case-detail-icon { width: 88px; height: 88px; border-radius: 18px; background: rgba(255, 172, 66, 0.1); display: flex; align-items: center; justify-content: center; color: var(--orange); margin: 0 auto 16px; }
.case-detail-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.case-detail-price { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 700; font-size: 22px; background: rgba(255, 172, 66, 0.1); padding: 10px 24px; border-radius: 20px; }

.case-rewards-preview { margin-top: 40px; }
.case-rewards-preview h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.rewards-list { display: flex; flex-direction: column; gap: 10px; }
.reward-card { display: flex; align-items: center; gap: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 20px; }
.reward-card.rarity-common { border-left: 3px solid #8B8B8B; }
.reward-card.rarity-rare { border-left: 3px solid #4C9EFF; }
.reward-card.rarity-epic { border-left: 3px solid #A855F7; }
.reward-card.rarity-legendary { border-left: 3px solid #FFD700; }
.reward-icon { flex-shrink: 0; }
.reward-icon svg { width: 40px; height: 40px; }
.reward-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.reward-name { font-weight: 500; font-size: 15px; }
.reward-rarity-label { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.reward-chance { font-weight: 700; font-size: 14px; opacity: 0.7; }

/* Редкости */
.rarity-common { color: #8B8B8B; }
.rarity-rare { color: #4C9EFF; }
.rarity-epic { color: #A855F7; }
.rarity-legendary { color: #FFD700; }

/* ========== ФУТЕР ========== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 24px 32px; text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { color: var(--text-muted); font-size: 12px; }

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
    .header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .logo { font-size: 20px; }
    .nav-link { padding: 8px 10px; font-size: 12px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; }
    .servers-grid, .products-grid { grid-template-columns: 1fr; padding: 20px 16px; gap: 16px; }
    .section-title { font-size: 24px; padding-top: 40px; margin-bottom: 24px; }
    .profile-header { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .tabs { width: 100%; }
    .tab-btn { flex: 1; text-align: center; }
    .categories-wrapper { padding: 16px 16px 0; }
    .cat-btn { padding: 8px 14px; font-size: 12px; }
    .product-content { padding: 16px 20px 24px 20px; }
    .product-name { font-size: 18px; }
    .product-price { font-size: 22px; }
    .servers-flip-grid { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 16px; }
    .flip-card-wrapper { height: 300px; }
    .flip-front { padding: 20px 18px 18px; }
    .flip-back { padding: 20px 18px; }
    .flip-server-name { font-size: 18px; }
    .flip-card-footer { font-size: 11px; padding-top: 12px; margin-top: 12px; }
    .flip-hint { font-size: 11px; padding-top: 10px; margin-top: 10px; }
    .flip-back-header { margin-bottom: 16px; }
    .flip-back-icon { width: 36px; height: 36px; }
    .flip-back h4 { font-size: 15px; }
    .flip-step { font-size: 11px; }
    .flip-step-icon { width: 26px; height: 26px; }
    .flip-ip { padding: 8px 10px; }
    .flip-ip code { font-size: 12px; }
    .top-donors-section { padding: 40px 12px 10px; }
    .top-donors-section .section-title { font-size: 22px; }
    .top-donors-section .section-subtitle { font-size: 12px; margin-bottom: 30px; }
    .podium { min-height: 240px; gap: 12px; }
    .podium-card { width: 95px; padding: 10px 12px; }
    .place-1 .podium-card { width: 115px; padding: 14px 16px; }
    .podium-avatar { width: 30px; height: 30px; font-size: 12px; }
    .place-1 .podium-avatar { width: 38px; height: 38px; font-size: 16px; }
    .podium-nick { font-size: 11px; }
    .podium-amount { font-size: 10px; }
    .podium-cup { width: 30px; height: 36px; }
    .place-1 .podium-cup { width: 40px; height: 48px; }
    .podium-base { width: 75px; }
    .place-2 .podium-base { height: 32px; width: 75px; }
    .place-3 .podium-base { height: 24px; width: 75px; }
    .place-1 .podium-base { height: 50px; width: 75px; }
    .case-detail-page { padding: 20px 16px 40px; }
    .case-detail-header h1 { font-size: 26px; }
    .case-box { width: 120px; height: 120px; }
    .btn-open-case { padding: 14px 32px; font-size: 16px; }
    .case-icon { width: 56px; height: 56px; }
    .case-icon svg { width: 28px; height: 28px; }
    .case-detail-icon { width: 68px; height: 68px; }
    .case-detail-icon svg { width: 32px; height: 32px; }
}
