:root {
    --jx-modal-border: #c8a256;
    --jx-modal-header-bg: linear-gradient(135deg, #0c1914 0%, #19382c 100%);
    --jx-modal-accent: #1a7a5c;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #eaf0ec;
    color: #16241e;
    font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

.tl-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Sticky Jade Obsidian Header */
.tl-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(10, 20, 16, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200, 162, 86, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tl-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tl-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tl-brand img {
    height: 46px;
    filter: drop-shadow(0 2px 8px rgba(94, 234, 212, 0.35));
}

.tl-brand-txt strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    color: #f4dca0;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.tl-brand-txt span {
    display: block;
    font-size: 11px;
    color: #8fd1b8;
}

.tl-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-nav a {
    display: block;
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: #d9ebe2;
    border-radius: 6px;
    transition: background 0.16s ease, color 0.16s ease;
}

.tl-nav a:hover {
    background: rgba(52, 211, 153, 0.14);
    color: #fde68a;
}

.tl-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(212, 171, 92, 0.6);
    background: linear-gradient(135deg, #1b6b50 0%, #114735 100%);
    color: #fef3c7;
}

.tl-pill-btn:hover {
    filter: brightness(1.12);
}

.tl-nav-toggle {
    display: none;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(200, 162, 86, 0.5);
    color: #f4dca0;
    padding: 6px 11px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* Panoramic Jade Dragon Hero */
.tl-hero {
    position: relative;
    min-height: 580px;
    background-color: #0b1512;
    background-image: url("/assets/themes/art/thanhlong-hero-wide.jpg");
    background-size: cover;
    background-position: center top;
    color: #f0f7f3;
    padding: 36px 0 68px;
    overflow: hidden;
}

.tl-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 490px) 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 4;
}

.tl-hero-seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(14, 34, 27, 0.85);
    border: 1px solid rgba(94, 234, 212, 0.45);
    color: #99f6e4;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tl-hero-left h1 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: #fef6dc;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.tl-hero-left .tl-lead {
    margin: 0 0 18px;
    color: #c9dfd5;
    font-size: 14px;
    line-height: 1.6;
}

.tl-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 14px;
}

.tl-cta-btn {
    display: flex;
    flex-direction: column;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(212, 171, 92, 0.55);
    transition: transform 0.16s ease, filter 0.16s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tl-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.tl-cta-btn strong {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.tl-cta-btn span {
    font-size: 11.5px;
    opacity: 0.88;
}

.tl-cta-gold {
    background: linear-gradient(135deg, #e5b75a 0%, #9b6c1b 100%);
    color: #1b1204;
}

.tl-cta-jade {
    background: linear-gradient(135deg, #1d8a65 0%, #0f523b 100%);
    color: #ecfdf5;
}

.tl-cta-dark {
    background: linear-gradient(135deg, #1b2f28 0%, #101e19 100%);
    color: #f4dca0;
}

/* Frosted Jade Login / Player Card inside Hero */
.tl-auth-glass {
    background: rgba(11, 23, 19, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 162, 86, 0.45);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.tl-auth-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f4dca0;
    text-transform: uppercase;
}

.tl-login-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tl-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #2b4a3e;
    background: rgba(7, 14, 11, 0.85);
    color: #f8fafc;
    font-size: 13px;
}

.tl-input:focus {
    outline: none;
    border-color: #5eead4;
}

.tl-cap-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-cap-row input {
    width: 112px;
    flex: 0 0 112px;
}

.tl-cap-row img.jx-captcha {
    height: 34px;
    border-radius: 5px;
    border: 1px solid #3c6556;
    cursor: pointer;
}

.tl-btn-submit {
    flex: 1;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #229c74 0%, #136047 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.tl-btn-submit:hover {
    filter: brightness(1.1);
}

.tl-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    pointer-events: none;
}

.tl-hero-wave svg {
    width: 100%;
    height: 52px;
    display: block;
}

/* Main Content on Misty Jade Alabaster */
.tl-main-band {
    padding: 26px 0 36px;
}

.tl-grid-top {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.tl-card {
    background: #ffffff;
    border: 1px solid #d4dfd8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(13, 30, 24, 0.06);
    min-width: 0;
}

.tl-card-head {
    background: linear-gradient(90deg, #11231c 0%, #1b382d 100%);
    border-bottom: 2px solid #c8a256;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tl-card-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #fef3c7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tl-more-link {
    font-size: 12px;
    font-weight: 700;
    color: #99f6e4;
}

.tl-more-link:hover {
    color: #fde68a;
}

/* Slider */
.tl-slider {
    position: relative;
    min-height: 315px;
    background: #0d1a15;
    border-radius: 10px;
    border: 1px solid #c8a256;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(11, 24, 19, 0.14);
    min-width: 0;
}

.tl-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.tl-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tl-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-slide-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 42px 154px 18px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 17, 14, 0.92) 60%);
    color: #f8fafc;
}

.tl-slide-cap span {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    background: #1f8a68;
    color: #ecfdf5;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tl-slide-cap h2 {
    margin: 0 0 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    color: #fef3c7;
}

.tl-slide-cap p {
    margin: 0;
    font-size: 12.5px;
    color: #cbd5e1;
}

.tl-dots {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    gap: 6px;
}

.tl-dot {
    width: 26px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid rgba(254, 243, 199, 0.45);
    background: rgba(9, 19, 15, 0.8);
    color: #fef3c7;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.tl-dot.is-active {
    background: #1f8a68;
    border-color: #fde68a;
    color: #fff;
}

/* News Panel */
.tl-news-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-news-tab {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #cbe3d8;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.tl-news-tab.is-active,
.tl-news-tab:hover {
    background: #c8a256;
    color: #151005;
}

.tl-news-body {
    padding: 12px 16px 14px;
}

.tl-news-pane {
    display: none;
}

.tl-news-pane.is-active {
    display: block;
}

.tl-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #d6e2db;
}

.tl-news-item:last-child {
    border-bottom: 0;
}

.tl-news-item a {
    flex: 1;
    min-width: 0;
    color: #182a22;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tl-news-item a:hover {
    color: #167658;
}

.tl-news-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-badge-new {
    padding: 1px 6px;
    border-radius: 4px;
    background: #1a7a5c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.tl-news-date {
    font-size: 12px;
    color: #5b7267;
    flex-shrink: 0;
}

/* Middle Grid: Schedule + Guides & Support */
.tl-grid-mid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
}

.tl-day-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tl-day-btn {
    border: 1px solid rgba(254, 243, 199, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #e2eee7;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.tl-day-btn.is-active {
    background: #c8a256;
    border-color: #fde68a;
    color: #151005;
}

.tl-day-pane {
    display: none;
    padding: 12px 16px 16px;
}

.tl-day-pane.is-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.tl-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #f2f7f4;
    border-left: 3px solid #1f8a68;
    border-radius: 5px;
    font-size: 12.5px;
}

.tl-slot.is-hot {
    background: #fef9ec;
    border-left-color: #c89128;
}

.tl-slot strong {
    color: #135a43;
    white-space: nowrap;
}

.tl-search-bar {
    display: flex;
    border: 1px solid #c3d5cb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}

.tl-search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 14px;
    font-size: 13.5px;
}

.tl-search-bar input:focus {
    outline: none;
}

.tl-search-bar button {
    border: 0;
    background: #176c51;
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

.tl-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.tl-guide-card {
    position: relative;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b5c9be;
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
    background-size: cover;
    background-position: center;
    transition: transform 0.16s ease;
}

.tl-guide-card:hover {
    transform: translateY(-2px);
}

.tl-guide-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 21, 17, 0.2) 0%, rgba(10, 21, 17, 0.9) 100%);
}

.tl-guide-card-txt {
    position: relative;
    z-index: 2;
}

.tl-guide-card-txt strong {
    display: block;
    color: #fef3c7;
    font-size: 14px;
}

.tl-guide-card-txt span {
    font-size: 11.5px;
    color: #cce3d8;
}

.tl-support-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #d4dfd8;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Bottom Deep Jade Factions Sanctuary */
.tl-factions {
    background: radial-gradient(circle at 50% 0%, #152b23 0%, #0b1512 75%);
    border-top: 2px solid #a8833e;
    color: #e6f2ec;
    padding: 44px 0 50px;
}

.tl-factions-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.tl-art-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #c8a256;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    position: relative;
}

.tl-art-frame img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.tl-art-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 18, 14, 0.94) 60%);
    text-align: center;
}

.tl-el-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.tl-el-btn {
    border: 1px solid #355849;
    background: #12241d;
    color: #cce3d8;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.tl-el-btn.is-active {
    background: linear-gradient(135deg, #219770 0%, #135f46 100%);
    border-color: #fde68a;
    color: #fff;
}

.tl-fac-stage {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 162, 86, 0.3);
    border-radius: 12px;
    padding: 18px;
}

.tl-fac-portrait {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(236, 245, 240, 0.96) 0%, rgba(210, 226, 217, 0.9) 64%, rgba(18, 36, 29, 0) 76%);
    border-radius: 50%;
}

.tl-fac-portrait img {
    max-height: 230px;
    mix-blend-mode: multiply;
}

.tl-fac-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tl-fac-card {
    background: rgba(11, 21, 18, 0.78);
    border: 1px solid #325446;
    border-radius: 8px;
    padding: 14px 16px;
}

.tl-fac-card h4 {
    margin: 0 0 4px;
    color: #fde68a;
    font-size: 16px;
}

.tl-fac-card .route {
    font-size: 12px;
    color: #6ee7b7;
    margin-bottom: 8px;
}

.tl-fac-card p {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: #d2e4db;
}

.tl-fac-card a {
    color: #f4dca0;
    font-weight: 700;
    font-size: 12.5px;
}

/* Inner News & Article Views */
.tl-inner-card {
    background: #fff;
    border: 1px solid #d4dfd8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(13, 30, 24, 0.08);
    min-height: 540px;
}

.tl-article-body {
    padding: 22px 26px 30px;
    line-height: 1.72;
    color: #16241e;
    overflow-x: auto;
}

.tl-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.tl-article-body th,
.tl-article-body td {
    border: 1px solid #cbdad1;
    padding: 8px 10px;
}

.tl-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tl-pagination a,
.tl-pagination span {
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #cbdad1;
    background: #f5f9f6;
    color: #182a22;
    font-size: 13px;
    font-weight: 700;
}

.tl-pagination span.is-cur {
    background: #1a7a5c;
    border-color: #1a7a5c;
    color: #fff;
}

/* Footer */
.tl-footer {
    background: #070e0c;
    color: #9bb5aa;
    padding: 24px 18px 28px;
    border-top: 1px solid #1e352c;
    font-size: 12.5px;
}

.tl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.tl-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tl-footer-links a:hover {
    color: #fde68a;
}

.tl-go-top {
    position: fixed;
    right: 16px;
    bottom: 22px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #10211b;
    color: #fde68a;
    border: 2px solid #c8a256;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tl-go-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 980px) {
    .tl-hero-grid,
    .tl-grid-top,
    .tl-grid-mid,
    .tl-factions-grid,
    .tl-fac-stage {
        grid-template-columns: minmax(0, 1fr);
    }
    .tl-art-frame {
        display: none;
    }
    .tl-nav-toggle {
        display: inline-block;
    }
    .tl-nav {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: #0b1612;
        border-bottom: 1px solid #c8a256;
        flex-direction: column;
        padding: 12px 18px;
    }
    .tl-nav.is-open {
        display: flex;
    }
    .tl-header-actions {
        display: none;
    }
}

@media (max-width: 640px) {
    .tl-cta-grid,
    .tl-login-fields,
    .tl-day-pane.is-active,
    .tl-guide-grid,
    .tl-fac-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .tl-slide-cap {
        padding: 36px 16px 48px;
    }
}
