/* ═══════════════════════════════════════════════════════════
   JOKER V2 - Dark Gaming Theme
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Variables ──────────────────────────────────────────── */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #232333;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555568;
    --accent: #7c5cfc;
    --accent-light: #9b7eff;
    --accent-glow: rgba(124, 92, 252, 0.3);
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.2);
    --green: #00e676;
    --red: #ff4060;
    --gold: #ffd740;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; }

/* ─── Container ──────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: rgba(17, 17, 24, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* User dropdown */
.nav-user {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-user-btn svg {
    width: 18px;
    height: 18px;
}

.nav-user-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.nav-user.open .nav-user-btn {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-user.open .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-header {
    padding: 8px 12px;
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.nav-user-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}

.nav-user-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-user-item:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-user-admin {
    color: var(--gold) !important;
}

.nav-user-admin:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

.nav-user-logout:hover {
    color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Discord icon button */
.nav-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5865F2;
    color: #fff !important;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-discord-btn svg {
    width: 20px;
    height: 20px;
}

.nav-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    order: -1;
}

/* ─── Download Page Redesign ─────────────────────────────── */

/* Hero */
.dl-hero {
    text-align: center;
    padding: 40px 20px 48px;
}

.dl-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.dl-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-hero p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.dl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(124, 92, 252, 0.25);
    margin-bottom: 20px;
}

.dl-hero-badge svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Download cards */
.dl-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto 48px;
}

.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 28px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}

.dl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dl-card-primary {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.dl-card-primary:hover {
    border-color: var(--accent-light);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.dl-card-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
    padding: 3px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dl-card-icon {
    margin-bottom: 20px;
    color: var(--accent-light);
}

.dl-card-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dl-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dl-card-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.dl-spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    justify-content: center;
}

.dl-spec svg {
    color: var(--green);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dl-spec.text-muted svg {
    color: var(--text-muted);
}

/* Guide de connexion */
.dl-guide {
    max-width: 700px;
    margin: 0 auto 48px;
}

.dl-guide-header {
    margin-bottom: 32px;
}

.dl-guide-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dl-guide-header h2 svg {
    color: var(--accent-light);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dl-guide-header p {
    font-size: 0.9rem;
    padding-left: 34px;
}

/* Steps timeline */
.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dl-step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}

.dl-step:last-child { padding-bottom: 0; }

.dl-step-line {
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.dl-step:last-child .dl-step-line { display: none; }

.dl-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dl-step:last-child .dl-step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.dl-step:last-child .dl-step-number svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-step-content {
    flex: 1;
    padding-top: 4px;
}

.dl-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.dl-step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.dl-step-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--cyan);
}

/* FAQ */
.dl-faq {
    margin-bottom: 20px;
}

.dl-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dl-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.25s;
}

.dl-faq-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dl-faq-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.dl-faq-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dl-faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.dl-faq-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dl-faq-item code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--cyan);
}

/* Download responsive */
@media (max-width: 768px) {
    .dl-cards { grid-template-columns: 1fr; }
    .dl-faq-grid { grid-template-columns: 1fr; }
    .dl-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .dl-hero h1 { font-size: 1.7rem; }
    .dl-card { padding: 28px 20px 24px; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 75vh;
    min-height: 480px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.7) 100%),
        linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(232, 232, 240, 0.85);
    max-width: 500px;
    margin: 0 auto 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ─── Page Video Background ──────────────────────────────── */
.page-video-wrapper {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
}

.page-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75vh;
    max-height: 700px;
    min-height: 480px;
    z-index: 0;
    overflow: hidden;
}

.page-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.page-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.7) 100%),
        linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bg-primary) 100%);
}

.page-content {
    position: relative;
    z-index: 2;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6040e0);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

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

/* ─── Homepage Redesign ──────────────────────────────────── */

/* Stats bar */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
}

.home-stat:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.home-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.home-stat-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.home-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Features grid */
.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.25s;
}

.home-feature:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.home-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.home-feature-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-feature p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* News + Top grid */
.home-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-news-item {
    padding: 24px;
}

.home-news-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.home-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.home-news-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-news-type svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-news-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-news-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.home-news-author {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Top players list */
.home-top-list {
    display: flex;
    flex-direction: column;
}

.home-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.home-top-row:last-child { border-bottom: none; }
.home-top-row:hover { background: var(--bg-card-hover); margin: 0 -16px; padding: 14px 16px; border-radius: var(--radius-sm); }

.home-top-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.home-rank-1 .home-top-rank { background: rgba(255, 215, 64, 0.15); color: var(--gold); }
.home-rank-2 .home-top-rank { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.home-rank-3 .home-top-rank { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.home-top-info { flex: 1; }

.home-top-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.home-top-class {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-top-level {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1rem;
}

/* CTA banner */
.home-cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.home-cta-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Homepage responsive */
@media (max-width: 992px) {
    .home-features { grid-template-columns: repeat(2, 1fr); }
    .home-grid { grid-template-columns: 1fr; }
    .home-grid .section-title { text-align: center !important; }
}

@media (max-width: 768px) {
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .home-cta { flex-direction: column; text-align: center; padding: 36px 24px; }
    .home-cta-actions { flex-direction: column; width: 100%; }
    .home-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .home-stats { grid-template-columns: 1fr; }
    .home-features { grid-template-columns: 1fr; }
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.25s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Status Badge ───────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-badge.online {
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-badge.offline {
    background: rgba(255, 64, 96, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 64, 96, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.online .status-dot { background: var(--green); }
.offline .status-dot { background: var(--red); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Section ────────────────────────────────────────────── */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.form-card {
    width: 100%;
    max-width: 440px;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Alert ──────────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-error {
    background: rgba(255, 64, 96, 0.1);
    border-color: rgba(255, 64, 96, 0.3);
    color: var(--red);
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--green);
}

/* ─── Table ──────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(35, 35, 51, 0.5);
    font-size: 0.9rem;
}

tbody tr {
    transition: background 0.15s;
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

.rank-number {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.rank-number.top-1 { color: var(--gold); font-size: 1.1rem; }
.rank-number.top-2 { color: #c0c0c0; font-size: 1rem; }
.rank-number.top-3 { color: #cd7f32; font-size: 1rem; }

.player-class {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.level-badge {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-light);
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    text-decoration: none;
}

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

.tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ─── Dashboard ──────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-full {
    grid-column: 1 / -1;
}

.account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Character cards */
.char-list {
    display: grid;
    gap: 12px;
}

.char-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.char-card:hover {
    border-color: var(--accent);
}

.char-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}

.char-details { flex: 1; }

.char-name {
    font-weight: 600;
    font-size: 1rem;
}

.char-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.char-level {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1.1rem;
}

/* ─── Dashboard Redesign ─────────────────────────────────── */

/* Welcome header */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.dash-welcome-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-welcome h2 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.dash-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 64, 0.3);
}

/* Stats row */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
}

.dash-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.dash-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.dash-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    white-space: nowrap;
    font-family: inherit;
}

.dash-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }

.dash-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.dash-tab.active svg { stroke: #fff; }

.dash-tab svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-tab-badge {
    background: var(--bg-secondary);
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-tab.active .dash-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Panels */
.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

/* Quick actions grid */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.dash-action-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.dash-action-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Game preview (overview tab) */
.dash-game-preview {
    display: grid;
    gap: 2px;
}

.dash-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.dash-game-row:last-child { border-bottom: none; }

.dash-game-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-game-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    flex-shrink: 0;
}

.dash-game-avatar.online { border-color: var(--green); }

/* Game account cards (games tab) */
.dash-game-card {
    margin-bottom: 20px;
}

.dash-game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dash-game-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-game-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-light);
    flex-shrink: 0;
    text-transform: uppercase;
}

.dash-game-avatar-lg.online { border-color: var(--green); }

.dash-game-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.dash-game-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dash-game-points {
    text-align: right;
    line-height: 1.2;
}

/* Game actions row */
.dash-game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.dash-game-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-action-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-action-label svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dash-inline-form .form-control {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}

.dash-inline-form .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Characters section */
.dash-chars-section {
    padding-top: 16px;
}

.dash-chars-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dash-chars-title svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Form grid */
.dash-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dash-form-grid .form-group {
    margin-bottom: 0;
}

/* Empty state */
.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.dash-empty p {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Info list (settings tab) */
.dash-info-list {
    display: grid;
    gap: 0;
}

.dash-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.dash-info-row:last-child { border-bottom: none; }

.dash-info-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dash-info-val {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-tabs { flex-wrap: wrap; }
    .dash-game-actions { grid-template-columns: 1fr; }
    .dash-form-grid { grid-template-columns: 1fr; }
    .dash-quick-actions { grid-template-columns: 1fr; }
    .dash-game-head { flex-direction: column; align-items: flex-start; }
    .dash-game-points { text-align: left; }
    .dash-welcome { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-stat-card { padding: 16px; }
    .dash-inline-form { flex-direction: column; }
    .dash-inline-form .btn { width: 100%; }
}

/* ─── Vote Page Redesign ─────────────────────────────────── */

/* Hero */
.vote-hero {
    text-align: center;
    padding: 24px 20px 0;
    margin-bottom: 32px;
}

.vote-hero-icon {
    color: var(--gold);
    margin-bottom: 16px;
}

.vote-hero-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.vote-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vote-hero p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
}

.vote-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 64, 0.25);
}

.vote-reward-badge svg {
    flex-shrink: 0;
}

/* Stats bar */
.vote-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.vote-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s;
}

.vote-stat:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.vote-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.vote-stat-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.vote-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Grid layout */
.vote-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Section titles */
.vote-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.vote-section-title svg {
    color: var(--accent-light);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Login prompt */
.vote-login-prompt {
    text-align: center;
    padding: 24px 0 8px;
}

.vote-login-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.vote-login-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-login-prompt h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vote-login-prompt p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.vote-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Steps */
.vote-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vote-step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.vote-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vote-step:first-child {
    padding-top: 0;
}

.vote-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.vote-step-num-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.vote-step-content {
    flex: 1;
}

.vote-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.vote-step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.vote-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Cooldown timer */
.vote-cooldown {
    text-align: center;
    padding: 16px 0 8px;
}

.vote-timer-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.vote-timer-ring svg {
    display: block;
}

.vote-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vote-timer-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1.2;
}

.vote-timer-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.vote-cooldown-msg {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Top voters */
.vote-top-list {
    display: flex;
    flex-direction: column;
}

.vote-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.vote-top-row:last-child { border-bottom: none; }

.vote-top-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.vote-rank-1 .vote-top-rank { background: rgba(255, 215, 64, 0.15); color: var(--gold); }
.vote-rank-2 .vote-top-rank { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.vote-rank-3 .vote-top-rank { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }

.vote-top-info { flex: 1; }

.vote-top-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.vote-top-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
}

.vote-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: all 0.2s;
}

.vote-see-all:hover {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
}

.vote-see-all svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Empty state */
.vote-empty {
    text-align: center;
    padding: 24px 0;
}

.vote-empty p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Info card */
.vote-info-card {
    margin-top: 20px;
}

.vote-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.vote-info-title svg {
    color: var(--cyan);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vote-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vote-info-list li svg {
    color: var(--green);
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Vote responsive */
@media (max-width: 992px) {
    .vote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .vote-stats { grid-template-columns: repeat(2, 1fr); }
    .vote-hero h1 { font-size: 1.8rem; }
    .vote-login-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .vote-stats { grid-template-columns: 1fr 1fr; }
    .vote-hero h1 { font-size: 1.5rem; }
}

/* ─── News ───────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    padding: 24px;
    transition: all 0.25s;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.news-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Shop Page Redesign ─────────────────────────────────── */

/* Hero */
.shop-hero {
    text-align: center;
    padding: 24px 20px 0;
    margin-bottom: 32px;
}

.shop-hero-icon {
    color: var(--gold);
    margin-bottom: 16px;
}

.shop-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.shop-hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero p {
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Balance bar */
.shop-balance-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 32px;
}

.shop-balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-balance-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-balance-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-balance-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.shop-balance-value small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.shop-balance-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

.shop-balance-vote-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Offers grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.shop-card-popular {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 64, 0.08);
}

.shop-card-popular:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(255, 215, 64, 0.15);
}

.shop-card-best {
    border-color: var(--green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.shop-card-best:hover {
    border-color: var(--green);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

/* Badge */
.shop-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.shop-badge-popular {
    background: var(--gold);
    color: #000;
}

.shop-badge-best {
    background: var(--green);
    color: #fff;
}

/* Card icon */
.shop-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.shop-card-popular .shop-card-icon {
    background: rgba(255, 215, 64, 0.1);
    color: var(--gold);
}

.shop-card-best .shop-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.shop-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.shop-card-points {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.shop-card-popular .shop-card-points {
    background: linear-gradient(135deg, var(--gold), #f0a800);
    -webkit-background-clip: text;
    background-clip: text;
}

.shop-card-best .shop-card-points {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.shop-card-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.shop-card-ratio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.shop-card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.shop-card-price small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.shop-methods {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.shop-methods .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-tebex {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    font-weight: 600;
}

.btn-tebex:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.shop-tebex-form {
    width: 100%;
}

.btn-dedipass {
    background: linear-gradient(135deg, #00c853, #009624);
    color: #fff;
}

.btn-dedipass:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

/* Trust section */
.shop-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shop-trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.shop-trust-item:hover {
    border-color: var(--accent);
}

.shop-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-trust-item strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.shop-trust-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.shop-trust-item a {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Modal */
.shop-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
}

.shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.shop-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.shop-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.shop-modal-close:hover {
    color: var(--text-primary);
}

.shop-modal-body {
    padding: 20px;
}

.shop-modal-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.shop-modal-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Shop responsive */
@media (max-width: 992px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-trust { grid-template-columns: 1fr; }
    .shop-balance-bar { flex-wrap: wrap; gap: 16px; }
    .shop-balance-sep { display: none; }
}

@media (max-width: 768px) {
    .shop-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-card-points { font-size: 2.2rem; }
    .shop-balance-value { font-size: 1.1rem; }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer a { color: var(--text-secondary); }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar-toggle { display: block; }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        z-index: 150;
    }

    .navbar-nav.open { display: flex; }

    .navbar-right { gap: 6px; }

    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 50px 20px 40px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .dashboard-grid { grid-template-columns: 1fr; }

    .account-info-grid { grid-template-columns: 1fr; }

    .tabs { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

/* ─── Password Toggle & Strength ─────────────────────────── */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--accent-light);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-strength {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* ─── Fade-in Animations ─────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── 404 Page ────────────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ─── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
