/*
 * Lineage 1 Portal Premium Style Sheet
 * Theme: Light Slate, Milky Glass, Gold Accent
 */

@import url('https://fonts.geekzu.org/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    --bg-dark: hsl(220, 24%, 7%);
    --bg-panel: hsla(220, 24%, 11%, 0.75);
    --bg-card: hsla(220, 20%, 15%, 0.9);
    --accent-gold: hsl(38, 92%, 50%);
    --accent-gold-glow: hsla(38, 92%, 50%, 0.15);
    --accent-crimson: hsl(355, 85%, 55%);
    --accent-crimson-glow: hsla(355, 85%, 55%, 0.15);
    --text-bright: hsl(210, 15%, 95%);
    --text-muted: hsl(218, 12%, 65%);
    --border-glow: hsla(38, 92%, 50%, 0.3);
    --border-normal: hsla(218, 15%, 25%, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Global Transitions & Aesthetic Adjustments */
a, button, select, input, textarea, .tab-btn, .qq-copy, .btn-visit, .location-list-item, .server-row, .forum-tab-btn, .board-tab-btn, .btn-submit, .profile-sidebar, .profile-card, .data-table-wrapper, .text-ads-grid, .glass-panel {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rounded corners scale up to premium 12px cards */
.glass-panel, .data-table-wrapper, .text-ads-grid, .profile-sidebar, .profile-card, .modal-card, .hero-banner {
    border-radius: 12px !important;
}

/* Button & interactive item rounded corners */
.tab-btn, .qq-copy, .btn-visit, .btn-submit, .search-input, .form-input, .form-control {
    border-radius: 6px !important;
}

/* Hover dynamic scaling animations */
.btn-visit:hover, .tab-btn:hover, .nav-links a:hover, .location-list-item:hover, .qq-copy:hover, .btn-submit:hover, .nav-btn:hover {
    transform: translateY(-1px) scale(1.015);
}

.logo:hover {
    transform: scale(1.02);
}

/* Soft gold glow for primary buttons */
.btn-submit:hover, .nav-btn:hover {
    box-shadow: 0 6px 20px var(--accent-gold-glow) !important;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 5% 5%, hsla(38, 92%, 50%, 0.04) 0%, transparent 35%),
        radial-gradient(circle at 95% 95%, hsla(215, 90%, 50%, 0.06) 0%, transparent 45%);
    color: var(--text-bright);
    font-family: 'Outfit', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-normal);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

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

/* Header & Banner styling */
.header-wrapper {
    background: rgba(16, 18, 27, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-normal);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.nav-links a.nav-user-info, .nav-user-info {
    color: var(--accent-gold) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.nav-links a.nav-user-info:hover {
    background-color: var(--accent-gold-glow) !important;
    border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-btn {
    background-color: var(--accent-gold);
    color: var(--accent-btn-text) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px var(--accent-gold-glow);
}

.nav-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px);
}

/* Hero section */
.hero-banner {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--border-normal);
    box-shadow: var(--card-shadow);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}

.hero-tag {
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff 0%, #bdc3c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: #ddd;
    max-width: 500px;
    margin-bottom: 25px;
}

/* Glass panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-normal);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}

.panel-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
    padding-left: 12px;
    letter-spacing: 0.5px;
}

/* Filter bar & Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-normal);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--accent-gold);
    color: var(--accent-btn-text) !important;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 10px var(--accent-gold-glow);
}

.search-input {
    flex-grow: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-normal);
    border-radius: 6px;
    color: var(--text-bright);
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Server List Row Styles */
.server-row {
    transition: all 0.3s ease;
    font-size: 14px;
}

.server-row:hover {
    background: rgba(243, 156, 18, 0.04);
}

.server-name {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-bright);
}

.pin-icon {
    color: var(--accent-gold);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.server-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-now {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-today {
    background: rgba(241, 196, 15, 0.15);
    color: #d35400;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-yesterday {
    background: rgba(127, 140, 141, 0.15);
    color: #7f8c8d;
    border: 1px solid rgba(127, 140, 141, 0.3);
}

.badge-upcoming {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.btn-visit {
    padding: 6px 12px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.btn-visit:hover {
    background: var(--accent-gold);
    color: var(--accent-btn-text) !important;
    box-shadow: 0 4px 10px var(--accent-gold-glow);
}

.qq-copy {
    color: var(--text-bright);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qq-copy:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.server-countdown {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}

/* Two column layout for portal */
.portal-columns {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 30px;
    align-items: stretch;
}

#servers-section {
    height: 100%;
}

.left-main-panel {
    height: 100%;
    margin-bottom: 0 !important;
}

/* Sidebar Ads & Guides */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.ad-slot-banner {
    display: block;
    width: 100%;
    height: 200px;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-normal);
    transition: border-color 0.3s;
}

.ad-slot-banner:hover {
    border-color: var(--accent-gold);
}

.ad-slot-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Ads grid panel */
.text-ads-grid {
    background: var(--bg-panel);
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--card-shadow);
}

.text-ad-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    border-radius: 4px;
    height: 40px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
    text-align: center;
}

.text-ad-cell:hover {
    background: rgba(243, 156, 18, 0.05);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 12px var(--accent-gold-glow);
}

.text-ad-cell.placeholder-ad {
    color: var(--text-muted);
    font-weight: 500;
    border-style: dashed;
}

.text-ad-cell.placeholder-ad:hover {
    color: var(--accent-gold);
    border-style: solid;
}

@media (max-width: 768px) {
    .text-ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .text-ads-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Guide items list */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-normal);
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-title {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.guide-title:hover {
    color: var(--accent-gold);
}

.guide-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer style */
footer {
    background: rgba(16, 18, 27, 0.6);
    border-top: 1px solid var(--border-normal);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Article Reader layout */
.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-normal);
    padding-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-bright);
}

.article-content p {
    margin-bottom: 20px;
}

/* Reset all backgrounds inside article content to prevent white/light backgrounds */
.article-content * {
    background: transparent !important;
    background-color: transparent !important;
}

/* Force dark background on tables and cell structures, allowing transparent fallbacks and high contrast */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid var(--border-normal) !important;
    background: rgba(20, 24, 33, 0.75) !important;
    background-color: rgba(20, 24, 33, 0.75) !important;
}

.article-content tr,
.article-content td,
.article-content th {
    border-color: var(--border-normal) !important;
}

.article-content th, .article-content td {
    padding: 12px;
    text-align: left;
    color: var(--text-bright) !important;
}

.article-content th {
    background: rgba(243, 156, 18, 0.15) !important;
    color: var(--accent-gold) !important;
}

/* Color class overrides for high-contrast dark theme readability */
.article-content .color1 { color: #ff5252 !important; } /* Bright Red */
.article-content .color2 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color3 { color: #d870ff !important; } /* Bright Purple */
.article-content .color4 { color: #ff9f43 !important; } /* Bright Orange */
.article-content .color5 { color: #3498db !important; } /* Bright Blue */
.article-content .color6 { color: #bdc3c7 !important; } /* Light Grey */
.article-content .color7 { color: var(--text-bright) !important; } /* White/Slate */
.article-content .color8 { color: #5dade2 !important; } /* Soft Blue */
.article-content .color9 { color: #ff6b6b !important; } /* Coral Red */
.article-content .color10 { color: #ff5252 !important; } /* Bright Red */
.article-content .color11 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color12 { color: #ff9f43 !important; } /* Bright Orange */
.article-content .color13 { color: #bdc3c7 !important; } /* Light Grey */
.article-content .color14 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color15 { color: #5dade2 !important; } /* Soft Blue */
.article-content .color16 { color: #d870ff !important; } /* Bright Purple */
.article-content .color17 { color: #60b0ff !important; } /* Bright Electric Blue */
.article-content .color18 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color19 { color: #3498db !important; } /* Bright Blue */
.article-content .color20 { color: #f1c40f !important; } /* Gold */
.article-content .color21 { color: #f1c40f !important; } /* Gold */
.article-content .color22 { color: #f1c40f !important; } /* Gold */
.article-content .color23 { color: var(--text-bright) !important; } /* White/Slate */
.article-content .color24 { color: #f1c40f !important; } /* Gold */
.article-content .color25 { color: #ff9f43 !important; } /* Bright Orange */
.article-content .color26 { color: #bdc3c7 !important; } /* Light Grey */
.article-content .color27 { color: #ff6b6b !important; } /* Coral Red */
.article-content .color28 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color29 { color: #2ecc71 !important; } /* Bright Green */
.article-content .color30 { color: #bdc3c7 !important; } /* Light Grey */
.article-content .color60 { color: #bdc3c7 !important; } /* Light Grey */

/* Font element attribute color overrides (case-insensitive) */
.article-content font[color="blue" i],
.article-content font[color="#0000ff" i],
.article-content font[color="#00f" i] {
    color: #3498db !important;
}
.article-content font[color="red" i],
.article-content font[color="#ff0000" i],
.article-content font[color="#f00" i] {
    color: #ff5252 !important;
}
.article-content font[color="green" i],
.article-content font[color="#008000" i],
.article-content font[color="#00ff00" i] {
    color: #2ecc71 !important;
}
.article-content font[color="grey" i],
.article-content font[color="gray" i],
.article-content font[color="#808080" i] {
    color: #bdc3c7 !important;
}
.article-content font[color="orange" i],
.article-content font[color="#ffa500" i] {
    color: #ff9f43 !important;
}
.article-content font[color="black" i],
.article-content font[color="#000000" i],
.article-content font[color="#000" i] {
    color: var(--text-bright) !important;
}
.article-content font[color="purple" i],
.article-content font[color="#ff00ff" i] {
    color: #d870ff !important;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px auto;
    display: block;
    border: 1px solid var(--border-normal);
}

/* Copy notification toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive configurations */
@media(max-width: 991px) {
    .portal-columns {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-overlay {
        padding: 25px;
    }
    .hero-banner {
        height: 150px;
    }
    .logo {
        font-size: 18px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 13px;
        padding: 4px 8px;
    }
    .nav-user-info {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Shared Modal Style rules */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    margin: 5vh auto;
    color: var(--text-bright);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--accent-gold);
}
.spinner {
    display: inline-block;
    animation: spin 1.2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Interactive database spans representing active links */
.interactive-ref {
    cursor: pointer !important;
    text-decoration: underline !important;
    transition: all 0.2s ease;
}
.interactive-ref:hover {
    color: var(--accent-gold) !important;
    opacity: 0.9;
}

/* Location Details and Regional Directory Layouts */
.location-details-container {
    color: var(--text-bright);
}
.location-title {
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-normal);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.location-section-title {
    font-size: 15px;
    color: var(--text-bright);
    margin: 25px 0 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.location-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.location-list-item:hover {
    background: rgba(243, 156, 18, 0.04);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.1);
}
.location-list-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    border: 1px solid var(--border-normal);
    flex-shrink: 0;
    overflow: hidden;
}
.location-list-item-icon img {
    max-width: 100%;
    max-height: 100%;
}
.location-list-item-info {
    flex-grow: 1;
    min-width: 0;
}
.location-list-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-list-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}
.location-no-data {
    color: var(--text-muted);
    font-size: 13px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.01);
    border: 1px dashed var(--border-normal);
    border-radius: 6px;
    text-align: center;
}

/* ==========================================
   laott.com Server List Structure Styles
   ========================================== */
.data-table-wrapper {
    margin-bottom: 25px;
    background: var(--bg-panel);
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: transparent;
}

table.data th {
    height: 38px;
    background: var(--accent-gold);
    text-align: center;
    color: var(--accent-btn-text);
    font-weight: 700;
    border: none;
    font-size: 14px;
    white-space: nowrap;
}

table.data td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-normal);
    color: var(--text-bright);
    vertical-align: middle;
    white-space: nowrap;
}

/* Allow description column to wrap if needed, while holding others solid */
table.data td:nth-of-type(6) {
    white-space: normal;
}

/* Style for links inside the data table to ensure theme harmony */
table.data td a {
    color: var(--text-bright);
    font-weight: 700;
    transition: color 0.2s ease;
}

table.data td a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Row variations matching laott.com style rules but adapted to premium dark theme */
tr.row-yellow {
    background-color: hsla(38, 92%, 50%, 0.07) !important; /* Elegant translucent gold */
}
tr.row-yellow:hover {
    background-color: hsla(38, 92%, 50%, 0.15) !important;
}

tr.row-pink {
    background-color: hsla(355, 85%, 55%, 0.07) !important; /* Elegant translucent crimson */
}
tr.row-pink:hover {
    background-color: hsla(355, 85%, 55%, 0.15) !important;
}

tr.row-white {
    background-color: hsla(220, 20%, 15%, 0.35) !important; /* Elegant translucent glass-gray */
}
tr.row-white:hover {
    background-color: hsla(220, 20%, 15%, 0.65) !important;
}

/* Align rules matching laott.com */
table.data td:nth-of-type(8),
table.data td:nth-of-type(4),
table.data td:nth-of-type(3),
table.data td:nth-of-type(5),
table.data td:nth-of-type(7),
table.data td:nth-of-type(2) {
    text-align: center;
}

table.data td:nth-of-type(1),
table.data td:nth-of-type(6) {
    text-align: left;
}

/* Section header row */
.data-section-header {
    background: var(--accent-gold) !important;
    color: var(--accent-btn-text) !important;
    font-weight: 800;
    text-align: center;
    font-size: 15px;
    padding: 12px;
}
.data-section-header a {
    color: var(--accent-btn-text);
    text-decoration: none;
}

/* Custom Bullet Indicators */
.bullet-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.bullet-today {
    background-color: #e74c3c;
    box-shadow: 0 0 6px #e74c3c;
}
.bullet-past {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

/* Responsive Table container */
.table-scrollable {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media(max-width: 768px) {
    table.data th, table.data td {
        font-size: 11px;
        padding: 8px 4px;
    }
    table.data th:nth-of-type(3),
    table.data td:nth-of-type(3),
    table.data th:nth-of-type(6),
    table.data td:nth-of-type(6) {
        display: none; /* Hide version type and description on smaller mobile screens for readability */
    }
}

/* 2x2 Image Grid Ads styling */
.image-grid-ads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 25px 0 10px 0;
}

@media(max-width: 576px) {
    .image-grid-ads {
        grid-template-columns: 1fr;
    }
}

/* --- Ttmi Speed Columns Specific Styles --- */
.color52 {color: #80FF80;}
.color53 {color: #80FFFF;}
.color54 {color: #FFFF80;}
.color55 {color: #e79bed;}
.color61 {color: #FF9933;}
.color62 {color: #330033;}
.color63 {color: #330066;}
.color64 {color: #cf69f8;}
.color66 {color: #b54bff;}
.color67 {color: #e97070;}
.color68 {color: #82ad6a;}
.color69 {color: #8ebd74;}
.color70 {color: #a3d289;}
.color71 {color: #9933CC;}

.c1 {color: #993333;}
.c2 {color: #00552B;}
.c3 {color: #663366;}
.c4 {color: #993300;}
.c5 {color: #003366;}
.c6 {color: #666633;}
.c7 {color: #FFFFFF;}
.c8 {color: #0000FF;}
.c9 {color: #FF0000;}
.c10 {color: #CC0000;}
.c11 {color: #009966;}
.c12 {color: maroon;}
.c13 {color: olive;}
.c14 {color: green;}
.c15 {color: #0066FF;}
.c16 {color: #660099;}
.c17 {color: #336699;}
.c18 {color: #0066CC;}
.c19 {color: #000099;}
.c20 {color: #58522C;}
.c21 {color: #333333;}
.c22 {color: #996600;}
.c23 {color: #000000;}
.c24 {color: #FFFF00;}
.c25 {color: #FF6600;}
.c26 {color: #DDDDDD;}
.c27 {color: #AD2E03;}
.c28 {color: #00FFFF;}
.c29 {color: #00FF00;}
.c30 {color: gray;}
.c31 {color: #666699;}
.c32 {color: #996666;}
.c33 {color: skyblue;}
.c34 {color: royalblue;}
.c35 {color: blue;}
.c36 {color: darkblue;}
.c37 {color: orange;}
.c38 {color: orangered;}
.c39 {color: crimson;}
.c40 {color: red;}
.c41 {color: firebrick;}
.c42 {color: darkred;}
.c43 {color: green;}
.c44 {color: limegreen;}
.c45 {color: seagreen;}
.c46 {color: teal;}
.c47 {color: deeppink;}
.c48 {color: tomato;}
.c49 {color: coral;}
.c50 {color: purple;}
.c51 {color: indigo;}
.c52 {color: burlywood;}
.c53 {color: sandybrown;}
.c54 {color: sienna;}
.c55 {color: chocolate;}
.c56 {color: silver;}
.c60 {color:#c57234;}
.c61 {color:#9999ff;}
.c62 {color:#7f7f7d;}
.c63 {color:#ba0102;}
.c64 {color:#5b7da0;}
.c65 {color:#fff25c;}
.c66 {color:#ca3c94;}
.c67 {color:#3aa793;}
.c68 {color:#bbb396;}
.c69 {color:#bbb396;}

.illr01{background-color:rgba(231, 76, 60, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illr02{background-color:rgba(231, 76, 60, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illr03{background-color:rgba(231, 76, 60, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illb01{background-color:rgba(52, 152, 219, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illb02{background-color:rgba(52, 152, 219, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illb03{background-color:rgba(52, 152, 219, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illg01{background-color:rgba(46, 204, 113, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illg02{background-color:rgba(46, 204, 113, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illg03{background-color:rgba(46, 204, 113, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.ills01{background-color:rgba(155, 89, 182, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.ills02{background-color:rgba(155, 89, 182, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.ills03{background-color:rgba(155, 89, 182, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illy01{background-color:rgba(243, 156, 18, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illy02{background-color:rgba(243, 156, 18, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illy03{background-color:rgba(243, 156, 18, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illk01{background-color:rgba(139, 69, 19, 0.15) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illk02{background-color:rgba(139, 69, 19, 0.12) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illk03{background-color:rgba(139, 69, 19, 0.18) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illh01{background-color:rgba(255, 255, 255, 0.05) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illh02{background-color:rgba(255, 255, 255, 0.03) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illh03{background-color:rgba(255, 255, 255, 0.08) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illbk01{background-color:rgba(0, 0, 0, 0.5) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}
.illbk02{background-color:rgba(0, 0, 0, 0.7) !important;border-collapse:collapse;border:1px solid var(--border-normal) !important}

/* Pure CSS Theme Hover & Transition Utility Classes */
.friend-link {
    color: var(--text-muted) !important;
    text-decoration: none;
}
.friend-link:hover {
    color: var(--accent-gold) !important;
}

.grid-ad-placeholder {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card) !important;
    border: 1px dashed var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
}
.grid-ad-placeholder:hover {
    background: var(--accent-gold-glow) !important;
}

.preview-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-normal) !important;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
}
.preview-item-row:hover {
    border-color: var(--accent-gold) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.text-muted-link {
    color: var(--text-muted) !important;
    text-decoration: none;
}
.text-muted-link:hover {
    color: var(--accent-gold) !important;
}

.article-link {
    color: var(--text-bright) !important;
    text-decoration: none;
}
.article-link:hover {
    color: var(--accent-gold) !important;
}

/* Sidebar Bottom Ads */
.sidebar-bottom-ads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.sidebar-bottom-ad-cell {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-normal);
    position: relative;
}

.sidebar-bottom-ad-cell:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.15);
}

.sidebar-bottom-ad-cell img {
    width: 100%;
    height: 110px;
    object-fit: fill;
    display: block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-bottom-ad-cell:hover img {
    transform: scale(1.03);
}

.sidebar-bottom-ad-placeholder {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px dashed var(--accent-gold);
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px var(--accent-gold-glow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.sidebar-bottom-ad-placeholder:hover {
    background: var(--accent-gold-glow) !important;
}

/* --- Article Content Table & Contrast Fixes --- */
.article-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 24px 0 !important;
    background: rgba(16, 18, 27, 0.4) !important;
    border: 1px solid var(--border-normal) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.article-content table tr {
    background: transparent !important;
    border-bottom: 1px solid var(--border-normal) !important;
}

.article-content table tr:hover {
    background: rgba(243, 156, 18, 0.03) !important;
}

.article-content table td, 
.article-content table th {
    padding: 12px 16px !important;
    color: var(--text-bright) !important;
    border: 1px solid var(--border-normal) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    background-color: rgba(22, 24, 35, 0.8) !important; /* Forces dark cell background to override inline white styles */
}

.article-content table th {
    background-color: rgba(243, 156, 18, 0.1) !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.article-content table a {
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.article-content table a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px var(--accent-gold-glow) !important;
    text-decoration: underline !important;
}

/* Adjust ttmi.me color-coded classes to dark-theme compatible transparency */
.article-content .illr01, .article-content .illr02, .article-content .illr03,
.article-content tr.illr01 td, .article-content tr.illr02 td, .article-content tr.illr03 td {
    background-color: rgba(231, 76, 60, 0.15) !important;
}
.article-content .illb01, .article-content .illb02, .article-content .illb03,
.article-content tr.illb01 td, .article-content tr.illb02 td, .article-content tr.illb03 td {
    background-color: rgba(52, 152, 219, 0.15) !important;
}
.article-content .illg01, .article-content .illg02, .article-content .illg03,
.article-content tr.illg01 td, .article-content tr.illg02 td, .article-content tr.illg03 td {
    background-color: rgba(46, 204, 113, 0.15) !important;
}
.article-content .ills01, .article-content .ills02, .article-content .ills03,
.article-content tr.ills01 td, .article-content tr.ills02 td, .article-content tr.ills03 td {
    background-color: rgba(155, 89, 182, 0.15) !important;
}
.article-content .illy01, .article-content .illy02, .article-content .illy03,
.article-content tr.illy01 td, .article-content tr.illy02 td, .article-content tr.illy03 td {
    background-color: rgba(243, 156, 18, 0.15) !important;
}
.article-content .illk01, .article-content .illk02, .article-content .illk03,
.article-content tr.illk01 td, .article-content tr.illk02 td, .article-content tr.illk03 td {
    background-color: rgba(139, 69, 19, 0.15) !important;
}
.article-content .illh01, .article-content .illh02, .article-content .illh03,
.article-content tr.illh01 td, .article-content tr.illh02 td, .article-content tr.illh03 td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.article-content .illbk01, .article-content .illbk02,
.article-content tr.illbk01 td, .article-content tr.illbk02 td {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Ensure general text inside article content inherits proper contrast on default dark background */
.article-content {
    color: var(--text-bright) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.article-content p {
    margin-bottom: 16px !important;
    color: var(--text-bright) !important;
}

.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
    color: var(--accent-gold) !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}

/* Force dark inline colors to bright white/light gray to prevent invisible text on dark theme */
.article-content [style*="color: rgb(0, 0, 0)"],
.article-content [style*="color:rgb(0,0,0)"],
.article-content [style*="color: rgb(51, 51, 51)"],
.article-content [style*="color:rgb(51,51,51)"],
.article-content [style*="color: rgb(68, 68, 68)"],
.article-content [style*="color:rgb(68,68,68)"],
.article-content [style*="color: #000000"],
.article-content [style*="color:#000000"],
.article-content [style*="color: #000"],
.article-content [style*="color:#000"],
.article-content [style*="color: #333333"],
.article-content [style*="color:#333333"],
.article-content [style*="color: #333"],
.article-content [style*="color:#333"],
.article-content [style*="color: #555"],
.article-content [style*="color:#555"],
.article-content [style*="color: black"],
.article-content [style*="color:black"],
.article-content font[color="#000000"],
.article-content font[color="#000"],
.article-content font[color="black"],
.article-content font[color="#333333"],
.article-content font[color="#333"],
.article-content font[color="#555555"],
.article-content font[color="#555"] {
    color: var(--text-bright) !important;
}

/* Override dark-text classes generated by scraper to light theme colors */
.article-content .c20 { color: hsl(38, 92%, 80%) !important; } /* Light yellow-gold */
.article-content .c21, .article-content .c23 { color: var(--text-bright) !important; } /* White/Bright */
.article-content .c30, .article-content .c32, .article-content .c62 { color: var(--text-muted) !important; } /* Muted Light Gray */

/* Global hidden utility class */
.hidden {
    display: none !important;
}


