:root {
    --primary: #9B6DFF;
    --primary-light: #C9A8FF;
    --primary-dim: #7C52D9;
    --primary-glow: rgba(155, 109, 255, 0.55);
    --secondary: #C9A8FF;
    --accent-pink: #E85DFF;

    --donate-color: #FFC107;
    --donate-glow: rgba(255, 193, 7, 0.55);

    --background: #08080f;
    --dark: #08080f;
    --surface: rgba(20, 16, 30, 0.72);
    --surface-solid: #12101c;
    --glass-bg: rgba(18, 15, 26, 0.68);
    --glass-interactive: rgba(28, 23, 40, 0.8);
    --border: rgba(170, 140, 255, 0.14);
    --glass-border: rgba(170, 140, 255, 0.14);
    --border-strong: rgba(170, 140, 255, 0.3);

    --text: #f2f0f7;
    --text-main: #f2f0f7;
    --text-muted: #948fa3;
    --text-dim: #6a6578;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 26px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection { background: var(--primary-glow); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(155,109,255,0.35); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(155,109,255,0.55); }

a { color: inherit; }


.background-fixed {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background-image: url('image/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 0%, rgba(120, 70, 220, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(90, 40, 190, 0.14) 0%, transparent 45%),
        radial-gradient(circle at center, rgba(18, 12, 30, 0.55) 0%, rgba(4, 4, 8, 0.94) 100%);
    backdrop-filter: blur(3px);
}

.background-overlay::before,
.background-overlay::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 60vh;
    background: linear-gradient(180deg, transparent, rgba(155,109,255,0.35), transparent);
    transform: rotate(28deg);
}
.background-overlay::before { top: -5%; left: 6%; }
.background-overlay::after  { bottom: -5%; right: 8%; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}


header {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 40px;
}

.navbar {
    background: rgba(13, 11, 20, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 34px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
}

.navbar-row { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }

.logo-icon {
    color: var(--primary);
    font-size: 26px;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    transition: var(--transition-fast);
}
.logo:hover .logo-icon { filter: drop-shadow(0 0 12px var(--primary-glow)); transform: rotate(-8deg); }

.logo-text h1 { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: 0.3px; }
.logo-text p { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-top: 2px; }

nav { width: 100%; }

nav ul { display: none; flex-direction: column; list-style: none; gap: 2px; width: 100%; padding: 10px 0 4px; }
nav ul.active { display: flex; }

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: var(--transition-fast);
    display: block;
    text-align: center;
    position: relative;
}

nav li { width: 100%; }
nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
nav a.active { color: var(--primary); background: rgba(155, 109, 255, 0.1); }

nav a.donate-link {
    background: rgba(255, 193, 7, 0.12);
    color: var(--donate-color);
    border: 1px solid rgba(255, 193, 7, 0.28);
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
nav a.donate-link:hover { background: var(--donate-color); color: #000; box-shadow: 0 0 15px var(--donate-glow); transform: translateY(-2px); }

.mobile-menu-btn {
    display: block;
    background: none;
    border: 1px solid transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 6px 10px;
    border-radius: 9px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.07); border-color: var(--border); }

@media (min-width: 901px) {
    .navbar { flex-direction: row; align-items: center; padding: 12px 24px; }
    .navbar-row { flex: 0 0 auto; }
    .mobile-menu-btn { display: none; }
    nav { width: auto; margin-left: 24px; flex: 1; }
    nav ul { display: flex !important; flex-direction: row; align-items: center; gap: 3px; padding: 0; width: 100%; }
    nav li { width: auto; }
    nav a { padding: 9px 15px; font-size: 14px; white-space: nowrap; }
    nav a.donate-link { margin: 0 0 0 auto; }
}

/* ── Auth widget ────────────────────────────────────────────────────────── */

#obkAuthWidget { display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 8px; }

.obk-auth-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: rgba(88,101,242,.15);
    border: 1px solid rgba(88,101,242,.4);
    border-radius: 50px; color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--transition-fast); white-space: nowrap;
}
.obk-auth-btn:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 0 18px rgba(88,101,242,.45); }

.obk-user-menu { position: relative; display: inline-block; }
.obk-user-trigger {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.18); object-fit: cover;
    cursor: pointer; display: block; transition: border-color .2s;
}
.obk-user-trigger:hover { border-color: var(--primary); }

.obk-user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: rgba(14,12,20,.97); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 8px; min-width: 190px; display: none; z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.obk-user-dropdown.open { display: block; animation: obkDropIn .15s ease; }
@keyframes obkDropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.obk-user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 9px; color: #f0f0f0;
    text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background .15s;
}
.obk-user-dropdown a:hover { background: rgba(255,255,255,.08); }
.obk-user-dropdown a.obk-logout-link { color: #EF5350; }
.obk-user-dropdown a.obk-logout-link:hover { background: rgba(239,83,80,.1); }
.obk-user-dropdown .obk-drop-sep { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }
.obk-user-dropdown .obk-username { font-size: 12px; color: rgba(255,255,255,.4); padding: 6px 14px 2px; font-weight: 600; }


.hero { text-align: center; padding: 64px 0 84px; display: flex; flex-direction: column; align-items: center; animation: fadeIn 0.8s ease-out; }

.hero h2 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.server-status-widget {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 32px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.status-indicator { width: 10px; height: 10px; border-radius: 50%; background-color: #555; margin-right: 10px; transition: var(--transition); }
.status-indicator.online { background-color: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 2s infinite; }

.hero p { font-size: 19px; color: #ddd; max-width: 600px; margin: 0 auto 36px; }

.hero-actions { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }

.cta-button {
    background: var(--primary);
    color: #0a0714;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
}
.cta-button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 34px var(--primary-glow); background: #fff; }

.announcement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 40px;
    max-width: 620px;
    margin: 4px auto 30px;
    text-align: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.announcement-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-glow), transparent); }

.announcement-badge {
    display: inline-block;
    background: rgba(155, 109, 255, 0.14);
    border: 1px solid rgba(155, 109, 255, 0.32);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.announcement-card p { font-size: 16.5px; color: #cfcfcf; line-height: 1.7; margin: 0; }
.announcement-card strong { color: var(--primary-light); }
.announcement-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 22px 0; }
.announcement-note { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.link-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.link-btn i { font-size: 18px; }
.link-btn:hover { transform: translateY(-2px); }
.link-btn.telegram i { color: #29A9EA; }
.link-btn.telegram:hover { border-color: rgba(41, 169, 234, 0.5); box-shadow: 0 0 20px rgba(41, 169, 234, 0.22); }
.link-btn.discord i { color: #8ea1ff; }
.link-btn.discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 0 20px rgba(88, 101, 242, 0.22); }

/* ── Server IP ──────────────────────────────────────────────────────────── */

.server-ip-wrapper { position: relative; margin-top: 20px; }

.server-ip {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    user-select: none;
    position: relative;
    overflow: hidden;
}
.server-ip::before { content: ''; position: absolute; inset: 0; background: var(--primary); opacity: 0; transition: var(--transition-fast); z-index: 0; }
.server-ip:active { transform: scale(0.96); }
.server-ip:active::before { opacity: 0.1; }
.server-ip:hover { box-shadow: 0 0 25px rgba(155, 109, 255, 0.3); background: rgba(0, 0, 0, 0.75); }

.ip-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.ip-text { font-family: 'Courier New', monospace; font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.copy-hint { font-size: 12px; color: var(--text-dim); text-transform: uppercase; margin-left: auto; opacity: 0.7; }

.copied-tooltip {
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: #0a0714;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.copied-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Glass card (shared page container) ────────────────────────────────── */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.6s ease-out;
}

.section-title { text-align: center; font-size: 30px; margin-bottom: 28px; font-weight: 700; letter-spacing: 0.2px; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.28);
    padding: 5px;
    border-radius: 15px;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 10px 25px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; transition: var(--transition); }
.tab-btn:hover { color: #fff; }
.tab-btn.active { background: rgba(155,109,255,0.14); color: var(--primary-light); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.tab-content { display: none; animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.tab-content.active { display: block; }

.content-block h3 { color: var(--primary-light); font-size: 23px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.content-block p { margin-bottom: 15px; color: #ccc; }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-top: 20px; }
.feature-list li { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 10px; border-left: 3px solid var(--primary); font-size: 14px; color: #ddd; transition: var(--transition-fast); }
.feature-list li:hover { background: rgba(255,255,255,0.05); border-left-color: var(--primary-light); }

ol.steps-list { counter-reset: step; list-style: none; margin-top: 20px; }
ol.steps-list li { position: relative; padding-left: 45px; margin-bottom: 20px; }
ol.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 30px;
    background: var(--primary);
    color: #0a0714;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
}

.social-grid { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.social-card { background: rgba(255,255,255,0.05); padding: 12px 24px; border-radius: 10px; text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 500; transition: var(--transition); border: 1px solid transparent; }
.social-card:hover { border-color: var(--primary); background: rgba(155, 109, 255, 0.1); color: var(--primary-light); }

/* ── Legacy horizontal gallery strip (kept for compatibility) ───────────── */

.gallery-wrapper { position: relative; margin-top: 20px; }
.gallery-container { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 20px; padding: 10px 0 20px 0; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 20px; }
.gallery-container::-webkit-scrollbar { display: none; }

.gallery-item { flex: 0 0 auto; width: 350px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.3s ease; position: relative; scroll-snap-align: center; }
.gallery-item:hover { transform: scale(1.02); border-color: var(--primary); }
.gallery-item video, .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.7); border: 1px solid var(--primary); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.2s; opacity: 0.7; }
.scroll-btn:hover { background: var(--primary); color: #0a0714; opacity: 1; box-shadow: 0 0 15px var(--primary-glow); }
.scroll-left { left: -20px; }
.scroll-right { right: -20px; }

@media (max-width: 800px) {
    .scroll-btn { display: none; }
    .gallery-item { width: 280px; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq-container { display: flex; flex-direction: column; gap: 14px; }

.faq-item { background: var(--glass-interactive); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary-glow); }

.faq-item summary { padding: 20px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; transition: transform 0.3s ease; color: var(--primary); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item p { padding: 0 20px 20px 20px; margin: 0; color: #ccc; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 18px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { text-align: center; padding: 40px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13.5px; color: var(--text-dim); }
footer .minecraft-heart { color: var(--accent-pink); animation: beat 1.5s infinite; }

/* ── Animations ─────────────────────────────────────────────────────────── */

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(155, 109, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(155, 109, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 109, 255, 0); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero h2 { font-size: 34px; }
    .announcement-card { padding: 28px 24px; }
    .link-buttons { flex-direction: column; width: 100%; }
    .link-btn { width: 100%; justify-content: center; }
    .server-ip { padding: 15px 20px; width: 100%; flex-direction: column; text-align: center; }
    .ip-content { flex-direction: column; gap: 5px; }
    .ip-text { font-size: 18px; word-break: break-all; }
    .copy-hint { display: none; }
    .tabs-header { width: 100%; transform: none; left: 0; display: flex; flex-direction: column; background: transparent; }
    .tab-btn { width: 100%; background: rgba(0,0,0,0.3); }
    .tab-btn.active { background: var(--primary); color: #0a0714; }
    .feature-list { grid-template-columns: 1fr; }
    .glass-card { padding: 28px 22px; }
}
