/* Import Google Fonts tiếng Việt chuẩn 100% */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&family=Merriweather:wght@400;700;900&display=swap');

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

body {
    background-color: #f3eee6;
    background-image: 
        radial-gradient(#e2d7c5 15%, transparent 16%),
        radial-gradient(#e2d7c5 15%, transparent 16%);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #3b3024;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

/* Full Width Global Container */
.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. FULL-WIDTH HEADER */
.full-header {
    width: 100%;
    background: #2a2016;
    border-bottom: 2px solid #8c6e3b;
    padding: 25px 0 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.header-left, .header-right {
    flex: 1;
}

.header-right {
    text-align: right;
}

.header-center {
    text-align: center;
    flex: 2;
}

.logo {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #e5be75;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 0 20px rgba(229,190,117,0.3);
}

.logo-subtitle {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #b5a28a;
    margin-top: 3px;
    text-transform: uppercase;
}

.server-badge-top {
    background: #3e3020;
    color: #e5be75;
    border: 1px solid #7d633b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

/* 2. FULL-WIDTH NAVBAR */
.full-navbar {
    width: 100%;
    background: #e2d5c1;
    border-bottom: 1px solid #cbbaa2;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links li a {
    display: block;
    padding: 15px 22px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #423526;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #d4c3ab;
    color: #1a140d;
    border-bottom-color: #8c6e3b;
}

/* 3. BANNER THUẦN HÌNH ẢNH */
.pure-banner-container {
    width: 100%;
    max-width: 1340px;
    margin: 15px auto 0 auto;
    line-height: 0;
    background: #110d09;
    border: 1px solid #8c6e3b;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pure-banner-img {
    width: 100%;
    height: 360px;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 4. FULL MAIN LAYOUT GRID */
.full-main-wrapper {
    padding: 35px 0 50px 0;
    width: 100%;
}

.main-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 25px;
}

.main-content-col, .sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Content Card */
.content-card {
    background: #fbf8f2;
    border: 1px solid #d9cebc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-title-bar {
    background: #ede3d3;
    border-bottom: 1px solid #d9cebc;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 700;
    color: #33261a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    color: #8c6e3b;
    background: #fdfaf4;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #d6c6ad;
}

.btn-card-link {
    font-size: 12px;
    font-weight: 700;
    color: #8c6e3b;
    text-decoration: none;
    padding: 4px 10px;
    background: #f7f1e6;
    border: 1px solid #d8caa7;
    border-radius: 4px;
    cursor: pointer;
}

.btn-card-link:hover {
    background: #ebdcc3;
}

.card-body {
    padding: 20px;
}

/* News List Full */
.news-list-full {
    list-style: none;
}

.news-item-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ded4c4;
    cursor: pointer;
    transition: background-color 0.2s;
}

.news-item-full:hover {
    background-color: #f3ede2;
    border-radius: 4px;
}

.news-item-full:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item-full:first-child {
    padding-top: 0;
}

.news-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.news-link-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #382c20;
    transition: color 0.2s;
}

.news-item-full:hover .news-link-title {
    color: #8c6e3b;
    text-decoration: underline;
}

.news-date-tag {
    font-size: 12.5px;
    color: #8a7c6c;
    white-space: nowrap;
    margin-left: 15px;
}

/* Badges */
.news-category-badge, .badge-sub {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

.badge-event { background: #ffe7d3; color: #b85400; border: 1px solid #ffd0a8; }
.badge-guide { background: #e0f2fe; color: #026aa2; border: 1px solid #bae6fd; }
.badge-update { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-notice { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }

/* Class Grid Full (4 Columns Grid for DK, Elf, DW, MG) */
.class-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.class-card {
    background: #f4ecdf;
    border: 1px solid #d9cbba;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #baa891;
}

.class-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.class-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dk-bg { background: #a83226; }
.elf-bg { background: #2e7d32; }
.dw-bg { background: #1565c0; }
.mg-bg { background: #7b1fa2; } /* Purple theme for Magic Gladiator */

.class-name {
    font-family: 'Merriweather', serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #291f16;
}

.class-code {
    font-size: 11.5px;
    color: #7d6f5f;
    font-weight: 600;
}

.class-desc {
    font-size: 12.5px;
    color: #574b3d;
    line-height: 1.45;
    margin-bottom: 14px;
}

.class-btn-view {
    font-size: 11.5px;
    font-weight: 700;
    color: #8c6e3b;
    border-top: 1px dashed #d5c7b3;
    padding-top: 8px;
    text-align: right;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-box {
    background: #f5eeea;
    border: 1px solid #dcd1c7;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.feature-box:hover {
    background: #ebe0db;
    border-color: #baa891;
}

.feature-box h5 {
    font-family: 'Merriweather', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #3b2c1f;
    margin-bottom: 6px;
}

.feature-box p {
    font-size: 12px;
    color: #615344;
    line-height: 1.45;
}

/* 5. SIDEBAR ELEMENTS */
.action-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-sidebar-img-register {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: block;
}

.btn-sidebar-img-register img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(158, 121, 57, 0.3);
}

.btn-sidebar-img-register:hover {
    transform: translateY(-2px);
    filter: brightness(1.12) drop-shadow(0 6px 15px rgba(158, 121, 57, 0.45));
}

.sidebar-fallback-btn {
    background: linear-gradient(180deg, #c49953 0%, #9e7939 100%);
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(158, 121, 57, 0.3);
}

.btn-sidebar-download {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
    transition: all 0.2s;
    font-family: 'Be Vietnam Pro', sans-serif;
    text-align: left;
}

.btn-sidebar-download:hover {
    background: #256628;
}

.btn-icon {
    font-size: 22px;
    font-weight: 800;
}

.btn-text-main {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-text-sub {
    display: block;
    font-size: 11px;
    opacity: 0.85;
}

/* Server Status Box */
.server-status-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-live-indicator {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2e7d32;
    font-size: 13px;
    cursor: default;
    user-select: none;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #2e7d32;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.server-info-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ded4c4;
}

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

.badge-sub.online { background: #e8f5e9; color: #2e7d32; }
.badge-sub.secure { background: #e0f2fe; color: #0284c7; }

/* Community Buttons */
.community-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-comm {
    display: block;
    width: 100%;
    border: none;
    text-align: center;
    padding: 11px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', sans-serif;
    transition: opacity 0.2s;
}

.btn-comm:hover {
    opacity: 0.9;
}

.btn-comm.fb { background: #1877f2; }
.btn-comm.zalo { background: #0068ff; }

/* 6. FULL FOOTER */
.full-footer {
    width: 100%;
    background: #241b12;
    color: #c9baa7;
    border-top: 2px solid #8c6e3b;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-logo {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 900;
    color: #e5be75;
    margin-bottom: 10px;
}

.footer-about {
    font-size: 13px;
    line-height: 1.6;
    color: #a89987;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: #e5be75;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: #a89987;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

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

.footer-col p {
    font-size: 13px;
    margin-bottom: 6px;
    color: #a89987;
}

.footer-bottom {
    background: #18120b;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #7a6e60;
    border-top: 1px solid #332619;
}

/* 7. JUMBO & ULTRA POPUP SYSTEM */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 25px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #fbf8f2;
    border: 2px solid #8c6e3b;
    border-radius: 12px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transform: translateY(-25px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-jumbo {
    max-width: 1000px;
    width: 95vw;
}

.modal-ultra {
    max-width: 1240px;
    width: 96vw;
}

.modal-backdrop.active .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: #2a2016;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8c6e3b;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    color: #e5be75;
    letter-spacing: 0.5px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #e5be75;
    font-size: 34px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.2);
}

.modal-body {
    padding: 35px 32px;
    color: #3b3024;
}

/* POSTER CARD (HÌNH ẢNH HƯỚNG DẪN ĐĂNG KÝ) */
.register-poster-card {
    background: #f5ede0;
    border: 2px solid #c9b69c;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.poster-inner-banner {
    background: linear-gradient(180deg, #2a2016 0%, #150f0a 100%);
    border: 1px solid #8c6e3b;
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.7);
}

.poster-badge {
    display: inline-block;
    background: rgba(140, 110, 59, 0.35);
    border: 1px solid #8c6e3b;
    color: #e5be75;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.poster-heading {
    font-family: 'Merriweather', serif;
    font-size: 26px;
    font-weight: 900;
    color: #f7e0a3;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.poster-tagline {
    font-size: 14.5px;
    color: #d8cbb8;
    max-width: 700px;
    margin: 0 auto;
}

.poster-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.poster-step-item {
    background: #fdfaf4;
    border: 1px solid #dfd3c3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.poster-step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border-color: #8c6e3b;
}

.step-num-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #c49953 0%, #8c6e3b 100%);
    color: #fff;
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    box-shadow: 0 3px 8px rgba(140, 110, 59, 0.4);
}

.poster-step-item h4 {
    font-family: 'Merriweather', serif;
    font-size: 15px;
    color: #2b1f13;
    margin-bottom: 8px;
}

.poster-step-item p {
    font-size: 13px;
    color: #635546;
    line-height: 1.5;
}

.poster-gift-box {
    background: #fdf3e5;
    border: 1px dashed #d99b43;
    border-radius: 8px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.gift-icon-large {
    font-size: 38px;
}

.gift-text-info h4 {
    font-family: 'Merriweather', serif;
    font-size: 15px;
    color: #9c5810;
    margin-bottom: 4px;
}

.gift-text-info p {
    font-size: 13.5px;
    color: #5c442c;
    line-height: 1.5;
}

.poster-actions-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-poster-download {
    background: linear-gradient(180deg, #b8914f 0%, #8c6e3b 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 110, 59, 0.35);
    transition: all 0.2s;
}

.btn-poster-download:hover {
    background: linear-gradient(180deg, #c9a35e 0%, #9e7d44 100%);
    transform: translateY(-2px);
}

.btn-modal-close-action {
    background: #e2d5c1;
    color: #3b2f21;
    border: 1px solid #baa891;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-close-action:hover {
    background: #d4c4ad;
}

/* Download Modal UI */
.download-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.download-option-box {
    background: #f4ecdf;
    border: 1px solid #d9cbba;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dl-icon {
    font-size: 42px;
}

.dl-info h4 {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 700;
    color: #2e2217;
    margin-bottom: 8px;
}

.dl-info p {
    font-size: 13.5px;
    color: #635546;
    line-height: 1.6;
    margin-bottom: 16px;
}

.dl-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-dl-link {
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-dl-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-dl-link.google { background: #ea4335; }
.btn-dl-link.mega { background: #d9272e; }
.btn-dl-link.fshare { background: #e65100; }

.download-note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px 24px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #6d4c41;
    line-height: 1.7;
}

.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 22px;
    border-bottom: 1px solid #ded4c4;
}

.article-date-text {
    font-size: 13.5px;
    color: #7d6f5f;
}

.class-detail-specs {
    margin-top: 24px;
    border: 1px solid #d9cbba;
    border-radius: 10px;
    overflow: hidden;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px dashed #ded4c4;
    font-size: 14.5px;
    background: #fdfaf4;
}

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

.spec-row span {
    color: #6d5f50;
    font-weight: 600;
    min-width: 200px;
}

.spec-row strong {
    color: #2e2217;
}

.modal-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.modal-info-table th, .modal-info-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ded4c4;
    text-align: left;
}

.modal-info-table th {
    background: #ece1d0;
    font-weight: 700;
    color: #2b1f13;
}

.guide-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14.5px;
}

.guide-steps-list li {
    background: #f4ecdf;
    padding: 16px 22px;
    border-radius: 8px;
    border-left: 5px solid #8c6e3b;
    line-height: 1.7;
}

.community-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.comm-box {
    background: #f4ecdf;
    border: 1px solid #d9cbba;
    padding: 30px 24px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.comm-box:hover {
    background: #ebdcc8;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.comm-box h4 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: #2b1f13;
}

.comm-box p {
    font-size: 13.5px;
    color: #665747;
}

/* 8. ADMIN LOGIN & WORKSPACE STYLES */
.admin-page-body {
    background-color: #eadecd;
    min-height: 100vh;
}

.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-login-box {
    background: #fbf8f2;
    border: 2px solid #8c6e3b;
    border-radius: 10px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}

.admin-login-header {
    background: #241a11;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid #8c6e3b;
}

.admin-login-header .admin-logo {
    color: #e5be75;
    font-size: 28px;
}

.admin-login-header .admin-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #baa891;
    margin-top: 4px;
}

.admin-login-form {
    padding: 30px 25px;
}

.login-error-msg {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: 4px;
    font-size: 12.5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.btn-admin-logout {
    background: #a83226;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-admin-logout:hover {
    background: #8b261c;
}

.admin-top-nav {
    width: 100%;
    background: #241a11;
    border-bottom: 2px solid #8c6e3b;
    padding: 16px 0;
}

.admin-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 900;
    color: #e5be75;
}

.admin-badge {
    background: #a83226;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
}

.btn-back-home {
    background: #473624;
    color: #f5ebdc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid #6b533a;
    transition: all 0.2s;
}

.btn-back-home:hover {
    background: #5e4730;
    color: #fff;
}

.admin-container-full {
    padding: 30px 20px;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.admin-stat-box {
    background: #fcf9f2;
    border: 1px solid #d9ccb8;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.stat-icon {
    font-size: 32px;
}

.stat-num {
    display: block;
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 800;
    color: #8c6e3b;
}

.stat-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b5c4d;
}

.admin-workspace-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 25px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #382c1f;
    margin-bottom: 5px;
}

.form-group .req {
    color: #a83226;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9bea9;
    border-radius: 4px;
    background: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8c6e3b;
    box-shadow: 0 0 5px rgba(140, 110, 59, 0.25);
}

.form-btn-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-admin-save {
    background: #8c6e3b;
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-admin-save:hover {
    background: #6e5429;
}

.btn-admin-reset {
    background: #e2d7c5;
    color: #3e3328;
    border: 1px solid #baa891;
    padding: 12px 18px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-admin-reset:hover {
    background: #d4c5b0;
}

.admin-search-wrapper input {
    padding: 6px 12px;
    border: 1px solid #c9bea9;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: 'Be Vietnam Pro', sans-serif;
    width: 220px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table-full {
    width: 100%;
    border-collapse: collapse;
}

.admin-table-full th,
.admin-table-full td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5dbcd;
    text-align: left;
    font-size: 13px;
}

.admin-table-full th {
    background: #ebdcc9;
    font-size: 12px;
    font-weight: 700;
    color: #3d2f21;
}

.admin-table-full tbody tr:hover {
    background: #f3ede2;
}

.table-title-cell {
    font-weight: 600;
    color: #2b1f14;
}

.table-date {
    font-size: 12px;
    color: #7a6c5d;
}

.btn-tbl-action {
    padding: 4px 8px;
    font-size: 11.5px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    margin: 0 2px;
}

.btn-tbl-edit {
    background: #e2d5c1;
    color: #3b2f21;
    border-color: #bfaea0;
}

.btn-tbl-edit:hover {
    background: #d2c1a8;
}

.btn-tbl-del {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.btn-tbl-del:hover {
    background: #fecaca;
}

.admin-footer-full {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #7a6e60;
    border-top: 1px solid #d5c8b2;
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .class-grid-full { grid-template-columns: 1fr 1fr; }
    .admin-workspace-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .download-grid-layout { grid-template-columns: 1fr; }
    .poster-steps-grid { grid-template-columns: 1fr; }
    .poster-gift-box { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
    .header-right { text-align: center; }
    .nav-links { flex-direction: column; text-align: center; }
    .class-grid-full { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .community-popup-grid { grid-template-columns: 1fr; }
    .modal-body { padding: 20px 15px; }
    .spec-row { flex-direction: column; gap: 4px; }
    .poster-actions-row { flex-direction: column; }
    .btn-poster-download, .btn-modal-close-action { width: 100%; }
}

/* Tùy chỉnh Logo góc trái Header */
.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

/* Nút Driver cho máy thiếu trên Sidebar */
.btn-sidebar-driver {
    background: linear-gradient(180deg, #b88a44 0%, #8c6426 100%);
    color: #fff;
    border: 1px solid #d4a75e;
    padding: 12px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(140, 100, 38, 0.3);
    transition: all 0.2s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
    text-align: left;
}

.btn-sidebar-driver:hover {
    background: linear-gradient(180deg, #c9984e 0%, #9e722e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(140, 100, 38, 0.45);
}
