:root {
    /* Color Palette - Universal Galaxy Theme */
    --primary-color: #7b2cbf;
    /* Deep Purple */
    --secondary-color: #ffd700;
    /* Gold for Rarity */
    --accent-color: #00b4d8;
    /* Neon Blue */
    --bg-dark: #10002b;
    /* Darkest Purple/Black */
    --bg-card: #240046;
    /* Lighter Purple for Cards */
    --text-main: #e0aaff;
    /* Light Lavender for text */
    --text-white: #ffffff;
    --success-color: #2ecc71;
    /* Green for Active Codes */
    --error-color: #e74c3c;
    /* Red for Expired */

    /* Effects */
    --glass-bg: rgba(36, 0, 70, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px rgba(123, 44, 191, 0.5);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 30%, #3c096c 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #5a189a 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Codes Page Specifics */
.codes-hero {
    background: linear-gradient(rgba(16, 0, 43, 0.9), rgba(16, 0, 43, 0.95)), url('assets/images/backgrounds/hero.webp');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.code-card-premium {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.8), rgba(60, 9, 108, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.code-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.3);
    border-color: var(--secondary-color);
}

.code-card-premium.expired {
    background: rgba(20, 0, 30, 0.6);
    border-color: rgba(255, 50, 50, 0.1);
    opacity: 0.7;
}

.code-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.code-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-string {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-color);
    /* Gold */
    letter-spacing: 1px;
}

/* Text Content Sections */
.content-section {
    margin: 60px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* TLDR Summary Box */
.tldr-box {
    background: linear-gradient(135deg, rgba(50, 20, 80, 0.8), rgba(20, 10, 40, 0.9));
    border: 1px solid var(--secondary-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.tldr-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

.tldr-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.tldr-label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tldr-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

/* Methodology Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.method-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: var(--glass-border);
    transition: transform 0.3s;
}

.method-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 10, 60, 0.8);
}

.method-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.method-card p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Styling */
.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item h4 {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.faq-item p {
    padding: 20px;
    margin: 0;
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .content-section {
        padding: 0 20px;
    }

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

.code-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.badge-req {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-new {
    background: var(--success-color);
    color: #000;
}

.code-reward {
    color: #e0aaff;
    font-size: 0.95rem;
}

.copy-btn-premium {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.copy-btn-premium:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Redeem Guide */
.guide-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.step-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: var(--glass-border);
}

.step-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-content {
    padding: 20px;
}

.step-number {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* Header & Nav */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    /* background: linear-gradient(to right, #e0aaff, #9d4edd); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--neon-glow);
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-white);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(16, 0, 43, 0.85), rgba(16, 0, 43, 0.95)), url('assets/images/backgrounds/hero.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #e0aaff, #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s infinite;
}

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

    100% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-white);
    background: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
}

/* Unit Cards (Visual) */
.unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.unit-card-visual {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.unit-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.unit-img-container {
    width: 100%;
    height: 180px;
    background: #000;
    position: relative;
}

.unit-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.unit-card-visual:hover .unit-img-container img {
    transform: scale(1.1);
}

.unit-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.unit-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 2px #000;
}

.unit-rarity {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Rarity Colors */
.rarity-secret {
    background: linear-gradient(45deg, #000, #ff0000);
    color: #fff;
    border: 1px solid #ff4d4d;
}

.rarity-mythic {
    background: linear-gradient(45deg, #240046, #9d4edd);
    color: #e0aaff;
    border: 1px solid #c77dff;
}

.rarity-legendary {
    background: linear-gradient(45deg, #e67e22, #f1c40f);
    color: #fff;
    text-shadow: 0 1px 2px #000;
}

/* Tier Badges */
.tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.tier-s-plus {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

.tier-s {
    background: #ffa502;
    box-shadow: 0 0 10px #ffa502;
}

/* ... (Keep existing Footer/Nav/Codes styles) ... */

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000; /* Ensure nav is on top */
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .codes-grid {
        grid-template-columns: 1fr;
    }
    
    .code-card-premium {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .code-title-row {
        justify-content: center;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
}

/* Premium Tier List Layout (List View) */
.tier-list-section {
    margin-bottom: 40px;
    position: relative;
}

.tier-header {
    background: linear-gradient(90deg, rgba(36, 0, 70, 0.9), transparent);
    padding: 10px 20px;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.tier-header h2 {
    font-size: 2rem;
    margin: 0;
    line-height: 1;
    color: var(--text-white);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.tier-header .tier-desc {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.unit-list-card {
    display: flex;
    background: linear-gradient(135deg, rgba(20, 0, 40, 0.8), rgba(30, 0, 60, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 140px;
}

.unit-list-card:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(30, 0, 60, 0.9), rgba(40, 0, 80, 0.7));
}

.unit-card-image {
    width: 130px;
    /* Reduced from 200px */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.unit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.unit-list-card:hover .unit-card-image img {
    transform: scale(1.1);
}

.unit-card-content {
    padding: 15px 20px;
    /* Reduced padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    /* Reduced margin */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.unit-title-group h3 {
    font-size: 1.3rem;
    /* Reduced font size */
    color: var(--secondary-color);
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.unit-subtitle {
    color: var(--text-main);
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
}

.unit-rank-badge {
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-s {
    background: linear-gradient(45deg, #d35400, #f1c40f);
    text-shadow: 0 1px 2px #000;
}

.rank-a {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.rank-b {
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.rank-c {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
}

.unit-details-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 15px;
    /* Reduced gap */
    align-items: start;
}

.unit-pros-list {
    list-style: none;
    margin: 0;
}

.unit-pros-list li {
    margin-bottom: 4px;
    /* Reduced spacing */
    padding-left: 15px;
    position: relative;
    color: #ddd;
    line-height: 1.4;
    font-size: 0.9rem;
    /* Slightly smaller text */
}

.unit-pros-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.2;
}

.unit-pros-list li.con::before {
    color: var(--error-color);
}

.unit-best-for {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 12px;
    border-radius: 8px;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.unit-best-for h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #aaa;
    margin: 0;
    margin-right: 5px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mode-tag {
    font-size: 0.75rem;
    background: rgba(123, 44, 191, 0.3);
    color: var(--text-main);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(123, 44, 191, 0.5);
    transition: 0.3s;
}

.mode-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Responsive for List */
@media (max-width: 768px) {
    .unit-list-card {
        flex-direction: row;
        /* Keep image on side even on mobile if possible, or stack if too small */
        flex-wrap: wrap;
        min-height: auto;
    }

    .unit-card-image {
        width: 100px;
        height: auto;
        /* Let it scale */
        min-height: 100px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
    }

    .unit-card-content {
        padding: 10px;
        width: calc(100% - 100px);
        /* Fill remaining space */
    }

    .unit-details-grid {
        display: block;
        /* Stack details on very small screens */
    }

    .tier-header h2 {
        font-size: 1.5rem;
    }

    .unit-best-for {
        margin-top: 10px;
    }
}

/* Wiki Page Styles (Traits, etc.) */
.content-box {
    background: var(--bg-card);
    /* Dark purple background */
    color: var(--text-main);
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
    margin-bottom: 60px;
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    /* Handle wide tables */
}

.content-box h2,
.content-box h3 {
    color: var(--secondary-color) !important;
    /* Gold */
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
    display: block;
    font-weight: bold !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 10px;
}

.content-box strong,
.content-box b,
.content-box span[style*="font-weight:bold"] {
    color: var(--secondary-color) !important;
    font-weight: bold !important;
}

.content-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #ddd;
    font-size: 1.05rem;
}

.content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Table Styling */
.content-box table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-box td,
.content-box th {
    padding: 15px 20px !important;
    text-align: left;
    border: none !important; /* Reset all borders first */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #eee;
    background: transparent !important;
    height: auto !important;
    vertical-align: middle;
}

.content-box td p {
    margin-bottom: 0;
}

.content-box td img {
    margin: 0;
    display: inline-block;
    box-shadow: none;
    border: none;
    vertical-align: middle;
    max-width: 50px; /* Limit icon size if needed */
    height: auto;
}

.content-box tr:last-child td {
    border-bottom: none;
}

.content-box tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Header row styling */
.content-box thead tr {
    background: var(--primary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

.content-box thead tr td,
.content-box thead tr th,
.content-box thead tr span,
.content-box thead tr p {
    color: var(--secondary-color) !important;
    font-weight: 900 !important;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem !important;
}

/* Body row styling */
.content-box tbody tr {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.content-box tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Wiki Page Specifics */
.wiki-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.wiki-sidebar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    border: var(--glass-border);
}

.wiki-sidebar h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.wiki-sidebar ul {
    list-style: none;
}

.wiki-sidebar li {
    margin-bottom: 10px;
}

.wiki-sidebar a {
    color: #ccc;
}

.wiki-sidebar a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.wiki-content section {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow-x: auto; /* Ensure tables can scroll */
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 600px; /* Force scroll on small screens */
}

.wiki-table th,
.wiki-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

/* Mobile Responsive for Wiki */
@media (max-width: 768px) {
    .wiki-grid {
        grid-template-columns: 1fr; /* Stack sidebar and content */
        gap: 20px;
    }

    .wiki-sidebar {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .wiki-content section {
        padding: 15px; /* Reduce padding on mobile */
    }
    
    .wiki-table {
        font-size: 0.85rem;
        min-width: 500px; /* Slightly reduce min-width for better fit on small phones */
    }
    
    .wiki-table th, .wiki-table td {
        padding: 8px 5px; /* Tighter padding */
    }
}
