:root {
    --primary-color: #E91E63;
    --font-lemon: 'Lemon', cursive;
    --font-lemonada: 'Lemonada', cursive;
    
    /* Gradients Official */
    --grad-purple: linear-gradient(to bottom, #9C27B0, #E040FB);
    --grad-pink: linear-gradient(to bottom, #E91E63, #FF4081);
    --grad-blue: linear-gradient(to bottom, #2196F3, #64B5F6);
    --grad-orange: linear-gradient(to bottom, #FF9800, #FFCC80);
    --grad-green: linear-gradient(to bottom, #4CAF50, #81C784);
    --grad-indigo: linear-gradient(to bottom, #3F51B5, #7986CB);
    --grad-dark: linear-gradient(to bottom, #555, #777);
    --grad-brown: linear-gradient(to bottom, #795548, #A1887F);
    --grad-red: linear-gradient(to bottom, #F44336, #FF5252);

    /* --- RESPONSIVE VARIABLES (DEFAULT MOBILE) --- */
    --map-point-scale: 1.0;  /* Scale cho map points - Mobile */
    --grid-item-min: 150px;   /* Grid column min width mặc định */
}

/* Tablet */
@media (min-width: 600px) {
    :root {
        --map-point-scale: 1.2;
        --grid-item-min: 200px;
    }
}

/* Desktop Small */
@media (min-width: 1024px) {
    :root {
        --map-point-scale: 1.4; /* Desktop scale 1.4 */
        --grid-item-min: 260px;
    }
}

/* Desktop Large */
@media (min-width: 1440px) {
    :root {
        --map-point-scale: 1.6; /* Màn hình rộng scale 1.6 */
        --grid-item-min: 320px; /* Grid rộng 320px */
    }
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; user-select: none; -webkit-tap-highlight-color: transparent; }
html, body { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background: #000; 
    font-family: var(--font-lemonada);
    -webkit-text-size-adjust: 100%;
}
#app { width: 100%; height: 100%; position: relative; overflow: hidden; }

/* Utilities */
.hidden { display: none !important; }
.full-screen { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.overlay-dark { width: 100%; height: 100%; background: rgba(0,0,0,0.4); }

/* --- BUTTONS 3D --- */
.pushable { 
    position: relative; border: none; background: transparent; padding: 0; cursor: pointer; outline-offset: 4px; transition: filter 250ms; 
}
.pushable:hover { filter: brightness(110%); }
.pushable:active .front { transform: translateY(-2px); }
.pushable:active .shadow { transform: translateY(1px); }
.pushable .shadow { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; 
    background: rgba(0, 0, 0, 0.25); transform: translateY(4px); filter: blur(4px); 
}
.pushable .edge { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; 
}
.pushable .front { 
    display: flex; align-items: center; justify-content: center; position: relative; 
    padding: 10px 15px; border-radius: 12px; font-size: 1rem; color: white; 
    transform: translateY(-6px); transition: transform 100ms; font-family: var(--font-lemon); 
    gap: 8px; white-space: nowrap; 
}

.icon-btn { 
    position: relative; border: none; width: 48px; height: 48px; border-radius: 12px; 
    color: white; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; 
    justify-content: center; transition: all 0.1s; box-shadow: 0 4px 0 rgba(0,0,0,0.2); 
}
.icon-btn:active { transform: translateY(4px); box-shadow: none; }

/* Colors */
.btn-purple .front { background: var(--grad-purple); } .btn-purple .edge { background: #7B1FA2; }
.btn-pink .front { background: var(--grad-pink); } .btn-pink .edge { background: #C2185B; }
.btn-blue .front { background: var(--grad-blue); } .btn-blue .edge { background: #1976D2; } .btn-blue.icon-btn { background: var(--grad-blue); }
.btn-orange .front { background: var(--grad-orange); } .btn-orange .edge { background: #F57C00; } .btn-orange.icon-btn { background: var(--grad-orange); }
.btn-indigo .front { background: var(--grad-indigo); } .btn-indigo .edge { background: #303F9F; } .btn-indigo.icon-btn { background: var(--grad-indigo); }
.btn-dark .front { background: var(--grad-dark); } .btn-dark .edge { background: #333; } .btn-dark.icon-btn { background: var(--grad-dark); }
.btn-green .front { background: var(--grad-green); } .btn-green .edge { background: #388E3C; }
.btn-brown .front { background: var(--grad-brown); } .btn-brown .edge { background: #5D4037; }
.btn-red .front { background: var(--grad-red); } .btn-red .edge { background: #D32F2F; } .btn-red.icon-btn { background: var(--grad-red); box-shadow: 0 4px 0 #D32F2F; }

/* --- STICKY CLOSE BUTTON STYLE --- */
.btn-close-sticky {
    position: absolute;
    top: -25px; /* Đẩy lên 1 nửa chiều cao nút để nằm giữa mép */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #212121; /* Màu đen nhẹ cho đỡ gắt */
    color: #fff;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100; /* Đảm bảo nằm trên nội dung */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.btn-close-sticky:hover {
    background-color: #E91E63; /* Hover đổi màu hồng thương hiệu */
    transform: translateX(-50%) scale(1.1) rotate(90deg); /* Xoay nhẹ khi hover */
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
    border-color: #fff;
}

.btn-close-sticky:active {
    transform: translateX(-50%) scale(0.9);
}

/* --- MAP STYLES --- */
.map-viewport { width: 100%; height: 100%; position: relative; background-color: #333; overflow: hidden; }

/* TYPE 0: Page Scroll */
.map-pages-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.map-page { flex: 0 0 100%; width: 100%; height: 100%; position: relative; background-size: 100% 100%; }

/* TYPE 1: Grid View */
.map-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-item-min), 1fr)); 
    gap: 20px; padding: 100px 40px; 
    width: 100%; height: 100%; 
    background: url('assets/image/stem.png') center/cover; 
    overflow-y: auto;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.6); 
}

.grid-item-container {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform 0.2s;
}
.grid-item-container:active { transform: scale(0.95); }

.grid-image-box {
    width: 100%; aspect-ratio: 4/3; border-radius: 15px; 
    background-size: cover; background-position: center;
    border: 3px solid #4CAF50; position: relative;
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}
.grid-image-box.locked { border-color: #999; filter: grayscale(1); }

/* TYPE 2: Scroll Long Map */
.map-scroll-container { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; position: relative; white-space: nowrap; }

/* --- MAP POINTS --- */
.map-point { 
    position: absolute; 
    display: flex; flex-direction: column; align-items: center; 
    cursor: pointer; z-index: 10;
    transform: scale(var(--map-point-scale));
    transform-origin: center center;
    transition: transform 0.2s; 
}

.map-point:active { 
    transform: scale(calc(var(--map-point-scale) * 0.95)); 
}

/* --- RESTORED MAP POINT POSITIONS (YOUR CODE) --- */
.map-scroll-container .map-point{
    position: absolute;
    bottom: unset!important;
    right: unset!important;
}
.map-scroll-container .map-point:nth-child(1) { left: 3%!important; top: 16%!important; }
.map-scroll-container .map-point:nth-child(2) { left: 10%!important; top: 65%!important; }
.map-scroll-container .map-point:nth-child(3) { left: 15%!important; top: 24%!important; }
.map-scroll-container .map-point:nth-child(4) { left: 21.5%!important; top: 63%!important; }

.point-card { 
    width: 140px; height: 100px; 
    border-radius: 15px; border: 3px solid white; 
    background-size: 100% 100%; background-color: rgba(0,0,0,0.5); 
    position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.6); 
    margin-top: 5px; overflow: visible !important; /* Allow stars to pop out */
}
.point-card.locked { filter: grayscale(1); border-color: #999; }

.point-dot { 
    width: 36px; height: 36px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    color: white; font-weight: bold; font-family: var(--font-lemon); 
    box-shadow: 0 4px 5px rgba(0,0,0,0.3); z-index: 2; font-size: 1.1rem; border: 2px solid white; 
}
.point-dot.unlocked { background: linear-gradient(135deg, #4CAF50, #81C784); animation: pulse 1s ease-in-out infinite; }
.point-dot.locked { background: #999; }

.point-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; 
    border-radius: 12px;
}

.point-label { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7)); 
    color: white; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; 
    font-size: 0.85rem; padding: 8px 6px; white-space: nowrap; 
    overflow: hidden; text-overflow: ellipsis; text-align: center; 
    font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.8); letter-spacing: 0.3px;
    z-index: 2;
}

/* --- MAP PROGRESS BADGE --- */
.map-point .point-card div[style*="background:rgba(0,0,0,0.6)"] {
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}

/* --- QUIZ STYLES --- */
#quiz-overlay { 
    background: url('assets/image/bg.png') center/cover; 
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.7); 
    overflow-y: auto;
}
#quiz-overlay .fa-star {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

.quiz-container {
    width: 90%; max-width: 900px; display: flex; flex-direction: column; align-items: center;
    position: relative; margin: 50px auto; padding-bottom: 40px;
}

.question-counter {
    position: absolute; top: -50px; left: 0;
    background: #795548; color: white; padding: 10px 20px; border-radius: 20px;
    font-family: var(--font-lemon); font-size: 1.2rem;
    border: 3px solid white; box-shadow: 0 5px 10px rgba(0,0,0,0.5); z-index: 5;
}

.timer-bar {
    position: absolute; top: -60px; right: 0; 
    width: 70px; height: 70px;
    background: #FFF176; border-radius: 50%; border: 5px solid #D32F2F;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-lemon); font-size: 1.8rem; color: #D32F2F;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); z-index: 5;
    transition: transform 0.2s;
}
.time-warning { animation: pulse 0.5s infinite alternate; background: #FF5252; color: white; border-color: white; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } }

.quiz-mascot {
    position: absolute; z-index: 10; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    animation: float 3s ease-in-out infinite; pointer-events: none;
    height: 120px; width: auto; right: -10px; top: -90px;
}

.question-box {
    background: #2E7D32; border: 6px solid #FFB300;
    border-radius: 20px; padding: 20px; margin-bottom: 20px;
    color: white; font-size: 1.2rem; text-align: center; width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6); min-height: 150px; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-family: var(--font-lemonada); line-height: 1.4; position: relative; z-index: 1;
}

.answers-grid-box { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.ans-btn {
    padding: 15px; border-radius: 15px; text-align: center; color: white; 
    font-family: var(--font-lemonada); font-size: 1.1rem; cursor: pointer;
    border: 3px solid rgba(255,255,255,0.5); box-shadow: 0 6px 0 rgba(0,0,0,0.3);
    transition: transform 0.1s; display: flex; align-items: center; justify-content: center; min-height: 70px;
}
.ans-btn:active { transform: translateY(4px); box-shadow: none; top: 4px; }

.bg-green { background: #4CAF50; } .bg-red { background: #F44336; }
.bg-blue { background: #2196F3; } .bg-orange { background: #FF9800; }

/* --- DIALOG & GAME MENU --- */
#dialog-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 2000; 
    display: flex; justify-content: center; align-items: center; padding: 20px; overflow-y: auto; 
}
#dialog-overlay::before { content: ""; display: block; height: 100%; width: 0; }

.dialog-box { 
    width: 400px; max-width: 100%; 
    border-radius: 25px; padding: 25px; 
    text-align: center; color: white; background: var(--grad-purple); 
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); 
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; max-height: 90vh; margin: auto;
    /* Update: Allow button to pop out */
    overflow: visible !important;
}

/* Scroll Container cho nội dung bên trong Dialog để tránh bị tràn */
.dialog-scroll-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
}
.dialog-scroll-container::-webkit-scrollbar { width: 6px; }
.dialog-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }


.skill-options-container { display: flex; flex-direction: column; gap: 12px; padding: 10px 0; }
.skill-option-btn {
    background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px; padding: 12px; display: flex; align-items: center; justify-content: flex-start;
    gap: 15px; cursor: pointer; transition: all 0.2s; color: white; font-family: var(--font-lemonada); text-align: left;
}
.skill-option-btn:active { transform: scale(0.98); }
.skill-icon { width: 45px; height: 45px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.5rem; box-shadow: 0 4px 8px rgba(0,0,0,0.3); flex-shrink: 0; }

.game-icons-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.game-item { cursor: pointer; transition: transform 0.2s; display:flex; flex-direction: column; align-items: center; }
.game-item:active { transform: scale(0.9); }
.game-icon-box { 
    width: 100%; aspect-ratio: 1; border-radius: 15px; 
    border: 2px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.15);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.game-label { font-size: 0.7rem; margin-top: 5px; color: white; font-family: var(--font-lemon); text-align: center; }

/* Specific Game Gradients */
.game-haitao .game-icon-box { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); border-color: #FF5252; }
.game-cauca .game-icon-box { background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%); border-color: #448AFF; }
.game-vutru .game-icon-box { background: linear-gradient(to top, #30cfd0 0%, #330867 100%); border-color: #7C4DFF; }
.game-hopqua .game-icon-box { background: linear-gradient(to right, #f78ca0 0%, #f9748f 60%, #fe9a8b 100%); border-color: #FFD740; }
.game-ong .game-icon-box { background: linear-gradient(120deg, #f6d365 0%, #fda085 100%); border-color: #FFAB00; }

.dialog-actions { display: flex; justify-content: center; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.dialog-subtitle { font-size: 0.9rem; opacity: 0.9; margin-bottom: 10px; display: block; text-align: left; margin-left: 5px; }

/* LOADING & VIDEO & INPUTS */
#loading-bar-container { width: 300px; height: 24px; background: rgba(0,0,0,0.5); border-radius: 12px; overflow: hidden; padding: 2px; margin-bottom: 20px; }
#progress-bar { height: 100%; width: 0%; background: var(--grad-pink); border-radius: 10px; transition: width 1.5s ease-out; }
.spinner { width: 50px; height: 50px; border: 5px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #E91E63; animation: spin 1s linear infinite; }
#api-loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; justify-content: center; align-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-wrapper { width: 100%; height: 100%; position: relative; background: black; }

.input-field { width: 100%; padding: 12px; margin: 10px 0; border-radius: 30px; border: 2px solid #2196F3; font-family: var(--font-lemonada); background: #E3F2FD; color: #0D47A1; outline: none; font-size: 1.2rem; box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); }
.input-field::placeholder { color: rgba(13, 71, 161, 0.5); }

/* ANIMATIONS */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.fade-in-down { animation: fadeInDown 0.5s ease-out forwards; }
.fade-in-left { animation: fadeInLeft 0.5s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.5s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* --- STEAM OVERLAY STYLES --- */
#steam-overlay {
    background: rgba(20, 20, 20, 0.95);
    overflow-y: auto;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3000;
}

.steam-container {
    width: 95%; max-width: 1200px;
    margin: 80px auto 40px auto;
    color: white;
    padding-bottom: 50px;
}

.steam-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.steam-title {
    font-family: var(--font-lemon);
    color: #FFEB3B;
    text-shadow: 0 4px 0 #E65100;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Gallery Specific */
.gallery-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 16px; border-radius: 20px; border: none;
    background: rgba(255, 255, 255, 0.2); color: white;
    cursor: pointer; font-family: var(--font-lemonada);
    transition: all 0.3s;
}
.filter-btn.active { background: var(--grad-pink); box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer; transition: transform 0.3s;
    color: #333;
}
.gallery-item:hover { transform: translateY(-5px); }

.gallery-img {
    height: 180px; width: 100%;
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative;
}
.gallery-badge {
    position: absolute; top: 10px; right: 10px;
    background: #E91E63; color: white; padding: 4px 10px;
    border-radius: 12px; font-size: 0.8rem; font-weight: bold;
}
.gallery-content { padding: 15px; }
.gallery-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-author { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.gallery-actions { 
    display: flex; gap: 15px; border-top: 1px solid #eee; 
    padding-top: 10px; color: #666; font-size: 0.9rem;
}
.action-item { display: flex; align-items: center; gap: 5px; }
.action-item.liked { color: #E91E63; }

/* Modal Content Styles */
.product-modal-body { text-align: left; color: #333; font-family: var(--font-lemonada); }
.pm-header { display: flex; gap: 20px; margin-bottom: 20px; }
.pm-icon { 
    width: 80px; height: 80px; background: #E3F2FD; 
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; border: 2px solid #2196F3;
}
.pm-title-box h2 { margin: 0; color: #E91E63; font-size: 1.5rem; }
.pm-desc { background: #f5f5f5; padding: 15px; border-radius: 10px; margin-bottom: 20px; line-height: 1.5; max-height: 150px; overflow-y: auto;}

.comment-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.comment-item { background: #fff; padding: 10px; border-radius: 10px; border-left: 3px solid #E91E63; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.comment-user { font-weight: bold; font-size: 0.9rem; color: #333; }
.comment-text { font-size: 1rem; color: #555; }
.comment-date { font-size: 0.8rem; color: #999; }

/* File Upload Styles */
.file-upload-box {
    display: block; border: 2px dashed #E91E63; 
    background: #fff0f5; padding: 20px; border-radius: 15px; 
    text-align: center; margin: 15px 0; cursor: pointer; 
    color: #E91E63; transition: all 0.2s;
}
.file-upload-box:hover { background: #fff; border-color: #C2185B; transform: scale(0.98); }
.file-upload-box i { font-size: 2rem; margin-bottom: 10px; display: block; }

.preview-container { 
    display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; min-height: 10px;
}
.preview-img { 
    width: 70px; height: 70px; object-fit: cover; border-radius: 10px; 
    border: 2px solid #E91E63; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.form-row { display: flex; gap: 15px; margin-bottom: 10px; }
.form-row .input-field { margin: 0; }

/* --- LEADERBOARD STYLES --- */
.podium-container {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 15px; margin-bottom: 30px; padding-top: 20px;
}

.podium-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.podium-item:hover { transform: translateY(-10px); }

.podium-avatar-box { position: relative; margin-bottom: 10px; }
.podium-avatar {
    border-radius: 50%; object-fit: cover; border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.crown-icon {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    font-size: 2rem; animation: float 2s ease-in-out infinite;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.podium-item.rank-1 { z-index: 3; }
.podium-item.rank-1 .podium-avatar { width: 100px; height: 100px; border-color: #FFD700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
.podium-item.rank-1 .podium-base { height: 140px; background: linear-gradient(135deg, #FFD700, #FDB931); box-shadow: 0 10px 20px rgba(253, 185, 49, 0.4); }
.podium-item.rank-1 .crown-icon { color: #FFD700; }

.podium-item.rank-2 { z-index: 2; }
.podium-item.rank-2 .podium-avatar { width: 80px; height: 80px; border-color: #C0C0C0; }
.podium-item.rank-2 .podium-base { height: 100px; background: linear-gradient(135deg, #E0E0E0, #BDBDBD); }

.podium-item.rank-3 { z-index: 1; }
.podium-item.rank-3 .podium-avatar { width: 80px; height: 80px; border-color: #CD7F32; }
.podium-item.rank-3 .podium-base { height: 80px; background: linear-gradient(135deg, #CD7F32, #A0522D); }

.podium-base {
    width: 100px; border-top-left-radius: 10px; border-top-right-radius: 10px;
    display: flex; justify-content: center; align-items: center;
    color: white; font-family: var(--font-lemon); font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); position: relative;
}

.podium-info {
    position: absolute; bottom: -60px; width: 140px;
    background: rgba(255,255,255,0.9); padding: 5px; border-radius: 10px;
    color: #333; font-size: 0.9rem; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.podium-name { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.podium-score { color: #E91E63; font-weight: bold; font-size: 1rem; }

/* List Style (Rank 4+) */
.leaderboard-list-rest {
    margin-top: 70px; background: rgba(255,255,255,0.1);
    padding: 15px; border-radius: 20px;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}

.leaderboard-item {
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px; padding: 10px 15px;
    color: #333; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; font-family: var(--font-lemonada);
}
.leaderboard-item:hover { transform: scale(1.02); background: #fff; }

.lb-rank {
    font-size: 1.3rem; font-weight: bold; width: 50px; text-align: center; 
    color: #666; font-family: var(--font-lemon);
}
.lb-avatar {
    width: 50px; height: 50px; border-radius: 50%; border: 2px solid #eee; 
    object-fit: cover; margin: 0 20px;
}
.lb-info { flex: 1; overflow: hidden; }
.lb-name { 
    font-weight: bold; font-size: 1.1rem; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-school { 
    font-size: 0.9rem; color: #777; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-stats { text-align: right; min-width: 80px; }
.lb-score { font-weight: bold; color: #E91E63; font-size: 1.2rem; }
input#commentInput {font-size: 1rem;}
/* --- DESKTOP RESTORED --- */
@media (min-width: 1024px) {
    .podium-info { width: 200px; }
    .podium-container { gap: 105px; }
    .map-scroll-container .map-point:nth-child(1) { left: 6%!important; top: 23%!important; }
    .map-scroll-container .map-point:nth-child(2) { left: 14%!important; top: 70%!important; }
    .map-scroll-container .map-point:nth-child(3) { left: 19%!important; top: 30%!important; }
    .map-scroll-container .map-point:nth-child(4) { left: 26%!important; top: 70%!important; }
    .pushable .front { font-size: 1.3rem; padding: 15px 30px; }
    .dialog-box h2, .dialog-box h3 { font-size: 2rem; }
    .dialog-subtitle { font-size: 1.2rem; }
    .game-label { font-size: 1rem; }
    .input-field { font-size: 1.4rem; padding: 18px 25px; }
    .dialog-box { width: 500px; padding: 40px; }
    
    .quiz-mascot { height: 360px;margin-right: -450px; top: 0; }
    .quiz-container { max-width: 800px; margin-top: 80px; }
    .question-box { font-size: 1.8rem; min-height: 220px; padding: 40px; }
    .ans-btn { font-size: 1.4rem; padding: 25px; }
    
    .timer-bar { width: 90px; height: 90px; font-size: 2.2rem; top: -70px; }
    .question-counter { font-size: 1.5rem; padding: 15px 30px; top: -60px; }
    
    .game-icons-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .form-row { flex-direction: column; gap: 10px; }
    .input-field { padding: 10px 15px; font-size: 1rem; }
    #uploadDescription { min-height: 80px; }
    
    /* Mobile Podium */
    .podium-container { gap: 5px; align-items: flex-end; }
    .podium-item.rank-1 .podium-avatar { width: 80px; height: 80px; }
    .podium-item.rank-2 .podium-avatar, .podium-item.rank-3 .podium-avatar { width: 60px; height: 60px; }
    .podium-base { width: 80px; font-size: 2rem; }
    .podium-item.rank-1 .podium-base { height: 110px; }
    .podium-item.rank-2 .podium-base { height: 80px; }
    .podium-item.rank-3 .podium-base { height: 60px; }
    .podium-info { width: 100px; font-size: 0.8rem; bottom: -50px; }
    .crown-icon { font-size: 1.5rem; top: -20px; }
    
    /* Mobile List */
    .leaderboard-list-rest { margin-top: 60px; padding: 10px; }
    .leaderboard-item { padding: 8px 10px; }
    .lb-rank { font-size: 1rem; width: 30px; }
    .lb-avatar { width: 35px; height: 35px; margin: 0 10px; }
    .lb-name { font-size: 0.95rem; }
    .lb-school { font-size: 0.8rem; display: none; }
    .lb-score { font-size: 1rem; }
}

/* --- FORCE LANDSCAPE WARNING (Optional) --- */
@media (orientation: portrait) and (max-width: 767px) {
     #side-buttons {
        flex-direction: row;
        top: unset !important;
        bottom: 0;
        right: unset !important;
        margin: auto;
        width: 100%;
        gap: 1rem;
    }
    .map-page {
        background-size: cover;
        background-position: center;
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* 1. STAR RATING INPUT (Trong modal bình luận) */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse; /* Đảo ngược để dùng hover css trick */
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating-input input { display: none; }

.star-rating-input label {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

/* Hiệu ứng: Khi hover hoặc check thì các sao phía trước sáng lên */
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}
/* 2. LIGHTBOX / SLIDESHOW */
#lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 5000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.lightbox-img-container {
    position: relative; max-width: 90%; max-height: 80%;
}
.lightbox-img {
    max-width: 100%; max-height: 80vh; 
    border: 2px solid white; border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.lightbox-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); border: none; color: white;
    font-size: 2rem; padding: 10px; cursor: pointer; border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.5); }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; color: white; border: none; font-size: 2rem; cursor: pointer;
}
.lightbox-dots {
    display: flex; gap: 10px; margin-top: 15px;
}
.lb-dot {
    width: 12px; height: 12px; border-radius: 50%; background: #555; cursor: pointer;
}
.lb-dot.active { background: #E91E63; border: 2px solid white; }

/* 3. NÚT EDIT/DELETE TRONG MODAL */
.owner-actions {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ccc;
    display: flex; gap: 10px; justify-content: flex-end;
}
#quiz-content{ background-image: url("assets/image/bgq1.jpg"); }
.product-thumbnails {
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    margin: 15px 0; 
    padding-bottom: 5px;
    scrollbar-width: thin; /* Firefox */
}
.product-thumbnails::-webkit-scrollbar { height: 6px; }
.product-thumbnails::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.prod-thumb {
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    border-radius: 12px; 
    cursor: pointer; 
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Không bị co lại nếu nhiều ảnh */
}

.prod-thumb:hover { 
    border-color: #E91E63; 
    transform: translateY(-2px);
}
/* --- EMPTY STATE (KHI CHƯA CÓ BÀI HỌC) --- */
.empty-state-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #4a148c, #000); /* Nền tối sang trọng */
    color: white;
    text-align: center;
    padding: 20px;
}

.empty-content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.5s ease-out;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#FFD700, #FF8F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    animation: float 3s ease-in-out infinite; /* Icon bay bay */
}

.empty-title {
    font-family: var(--font-lemon);
    font-size: 1.8rem;
    margin: 10px 0;
    color: #E1BEE7;
}

.empty-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Tái sử dụng animation float cũ hoặc định nghĩa lại nếu chưa có */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
/* 1. HERO IMAGE (Ảnh to đầu tiên) */
.hero-image-container {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}
.hero-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Giới hạn chiều cao */
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.hero-image:hover { transform: scale(1.02); }

/* 2. MEDIA TRONG MÔ TẢ (Smart Description) */
.desc-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.desc-media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 2px solid #eee;
}
.desc-media-thumb {
    width: 100%; height: 100%; object-fit: cover;
}
.play-icon-overlay {
    position: absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    color: white; font-size: 2rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* 3. MODAL DANH SÁCH LIKE */
.like-list-container {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}
.like-user-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-bottom: 1px solid #eee;
}
.like-user-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}

/* 4. COMMENT RATING & ACTION */
.comment-header {
    display: flex; justify-content: space-between; align-items: flex-start;
}
.user-rating-stars {
    color: #FFB300; font-size: 0.8rem; margin-left: 5px;
}
.btn-delete-cmt {
    font-size: 0.8rem; color: #F44336; cursor: pointer; opacity: 0.7;
}
.btn-delete-cmt:hover { opacity: 1; text-decoration: underline; }

/* 5. DISABLED STATE (Cho chủ sở hữu) */
.disabled-interaction {
    opacity: 0.5; pointer-events: none; filter: grayscale(1);
}
/* --- CỐ ĐỊNH HEADER MODAL (Fix Scroll) --- */
.dialog-box.fixed-layout {
    display: flex !important;        /* Sử dụng Flexbox */
    flex-direction: column;          /* Xếp dọc */
    padding: 0 !important;           /* Xóa padding mặc định của dialog-box */
    overflow: hidden !important;     /* Tắt cuộn ở khung ngoài */
    max-height: 90vh;                /* Giới hạn chiều cao */
}

.modal-header-sticky {
    flex-shrink: 0;                  /* Không bị co lại */
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid #eee;
    text-align: right;
    border-top-left-radius: 20px;    /* Bo góc khớp với dialog-box */
    border-top-right-radius: 20px;
}

.modal-body-scroll {
    flex-grow: 1;                    /* Chiếm hết phần còn lại */
    overflow-y: auto;                /* Chỉ cuộn phần này */
    padding: 20px;                   /* Padding nội dung chuyển vào đây */
    text-align: left;
}

/* Tùy chỉnh thanh cuộn cho đẹp */
.modal-body-scroll::-webkit-scrollbar { width: 8px; }
.modal-body-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-body-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-body-scroll::-webkit-scrollbar-thumb:hover { background: #E91E63; }
/* --- TIME CONTROL STYLES --- */

/* Widget Đồng hồ */
.timer-widget {
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(-50%);
    z-index: 8000; /* Nằm trên các UI thường nhưng dưới overlay dialog */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.5s ease;
    min-width: 140px;
    justify-content: center;
}

/* Các trạng thái màu sắc */
.timer-widget.normal { border-color: #4CAF50; box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
.timer-widget.warning { border-color: #FF9800; box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); animation: pulse 2s infinite; }
.timer-widget.critical { 
    border-color: #F44336; 
    background: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.8); 
    animation: shake 0.5s infinite; 
}

.timer-icon { font-size: 1.2rem; color: white; z-index: 2; }
.timer-text { 
    font-family: var(--font-lemon); 
    font-size: 1.4rem; 
    color: white; 
    z-index: 2; 
    text-shadow: 0 2px 2px rgba(0,0,0,0.8);
    min-width: 80px;
    text-align: center;
}

/* Thanh progress chạy nền bên trong nút */
.timer-progress {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    opacity: 0.3;
}
#timer-bar {
    fill: currentColor;
    transition: width 1s linear;
}

/* Animation Rung lắc khi sắp hết giờ */
@keyframes shake {
    0% { transform: translateX(-52%); }
    25% { transform: translateX(-48%); }
    50% { transform: translateX(-52%); }
    75% { transform: translateX(-48%); }
    100% { transform: translateX(-50%); }
}

/* Responsive cho mobile: Đưa đồng hồ xuống góc hoặc làm nhỏ lại */
@media (max-width: 767px) {
    .timer-widget {
        top: 10px;
        padding: 5px 15px;
        min-width: 110px;
    }
    .timer-text { font-size: 1.1rem; min-width: 60px; }
    .timer-icon { font-size: 1rem; }
}
/* --- TIMEOUT DREAM THEME --- */

/* 1. Tiêu đề và nội dung */
.sleep-title {
    font-family: var(--font-lemon);
    font-size: 2.5rem;
    background: -webkit-linear-gradient(#FFF, #9FA8DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0 10px 0;
    text-shadow: 0 0 20px rgba(159, 168, 218, 0.5);
}

.sleep-message-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 2. Robot khổng lồ & Hiệu ứng */
.robot-sleep-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.big-sleepy-robot {
    width: 360px; /* Tăng kích thước to hơn */
    height: auto;
    filter: drop-shadow(0 0 30px rgba(33, 150, 243, 0.4));
    animation: sleepyFloat 4s ease-in-out infinite;
}

.zzz-text {
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    color: white;
    font-size: 2rem;
    opacity: 0;
    animation: zzzAnim 3s ease-in-out infinite;
}

@keyframes sleepyFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); } /* Nhịp thở nhẹ */
}

@keyframes zzzAnim {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(30px, -40px) scale(1.2); opacity: 0; }
}

/* 3. Hiệu ứng Sao Lấp Lánh (Night Sky) */
.night-sky-container {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; overflow: hidden;
}

.star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
    animation: twinkle 2s infinite ease-in-out;
}

/* Tạo vị trí ngẫu nhiên cho các ngôi sao (Hardcode một vài vị trí) */
.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; transform: scale(1.5); }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 10%; animation-delay: 1s; transform: scale(2); }
.star:nth-child(4) { top: 40%; left: 50%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 80%; left: 70%; animation-delay: 0.2s; }
.star:nth-child(6) { top: 15%; left: 40%; animation-delay: 0.8s; transform: scale(1.2); }
.star:nth-child(7) { top: 70%; left: 30%; animation-delay: 1.2s; }
.star:nth-child(8) { top: 30%; left: 90%; animation-delay: 0.4s; }
.star:nth-child(9) { top: 50%; left: 5%; animation-delay: 1.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Responsive Mobile */
@media (max-width: 767px) {
    .big-sleepy-robot { width: 180px; } /* Mobile thì nhỏ lại chút cho vừa màn */
    .sleep-title { font-size: 1.8rem; }
    .sleep-message-box { font-size: 1rem; padding: 15px; }
}
/* --- ADMIN MODAL STYLE --- */
#admin-modal .dialog-box {
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.5); /* Ánh sáng đỏ neon bao quanh */
    animation: adminPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes adminPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- YOUTUBE SUBSCRIBE MODAL --- */
.youtube-modal-box {
    background: linear-gradient(135deg, #282828, #000000) !important;
    border: 2px solid #FF0000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4) !important;
    width: 450px !important;
}

.yt-header {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.text-btn:hover {
    color: white !important;
}
/* --- LEADERBOARD TABS STYLE --- */
.lb-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.lb-tab-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-lemonada);
    font-size: 0.9rem;
    transition: all 0.3s;
    opacity: 0.7;
}

.lb-tab-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.lb-tab-btn.active {
    background: white;
    color: #E91E63;
    opacity: 1;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Cập nhật lại List Rest để đẹp hơn khi list ngắn */
.leaderboard-list-rest {
    margin-top: 70px; 
    background: rgba(255,255,255,0.1);
    padding: 15px; 
    border-radius: 20px;
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    min-height: 100px; /* Để tránh bị giật khi load */
}
/* --- BUTTONS UPDATE --- */
/* Thêm class btn-teal */
.btn-teal .front { background: linear-gradient(to bottom, #009688, #4DB6AC); } 
.btn-teal .edge { background: #00796B; }
.btn-teal.icon-btn { background: linear-gradient(to bottom, #009688, #4DB6AC); }

/* --- GUIDE MODAL STYLES --- */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px;
}

.guide-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

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

.guide-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    border: 3px solid white;
}

.guide-card-title {
    font-family: var(--font-lemon);
    margin: 5px 0;
    font-size: 1.1rem;
}

.guide-card-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Responsive cho Guide Modal */
@media (max-width: 767px) {
    .guide-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
    .guide-card {
        flex-direction: row; /* Chuyển sang hàng ngang cho gọn */
        text-align: left;
        align-items: flex-start;
        padding: 10px;
    }
    .guide-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 15px;
        flex-shrink: 0;
    }
    .guide-card-title {
        margin-top: 0;
    }
}
.guide-list {
    margin: 5px 0 0 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.guide-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    display: flex;       /* Để icon và text thẳng hàng */
    align-items: flex-start;
    gap: 6px;
}

.guide-list li b {
    color: #333;
    font-weight: 700;
}

/* Cập nhật lại .guide-card để căn chỉnh tốt hơn với nội dung dài */
.guide-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: row; /* Luôn xếp ngang icon và nội dung */
    align-items: flex-start; /* Căn trên cùng */
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.5);
}

.guide-icon-box {
    width: 50px;       /* Thu nhỏ icon một chút để dành chỗ cho chữ */
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px; /* Khoảng cách với nội dung text */
    border: 3px solid white;
    flex-shrink: 0;     /* Không bị co méo */
}

.guide-card-title {
    font-family: var(--font-lemon);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    display: inline-block;
}

/* Responsive adjustment */
@media (max-width: 767px) {
    .guide-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
    .guide-list li {
        font-size: 0.9rem;
    }
}
/* [FIX LỖI MỖI CHỮ 1 HÀNG] */
.guide-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    display: flex;       
    align-items: flex-start;
    gap: 8px; /* Khoảng cách giữa icon và chữ */
}

/* Quan trọng: Cho phép phần chữ (trong thẻ span) chiếm hết không gian còn lại */
.guide-list li span {
    flex: 1; 
    display: block;
    word-break: break-word; /* Ngắt dòng hợp lý nếu từ quá dài */
}

/* Style cho phần chữ đậm */
.guide-list li b {
    color: #333;
    font-weight: 700;
}

/* [STYLE CHO SHARE MODAL MỚI] */
#share-modal .dialog-box {
    overflow: visible !important; /* Để nút close sticky hoạt động tốt */
}
.spkhoi:not(:empty) {
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #6b79c6;
}