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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

:root {
    --primary: #ff3b30;
    --primary-dark: #cf281f;
    --secondary: #1b1f2a;
    --accent: #ff9f0a;
    --glow: rgba(255, 78, 66, 0.4);
    --light: #f8fafc;
    --dark: #0e1016;
    --border-color: #d7dde7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f5f7fb;
    --text: #111827;
    --muted: #5b667a;
    --card-bg: #ffffff;
    --nav-bg: #10131b;
    --nav-text: #f8fafc;
    --status-height: 64px;
}

body[data-theme="light"] {
    --bg: #f5f7fb;
    --text: #111827;
    --muted: #5b667a;
    --card-bg: #ffffff;
    --nav-bg: #10131b;
    --nav-text: #f8fafc;
}

body[data-theme="dark"] {
    --bg: #090d16;
    --text: #f1f5f9;
    --muted: #9aa8bf;
    --card-bg: #121a2a;
    --nav-bg: #02040b;
    --nav-text: #f1f5f9;
    --border-color: #273246;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 76, 64, 0.2), transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(255, 159, 10, 0.14), transparent 38%),
        radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.07), transparent 46%),
        var(--bg);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
    background-size: 4px 4px;
    z-index: -1;
}

/* Keep text readable on inline white cards used across static pages */
[style*="background: white"],
[style*="background:white"] {
    color: #111827;
}

[style*="background: white"] h1,
[style*="background: white"] h2,
[style*="background: white"] h3,
[style*="background: white"] h4,
[style*="background: white"] p,
[style*="background: white"] li,
[style*="background:white"] h1,
[style*="background:white"] h2,
[style*="background:white"] h3,
[style*="background:white"] h4,
[style*="background:white"] p,
[style*="background:white"] li {
    color: #111827;
}

/* Convert hardcoded light inline backgrounds to dark cards when dark mode is active */
body[data-theme="dark"] [style*="background: white"],
body[data-theme="dark"] [style*="background:white"],
body[data-theme="dark"] [style*="background: #f3f4f6"],
body[data-theme="dark"] [style*="background:#f3f4f6"],
body[data-theme="dark"] [style*="background: #fef2f2"],
body[data-theme="dark"] [style*="background:#fef2f2"],
body[data-theme="dark"] [style*="background: #fee2e2"],
body[data-theme="dark"] [style*="background:#fee2e2"],
body[data-theme="dark"] [style*="background: #d1fae5"],
body[data-theme="dark"] [style*="background:#d1fae5"],
body[data-theme="dark"] [style*="background: #dcfce7"],
body[data-theme="dark"] [style*="background:#dcfce7"],
body[data-theme="dark"] [style*="background: #dbeafe"],
body[data-theme="dark"] [style*="background:#dbeafe"] {
    background: #121a2a !important;
    color: var(--text) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix hardcoded dark red text becoming unreadable on dark cards */
body[data-theme="dark"] [style*="color: #991b1b"],
body[data-theme="dark"] [style*="color:#991b1b"],
body[data-theme="dark"] [style*="color: var(--dark)"],
body[data-theme="dark"] [style*="color:var(--dark)"] {
    color: #fecaca !important;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

/* Status Bar */
.status-bar {
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 159, 10, 0.2), transparent 30%),
        linear-gradient(115deg, rgba(255, 59, 48, 0.22), rgba(9, 13, 22, 0.9) 42%, rgba(10, 13, 20, 0.98));
    padding: 10px 20px;
    min-height: var(--status-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    animation: slideDown 0.5s ease;
    position: sticky;
    top: 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.status-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    animation: sweep 10s linear infinite;
    pointer-events: none;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.status-indicator.unknown {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(255, 59, 48, 0.85);
    transform: rotate(20deg);
}

/* Navbar */
.navbar {
    background: rgba(6, 9, 16, 0.84);
    color: var(--nav-text);
    padding: 1rem 0;
    position: sticky;
    top: var(--status-height);
    z-index: 999;
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    justify-content: flex-start;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.logo-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-link {
    color: var(--nav-text);
    transition: all 0.3s;
    font-weight: 600;
    margin-left: auto;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
}

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

/* Enchants wiki-like layout */
.enchants-shell {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
}

.enchants-sidebar {
    position: sticky;
    top: calc(var(--status-height) + 82px);
    align-self: start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}

.enchants-sidebar h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1rem;
}

.enchants-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
}

.enchants-sidebar a:hover {
    background: rgba(255, 59, 48, 0.12);
}

.enchants-main {
    display: grid;
    gap: 18px;
}

.enchants-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow-x: auto;
}

.enchants-card header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.enchants-card h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.enchants-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.enchants-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.enchants-table th,
.enchants-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text);
    text-align: left;
    vertical-align: top;
}

.enchants-table tr:last-child td {
    border-bottom: none;
}

.enchants-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.enchants-table td:first-child {
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.2px;
}

.enchant-name {
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
}

body[data-theme="dark"] .enchants-table td:first-child {
    color: #f4cd4f;
}

body[data-theme="dark"] .enchant-name {
    color: #f4cd4f;
    text-shadow: 0 0 12px rgba(244, 205, 79, 0.28);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.35) 0%, rgba(249, 115, 22, 0) 38%),
        radial-gradient(circle at 85% 15%, rgba(220, 38, 38, 0.38) 0%, rgba(220, 38, 38, 0) 42%),
        radial-gradient(circle at 45% 75%, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0) 45%),
        linear-gradient(135deg, #120606 0%, #2f0c0c 45%, #4a1a0f 100%);
    background-size: 140% 140%;
    animation: gradientShift 20s ease infinite;
    color: white;
    padding: 150px 20px;
    text-align: center;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            115deg,
            rgba(255, 110, 64, 0.04) 0px,
            rgba(255, 110, 64, 0.04) 3px,
            transparent 3px,
            transparent 12px
        );
    opacity: 0.5;
    animation: float 24s infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 10, 10, 0.2) 0%, rgba(20, 10, 10, 0.55) 100%);
    animation: float 28s infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 92%);
    padding: 2.25rem;
    border-radius: 24px;
    background: rgba(15, 10, 10, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 46px var(--glow);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    animation: slideUp 0.8s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideUp 1s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1.2s ease 0.4s forwards;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(120deg, #ff5a4d, #e33c31);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(120deg, #ff6b60, #cf281f);
}

.btn-secondary {
    background: rgba(249, 115, 22, 0.1);
    color: var(--text);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #1a0f0f;
    transform: translateY(-2px);
}

.hero .btn-secondary,
.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1a0f0f;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Status Section */
.status-section {
    padding: 60px 20px;
    background: transparent;
}

.status-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.status-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease backwards;
}

.status-card:nth-child(1) { animation-delay: 0.1s; }
.status-card:nth-child(2) { animation-delay: 0.2s; }
.status-card:nth-child(3) { animation-delay: 0.3s; }
.status-card:nth-child(4) { animation-delay: 0.4s; }

.status-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.22);
}

.status-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.status-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.status-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background: transparent;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 159, 10, 0.25), transparent 30%),
        linear-gradient(135deg, #310a0a 0%, #7a1f19 48%, #b8362c 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

body[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: var(--dark);
    font-weight: 600;
}

.cta-buttons .btn-secondary {
    color: var(--dark);
    border-color: transparent;
}

.cta-buttons .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(8, 10, 16, 0.96);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Enchants responsive tuning */
@media (max-width: 900px) {
    .enchants-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .enchants-sidebar {
        position: static;
        top: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .enchants-sidebar h3 {
        width: 100%;
        margin-bottom: 2px;
    }

    .enchants-sidebar a {
        display: inline-flex;
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 7px 10px;
    }

    .enchants-card header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .enchants-table {
        min-width: 100%;
    }

    .enchants-table thead {
        display: none;
    }

    .enchants-table,
    .enchants-table tbody,
    .enchants-table tr,
    .enchants-table td {
        display: block;
        width: 100%;
    }

    .enchants-table tbody {
        padding: 10px;
    }

    .enchants-table tr {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .enchants-table tr:last-child {
        margin-bottom: 0;
    }

    .enchants-table td {
        margin: 0;
        padding: 9px 12px;
        border-bottom: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: minmax(98px, 40%) 1fr;
        align-items: start;
        gap: 10px;
    }

    .enchants-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
    }

    .enchants-table td:last-child {
        border-bottom: none;
    }

    .enchants-table td[colspan] {
        display: block;
        text-align: center;
    }

    .enchants-table td[colspan]::before {
        content: none;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    :root {
        --status-height: 58px;
    }

    .status-bar {
        position: sticky;
        top: 0;
        padding: 8px 12px;
    }

    .status-info {
        font-size: 0.9rem;
        min-width: 0;
    }

    #server-status-text {
        display: inline-block;
        max-width: 62vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .navbar {
        top: var(--status-height);
    }

    .nav-container {
        position: relative;
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        margin-right: auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .hero {
        padding: 100px 14px;
        min-height: 470px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .container {
        padding: 0 14px;
    }

    .page-section {
        padding: 38px 14px;
    }

    .page-title {
        font-size: 1.9rem;
        margin-bottom: 28px;
    }

    .status-value {
        font-size: 1.65rem;
    }

    .leaderboard-tabs {
        width: 100%;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .leaderboard-tabs .btn {
        width: 100%;
    }

    /* Force large inline auto-fit grids to 1-column on phones. */
    [style*="minmax(300px, 1fr)"],
    [style*="minmax(280px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Generic mobile table cards for static content pages. */
    .page-section table:not(.enchants-table) {
        box-shadow: none;
        background: transparent;
        margin: 14px 0;
    }

    .page-section table:not(.enchants-table) thead {
        display: none;
    }

    .page-section table:not(.enchants-table),
    .page-section table:not(.enchants-table) tbody,
    .page-section table:not(.enchants-table) tr,
    .page-section table:not(.enchants-table) td {
        display: block;
        width: 100%;
    }

    .page-section table:not(.enchants-table) tbody {
        display: grid;
        gap: 10px;
    }

    .page-section table:not(.enchants-table) tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
    }

    .page-section table:not(.enchants-table) td {
        margin: 0;
        padding: 9px 12px;
        border-bottom: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: minmax(92px, 38%) 1fr;
        align-items: start;
        gap: 10px;
    }

    .page-section table:not(.enchants-table) td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
    }

    .page-section table:not(.enchants-table) td:last-child {
        border-bottom: none;
    }

    .page-section table:not(.enchants-table) td[colspan] {
        display: block;
        text-align: center;
    }

    .page-section table:not(.enchants-table) td[colspan]::before {
        content: none;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    #kills-content table,
    #playtime-content table,
    #wealth-content table {
        box-shadow: none;
        background: transparent;
        margin: 14px 0;
    }

    #kills-content thead,
    #playtime-content thead,
    #wealth-content thead {
        display: none;
    }

    #kills-content table,
    #kills-content tbody,
    #kills-content tr,
    #kills-content td,
    #playtime-content table,
    #playtime-content tbody,
    #playtime-content tr,
    #playtime-content td,
    #wealth-content table,
    #wealth-content tbody,
    #wealth-content tr,
    #wealth-content td {
        display: block;
        width: 100%;
    }

    #kills-content tbody,
    #playtime-content tbody,
    #wealth-content tbody {
        display: grid;
        gap: 10px;
    }

    #kills-content tr,
    #playtime-content tr,
    #wealth-content tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
    }

    #kills-content td,
    #playtime-content td,
    #wealth-content td {
        margin: 0;
        padding: 9px 12px;
        border-bottom: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: minmax(88px, 35%) 1fr;
        gap: 10px;
        align-items: start;
    }

    #kills-content td::before,
    #playtime-content td::before,
    #wealth-content td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
    }

    #kills-content td:last-child,
    #playtime-content td:last-child,
    #wealth-content td:last-child {
        border-bottom: none;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

thead {
    background: var(--primary);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text);
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    padding: 60px 20px;
    background: transparent;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

body[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
    border: 1px solid #34d399;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #f87171;
}

.alert-info {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

body[data-theme="dark"] .alert-info {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    border: 1px solid #f87171;
}

/* Fix muted inline text colors becoming too dark in dark mode */
body[data-theme="dark"] [style*="color: #6b7280"],
body[data-theme="dark"] [style*="color:#6b7280"],
body[data-theme="dark"] [style*="color: #4b5563"],
body[data-theme="dark"] [style*="color:#4b5563"] {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] [style*="background: white"],
body[data-theme="dark"] [style*="background:white"] {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* Support page targeted readability fixes for dark mode */
body[data-theme="dark"] #contact-form,
body[data-theme="dark"] #contact-form label,
body[data-theme="dark"] #contact-form p,
body[data-theme="dark"] #contact-form small,
body[data-theme="dark"] #contact-form h2,
body[data-theme="dark"] .page-section h3,
body[data-theme="dark"] .page-section p {
    color: #e5edf8;
}

body[data-theme="dark"] #contact-form input,
body[data-theme="dark"] #contact-form textarea,
body[data-theme="dark"] #contact-form select {
    background: #0f1728;
    border-color: #334155;
    color: #f8fafc;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(140%); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
