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

:root {
    --bg-dark: #0A0C12;
    --bg-card: #1A2035;
    --bg-card-hover: #222840;
    --bg-nav: rgba(10, 12, 18, 0.95);
    --primary: #C9A84C;
    --primary-hover: #E8C96A;
    --accent: #5B7A9A;
    --text: #F5F0E8;
    --text-dim: #C8C0B0;
    --border: #2A3550;
    --border-gold: #8A6A2A;
    --success: #6BAF6B;
    --error: #C94C4C;
    --gold: #E8C96A;
    --silver: #A8BDD0;
    --bronze: #A1887F;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; position: relative; z-index: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }

/* NAVBAR */
.navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 80px;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

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

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    flex: 1;
    height: 100%;
    align-items: stretch;
}

.nav-menu li {
    display: flex;
    align-items: stretch;
}

.nav-menu a {
    color: var(--text-dim);
    padding: 0 20px;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-menu a.active {
    color: #fff;
    background: rgba(201, 168, 76, 0.1);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-btn {
    background: var(--primary);
    color: #000;
    padding: 10px 22px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn:hover { background: var(--primary-hover); color: #000; }

.download-float {
    display: none;
}

.nav-btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #000;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
    white-space: nowrap;
    border: 2px solid var(--primary);
    text-decoration: none;
    animation: download-glow 2s ease-in-out infinite;
}

.nav-btn-download:hover {
    background: linear-gradient(135deg, var(--primary-hover), #8A6A2A);
    border-color: var(--primary-hover);
    transform: scale(1.05);
}

@keyframes download-glow {
    0%, 100% { box-shadow: 0 0 6px 0 rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 16px 4px rgba(201, 168, 76, 0.4); }
}

.nav-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-right: none;
    color: var(--text-dim);
    padding: 10px 22px;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Quando logado, botao unico com radius completo */
.nav-actions .nav-btn:first-child:last-child { border-radius: 8px; }

/* HERO */
.hero {
    position: relative;
    padding: 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.75);
    z-index: 0;
    pointer-events: none;
}

/* Global Scene Background */
.global-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-sky {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, #0a1628 0%, #050c1a 40%, #020509 100%);
}

.bg-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 60%, rgba(10,30,70,0.4) 0%, transparent 70%),
        radial-gradient(ellipse 50% 30% at 70% 70%, rgba(5,15,40,0.5) 0%, transparent 70%);
}

.scene-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scene-corner {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 3;
    pointer-events: none;
}
.scene-corner-tl { top: 15px; left: 15px; }
.scene-corner-tr { top: 15px; right: 15px; transform: scaleX(-1); }
.scene-corner-bl { bottom: 15px; left: 15px; transform: scaleY(-1); }
.scene-corner-br { bottom: 15px; right: 15px; transform: scale(-1); }

.scene-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.scene-particle {
    position: absolute;
    border-radius: 50%;
    animation: sceneRise linear infinite;
}

@keyframes sceneRise {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    10% { opacity: 0.8; }
    90% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-500px) scale(1.5); }
}

.scene-ground-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(180,140,30,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 40px 40px;
}

.hero-art {
    flex: 0 0 auto;
}

.hero-logo-video {
    max-width: 380px;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-breadcrumb {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero h1 span { color: var(--primary); }

.hero-desc {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-sm { padding: 8px 20px; font-size: 13px; }

/* Hero info bar */
.hero-info-bar {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.hero-info-card {
    flex: 1;
    background: rgba(26, 32, 53, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s;
}

.hero-info-card:hover { border-color: var(--border-gold); }
.hero-info-card:first-child { border-radius: 10px 0 0 10px; }
.hero-info-card:last-child { border-radius: 0 10px 10px 0; }

.info-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-clan-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid var(--border-gold);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

.info-svg-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
    opacity: 0.6;
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-card-text strong {
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.info-clan-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.info-online { color: #6BAF6B; }
.info-offline { color: var(--error); }

.status-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.status-on {
    background: radial-gradient(circle, #6BAF6B 40%, transparent 70%);
    box-shadow: 0 0 12px #6BAF6B, 0 0 24px rgba(107, 175, 107, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-off {
    background: radial-gradient(circle, var(--error) 40%, transparent 70%);
    box-shadow: 0 0 8px var(--error);
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 12px #6BAF6B, 0 0 24px rgba(107, 175, 107, 0.3); }
    50% { box-shadow: 0 0 18px #6BAF6B, 0 0 36px rgba(107, 175, 107, 0.4); }
}

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

/* FLOAT BUTTONS */
.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.donate-float {
    background: transparent;
    box-shadow: none;
    width: 56px;
    height: 56px;
}

.donate-float:hover {
    box-shadow: none;
}

.donate-float img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(201, 168, 76, 0.5));
    transition: filter 0.2s;
}

.donate-float:hover img {
    filter: drop-shadow(0 4px 12px rgba(201, 168, 76, 0.8));
}

.discord-float {
    background: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.discord-float:hover {
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.discord-float img {
    width: 24px;
    height: 24px;
    filter: brightness(10);
}

/* INFO + PATCHNOTES BG */
.city-bg-wrap, .hero {
    background: url('/images/city-bg.png') center center / cover no-repeat fixed;
}

.city-bg-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.82);
    pointer-events: none;
    z-index: 0;
}

.city-bg-wrap > section {
    position: relative;
    z-index: 1;
}

/* INFO SECTION HOME */
.info-section-home {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.info-block h2 { font-size: 22px; margin-bottom: 4px; }
.info-subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.info-columns h4 {
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.info-columns ul {
    list-style: none;
    padding: 0;
}

.info-columns li {
    color: var(--text-dim);
    font-size: 13px;
    padding: 4px 0;
    padding-left: 14px;
    position: relative;
}

.info-columns li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.info-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-link {
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: underline;
}

.info-link:hover { color: var(--primary); }

/* GAME CHAT */
.game-chat {
    background: rgba(5, 8, 14, 0.92);
    border: 1px solid rgba(42, 53, 80, 0.6);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
}

.game-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: rgba(15, 18, 28, 0.95);
    border-bottom: 1px solid rgba(42, 53, 80, 0.4);
}

.game-chat-tabs {
    display: flex;
}

.game-chat-tab {
    padding: 8px 16px;
    font-size: 12px;
    color: #556;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.game-chat-tab:hover {
    color: #889;
}

.game-chat-tab.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
    border-bottom: 2px solid var(--gold);
}

.game-chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 12px;
    font-size: 10px;
    color: #4a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-chat-dot {
    width: 6px;
    height: 6px;
    background: #4a6;
    border-radius: 50%;
    animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #4a6; }
    50% { opacity: 0.4; box-shadow: none; }
}

.game-chat-body {
    height: 280px;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-chat-body::-webkit-scrollbar { width: 3px; }
.game-chat-body::-webkit-scrollbar-track { background: transparent; }
.game-chat-body::-webkit-scrollbar-thumb { background: rgba(42, 53, 80, 0.5); border-radius: 2px; }

.game-chat-footer {
    padding: 6px 10px;
    border-top: 1px solid rgba(42, 53, 80, 0.4);
    font-size: 10px;
    color: #334;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-align: center;
}

.game-chat-footer strong { color: #556; }

.chat-msg {
    font-size: 12px;
    color: rgba(180, 175, 160, 0.85);
    line-height: 1.5;
    word-break: break-word;
    padding: 1px 0;
}

.chat-msg:hover {
    background: rgba(201, 168, 76, 0.04);
}

.chat-time {
    color: rgba(80, 85, 100, 0.7);
    font-size: 10px;
    margin-right: 4px;
}

.chat-class-icon {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 2px;
    opacity: 0.85;
}

.chat-name {
    color: #e8c96a;
    font-weight: 400;
}

.chat-level {
    color: rgba(90, 100, 120, 0.8);
    font-size: 10px;
    margin-right: 4px;
}

.chat-text {
    color: rgba(200, 192, 176, 0.9);
}

.chat-empty {
    color: rgba(80, 85, 100, 0.5);
    font-size: 12px;
    text-align: center;
    padding: 60px 0;
}

.drop-action {
    color: rgba(100, 110, 130, 0.7);
    font-size: 11px;
}

.drop-item {
    color: #5b9bd5;
    font-weight: 600;
}

.info-block-dark {
    background: rgba(10, 12, 18, 0.8);
}

.events-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.event-link {
    display: block;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.event-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(201, 168, 76, 0.12);
}

/* TOP 1 CARDS */
.top1-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.top1-card {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s;
}

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

.top1-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.top1-badge-pvp { color: var(--error); }
.top1-badge-sod { color: var(--accent); }

.top1-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top1-class-icon {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.top1-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

.top1-detail {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 2px;
}

.top1-clan {
    display: block;
    font-size: 12px;
    color: var(--accent);
    margin-top: 2px;
}

.top1-empty {
    color: var(--text-dim);
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}

/* PATCH NOTES HOME */
.patchnotes-home {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.patchnotes-home h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

/* RANKINGS HOME */
.rankings-home {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.rankings-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.7);
    z-index: 0;
    pointer-events: none;
}

.rankings-home > .scene-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.rankings-home > .container {
    position: relative;
    z-index: 2;
}

.rankings-home h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 4px;
}

.rankings-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.rank-tab {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.rank-tab:hover { border-color: var(--primary); color: var(--primary); }

.rank-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.ranking-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ranking-table-wrap .ranking-table { margin-top: 0; }

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; padding: 40px 20px 20px; }
    .hero-text { text-align: center; }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .hero-info-bar { flex-direction: column; padding: 0 20px 20px; }
    .hero-info-card { border-radius: 0 !important; }
    .hero-info-card:first-child { border-radius: 8px 8px 0 0 !important; }
    .hero-info-card:last-child { border-radius: 0 0 8px 8px !important; }
    .discord-inner { flex-direction: column; gap: 16px; text-align: center; }
    .discord-text { flex-direction: column; }
    .info-grid { grid-template-columns: 1fr; }
    .info-columns { grid-template-columns: 1fr; }
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-hover); color: #000; }
.btn-secondary { background: rgba(26, 32, 53, 0.8); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }
.btn-link { color: var(--primary); font-size: 14px; font-weight: 600; }

/* PATCH NOTES */
.patch-notes-section { padding: 60px 20px 0; }
.patch-notes-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.patch-notes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.patch-note-card {
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.patch-note-card:hover { border-color: var(--primary); }

.patch-note-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.patch-version {
    background: rgba(201, 168, 76, 0.2);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.patch-tag-new {
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.patch-date {
    color: var(--text-dim);
    font-size: 13px;
}

.patch-note-card h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.patch-note-content {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.empty-text { color: var(--text-dim); text-align: center; }

/* PATCH NOTES CAROUSEL */
.patch-notes-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.patch-notes-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 0;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 12, 18, 0.8);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: rgba(10, 12, 18, 0.95); border-color: var(--primary); }
.carousel-prev { left: -50px; }
.carousel-next { right: -50px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active { background: var(--primary); }

@media (max-width: 920px) {
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
}

.clan-icon { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* TABLES */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.ranking-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    font-size: 14px;
}

.ranking-table tbody tr:hover { background: var(--bg-card-hover); }
.ranking-table.full { margin-top: 20px; }

.rank-num { font-weight: 700; color: var(--text-dim); width: 40px; }
.class-icon { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; image-rendering: pixelated; }
.name { font-weight: 600; }
.empty { text-align: center; color: var(--text-dim); padding: 30px !important; }

.top-1 .rank-num { color: var(--gold); }
.top-1 .name { color: var(--gold); }
.top-2 .rank-num { color: var(--silver); }
.top-2 .name { color: var(--silver); }
.top-3 .rank-num { color: var(--bronze); }
.top-3 .name { color: var(--bronze); }

/* PAGE HEADER */
.page-header {
    background: url('/images/city-bg.png') center center / cover no-repeat fixed;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.75);
    pointer-events: none;
}

.page-header h1 { font-size: 32px; position: relative; z-index: 1; }

/* TABS & FILTERS */
.tab-bar {
    display: flex;
    gap: 4px;
    margin-top: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab {
    padding: 12px 24px;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active, .tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    color: #000;
    background: var(--primary);
    border-color: var(--primary);
}

/* FORMS */
.form-section { padding-top: 40px; }

.form-box {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.form-box-wide { max-width: 600px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

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

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

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

.form-group input:focus, .form-group select:focus { border-color: var(--primary); }

.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--primary); }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error { background: rgba(239, 68, 68, 0.15); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* CLAN DETAIL */
.clan-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.info-label { display: block; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.info-value { display: block; font-size: 22px; font-weight: 700; color: var(--primary); }

.clan-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.clan-note p { color: var(--text-dim); line-height: 1.6; }

.info-section { margin: 30px 0; }
.info-section h2 { color: var(--primary); margin-bottom: 16px; }
.info-section p { color: var(--text-dim); line-height: 1.6; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }

/* FOOTER */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 { color: var(--primary); margin-bottom: 12px; }
.footer-col h4 { color: var(--text); margin-bottom: 12px; font-size: 14px; }
.footer-col p { color: var(--text-dim); font-size: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p { color: var(--text-dim); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .features .container, .features-info, .ranking-grid, .clan-info-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .nav-menu { display: none; }
    .nav-actions { display: none; }
    .nav-container { justify-content: center; }
    .filter-bar { justify-content: center; }
}
