/* ============================================
   NeoPhoton — Design System
   ============================================ */
:root {
    --bg:        #0a0a0f;
    --bg-2:      #111118;
    --bg-3:      #16161f;
    --border:    #23232e;
    --border-2:  #2e2e3d;

    --fg:        #e8e8f0;
    --fg-2:      #9a9aae;
    --fg-3:      #66667a;

    --accent:    #00d4ff;
    --accent-2:  #4a9eff;
    --accent-3:  #7c3aed;
    --gold:      #ffd700;

    --danger:    #ff4d4d;
    --ok:        #22dd88;

    --radius:    12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 15% 0%, rgba(0,212,255,0.10), transparent 60%),
        radial-gradient(ellipse 700px 400px at 85% 30%, rgba(124,58,237,0.10), transparent 60%),
        radial-gradient(ellipse 900px 600px at 50% 100%, rgba(74,158,255,0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============ ШАПКА ============ */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.logo-mark { color: var(--accent); text-shadow: 0 0 20px rgba(0, 212, 255, 0.7); font-size: 22px; }
.logo-text .accent { color: var(--accent); }

nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; transition: color 0.2s; }
nav a:hover { color: var(--fg); }

.nav-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.2s;
}
.nav-btn:hover { box-shadow: 0 0 30px rgba(0, 212, 255, 0.5); transform: translateY(-1px); }

.nav-link {
    padding: 8px 14px;
    color: var(--fg) !important;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}
.nav-link:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(0, 212, 255, 0.05);
}

.nav-active { color: var(--accent) !important; font-weight: 600; }

/* ============ ГЕРОЙ ============ */
.hero { position: relative; padding: 100px 40px 80px; text-align: center; overflow: hidden; }
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.20), transparent 60%);
    filter: blur(80px); pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1.0; transform: translateX(-50%) scale(1.1); }
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px; font-size: 13px; color: var(--accent);
    margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: var(--fg-2); margin-bottom: 36px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border: none; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 212, 255, 0.45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--accent); color: var(--accent); }
.btn-secondary { background: var(--bg-3); color: var(--fg); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--border); }

.hero-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-value {
    font-size: 28px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 1px; }

/* ============ СЕКЦИИ ============ */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.section-head p { color: var(--fg-2); font-size: 16px; }

/* ============ МАГАЗИН ============ */
.shop { max-width: 1200px; margin: 0 auto; padding: 80px 40px; position: relative; z-index: 1; }
.shop + .shop { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 60px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.product {
    position: relative; background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px; text-align: center;
    transition: all 0.25s; overflow: hidden;
}
.product::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.06), transparent 70%);
    opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.product:hover {
    border-color: rgba(0, 212, 255, 0.4); transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.08);
}
.product:hover::before { opacity: 1; }
.product.featured {
    border-color: rgba(255, 215, 0, 0.35);
    background: linear-gradient(180deg, rgba(255,215,0,0.04) 0%, var(--bg-2) 100%);
}
.product.featured:hover {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.12);
}
.badge {
    position: absolute; top: 12px; right: 12px; padding: 4px 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #ffb700 100%);
    color: #1a1a00; font-size: 11px; font-weight: 700;
    border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase;
}
.product-icon { font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)); }
.product h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--fg); letter-spacing: 0.5px; }
.product .desc { color: var(--fg-2); font-size: 14px; margin-bottom: 18px; min-height: 60px; }
.product .price {
    font-size: 26px; font-weight: 800; color: var(--accent);
    margin-bottom: 20px; text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.product button {
    width: 100%; padding: 12px; background: transparent;
    border: 1px solid var(--accent); color: var(--accent);
    border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.product button:hover { background: var(--accent); color: #0a0a0f; box-shadow: 0 0 24px rgba(0, 212, 255, 0.5); }

.product-extra { border-color: rgba(124, 58, 237, 0.25); background: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, var(--bg-2) 100%); }
.product-extra::before { background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08), transparent 70%); }
.product-extra:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 58, 237, 0.12);
}
.product-extra button { border-color: var(--accent-3); color: #b794f6; }
.product-extra button:hover { background: var(--accent-3); color: #fff; box-shadow: 0 0 24px rgba(124, 58, 237, 0.5); }
.product-extra .price { color: #b794f6; text-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }

.product-warning {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 10px 12px; margin-bottom: 14px;
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: var(--radius-sm); font-size: 12px;
    color: #ff9999; line-height: 1.5; text-align: left;
}
.product-warning .warning-icon { flex-shrink: 0; color: var(--danger); font-weight: 700; }

/* ============ FAQ ============ */
.faq { max-width: 800px; margin: 0 auto; padding: 80px 40px; position: relative; z-index: 1; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 22px;
    transition: all 0.2s; cursor: pointer;
}
.faq-list details[open] { border-color: rgba(0, 212, 255, 0.3); }
.faq-list summary {
    font-weight: 600; font-size: 16px; list-style: none;
    color: var(--fg); position: relative; padding-right: 30px;
}
.faq-list summary::after {
    content: '+'; position: absolute; right: 0;
    font-size: 22px; color: var(--accent); transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 12px; color: var(--fg-2); font-size: 15px; line-height: 1.7; }
.faq-list a { color: var(--accent); text-decoration: none; }
.faq-list a:hover { text-decoration: underline; }

/* ============ ФУТЕР ============ */
footer {
    margin-top: 60px; padding: 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-2); position: relative; z-index: 1;
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 20px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--fg-2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--fg-3); font-size: 13px; }

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 100; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn 0.2s ease;
}
.modal.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--bg-2); border: 1px solid var(--border-2);
    border-radius: var(--radius); padding: 32px;
    width: 100%; max-width: 500px; position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 255, 0.08);
    animation: slideUp 0.25s ease;
    max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute; top: 16px; right: 18px;
    width: 32px; height: 32px; background: transparent;
    border: none; color: var(--fg-3); font-size: 26px;
    line-height: 1; cursor: pointer; border-radius: 50%; transition: all 0.2s;
}
.modal-close:hover { background: var(--bg-3); color: var(--fg); }

.modal-header { text-align: center; margin-bottom: 20px; }
.modal-icon { font-size: 40px; margin-bottom: 6px; }
.modal-header h2 { font-size: 22px; font-weight: 700; }

.modal-warning {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 16px; margin-bottom: 18px;
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: var(--radius-sm); font-size: 13px;
    color: #ffaaaa; line-height: 1.5;
}
.modal-warning::before { content: '⚠'; color: var(--danger); font-size: 16px; flex-shrink: 0; }

.tier-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.tier-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: var(--bg);
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.2s; user-select: none;
}
.tier-option:hover { border-color: rgba(0, 212, 255, 0.4); }
.tier-option.selected {
    border-color: var(--accent); background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 0 1px var(--accent);
}
.tier-option input { display: none; }
.tier-label { font-size: 14px; font-weight: 600; color: var(--fg); }
.tier-price { font-size: 15px; font-weight: 700; color: var(--accent); }
.tier-option.selected .tier-price { color: var(--accent); text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); }

.modal-field { margin-bottom: 14px; }
.modal-field label {
    display: block; margin-bottom: 6px;
    font-size: 13px; color: var(--fg-2); font-weight: 500;
}
.modal-field label small { color: var(--fg-3); font-weight: 400; }
.modal-field input {
    width: 100%; padding: 11px 14px; background: var(--bg);
    border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    color: var(--fg); font-size: 15px; font-family: inherit; transition: all 0.2s;
}
.modal-field input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.modal-field input::placeholder { color: var(--fg-3); }

.modal-buttons { display: flex; gap: 10px; margin-top: 22px; }
.modal-buttons button { flex: 1; padding: 12px; font-size: 14px; }

.status { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.status.ok  { color: var(--ok); }
.status.err { color: var(--danger); }

/* ============ ЛИЧНЫЙ КАБИНЕТ ============ */
.me-page { max-width: 1100px; margin: 0 auto; padding: 60px 40px 80px; position: relative; z-index: 1; }

.me-header {
    display: flex; align-items: center; gap: 24px;
    padding: 28px; background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 32px;
    position: relative; overflow: hidden;
}
.me-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 0% 50%, rgba(0,212,255,0.08), transparent 60%);
    pointer-events: none;
}
.me-avatar {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff; font-size: 36px; font-weight: 800;
    border-radius: 50%; box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    position: relative; z-index: 1; flex-shrink: 0;
}
.me-header-info { flex: 1; position: relative; z-index: 1; }
.me-header-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.me-discord-tag { color: var(--fg-2); font-size: 14px; margin-bottom: 10px; }

.me-badge { display: inline-block; padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.me-badge-ok { background: rgba(34, 221, 136, 0.12); color: var(--ok); border: 1px solid rgba(34, 221, 136, 0.3); }
.me-badge-warn { background: rgba(255, 77, 77, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 77, 0.3); }
.me-badge-checking { background: rgba(74, 158, 255, 0.12); color: var(--accent-2); border: 1px solid rgba(74, 158, 255, 0.3); }

.me-loading { text-align: center; padding: 80px 20px; color: var(--fg-2); font-size: 16px; }
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--border-2);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.me-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    text-align: center; transition: all 0.2s;
}
.me-card:hover { border-color: rgba(0, 212, 255, 0.3); transform: translateY(-2px); }
.me-card-icon { font-size: 36px; margin-bottom: 8px; }
.me-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fg-3); margin-bottom: 8px; }
.me-card-value { font-size: 20px; font-weight: 700; color: var(--fg); margin-bottom: 4px; word-break: break-word; }
.me-card-sub { font-size: 12px; color: var(--fg-2); }
.me-card-accent .me-card-value { color: var(--accent); text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.me-card-gold .me-card-value { color: var(--gold); text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

.me-link-block {
    background: var(--bg-2); border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius); padding: 28px; margin-bottom: 32px;
}
.me-link-block h2 { font-size: 20px; margin-bottom: 8px; }
.me-link-block p { color: var(--fg-2); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.me-link-form { max-width: 480px; }
.me-link-form .modal-field { margin-bottom: 14px; }

.me-section-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.me-empty {
    padding: 40px; text-align: center;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--fg-2); margin-bottom: 32px;
}
.me-empty a { color: var(--accent); text-decoration: none; }

.me-orders { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.me-orders-table { width: 100%; border-collapse: collapse; background: var(--bg-2); }
.me-orders-table thead { background: var(--bg-3); }
.me-orders-table th {
    padding: 14px 16px; text-align: left; font-size: 12px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--fg-2); border-bottom: 1px solid var(--border);
}
.me-orders-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.me-orders-table tbody tr:last-child td { border-bottom: none; }
.me-orders-table tbody tr:hover { background: rgba(0, 212, 255, 0.03); }
.order-id { color: var(--fg-3); font-family: "Consolas", monospace; }
.order-price { color: var(--accent); font-weight: 600; }
.order-date { color: var(--fg-2); font-size: 13px; }

.me-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 768px) {
    header { padding: 14px 20px; }
    nav { gap: 12px; }
    nav a:not(.nav-btn):not(.nav-link) { display: none; }
    .hero { padding: 60px 20px 40px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 30px; }
    .shop, .faq { padding: 50px 20px; }
    .section-head h2 { font-size: 26px; }
    .footer-content { gap: 14px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .me-page { padding: 40px 20px; }
    .me-header { flex-direction: column; text-align: center; }
    .me-header-info { text-align: center; }
    .me-orders-table { font-size: 12px; }
    .me-orders-table th,
    .me-orders-table td { padding: 10px 8px; }
    .me-orders-table th:nth-child(5),
    .me-orders-table td:nth-child(5) { display: none; }
}
/* ============================================
   Секция КЛЮЧЕЙ (🗝️)
   ============================================ */
.shop-keys .product {
    border-color: rgba(124, 58, 237, 0.25);
    background: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, var(--bg-2) 100%);
}
.shop-keys .product::before {
    background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08), transparent 70%);
}
.shop-keys .product:hover {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.15);
}
.shop-keys .product .price {
    color: #b794f6;
    text-shadow: 0 0 20px rgba(124,58,237,0.35);
}
.shop-keys .product button {
    border-color: var(--accent-3);
    color: #b794f6;
}
.shop-keys .product button:hover {
    background: var(--accent-3);
    color: #fff;
    box-shadow: 0 0 24px rgba(124,58,237,0.5);
}

/* ============================================
   Баланс 💠 в шапке
   ============================================ */
#nav-balance {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* ============================================
   Плашка с балансом в модалке
   ============================================ */
.modal-balance {
    padding: 10px 14px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}
.modal-balance b { color: #fff; }
.modal-balance a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.modal-balance a:hover { text-decoration: underline; }

/* ============================================
   Заметка о оплате за 💠
   ============================================ */
.crystal-note {
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-sm);
    color: #b794f6;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 6px;
}
.crystal-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crystal-note a:hover { text-decoration: underline; }

/* Код в тексте FAQ */
.faq-list code,
.section-head code {
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 0.9em;
    color: var(--accent);
}
/* ============================================
   ПЕРЕКЛЮЧАТЕЛЬ ВАЛЮТЫ
   ============================================ */
.currency-switch,
.modal-currency {
    display: inline-flex;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}
.currency-switch button,
.modal-currency button {
    background: transparent;
    border: none;
    color: var(--fg-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.currency-switch button:hover,
.modal-currency button:hover { color: var(--fg); }
.currency-switch button.active,
.modal-currency button.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(0,212,255,0.35);
}
.modal-currency {
    display: flex;
    justify-content: center;
    margin: 0 auto 18px;
    width: max-content;
}

/* ============================================
   ФИЛЬТРАЦИЯ ПО ВАЛЮТЕ
   ============================================ */
.cur-rub, .cur-crystal { display: inline; }

body.currency-rub .cur-crystal { display: none !important; }
body.currency-crystal .cur-rub { display: none !important; }

body.currency-rub .product[data-currency="crystal"] { display: none; }
body.currency-crystal .product[data-currency="rub"] { display: none; }

/* ============================================
   КЛЮЧИ (фиолетовая тема)
   ============================================ */
.shop-keys .product {
    border-color: rgba(124, 58, 237, 0.25);
    background: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, var(--bg-2) 100%);
}
.shop-keys .product::before {
    background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.08), transparent 70%);
}
.shop-keys .product:hover {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.15);
}
.shop-keys .product .price {
    color: #b794f6;
    text-shadow: 0 0 20px rgba(124,58,237,0.35);
}
.shop-keys .product button {
    border-color: var(--accent-3);
    color: #b794f6;
}
.shop-keys .product button:hover {
    background: var(--accent-3);
    color: #fff;
    box-shadow: 0 0 24px rgba(124,58,237,0.5);
}

/* ============================================
   Баланс 💠 в шапке
   ============================================ */
#nav-balance {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* ============================================
   Плашка баланса и заметка в модалке
   ============================================ */
.modal-balance {
    padding: 10px 14px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}
.modal-balance b { color: #fff; }
.modal-balance a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.modal-balance a:hover { text-decoration: underline; }

.crystal-note {
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-sm);
    color: #b794f6;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 6px;
}
.crystal-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crystal-note a:hover { text-decoration: underline; }

/* Код в FAQ */
.faq-list code,
.section-head code {
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 0.9em;
    color: var(--accent);
}

/* Тиры в модалке — disabled */
.tier-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.tier-option.disabled .tier-price { color: var(--fg-3); }

/* Кнопка оформить — disabled */
#submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   Адаптив
   ============================================ */
@media (max-width: 900px) {
    header { flex-wrap: wrap; gap: 10px; }
    .currency-switch { order: 3; width: 100%; justify-content: center; }
    .currency-switch button { flex: 1; }
}


/* ============================================
   🔔 ЦЕНТР УВЕДОМЛЕНИЙ
   ============================================ */
.nav-bell-wrap {
    position: relative;
    display: inline-block;
}

.nav-bell {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 50%;
    color: var(--fg);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-bell:hover {
    border-color: var(--accent);
    background: rgba(0,212,255,0.06);
    transform: translateY(-1px);
}

.nav-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff4d4d 0%, #c92a2a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255,77,77,0.6);
    animation: bellPulse 2s ease-in-out infinite;
}
@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.nav-bell-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.08);
    z-index: 100;
    overflow: hidden;
    flex-direction: column;
}
.nav-bell-dropdown.show {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.bell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}
.bell-head > span {
    font-weight: 700;
    font-size: 14px;
    color: var(--fg);
}
.bell-head button {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}
.bell-head button:hover {
    background: rgba(0,212,255,0.1);
}

.bell-list {
    overflow-y: auto;
    max-height: 400px;
}

.bell-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.bell-item:hover {
    background: rgba(0,212,255,0.04);
}
.bell-item.unread {
    background: rgba(0,212,255,0.06);
    border-left: 3px solid var(--accent);
}
.bell-item:last-child { border-bottom: none; }

.bell-item-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.bell-item-body {
    flex: 1;
    min-width: 0;
}
.bell-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 3px;
}
.bell-item-text {
    font-size: 12px;
    color: var(--fg-2);
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}
.bell-item-time {
    font-size: 11px;
    color: var(--fg-3);
}

.bell-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--fg-3);
    font-size: 13px;
}

/* ============================================
   🎛 АДМИНКА
   ============================================ */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--fg-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}
.admin-tab:hover { color: var(--fg); }
.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Плитки метрик */
.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.admin-tile {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.admin-tile:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-2px);
}
.admin-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(0,212,255,0.06), transparent 60%);
    pointer-events: none;
}
.admin-tile-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.admin-tile-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-3);
    margin-bottom: 6px;
}
.admin-tile-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--fg);
    line-height: 1.1;
}
.admin-tile-value.accent { color: var(--accent); text-shadow: 0 0 20px rgba(0,212,255,0.3); }
.admin-tile-value.gold   { color: var(--gold); text-shadow: 0 0 20px rgba(255,215,0,0.3); }
.admin-tile-value.ok     { color: var(--ok); }
.admin-tile-value.warn   { color: #ff9933; }

/* График */
.admin-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 20px;
}
.admin-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--fg);
}

.admin-graph {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 140px;
    padding: 10px 0;
}
.admin-graph-bar {
    flex: 1;
    min-width: 12px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-3) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: all 0.2s;
    cursor: help;
}
.admin-graph-bar:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 12px rgba(0,212,255,0.6);
}
.admin-graph-bar::after {
    content: attr(data-count);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--fg-2);
    opacity: 0;
    transition: opacity 0.2s;
}
.admin-graph-bar:hover::after { opacity: 1; }

.admin-graph-labels {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--fg-3);
}
.admin-graph-labels span {
    flex: 1;
    text-align: center;
    min-width: 12px;
}

/* Лента событий */
.admin-recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 340px;
    overflow-y: auto;
}
.admin-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: 13px;
}
.admin-recent-icon { font-size: 18px; }
.admin-recent-text {
    flex: 1;
    color: var(--fg);
    word-break: break-word;
}
.admin-recent-time {
    color: var(--fg-3);
    font-size: 11px;
    font-family: Consolas, monospace;
    white-space: nowrap;
}

/* Таблица заказов */
.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-2);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-orders-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fg-2);
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}
.admin-orders-table td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
}
.admin-orders-table tr:hover { background: rgba(0,212,255,0.03); }
.admin-orders-table tr:last-child td { border-bottom: none; }

.order-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.order-badge.new       { background: rgba(0,212,255,0.15); color: var(--accent); }
.order-badge.sent      { background: rgba(74,158,255,0.15); color: var(--accent-2); }
.order-badge.processed { background: rgba(34,221,136,0.15); color: var(--ok); }
.order-badge.cancelled { background: rgba(255,77,77,0.15); color: var(--danger); }

.order-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.order-actions button {
    padding: 5px 10px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 6px;
    color: var(--fg-2);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.order-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.order-actions .btn-ok:hover {
    border-color: var(--ok);
    color: var(--ok);
}
.order-actions .btn-cancel:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.admin-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.admin-filter button {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    color: var(--fg-2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.admin-filter button:hover { color: var(--fg); }
.admin-filter button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Форма настроек */
.admin-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
}
.admin-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-field input,
.admin-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.15s;
}
.admin-field input:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.admin-field textarea {
    min-height: 70px;
    resize: vertical;
}
.admin-field small {
    display: block;
    margin-top: 4px;
    color: var(--fg-3);
    font-size: 11px;
}

.admin-save-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* Табы контента */
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

@media (max-width: 768px) {
    .admin-page { padding: 20px; }
    .admin-tiles { grid-template-columns: repeat(2, 1fr); }
    .nav-bell-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
    .admin-orders-table th:nth-child(3),
    .admin-orders-table td:nth-child(3) { display: none; }
}

/* ============================================
   🎟 ПРОМОКОДЫ (личный кабинет)
   ============================================ */
.me-promo-block {
    background: linear-gradient(135deg,
                rgba(255,215,0,0.05) 0%,
                rgba(0,212,255,0.04) 100%);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.me-promo-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%,
                rgba(255,215,0,0.08), transparent 60%);
    pointer-events: none;
}

.me-promo-hint {
    color: var(--fg-2);
    font-size: 13px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.me-promo-form {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}
.me-promo-form input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.me-promo-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.me-promo-form button {
    white-space: nowrap;
    padding: 12px 24px;
}

.me-promo-discount {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 14px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.me-promo-discount b {
    color: #fff;
    text-shadow: 0 0 12px rgba(255,215,0,0.6);
}

@media (max-width: 768px) {
    .me-promo-form { flex-direction: column; }
    .me-promo-form button { width: 100%; }
}