@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --panel-top: #16211a;
    --panel-bottom: #0a120d;
    --panel-glass: rgba(22, 33, 26, 0.55);
    --border-light: #b9f2c6;
    --border-dark: #2f8f52;
    --gold-top: #b9f2c6;
    --gold-bottom: #2fa855;
    --text-cream: #dcead9;
    --text-dim: #8fae93;
    --accent-top: #8ef0a8;
    --accent-bottom: #1fae54;
    --caution: #cf7a4e;
    --ok: #8fd19e;
    --bg: #070c08;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
    --shadow-sm: 0 6px 18px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--gold-bottom); color: #0a2410; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-top), var(--gold-bottom)); border-radius: 10px; border: 2px solid var(--bg); }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(ellipse 900px 500px at 20% -10%, rgba(31,174,84,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 900px 500px at 100% 0%, rgba(185,242,198,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at top, #0e1710 0%, var(--bg) 55%);
    background-attachment: fixed;
    color: var(--text-cream);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Cinzel', 'Cambria', serif;
}

a { transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, transform 0.15s ease, border-color 0.2s ease; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ===== Header ===== */
header.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 0 -20px 34px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 12, 8, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(185,242,198,0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand .brand-logo {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.05); }

.navtoggle {
    display: none;
    background: rgba(185,242,198,0.06);
    border: 1px solid rgba(185,242,198,0.3);
    color: var(--text-cream);
    border-radius: 8px;
    font-size: 18px;
    padding: 6px 12px;
    cursor: pointer;
}

nav { display: flex; align-items: center; }
nav a {
    color: var(--text-cream);
    text-decoration: none;
    margin-left: 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0.78;
    position: relative;
    padding-bottom: 4px;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-top), var(--accent-bottom));
    transition: width 0.25s ease;
    border-radius: 2px;
}
nav a:hover { opacity: 1; }
nav a:hover::after { width: 100%; }
nav a.active { opacity: 1; color: var(--gold-top); }
nav a.active::after { width: 100%; }
nav a.nav-cta {
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 8px 16px;
    margin-left: 24px;
    opacity: 1;
    background: linear-gradient(180deg, rgba(185,242,198,0.08), rgba(47,168,85,0.05));
}
nav a.nav-cta::after { display: none; }
nav a.nav-cta:hover { background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom)); color: #0a2e14; border-color: var(--accent-bottom); }

.badge.coins {
    margin-left: 6px;
    background: rgba(31,174,84,0.15);
    color: var(--accent-bottom);
    border: 1px solid rgba(31,174,84,0.25);
}

@media (max-width: 760px) {
    header.top { flex-wrap: wrap; margin: 0 -16px 24px; padding: 14px 16px; }
    .navtoggle { display: inline-block; }
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 16px;
        gap: 4px;
    }
    nav.open { display: flex; animation: slideDown 0.25s ease; }
    nav a { margin: 4px 0; padding: 8px 4px; width: 100%; }
    nav a.nav-cta { width: auto; }
    .wrap { padding: 0 16px 50px; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Footer ===== */
.foot-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.foot-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.foot-links a:hover { color: var(--gold-top); }

footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(185,242,198,0.08);
}

/* ===== Panels ===== */
.panel {
    background: linear-gradient(165deg, var(--panel-top), var(--panel-bottom));
    border: 1px solid rgba(185,242,198,0.14);
    border-top: 1px solid rgba(185,242,198,0.28);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.panel::before {
    content: '';
    position: absolute;
    top: -60%; right: -20%;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(31,174,84,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 19px;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--gold-top), var(--gold-bottom));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.panel.narrow {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent-bottom);
    margin-bottom: 10px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
@media (max-width: 900px) { .grid5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid5 { grid-template-columns: 1fr; } }

.status-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }

.dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}
.dot.online { background: var(--ok); color: var(--ok); animation: pulse 2s ease-in-out infinite; }
.dot.offline { background: var(--caution); color: var(--caution); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.stat-card {
    text-align: center;
    padding: 6px 0;
}
.stat-icon { font-size: 20px; margin-bottom: 6px; opacity: 0.85; }
.stat-num {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    background: linear-gradient(180deg, var(--gold-top), var(--gold-bottom));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ===== Forms ===== */
form .field { margin-bottom: 16px; }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.3px; }

input[type=text], input[type=password], input[type=email], input[type=number], select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(185,242,198,0.22);
    border-radius: var(--radius-sm);
    color: var(--text-cream);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--gold-bottom);
    box-shadow: 0 0 0 3px rgba(47,168,85,0.18);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    background: linear-gradient(180deg, rgba(185,242,198,0.06), rgba(0,0,0,0.2));
    color: var(--gold-top);
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); border-color: var(--gold-bottom); }
.btn:active { transform: translateY(0); }
.btn.accent {
    background: linear-gradient(180deg, var(--accent-top), var(--accent-bottom));
    color: #0a2e14;
    border-color: var(--accent-bottom);
    box-shadow: 0 6px 20px rgba(31,174,84,0.25);
}
.btn.accent:hover { box-shadow: 0 10px 28px rgba(31,174,84,0.4); }
.btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn.full { width: 100%; text-align: center; }
.btn.small { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

/* ===== Messages ===== */
.msg { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.msg.error { background: rgba(207,122,78,0.13); border-color: var(--caution); color: #f0b596; }
.msg.ok { background: rgba(143,209,158,0.1); border-color: var(--ok); color: var(--ok); }

.small { font-size: 12px; color: var(--text-dim); }

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(185,242,198,0.1);
    border: 1px solid rgba(185,242,198,0.15);
    color: var(--text-dim);
    letter-spacing: 0.4px;
}
.badge.discount { background: rgba(207,122,78,0.2); border-color: rgba(207,122,78,0.4); color: #f0b596; }

code {
    background: rgba(0,0,0,0.35);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(185,242,198,0.1);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 64px 20px 50px;
    margin-bottom: 26px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 640px; height: 320px;
    background: radial-gradient(ellipse, rgba(31,174,84,0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(185,242,198,0.2);
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 7px 18px;
    margin-bottom: 22px;
}
.hero h1 {
    margin: 0 0 16px;
}
.hero-logo {
    width: 340px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(31,174,84,0.35));
}
@media (max-width: 600px) { .hero-logo { width: 240px; } }
.hero-tag {
    max-width: 580px;
    margin: 0 auto 30px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.feature { transition: transform 0.25s ease; }
.feature:hover { transform: translateY(-4px); }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, rgba(31,174,84,0.18), rgba(31,174,84,0.04));
    border: 1px solid rgba(31,174,84,0.25);
    color: var(--accent-bottom);
    margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 15px; color: var(--text-cream); font-family: 'Inter', sans-serif; font-weight: 700; }
.feature p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ===== Community / social section ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(185,242,198,0.12);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-cream);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-card:hover { border-color: var(--gold-bottom); transform: translateY(-3px); background: rgba(0,0,0,0.3); }
.social-icon { font-size: 22px; }
.social-name { font-weight: 700; font-size: 13px; }
.social-sub { font-size: 11px; color: var(--text-dim); }

/* ===== Data tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid rgba(185,242,198,0.1); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(185,242,198,0.08); }
.data-table th {
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    background: rgba(0,0,0,0.2);
}
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(185,242,198,0.05); }
.data-table tr.row-current { background: rgba(143,209,158,0.09); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td a { color: var(--gold-top); text-decoration: none; }
.data-table td a:hover { text-decoration: underline; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
}
.rank-badge.gold { background: linear-gradient(160deg, #ffe9ad, #d99b2f); color: #0a2e14; box-shadow: 0 0 12px rgba(255,200,80,0.5); }
.rank-badge.silver { background: linear-gradient(160deg, #eef1f4, #a9b2bb); color: #2a2f33; box-shadow: 0 0 12px rgba(200,210,220,0.35); }
.rank-badge.bronze { background: linear-gradient(160deg, #e5a56d, #a3623a); color: #2c1305; box-shadow: 0 0 12px rgba(200,120,60,0.35); }

/* ===== Shop ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.shop-card {
    background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25));
    border: 1px solid rgba(185,242,198,0.14);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-card:hover { transform: translateY(-4px); border-color: rgba(31,174,84,0.4); box-shadow: var(--shadow-sm); }
.shop-card-top { display: flex; align-items: center; gap: 12px; }
.shop-card-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(185,242,198,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.shop-card-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.shop-card-icon .fallback { font-size: 16px; opacity: 0.4; }
.shop-card-name { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.shop-card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.old-price { text-decoration: line-through; color: var(--text-dim); font-size: 12px; }
.new-price { color: var(--gold-top); font-weight: 800; font-size: 15px; }
.buy-form { display: flex; gap: 6px; margin-top: 4px; align-items: center; }
.buy-form select { flex: 1; min-width: 0; padding: 8px 10px; font-size: 12px; }
.amount-input { width: 58px; padding: 8px; font-size: 12px; }

/* ===== Shop tabs/sidebar (in-game itemshop layout) ===== */
.shop-tabs { display: flex; gap: 10px; margin: 20px 0; }
.shop-tab-btn {
    background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25));
    border: 1px solid rgba(185,242,198,0.14);
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    color: var(--text-cream);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.shop-tab-btn:hover { border-color: rgba(31,174,84,0.4); }
.shop-tab-btn.active { background: linear-gradient(160deg, var(--accent-top), var(--accent-bottom)); color: #0a2410; border-color: transparent; }

.shop-tab-panel { display: flex; flex-direction: column; gap: 20px; }

.shop-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(185,242,198,0.14); box-shadow: var(--shadow-sm); }
.shop-banner img { width: 100%; display: block; }

.shop-layout { display: flex; gap: 20px; align-items: flex-start; }
.shop-sidebar { flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 20px; }
.shop-cat-btn {
    background: linear-gradient(165deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25));
    border: 1px solid rgba(185,242,198,0.14);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-cream);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.shop-cat-btn:hover { border-color: rgba(31,174,84,0.4); }
.shop-cat-btn.active { background: linear-gradient(160deg, var(--accent-top), var(--accent-bottom)); color: #0a2410; border-color: transparent; }
.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.shop-cat-panel h2 { margin-top: 0; }

@media (max-width: 720px) {
    .shop-layout { flex-direction: column; }
    .shop-sidebar { flex-direction: row; flex-wrap: wrap; position: static; flex: none; width: 100%; }
}

/* ===== Partner tiers ===== */
.tier-track { display: flex; flex-direction: column; gap: 10px; }
.tier-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(185,242,198,0.1);
}
.tier-row.tier-current { border-color: var(--ok); background: rgba(143,209,158,0.08); }
.tier-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 13px;
    background: linear-gradient(160deg, var(--gold-top), var(--gold-bottom));
    color: #0a2e14;
    flex-shrink: 0;
}
.tier-info { flex: 1; min-width: 160px; }
.tier-name { font-weight: 700; font-size: 14px; }
.tier-req { font-size: 12px; color: var(--text-dim); }
.tier-reward { font-weight: 700; color: var(--accent-bottom); font-size: 13px; white-space: nowrap; }

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(0,0,0,0.35);
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-bottom), var(--accent-bottom));
    border-radius: 5px;
    transition: width 0.4s ease;
}

/* ===== Admin ===== */
details { margin: 14px 0; }
details summary { cursor: pointer; color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }

/* ===== Empty state ===== */
.empty-state {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-dim);
    font-size: 13px;
}
