:root {
    --bg-main: #060608;
    --bg-panel: rgba(6, 12, 24, 0.55);
    --bg-card: rgba(10, 18, 34, 0.45);
    --bg-card-hover: rgba(15, 28, 55, 0.75);
    --border: rgba(80, 140, 255, 0.12);
    --border-hover: rgba(80, 160, 255, 0.35);
    --accent: #d8382a;
    --accent-glow: rgba(216, 56, 42, 0.35);
    --accent2: #ff6a4a;
    --text-main: #ffffff;
    --text-muted: #8a9bbf;
    --font: 'Inter', sans-serif;
    --glass: rgba(8, 16, 36, 0.52);
    --glass-border: rgba(120, 180, 255, 0.13);
    --glass-blur: blur(10px);

    /* New shop-style tokens */
    --yellow: #ffb020;
    --yellow2: #ffd542;
    --card-bg: rgba(255, 255, 255, 0.035);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-media-bg: rgba(0, 0, 0, 0.35);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.menu-lock {
    overflow: hidden;
}

/* ===== BACKGROUND ===== */
.bg-image {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 0;
}
.bg-mesh {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(42, 141, 255, 0.09) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(56, 217, 245, 0.06) 0%, transparent 40%),
        linear-gradient(rgba(42, 141, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 141, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* ===== LAYOUT ===== */
.site-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

.shell-body {
    flex: 1;
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 0;
    overflow: hidden;
}

@media (min-width: 1441px) {
    .bg-image, .bg-mesh {
        width: 100%;
    }
}

/* ===== NAVBAR (full width top bar) ===== */
.navbar {
    width: 100%;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    background: rgba(4, 6, 12, 0.72);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: sticky;
    top: 0;
    z-index: 60;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.navbar .top-nav {
    flex: 1;
    justify-content: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    text-decoration: none;
}
.social-icon-btn.tg { background: rgba(38, 158, 219, 0.1); border: 1px solid rgba(38, 158, 219, 0.28); color: #4fb8ea; }
.social-icon-btn.tg:hover { background: rgba(38, 158, 219, 0.22); transform: translateY(-1px); }
.social-icon-btn.dc { background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.3); color: #8c96f5; }
.social-icon-btn.dc:hover { background: rgba(88, 101, 242, 0.22); transform: translateY(-1px); }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 230px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-shrink: 0;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}
.logo-accent { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }
.logo-icon { width: 26px; height: 26px; margin-right: 9px; flex-shrink: 0; filter: drop-shadow(0 0 6px var(--accent-glow)); }

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 14px 10px; }
.sidebar-scroll::-webkit-scrollbar { width: 0; }
.sidebar-section { margin-bottom: 22px; }
.section-title { font-size: 10px; font-weight: 600; color: #4a5878; letter-spacing: 1px; margin-bottom: 8px; padding: 0 10px; }

.sidebar-item {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    margin-bottom: 2px;
    position: relative;
    text-decoration: none;
}
.sidebar-item:hover { background: rgba(216,56,42,0.07); color: var(--text-main); }
.sidebar-item.active { background: rgba(216,56,42,0.12); color: var(--text-main); box-shadow: inset 0 0 0 1px rgba(216,56,42,0.1); }

.indicator { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.indicator.red { background: #ff4757; box-shadow: 0 0 8px rgba(255,71,87,0.5); }
.indicator.green { background: #2ed573; box-shadow: 0 0 8px rgba(46,213,115,0.5); }

.item-content { display: flex; flex-direction: column; align-items: flex-start; }
.item-name { font-size: 13px; font-weight: 500; }
.item-desc { font-size: 10px; color: #4a5878; margin-top: 1px; }

/* ===== MAIN ===== */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    height: 60px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(6, 12, 28, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 5;
    flex-shrink: 0;
    gap: 14px;
}

.topbar-logo {
    display: none;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    background: rgba(216,56,42,0.07);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.burger-btn:hover { background: rgba(216,56,42,0.14); border-color: var(--border-hover); }
.burger-btn span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-main);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-nav { display: flex; gap: 20px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--text-main); position: relative; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 -2px 8px var(--accent-glow);
}

/* ===== CONTENT ===== */
.content-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.content-scroll::-webkit-scrollbar { width: 4px; }
.content-scroll::-webkit-scrollbar-track { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb { background: rgba(216,56,42,0.15); border-radius: 2px; }

.top-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass);
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    margin-bottom: 24px;
    width: fit-content;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.currency-label { font-size: 10px; font-weight: 600; color: #4a5878; letter-spacing: 0.5px; }
.currency-selector { display: flex; gap: 3px; flex-wrap: wrap; }
.currency-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.currency-btn:hover { background: rgba(216,56,42,0.07); color: var(--text-main); }
.currency-btn.active {
    background: rgba(216,56,42,0.14);
    color: #fff;
    border-color: rgba(216,56,42,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-color: #04060c;
    background-image: url('bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(4,6,12,0.92) 0%, rgba(4,6,12,0.35) 55%, rgba(4,6,12,0.15) 100%),
        linear-gradient(90deg, rgba(4,6,12,0.55) 0%, transparent 45%);
}
.hero-content {
    position: absolute;
    left: 30px;
    bottom: 26px;
    z-index: 2;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero-title-accent { color: var(--accent); text-shadow: 0 0 22px var(--accent-glow); }
.hero-tagline { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.8); }
.hero-desc { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.6); max-width: 420px; line-height: 1.5; }
@media (max-width: 720px) { .hero-desc { display: none; } }
.hero-ip-box {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(4, 6, 12, 0.6);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
#hero-ip { font-size: 13px; font-weight: 700; color: #fff; font-family: 'Courier New', monospace; }
.hero-ip-copy {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.hero-ip-copy:hover { background: rgba(255,255,255,0.16); }
.hero-ip-copy.copied { color: #2ed573; border-color: rgba(46,213,115,0.4); }

/* ===== SHOP LAYOUT (sidebar + main) ===== */
.shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.shop-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.shop-sidebar-label {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 12px;
}
.shop-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}
.cat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.cat-pill-icon { flex-shrink: 0; opacity: 0.7; display: flex; }
.cat-pill-text { flex: 1; }
.cat-pill-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #0a0a0c;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    display: none;
}
.cat-pill:hover { color: #fff; background: rgba(255,255,255,0.065); border-color: rgba(255,255,255,0.13); }
.cat-pill.active {
    color: #fff;
    background: rgba(255,255,255,0.075);
    border-color: rgba(255,255,255,0.18);
}
.cat-pill.active .cat-pill-icon { opacity: 1; color: var(--accent); }
.cat-pill.active .cat-pill-check { display: flex; }

.shop-main { flex: 1; min-width: 0; }
.shop-header { margin-bottom: 20px; }
.shop-header h1 { font-size: 30px; font-weight: 800; letter-spacing: 0.3px; margin-bottom: 6px; color: #fff; }
.shop-header p { font-size: 14px; color: var(--text-muted); }

/* ===== PRODUCTS ===== */
.category-section-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}
.view-section { margin-bottom: 34px; }
.view-section:last-child { margin-bottom: 0; }

.products-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.products-header h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.tag {
    background: rgba(216,56,42,0.07);
    border: 1px solid var(--glass-border);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* CARDS (portrait image, name, price pill + buy pill) */
.product-card {
    background: #0c0c0f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.product-card:hover {
    background: #121216;
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}

.product-media {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card { animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) both; }
.sidebar-item { animation: fadeInUp 0.45s cubic-bezier(0.4,0,0.2,1) both; }
.products-grid .product-card:nth-child(1) { animation-delay: .03s; }
.products-grid .product-card:nth-child(2) { animation-delay: .08s; }
.products-grid .product-card:nth-child(3) { animation-delay: .13s; }
.products-grid .product-card:nth-child(4) { animation-delay: .18s; }
.products-grid .product-card:nth-child(5) { animation-delay: .23s; }
.products-grid .product-card:nth-child(6) { animation-delay: .28s; }

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.product-icon {
    width: 46px;
    height: 46px;
    position: relative;
    transition: transform 0.3s ease;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
.product-media .product-icon { width: 66%; height: 66%; }
.product-card:hover .product-icon { transform: scale(1.12) translateY(-3px) rotate(4deg); }

.rank-media {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06) 0%, transparent 60%), #0b0b0f;
    position: relative;
    overflow: hidden;
}
.rank-media::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    filter: blur(20px);
    z-index: 0;
    animation: pulse-glow 2.4s ease-in-out infinite;
}
.rank-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
    transition: transform 0.3s ease;
}
.product-card:hover .rank-img { transform: scale(1.06); }

.rank-media-hero::before { background: radial-gradient(circle, rgba(80,200,120,0.45) 0%, transparent 70%); }
.rank-media-elder::before { background: radial-gradient(circle, rgba(65,105,225,0.45) 0%, transparent 70%); }
.rank-media-legend::before { background: radial-gradient(circle, rgba(248,181,0,0.45) 0%, transparent 70%); }
.rank-media-avenger::before { background: radial-gradient(circle, rgba(160,96,224,0.45) 0%, transparent 70%); }
.rank-media-eternity::before { background: radial-gradient(circle, rgba(255,122,42,0.6) 0%, transparent 70%); }

.product-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130%; height: 130%;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.5;
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.1); }
}

.icon-hero { background-image: url('images/ranks/hero.png'); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; }
.icon-hero::after { background: #50c878; }
.icon-elder { background-image: url('images/ranks/elder.png'); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; }
.icon-elder::after { background: #4169e1; }
.icon-legend { background-image: url('images/ranks/legend.png'); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; }
.icon-legend::after { background: #f8b500; }
.icon-avenger { background-image: url('images/ranks/avenger.png'); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; }
.icon-avenger::after { background: #a060e0; }
.icon-eternity { background-image: url('images/ranks/eternity.png'); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; animation: mythril-glow 2s ease-in-out infinite; }
.icon-eternity::after { background: #ff7a2a; }
@keyframes mythril-glow {
    0%, 100% { box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), 0 4px 20px rgba(139,69,19,0.6); }
    50% { box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), 0 6px 30px rgba(255,69,19,0.8); }
}
.icon-unban { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/item/barrier.png'); background-size: cover; box-shadow: 0 4px 15px rgba(255,71,87,0.5); }
.icon-unban::after { background: #ff4757; }
.icon-unmute { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/item/paper.png'); background-size: cover; box-shadow: 0 4px 15px rgba(255,165,2,0.5); }
.icon-unmute::after { background: #ffa502; }

/* Кейсы — шалкеры разных цветов */
.icon-donatecase { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/block/orange_shulker_box.png'); background-size: cover; background-position: center; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 4px 15px rgba(255,157,46,0.45); }
.icon-donatecase::after { background: #ff9d2e; }
.icon-titlecase { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/block/magenta_shulker_box.png'); background-size: cover; background-position: center; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 4px 15px rgba(224,102,255,0.45); }
.icon-titlecase::after { background: #e066ff; }
.icon-sapphirecase { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/block/blue_shulker_box.png'); background-size: cover; background-position: center; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 4px 15px rgba(59,130,246,0.45); }
.icon-sapphirecase::after { background: #3b82f6; }
.icon-resourcecase { background-image: url('https://raw.githubusercontent.com/misode/mcmeta/assets/assets/minecraft/textures/block/lime_shulker_box.png'); background-size: cover; background-position: center; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3), 0 4px 15px rgba(85,214,107,0.45); }
.icon-resourcecase::after { background: #55d66b; }

.product-info { text-align: left; width: 100%; }
.product-name {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-qty { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.price-pill {
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    padding: 11px 18px;
    white-space: nowrap;
}
.product-price { font-size: 15px; font-weight: 800; color: #fff; white-space: nowrap; }
.product-price .period { font-size: 10px; color: var(--text-muted); font-weight: 500; }

.buy-pill {
    flex-shrink: 0;
    background: linear-gradient(180deg, #e8503d, var(--accent));
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 12px;
    padding: 11px 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.2s;
}
.buy-pill:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ff7a5c, #e8503d); box-shadow: 0 6px 18px var(--accent-glow); }
.buy-pill:active { transform: translateY(0); }

.buy-pill.buy-pill-disabled,
.buy-pill.buy-pill-disabled:hover,
.buy-pill.buy-pill-disabled:active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    font-size: 12px;
    padding: 11px 14px;
}

.product-card.selected {
    background: rgba(255,255,255,0.06);
    border-color: rgba(216,56,42,0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 26px rgba(216,56,42,0.13);
}
.product-card.highlight {
    border-color: rgba(255, 176, 32, 0.35);
}
.product-card.highlight:hover { border-color: var(--yellow); }

/* ===== PRODUCT DETAIL (used inside modal-detail) ===== */

.cart-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}
.cart-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(216,56,42,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.detail-icon-large {
    width: 70px; height: 70px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    animation: float 3s ease-in-out infinite;
}
.detail-icon-large.icon-hero, .detail-icon-large.icon-elder, .detail-icon-large.icon-legend, .detail-icon-large.icon-avenger, .detail-icon-large.icon-eternity {
    width: 96px; height: 96px;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.cart-info { flex: 1; }
#detail-name { font-size: 18px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.detail-price-wrap { font-size: 21px; font-weight: 700; color: var(--accent); margin-bottom: 10px; text-shadow: 0 2px 15px var(--accent-glow); }

.period-selector { display: flex; gap: 4px; margin-bottom: 12px; }
.period-btn {
    flex: 1;
    background: rgba(216,56,42,0.07);
    border: 1px solid rgba(216,56,42,0.14);
    border-radius: 7px;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 2px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.period-btn:hover { background: rgba(216,56,42,0.12); color: var(--text-main); }
.period-btn.active {
    background: rgba(216,56,42,0.2);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(216,56,42,0.2);
}

.detail-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.7;
    background: rgba(216,56,42,0.04);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 2px solid rgba(216,56,42,0.25);
    margin-bottom: 8px;
}

.detail-features { display: flex; flex-direction: column; gap: 5px; }
.feature-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-muted); }
.feature-item svg { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }

.detail-kit { display: none; }
.kit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.kit-title { font-size: 13px; font-weight: 700; color: var(--text-main); }
.kit-cooldown {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.kit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.kit-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 160px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
}
.kit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 4px 8px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.kit-item:hover { border-color: rgba(216,56,42,0.35); background: rgba(216,56,42,0.06); }
.kit-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kit-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.kit-item-qty { font-size: 12px; font-weight: 800; color: var(--text-main); }
.kit-item-name {
    font-size: 8.5px;
    color: var(--text-muted);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 720px) {
    .kit-grid { grid-template-columns: repeat(3, 1fr); }
}

.cart-actions { margin-top: 14px; }
.buy-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 18px var(--accent-glow);
    position: relative;
    overflow: hidden;
}
.buy-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.buy-btn:hover::before { width: 300px; height: 300px; }
.buy-btn:hover { background: #e8503d; transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.buy-btn:active { transform: translateY(0); }

.empty-section {
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.15);
    font-size: 13px;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: rgba(8, 16, 36, 0.88);
    border: 1px solid rgba(216,56,42,0.2);
    border-radius: 18px;
    padding: 26px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 40px rgba(216,56,42,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
}
.modal-close:hover { color: #fff; }

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.modal-title span { color: var(--accent); }

/* Product detail modal — bigger, screenshot-style layout */
.detail-modal-box {
    max-width: 860px;
    max-height: 88vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border-color: rgba(255,255,255,0.1);
}
.detail-columns {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.detail-col-left { min-width: 0; }
.detail-col-right { min-width: 0; }
@media (max-width: 720px) {
    .detail-modal-box { max-width: 440px; }
    .detail-columns { grid-template-columns: 1fr; gap: 20px; }
}
.detail-modal-scroll {
    overflow-y: auto;
    padding: 28px;
}
.detail-modal-scroll::-webkit-scrollbar { width: 4px; }
.detail-modal-scroll::-webkit-scrollbar-thumb { background: rgba(216,56,42,0.18); border-radius: 2px; }

.detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.detail-modal-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

.detail-modal-box .cart-preview {
    height: 210px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
}
.detail-modal-box .detail-icon-large { width: 96px; height: 96px; }
.detail-modal-box #detail-name { font-size: 25px; margin-bottom: 8px; }
.detail-modal-box .detail-price-wrap { font-size: 29px; margin-bottom: 18px; }
.detail-modal-box .period-selector { gap: 8px; margin-bottom: 20px; }
.detail-modal-box .period-btn { padding: 12px 6px; font-size: 13px; border-radius: 10px; }
.detail-modal-box .period-btn small { font-size: 11px !important; }
.detail-modal-box .detail-desc {
    font-size: 13px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.65;
    border-left: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    max-height: 110px;
    overflow-y: auto;
}
.detail-modal-box .detail-desc::-webkit-scrollbar { width: 4px; }
.detail-modal-box .detail-desc::-webkit-scrollbar-thumb { background: rgba(216,56,42,0.25); border-radius: 2px; }
.detail-modal-box .detail-features { gap: 11px; margin-bottom: 0; }
.detail-modal-box .feature-item { font-size: 13px; gap: 10px; color: #cfd8ef; }
.detail-modal-box .feature-item svg { width: 15px; height: 15px; }
.detail-modal-box .cart-actions { margin-top: 16px; }
.detail-modal-box .buy-btn { width: auto; min-width: 220px; padding: 10px 30px; font-size: 13px; border-radius: 9px; }
.detail-modal-box .detail-kit { margin-top: 30px; }
.kit-buy-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.detail-modal-box { background: #050505; }

.modal-field { margin-bottom: 13px; }
.modal-label { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 5px; }

.modal-input {
    width: 100%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(216,56,42,0.15);
    border-radius: 9px;
    padding: 11px 13px;
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.modal-input:focus { border-color: rgba(216,56,42,0.45); box-shadow: 0 0 0 3px rgba(216,56,42,0.09); }
.modal-input::placeholder { color: rgba(255,255,255,0.2); }
.modal-input.error { border-color: rgba(255,71,87,0.6) !important; box-shadow: 0 0 0 3px rgba(255,71,87,0.1) !important; }

.modal-field-error { font-size: 11px; color: #ff4757; margin-top: 5px; display: none; }
.modal-field-error.visible { display: block; }

.promo-row { display: flex; gap: 8px; }
.promo-row .modal-input { flex: 1; }

.promo-apply-btn {
    background: rgba(216,56,42,0.14);
    border: 1px solid rgba(216,56,42,0.25);
    border-radius: 9px;
    color: var(--accent);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    padding: 0 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.promo-apply-btn:hover { background: rgba(216,56,42,0.25); }

.promo-msg { font-size: 11px; margin-top: 5px; display: none; }
.promo-msg.success { display: block; color: #2ed573; }
.promo-msg.fail { display: block; color: #ff4757; }

.modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(216,56,42,0.07);
    border: 1px solid rgba(216,56,42,0.14);
    border-radius: 10px;
    margin-bottom: 14px;
}
.modal-total-label { font-size: 13px; color: var(--accent); font-weight: 600; }
.modal-total-price { font-size: 18px; font-weight: 700; color: #fff; }

.modal-proceed-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 18px var(--accent-glow);
}
.modal-proceed-btn:hover { background: #e8503d; transform: translateY(-1px); }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.payment-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 15px 10px;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.payment-btn:hover:not(:disabled) { background: rgba(216,56,42,0.1); border-color: rgba(216,56,42,0.3); }
.payment-btn.active { background: rgba(216,56,42,0.15); border-color: var(--accent); box-shadow: 0 0 15px rgba(216,56,42,0.15); }
.payment-btn:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.payment-btn.full-width { grid-column: 1 / -1; }

.modal-go-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 18px var(--accent-glow);
    margin-bottom: 13px;
}
.modal-go-btn:hover:not(:disabled) { background: #e8503d; transform: translateY(-1px); }
.modal-go-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-disclaimer { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.modal-disclaimer a { color: var(--accent); text-decoration: none; }
.modal-disclaimer a:hover { text-decoration: underline; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6,12,28,0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
}
.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    border-radius: 8px;
    transition: color 0.2s;
}
.mobile-nav-btn svg { width: 20px; height: 20px; }
.mobile-nav-btn.active { color: var(--accent); }

/* ===== MOBILE FULLSCREEN MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 8, 18, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu-overlay.open { display: flex; transform: translateX(0); }

.mobile-menu-topbar {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-logo { display: flex; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: 0.5px; }

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(216,56,42,0.12);
    border: 1px solid rgba(216,56,42,0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mobile-menu-close:hover { background: rgba(216,56,42,0.28); color: #fff; }
.mobile-menu-close:active { transform: scale(0.92); }

.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 20px;
}

.mobile-menu-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s, text-shadow 0.2s;
}
.mobile-menu-link.active,
.mobile-menu-link:hover {
    color: var(--accent);
    text-shadow: 0 0 18px var(--accent-glow);
}


@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 860px) {
    .hero-banner { height: 240px; }
    .hero-title { font-size: 32px; }

    .shop-layout { flex-direction: column; align-items: stretch; gap: 18px; }
    .shop-sidebar { width: 100%; }
    .shop-sidebar-label { margin: 0 0 8px; }
    .shop-sidebar-group {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 14px;
        padding-bottom: 2px;
    }
    .shop-sidebar-group::-webkit-scrollbar { display: none; }
    .cat-pill { width: auto; white-space: nowrap; padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 700px) {
    body { overflow: auto; }
    .shell-body {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 54px);
        max-width: 100%;
        width: 100%;
        overflow: visible;
        padding-bottom: 70px;
    }
    .mobile-nav { display: block; }
    .mobile-menu-overlay { display: flex; }

    .main-content {
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .navbar {
        padding: 0 14px;
        height: 54px;
        gap: 8px;
    }
    .burger-btn { display: flex; }
    .navbar-logo { flex: 1; font-size: 15px; }
    .navbar .top-nav { display: none; }
    .nav-link.active::after { bottom: -17px; }

    .content-scroll {
        flex: none;
        overflow-y: visible;
        padding: 14px;
        width: 100%;
    }

    .hero-banner { height: 190px; border-radius: 16px; margin-bottom: 16px; }
    .hero-content { left: 18px; bottom: 18px; }
    .hero-title { font-size: 26px; }
    .hero-tagline { font-size: 12px; margin-top: 5px; }
    .hero-ip-box { right: 12px; bottom: 12px; padding: 7px 10px; gap: 7px; }
    #hero-ip { font-size: 11px; }
    .hero-ip-copy { width: 22px; height: 22px; }

    .shop-header h1 { font-size: 22px; }
    .shop-header p { font-size: 12px; }
    .shop-sidebar-group { gap: 6px; margin: 0 -14px 14px; padding: 0 14px 2px; }
    .cat-pill { padding: 9px 12px; font-size: 12px; gap: 8px; }
    .cat-pill-check { width: 16px; height: 16px; font-size: 9px; }

    .top-controls {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
        padding: 10px 12px;
    }
    .currency-selector { flex-wrap: wrap; }
    .currency-btn { padding: 5px 8px; font-size: 11px; }

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

    .product-card { padding: 10px; border-radius: 14px; }
    .product-name { font-size: 12px; }
    .product-qty { font-size: 10px; margin-bottom: 8px; }
    .price-pill { font-size: 12px; padding: 8px 10px; border-radius: 9px; }
    .buy-pill { padding: 8px 10px; font-size: 12px; border-radius: 9px; }

    .modal-box { padding: 20px; border-radius: 16px; }

    .site-footer { padding: 20px 4px 4px; }
}

@media (max-width: 380px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card { padding: 9px; }
    .hero-title { font-size: 22px; }
}

/* ===== INNER PAGES (FAQ / RULES) ===== */
.page-wrap { max-width: 820px; margin: 0 auto; width: 100%; }
.page-header { padding: 6px 0 26px; }
.page-header h1 { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px; }
.page-header h1 span { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }
.page-header p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.section-label { margin: 26px 0 10px; }
.section-label h1 { font-size: 15px; font-weight: 700; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }

/* Glass accordion boxes shared by FAQ + Rules */
.faq-box, .rule-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 10px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.faq-box:hover, .rule-box:hover { border-color: rgba(216,56,42,0.22); transform: translateY(-2px); }
.faq-box.open, .rule-box.open { border-color: rgba(216,56,42,0.35); box-shadow: 0 8px 30px rgba(0,0,0,0.42), 0 0 22px rgba(216,56,42,0.09), inset 0 1px 0 rgba(255,255,255,0.07); }

.faq-head, .rule-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; user-select: none; gap: 12px; }
.faq-head-left, .rule-head-left { display: flex; align-items: center; gap: 14px; }
.faq-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; transition: transform 0.3s ease; }
.faq-box.open .faq-icon { transform: scale(1.08) rotate(-4deg); }
.faq-icon.blue { background: rgba(216,56,42,0.12); border: 1px solid rgba(216,56,42,0.2); }
.faq-icon.green { background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.2); }
.faq-icon.orange { background: rgba(255,165,50,0.1); border: 1px solid rgba(255,165,50,0.2); }
.faq-icon.red { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.2); }
.faq-icon.purple { background: rgba(160,100,255,0.1); border: 1px solid rgba(160,100,255,0.2); }
.faq-title, .rule-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.rule-num { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(216,56,42,0.1); border: 1px solid rgba(216,56,42,0.2); border-radius: 6px; padding: 3px 8px; letter-spacing: 0.5px; white-space: nowrap; }
.faq-arrow, .rule-arrow { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0; }
.faq-box.open .faq-arrow, .rule-box.open .rule-arrow { transform: rotate(180deg); color: var(--accent); }

.faq-content, .rule-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, padding 0.3s ease;
}
.faq-box.open .faq-content, .rule-box.open .rule-content {
    max-height: 1200px;
    opacity: 1;
    padding: 16px 22px 22px;
    border-top: 1px solid var(--glass-border);
}

.faq-text, .rule-content p { font-size: 13px; color: var(--text-muted); line-height: 1.9; }
.rule-content .num { color: var(--accent); font-weight: 600; }
.rule-content a, .faq-content a { color: var(--accent); text-decoration: none; }
.rule-content a:hover, .faq-content a:hover { text-decoration: underline; }
.rule-content .note { margin-top: 14px; padding: 10px 14px; background: rgba(255,71,87,0.05); border-left: 2px solid rgba(255,71,87,0.4); border-radius: 0 6px 6px 0; font-size: 12px; color: #ff6b6b; line-height: 1.7; }
.rule-content .note strong { color: #ff4757; }
.prog-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.prog-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5; border: 1px solid var(--glass-border); transition: border-color 0.2s, background 0.2s; }
.prog-item:hover { border-color: rgba(216,56,42,0.25); background: rgba(216,56,42,0.05); }
.prog-item a { color: var(--accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.prog-item a:hover { text-decoration: underline; }
.prog-item span { color: #5a6a8a; }

.ip-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.ip-cards { display: flex; flex-direction: column; gap: 8px; }
.ip-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(216,56,42,0.1); border-radius: 10px; transition: all 0.25s; gap: 10px; }
.ip-card:hover { border-color: rgba(216,56,42,0.28); background: rgba(216,56,42,0.05); }
.ip-card-left { display: flex; flex-direction: column; gap: 2px; }
.ip-addr { font-size: 14px; font-weight: 700; color: var(--text-main); font-family: 'Courier New', monospace; }
.ip-version { font-size: 11px; color: var(--text-muted); }
.ip-copy-btn { background: rgba(216,56,42,0.08); border: 1px solid rgba(216,56,42,0.15); border-radius: 6px; padding: 5px 10px; color: var(--accent); font-family: var(--font); font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ip-copy-btn:hover { background: rgba(216,56,42,0.18); transform: translateY(-1px); }
.ip-copy-btn svg { width: 11px; height: 11px; }
.version-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 12px; background: rgba(216,56,42,0.05); border: 1px solid rgba(216,56,42,0.12); border-radius: 6px; font-size: 12px; color: var(--text-muted); }
.version-badge strong { color: var(--accent2); }

.social-cards { display: flex; flex-direction: column; gap: 8px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(0,0,0,0.25); border-radius: 12px; border: 1px solid var(--glass-border); text-decoration: none; transition: all 0.25s; }
.social-card:hover { border-color: rgba(216,56,42,0.28); background: rgba(216,56,42,0.05); transform: translateX(4px); }
.social-ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s ease; }
.social-card:hover .social-ico { transform: scale(1.1); }
.social-ico.discord { background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.25); }
.social-ico.telegram { background: rgba(38,158,219,0.12); border: 1px solid rgba(38,158,219,0.22); }
.social-ico svg { width: 18px; height: 18px; }
.social-info { flex: 1; }
.social-name { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.social-desc { font-size: 11px; color: var(--text-muted); }
.social-arrow svg { width: 14px; height: 14px; color: var(--text-muted); opacity: 0.5; transition: transform 0.25s ease; }
.social-card:hover .social-arrow svg { transform: translateX(3px); opacity: 0.9; }

.steps-block { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: rgba(0,0,0,0.2); border-radius: 8px; border-left: 2px solid rgba(216,56,42,0.3); }
.step-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(216,56,42,0.12); border: 1px solid rgba(216,56,42,0.25); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.step-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.step-text strong { color: var(--text-main); font-weight: 600; }
.tip-note { margin-top: 12px; padding: 10px 14px; background: rgba(216,56,42,0.04); border-left: 2px solid rgba(216,56,42,0.3); border-radius: 0 6px 6px 0; font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.tip-note strong { color: var(--accent2); }
.reward-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; background: rgba(46,213,115,0.06); border: 1px solid rgba(46,213,115,0.18); border-radius: 6px; font-size: 12px; color: #2ed573; font-weight: 500; }
.discord-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 13px; transition: opacity 0.2s; }
.discord-link:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 700px) {
    .page-header { padding: 4px 0 18px; }
    .page-header h1 { font-size: 20px; }
    .faq-head, .rule-head { padding: 14px 16px; }
    .faq-box.open .faq-content, .rule-box.open .rule-content { padding: 14px 16px 18px; }
    .ip-card { flex-direction: column; align-items: flex-start; }
}

/* ===== SITE FOOTER ===== */
.site-footer {
    margin-top: 30px;
    padding: 20px 4px 4px;
    border-top: 1px solid var(--glass-border);
}
.site-footer-inner { display: flex; flex-direction: column; gap: 6px; max-width: 820px; }
.site-footer-line { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.site-footer-line .fw { color: #fff; }
.site-footer-line .fa { color: #ff7a5c; font-weight: 600; }
.site-footer-social { display: flex; gap: 10px; margin-bottom: 4px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer-links a { font-size: 12px; color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer-links a:hover { color: var(--accent); }

* { scrollbar-width: thin; scrollbar-color: rgba(216,56,42,0.15) transparent; }
