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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-nav: rgba(10, 10, 15, 0.9);
    --border: #1e1e2a;
    --gold: #d4a837;
    --gold-hover: #e6b94a;
    --gold-dim: #8a7a3a;
    --text: #e8e8f0;
    --text-dim: #6b6b80;
    --text-muted: #4a4a5a;
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 48px;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
    background: url('../images/roblox games.png') center/cover no-repeat;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.9) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 24px;
    border-radius: 12px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: #0a0a0f;
}
.btn-primary:hover {
    background: var(--gold-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discord-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.btn-full {
    width: 100%;
}

#stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-top: 4px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* ── Trades ─────────────────────────────────────── */
#trades {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.trade-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.trade-card:hover {
    border-color: var(--gold-dim);
}

.trade-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.trade-info {
    padding: 20px;
}

.trade-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.trade-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

#rules {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.rule-card:hover {
    border-color: var(--gold-dim);
}

.rule-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.rule-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

#vouch {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg) 0%, #0e0e18 100%);
}

.vouch-container {
    max-width: 540px;
    margin: 0 auto;
}

#vouchForm {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-dim);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.6rem;
    cursor: pointer;
    color: #2a2a3a;
    transition: color 0.15s;
    user-select: none;
}

.star.active {
    color: var(--gold);
}

#vouchMessage {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
}

#staff {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.staff-card:hover {
    border-color: var(--gold-dim);
}

.staff-avatar {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.staff-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.staff-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.staff-name {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 14px;
}

.staff-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-badge.owner {
    background: rgba(212, 168, 55, 0.12);
    color: var(--gold);
    border: 1px solid rgba(212, 168, 55, 0.25);
}
.staff-badge.admin {
    background: rgba(255, 60, 80, 0.1);
    color: #ff3c50;
    border: 1px solid rgba(255, 60, 80, 0.2);
}
.staff-badge.mod {
    background: rgba(60, 160, 255, 0.1);
    color: #3ca0ff;
    border: 1px solid rgba(60, 160, 255, 0.2);
}
.staff-badge.mm {
    background: rgba(60, 220, 140, 0.1);
    color: #3cdc8c;
    border: 1px solid rgba(60, 220, 140, 0.2);
}

/* ── Extension ──────────────────────────────────── */
#extension {
    padding: 80px 24px 0;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.extension-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    margin-bottom: 40px;
}

.extension-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.extension-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.extension-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ext-note {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 12px;
    margin-bottom: 0 !important;
}

footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s;
}

#toast.show {
    transform: translateY(0);
    opacity: 1;
}
#toast.success { background: #1a3a2a; color: #4ae08a; border: 1px solid #2a5a3a; }
#toast.error { background: #3a1a1a; color: #ff5a5a; border: 1px solid #5a2a2a; }

@media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-nav);
        backdrop-filter: blur(12px);
        padding: 16px 20px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    #stats { gap: 32px; }
    .stat-number { font-size: 1.8rem; }
    #vouchForm { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .trades-grid { grid-template-columns: 1fr; }
}
