/* Biến CSS - Màu sắc, font, hiệu ứng chung - Theme Trắng Đỏ */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --accent: #dc2626;
    --accent-dark: #991b1b;
    --bg-dark: #ffffff;
    --bg-section: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f3f4f6;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --border-gold: rgba(220,38,38,0.2);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --font: 'Noto Sans', sans-serif;
    --transition: all 0.3s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: var(--radius);
    cursor: pointer; font-family: var(--font); font-size: 14px;
    font-weight: 600; transition: var(--transition); text-transform: uppercase;
    letter-spacing: 0.5px; background: var(--bg-card); color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none;
}
.btn-primary:hover { box-shadow: 0 0 15px rgba(220,38,38,0.4); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.btn-outline-gold {
    background: transparent; border: 2px solid var(--primary);
    color: var(--primary); padding: 12px 30px; border-radius: 30px;
}
.btn-outline-gold:hover { background: var(--primary); color: #fff; }

/* === NAVBAR - Thanh điều hướng cố định trên cùng === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar-inner {
    display: flex; align-items: center; height: 64px; gap: 20px;
}
.navbar-logo { flex-shrink: 0; }
.logo-img { height: 80px; width: auto; transition: var(--transition); }
.logo-img:hover { transform: scale(1.02); }
.navbar-menu {
    display: flex; gap: 4px; flex: 1; justify-content: center;
}
.navbar-menu li a {
    display: flex; align-items: center; gap: 8px; padding: 10px 18px; 
    color: #374151; font-size: 14px; font-weight: 600; white-space: nowrap;
    letter-spacing: 0.3px; border-radius: 6px; transition: var(--transition);
    position: relative;
}
.navbar-menu li a::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: var(--primary); border-radius: 3px;
    transition: width 0.3s ease;
}
.navbar-menu li a:hover, .navbar-menu li a.active {
    color: var(--primary); background: rgba(220,38,38,0.05);
}
.navbar-menu li a:hover::after, .navbar-menu li a.active::after { width: 50%; }
.navbar-menu li a i { font-size: 14px; }
.navbar-actions {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-guest { display: flex; gap: 10px; align-items: center; }
.nav-logged { display: flex; align-items: center; gap: 12px; }
.btn-nav-login {
    position: relative;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 9px 26px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.btn-nav-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    z-index: -1;
}
.btn-nav-login:hover {
    color: #fff;
    border-color: var(--primary);
}
.btn-nav-login:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.btn-nav-register {
    position: relative;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    padding: 11px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 15px rgba(220,38,38,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    animation: regGlow 3s ease-in-out infinite;
}
@keyframes regGlow {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 4px 15px rgba(220,38,38,0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
    50% { background-position: 100% 50%; box-shadow: 0 4px 25px rgba(220,38,38,0.5), inset 0 1px 0 rgba(255,255,255,0.15); }
}
.btn-nav-register::before {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}
.btn-nav-register:hover::before { left: 120%; }
.btn-nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220,38,38,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-nav-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220,38,38,0.3);
}
.nav-balance {
    color: var(--primary); font-size: 14px; font-weight: 700;
    padding: 6px 14px; background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.2); border-radius: 25px;
}
.btn-nav-user {
    background: #f3f4f6; border: 1px solid #e5e7eb;
    color: #374151; padding: 8px 14px; border-radius: 6px;
    cursor: pointer; font-size: 13px; font-family: var(--font); font-weight: 600;
}
.btn-nav-user:hover { background: #e5e7eb; }
.nav-user-dropdown { position: relative; }
.dropdown-panel {
    display: none; position: absolute; right: 0; top: 100%;
    margin-top: 8px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: var(--radius); min-width: 200px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 100;
}
.dropdown-panel a {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    color: #374151; font-size: 14px; font-weight: 500;
}
.dropdown-panel a:hover { background: #f9fafb; color: var(--primary); }
.nav-user-dropdown.open .dropdown-panel { display: block; }
/* Mobile auth buttons inside menu */
.mobile-auth-li { list-style: none; }
.mobile-auth-btns {
    display: flex; gap: 8px; padding: 12px 8px;
    border-top: 1px solid #e5e7eb; margin-top: 4px;
}
.mobile-auth-btns .btn, .mobile-auth-btns a.btn {
    flex: 1; justify-content: center; font-size: 13px; padding: 10px;
    text-align: center;
}
@media (min-width: 769px) {
    .mobile-auth-li { display: none !important; }
}

.navbar-toggle {
    display: none; background: transparent; border: 1px solid #e5e7eb;
    color: #374151; padding: 8px 12px; border-radius: var(--radius); cursor: pointer;
}

.hero {
    position: relative; width: 100%; height: 0; padding-bottom: 46.35%;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: top center;
    background-repeat: no-repeat;
}
.hero-content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 2;
}
.hero-logo {
    max-width: 280px; margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(220,38,38,0.3));
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-play-wrap { text-align: center; }
.btn-hero-play {
    background: none; border: none; cursor: pointer;
    transition: var(--transition); padding: 0;
    filter: drop-shadow(0 0 20px rgba(220,38,38,0.5));
    position: relative; display: inline-block;
}
.btn-hero-play:hover { transform: scale(1.1); }
.btn-hero-play .play-icon { width: 80px; height: auto; position: relative; z-index: 2; }
.play-ring {
    position: absolute; top: 50%; left: 50%;
    width: 110px; height: 110px;
    border-radius: 50%; border: 2px solid rgba(220,38,38,0.6);
    transform: translate(-50%, -50%) scale(0.8);
    animation: playRing 2.5s ease-out infinite;
    pointer-events: none;
}
.ring-2 { animation-delay: 0.6s; }
.ring-3 { animation-delay: 1.2s; }
@keyframes playRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; border-color: rgba(220,38,38,0.8); }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; border-color: rgba(220,38,38,0); }
}
.hero-download-box {
    margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center; align-items: center;
}
.btn-play-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; padding: 18px 56px; font-size: 24px;
    font-weight: 900; border-radius: 50px; cursor: pointer;
    font-family: var(--font); letter-spacing: 2px;
    box-shadow: 0 4px 30px rgba(220,38,38,0.4);
    animation: btn-bounce 1.5s ease-in-out infinite, pulse-glow 2s infinite;
    transition: var(--transition);
}
.btn-play-main:hover { transform: scale(1.1); }
@keyframes btn-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-5px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 20px rgba(220,38,38,0.5); }
}

/* === MAIN BG WRAP - Background chính cuộn xuống === */
.main-bg-wrap {
    background-color: transparent;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 2000px;
}
.main-bg-wrap > .section {
    background: transparent;
}

.section { padding: 60px 0; background: transparent; }
.section.page-section {
    padding: 40px 0 60px;
    min-height: calc(100vh - 200px);
    position: relative;
    background: #f8f9fa;
}
.section.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(220,38,38,0.02) 0%, transparent 100%);
    pointer-events: none;
}
.section-title-img-wrap {
    text-align: center; margin-bottom: 35px;
}
.section-title-img-wrap .section-title-img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(220,38,38,0.2));
}
.section-footer { text-align: center; margin-top: 35px; }

/* === NEWS SECTION - Tin tức trang chủ (slider + tabs) === */
/* === NEWS SECTION - Tin tức trang chủ (slider + tabs) === */
.section-news { background: transparent; }
.news-section-layout {
    display: flex; gap: 20px; align-items: stretch;
}
.news-banner-slider {
    width: 50%; flex-shrink: 0;
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px; border-radius: 0;
    box-shadow: none;
    position: relative; overflow: hidden;
    border: none;
}
.news-banner-slider .slide-item {
    display: none; width: 100%;
}
.news-banner-slider .slide-item.active { display: block; }
.news-banner-slider .slide-item img {
    width: 100%; height: auto; display: block; border-radius: 8px;
    aspect-ratio: 16/9; object-fit: contain;
}
.news-banner-slider .slide-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 12px;
}
.news-banner-slider .slide-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #e5e7eb; border: none; cursor: pointer;
    transition: var(--transition);
}
.news-banner-slider .slide-dot.active { background: var(--primary); }
.news-tab-panel {
    flex: 1; border: 1px solid #e5e7eb;
    background: #fff; border-radius: 12px;
    padding: 8px; display: flex; flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.news-tab-panel .tab-cats {
    display: flex; border-bottom: 1px solid #e5e7eb; margin-bottom: 8px;
}
.news-tab-panel .tab-cat {
    flex: 1; padding: 12px 8px; text-align: center;
    background: none; border: none; cursor: pointer;
    color: #6b7280; font-size: 13px; font-weight: 600;
    font-family: var(--font); letter-spacing: 0.3px;
    transition: var(--transition); position: relative;
}
.news-tab-panel .tab-cat:hover { color: var(--primary); }
.news-tab-panel .tab-cat.active { color: var(--primary); }
.news-tab-panel .tab-cat.active::after {
    content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%;
    height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
}
.news-tab-panel .news-list-inner {
    flex: 1; padding: 4px 8px; overflow-y: auto;
}
.news-tab-panel .news-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 8px; cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f3f4f6;
}
.news-tab-panel .news-item:last-child { border-bottom: none; }
.news-tab-panel .news-item:hover { background: #fef8f3; }
.news-tab-panel .news-bullet {
    flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); margin-top: 6px;
}
.news-tab-panel .news-item-body {
    flex: 1; min-width: 0;
}
.news-tab-panel .news-item-title {
    margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5;
    color: #374151; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.news-tab-panel .news-item:hover .news-item-title { color: var(--primary); }
.news-cat-badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    padding: 1px 6px; border-radius: 3px; margin-right: 6px;
    vertical-align: middle; line-height: 1.6;
}
.news-cat-badge.cat-notice { background: #dbeafe; color: #1d4ed8; }
.news-cat-badge.cat-event { background: #fce7f3; color: #be185d; }
.news-cat-badge.cat-update { background: #d1fae5; color: #065f46; }
.news-cat-badge.cat-guide { background: #fef3c7; color: #92400e; }
.news-date {
    flex-shrink: 0; font-size: 12px; color: #9ca3af;
    margin-top: 4px; white-space: nowrap;
}
.news-view-more {
    display: block; text-align: center; padding: 12px;
    color: var(--primary); font-size: 14px; font-weight: 600;
    border: 2px solid var(--primary); border-radius: 8px; margin: 8px;
    transition: var(--transition);
}
.news-view-more:hover { background: var(--primary); color: #fff; }

/* === HEROES - Danh Tướng & Quân Sư === */
.section-heroes {
    background: transparent;
    padding-top: 20px; padding-bottom: 10px;
}
.heroes-inner {
    background: none;
    border-radius: 12px; border: none;
    padding: 0 10px; position: relative;
}
/* Tab Danh Tướng / Quân Sư */
.heroes-tabs {
    display: flex; gap: 15px; justify-content: center; margin-bottom: 5px;
    z-index: auto;
}
.heroes-tab {
    background: none; border: none; cursor: pointer;
    transition: var(--transition); padding: 0;
    filter: grayscale(0.3) drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.heroes-tab:hover, .heroes-tab.active { filter: grayscale(0) drop-shadow(0 4px 12px rgba(220,38,38,0.3)); transform: scale(1.08); }
.heroes-tab img { height: 60px; width: auto; }
/* Carousel thẻ tướng (.png) - ở trên */
.heroes-carousel-wrap {
    position: relative; z-index: 2;
}
.heroes-prev, .heroes-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 99; cursor: pointer;
    border: none; padding: 0;
    width: 2.7vw; height: 3.7vw;
    min-width: 30px; min-height: 40px;
    background-size: 100% 100%; background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0.85; transition: opacity 0.3s;
}
.heroes-prev { background-image: url('/assets/img/ui/ic-prev.png'); left: -1vw; }
.heroes-next { background-image: url('/assets/img/ui/ic-next.png'); right: -1vw; }
.heroes-prev:hover, .heroes-next:hover { opacity: 1; }
.heroes-prev img, .heroes-next img { display: none; }
.heroes-carousel {
    display: flex; gap: 8px; overflow: hidden;
    scroll-behavior: smooth; padding: 0 2vw;
}
/* Thẻ tướng - chữ nhật lớn giống trang gốc */
.hero-card {
    flex-shrink: 0; width: calc((100% - 56px) / 7);
    cursor: pointer; transition: var(--transition);
    position: relative;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card:not(.active) { filter: grayscale(0.6) brightness(0.55); }
.hero-card.active { filter: none; }
/* Khung ảnh chữ nhật lớn */
.hero-card-art {
    width: 100%; aspect-ratio: 1/2.5; margin: 0 auto;
    border-radius: 8px; overflow: hidden;
    border: 2px solid rgba(180,150,80,0.4);
    transition: var(--transition);
    background: rgba(13,10,6,0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}
.hero-card.active .hero-card-art {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(220,38,38,0.4);
}
.hero-card-art img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.hero-card:hover .hero-card-art img { transform: scale(1.05); }
/* Tên tướng - ẩn theo yêu cầu */
.hero-name {
    display: none;
}
/* Ảnh chi tiết tướng lớn - ở dưới */
.hero-detail-preview {
    text-align: center; margin-top: 5%;
    position: relative;
}
.hero-detail-preview img {
    max-height: none; height: auto; width: auto; max-width: 120%;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.7));
    transition: opacity 0.3s;
    margin-left: -10%;
}
.hero-detail-preview h3 {
    display: none;
}

/* Hero Detail Info Panel */
.hero-detail-info {
    position: absolute; bottom: 5%; right: 0; width: 35%;
    background: rgba(10,8,20,0.85); border-radius: 12px;
    padding: 16px 20px; backdrop-filter: blur(12px);
    border: 1px solid rgba(180,150,80,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    text-align: left; color: #e2e8f0; font-size: 13px;
    max-height: 60%; overflow-y: auto;
}
.hero-detail-meta {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
.hero-badge {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}
.badge-rarity-ssr { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.badge-rarity-sr { background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; }
.badge-rarity-r { background: linear-gradient(135deg,#60a5fa,#3b82f6); color: #fff; }
.badge-rarity-n { background: rgba(100,116,139,0.4); color: #94a3b8; }
.badge-class { background: rgba(59,130,246,0.2); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.badge-nation { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.hero-detail-desc p {
    margin: 0 0 10px; color: #94a3b8; font-size: 12px; line-height: 1.6;
}
.hero-skill-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 6px 10px; margin-bottom: 6px;
    background: rgba(255,255,255,0.04); border-radius: 8px;
    border-left: 3px solid #f59e0b;
}
.hero-skill-item strong { color: #fbbf24; font-size: 12px; }
.hero-skill-item span { color: #94a3b8; font-size: 11px; line-height: 1.5; }
.hero-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin-top: 8px;
}
.hero-stat {
    text-align: center; padding: 6px 4px;
    background: rgba(255,255,255,0.04); border-radius: 6px;
}
.hero-stat .stat-label { display: block; font-size: 10px; color: #64748b; font-weight: 700; letter-spacing: 0.5px; }
.hero-stat .stat-value { display: block; font-size: 14px; font-weight: 700; color: #f1f5f9; margin-top: 2px; }

@media(max-width:768px) {
    .hero-detail-info {
        position: relative; width: 100%; bottom: auto; right: auto;
        margin-top: 16px;
    }
}

/* === MEDIA - Đặc Sắc: Screenshot & Video === */
.section-media {
    position: relative; height: 58.3vw; background: transparent;
}
.media-container {
    position: relative; width: 100%; height: 100%;
}
/* Tiêu đề Đặc Sắc */
.media-title {
    position: absolute; width: 18vw; height: 12.8vw;
    top: -2.6vw; left: 50%; transform: translateX(-50%);
    z-index: 5;
}
.media-title img { width: 100%; height: 100%; object-fit: contain; }
/* Tab buttons */
.media-tab-btn {
    position: absolute; top: 6.25vw; display: block;
    width: 19.9vw; height: 3.4vw;
    background-repeat: no-repeat; background-position: 0 0; background-size: 100%;
    z-index: 5; transition: all 0.3s;
}
.media-btn-screenshot {
    left: 22.9vw;
    background-image: url('/assets/img/ui/btn-screenshot.png');
}
.media-btn-video {
    left: 58.3vw;
    background-image: url('/assets/img/ui/btn-video-tab.png');
}
.media-tab-btn:hover, .media-tab-btn.active { filter: brightness(1.2); }
.media-tab-btn:not(.active) { opacity: 0.6; }
/* Feature wrap */
.media-feature-wrap {
    position: absolute; top: 11.5vw; left: 50%; transform: translateX(-50%);
    width: 68.5vw; display: none;
}
.media-feature-wrap.active { display: block; }
/* Swiper Screenshot */
.media-feature-wrap .slider-feature,
.media-feature-wrap .slider-feature-youtube {
    margin: 0 auto; width: 68.5vw; overflow: hidden;
    display: flex; flex-wrap: wrap; justify-content: center;
}
/* Slides - khung viền */
.media-feature-wrap .swiper-slide {
    display: block;
    background: url('/assets/img/backgrounds/bg-store.png') no-repeat 0 0 / 100%;
    width: 50.5vw; height: 26.1vw;
    padding: 1.56vw;
    filter: brightness(0.2);
}
.media-feature-wrap .swiper-slide.swiper-slide-active {
    filter: brightness(1);
}
.media-feature-wrap .swiper-slide .slide-image,
.media-feature-wrap .swiper-slide .slide-video {
    width: 100%; height: 100%;
}
.media-feature-wrap .swiper-slide .slide-image img {
    width: 100%; height: 100%; object-fit: contain;
}
.media-feature-wrap .swiper-slide .slide-video iframe {
    width: 100%; height: 100%;
}
/* Mũi tên điều hướng */
.feature-prev, .feature-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    cursor: pointer; z-index: 9; outline: none;
    width: 3.2vw; height: 3.1vw;
    background-repeat: no-repeat; background-position: 0 0; background-size: 100%;
}
.feature-prev {
    left: 6.8vw;
    background-image: url('/assets/img/ui/ic-prev-store.png');
}
.feature-next {
    right: 6.8vw;
    background-image: url('/assets/img/ui/ic-next-store.png');
}
.feature-prev:hover, .feature-next:hover { filter: brightness(1.3); }

.floating-sidebar {
    position: fixed; right: 0.78vw; top: 9.4vw;
    z-index: 900;
    width: 7.9vw; height: 24.4vw;
    background-repeat: no-repeat; background-position: 0 0; background-size: 100%;
    display: flex; flex-direction: column;
}
.sidebar-buttons {
    position: absolute; top: 8.3vw; left: 50%; transform: translateX(-50%);
    width: 6.7vw;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.36vw;
}
.sidebar-btn {
    display: block; width: 100%; transition: all 0.5s ease;
    background: none; border: none; cursor: pointer; padding: 0;
}
.sidebar-btn:hover { filter: brightness(1.1); }
.sidebar-btn img { width: 100%; height: auto; display: block; }
.sidebar-top {
    position: absolute; bottom: 0.26vw; left: 50%; transform: translateX(-50%);
    width: 1.4vw; height: 1.6vw;
    background: url('/assets/img/ui/ic-top.png') no-repeat 0 0 / 100%;
    border: none; outline: none; cursor: pointer;
    transition: 0.5s all ease;
}
.sidebar-top:hover { filter: brightness(1.2); }

/* === FLOATING GIFT - Quà trợ lực bên trái === */
.floating-gift {
    position: fixed; left: 15px; bottom: 80px; z-index: 900;
    animation: bounce 2s ease-in-out infinite;
}
.floating-gift img { width: 150px; height: auto; filter: drop-shadow(0 0 20px rgba(220,38,38,0.5)); }
.gift-badge {
    position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
    background: #dc2626; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    animation: pulse-badge 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(220,38,38,0.6);
}
@keyframes pulse-badge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === HOURLY GIFT PANEL === */
.hourly-gift-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hourly-gift-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); position: relative; overflow: hidden;
    max-height: 90vh; overflow-y: auto;
}
.hourly-gift-box .modal-close { position: absolute; top: 12px; right: 14px; z-index: 5; }
.hg-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white; padding: 20px 24px; display: flex; align-items: center; gap: 14px;
}
.hg-header .hg-icon { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.hg-header h3 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.hg-header p { margin: 4px 0 0; font-size: 13px; opacity: 0.85; }
.hg-slots { padding: 16px; }

/* Individual slot card */
.hg-slot {
    border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.2s;
}
.hg-slot:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.hg-slot-top {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.hg-slot-icon {
    width: 44px; height: 44px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.hg-slot-icon.slot-1 { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #92400e; }
.hg-slot-icon.slot-2 { background: linear-gradient(135deg, #fed7aa, #fb923c); color: #9a3412; }
.hg-slot-icon.slot-3 { background: linear-gradient(135deg, #c7d2fe, #818cf8); color: #3730a3; }
.hg-slot-info { flex: 1; min-width: 0; }
.hg-slot-name { font-weight: 700; font-size: 14px; color: var(--text); }
.hg-slot-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hg-slot-time .active-dot { display: inline-block; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; margin-right: 4px; animation: pulse-badge 1.5s infinite; }
.hg-slot-status { flex-shrink: 0; }

/* Rewards preview */
.hg-rewards {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; 
}
.hg-reward-tag {
    display: flex; align-items: center; gap: 4px; background: #f8f9fa;
    border: 1px solid #e5e7eb; border-radius: 6px; padding: 3px 8px; font-size: 11px;
}
.hg-reward-tag img { width: 20px; height: 20px; border-radius: 3px; }
.hg-reward-tag .coin-icon { color: #f59e0b; }

/* Claim button states */
.btn-claim {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-claim.available {
    background: linear-gradient(135deg, #dc2626, #b91c1c); color: white;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.btn-claim.available:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.4); }
.btn-claim.claimed {
    background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; cursor: default;
}
.btn-claim.waiting {
    background: #f8f9fa; color: #9ca3af; border: 1px solid #e5e7eb; cursor: default;
}
.btn-claim.expired {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; cursor: default; opacity: 0.7;
}
.btn-claim:disabled { cursor: not-allowed; }

/* Server select */
.hg-server-row { padding: 0 16px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hg-select { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #f8f9fa; min-width: 150px; }
.hg-role-info { font-size: 12px; color: var(--text-muted); }
.hg-role-info.found { color: #16a34a; font-weight: 600; }

/* === MODAL - Popup dialog === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; display: flex; align-items: center;
    justify-content: center; padding: 20px;
}
.modal-box {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 30px; max-width: 450px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: var(--text-muted);
    font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--accent); }

/* Session Kicked Modal */
.kicked-modal-box {
    background: #fff; border-radius: 16px; padding: 36px 32px 28px;
    max-width: 400px; width: 100%; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: kickedIn .35s ease;
}
@keyframes kickedIn { from { transform: scale(.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.kicked-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 18px;
    border: 2px solid #fecaca;
}
.kicked-modal-box h3 {
    font-size: 1.15rem; font-weight: 700; color: #1f2937; margin: 0 0 10px;
}
.kicked-modal-box p {
    font-size: .88rem; color: #4b5563; margin: 0 0 6px; line-height: 1.5;
}
.kicked-modal-box .kicked-sub {
    font-size: .8rem; color: #9ca3af; margin-bottom: 20px;
}
.kicked-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; background: #dc2626; color: #fff;
    border: none; border-radius: 10px; font-size: .92rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
}
.kicked-btn:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,38,38,.35); }
#session-kicked-modal { z-index: 9999; background: rgba(0,0,0,.55); }

.news-modal-box { max-width: 700px; }
.news-detail-meta { color: var(--text-muted); font-size: 13px; margin: 10px 0 20px; }
.news-detail-body { line-height: 1.8; }
.news-detail-body img { border-radius: var(--radius); margin: 10px 0; }

/* === AUTH MODAL - v3 Premium === */
@keyframes authCardIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes authShine {
    0% { left: -80%; }
    100% { left: 130%; }
}
@keyframes authPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

.auth-card {
    position: relative;
    width: 420px; max-width: 94vw;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 90px rgba(0,0,0,0.18),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    animation: authCardIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
/* Decorative animated circles */
.auth-deco {
    position: absolute; top: 0; left: 0; right: 0; height: 120px;
    overflow: hidden; pointer-events: none; z-index: 0;
    background: linear-gradient(135deg, #dc2626 0%, #f43f5e 40%, #fb923c 100%);
}
.auth-deco::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, #fff 100%);
}
.auth-deco-circle {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    animation: authGlow 4s ease-in-out infinite;
}
.auth-deco-circle.c1 { width: 100px; height: 100px; top: -30px; left: -20px; animation-delay: 0s; }
.auth-deco-circle.c2 { width: 70px; height: 70px; top: 10px; right: 40px; animation-delay: 1.3s; }
.auth-deco-circle.c3 { width: 50px; height: 50px; top: 50px; left: 45%; animation-delay: 2.6s; }

/* Close button */
.auth-close {
    position: absolute; top: 12px; right: 14px; z-index: 10;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    border: none; border-radius: 50%;
    color: #fff; font-size: 15px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.auth-close:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

/* Pill tab switcher */
.auth-pill-tabs {
    position: relative;
    display: flex;
    margin: 82px 32px 0;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    z-index: 2;
}
.auth-pill {
    flex: 1; position: relative; z-index: 2;
    padding: 11px 16px;
    background: none; border: none;
    font-size: 14px; font-weight: 700;
    font-family: var(--font);
    color: #64748b;
    cursor: pointer;
    border-radius: 11px;
    transition: color 0.3s ease;
}
.auth-pill.active { color: #fff; }
.auth-pill:not(.active):hover { color: #334155; }
.auth-pill-slider {
    position: absolute; z-index: 1;
    top: 4px; left: 4px;
    width: calc(50% - 4px); height: calc(100% - 8px);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 11px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(220,38,38,0.3);
}
.auth-pill-slider.right {
    transform: translateX(100%);
}

/* Form area */
.auth-form {
    padding: 24px 32px 10px;
    position: relative; z-index: 2;
}
.auth-field {
    margin-bottom: 16px;
}
.auth-input-box {
    position: relative;
    display: flex; align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.auth-input-box:focus-within {
    border-color: #dc2626;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.auth-input-box > i {
    position: absolute; left: 16px;
    color: #94a3b8; font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}
.auth-input-box:focus-within > i { color: #dc2626; }
.auth-input-box input {
    flex: 1;
    padding: 14px 14px 14px 46px;
    background: none; border: none; outline: none;
    font-size: 14px; font-family: var(--font);
    color: #1e293b;
    width: 100%;
}
.auth-input-box input::placeholder { color: #a0aec0; }
.toggle-pw {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: #94a3b8; cursor: pointer;
    padding: 8px; font-size: 13px;
    transition: color 0.2s;
}
.toggle-pw:hover { color: #64748b; }

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff; border: none;
    border-radius: 14px;
    font-size: 15px; font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(220,38,38,0.3);
    margin-top: 6px;
}
.auth-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
}
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220,38,38,0.4);
}
.auth-submit:hover::before {
    animation: authShine 0.8s ease forwards;
}
.auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(220,38,38,0.25);
}
.auth-submit i { font-size: 13px; transition: transform 0.3s; }
.auth-submit:hover i { transform: translateX(4px); }

/* Footer */
.auth-footer {
    text-align: center;
    padding: 16px 32px 22px;
    color: #94a3b8; font-size: 12px;
    position: relative; z-index: 2;
}

/* Error */
.auth-form .form-error {
    min-height: 20px; margin: 4px 0; font-size: 13px;
}

/* === FORM - Form inputs chung === */
/* === FORM - Form inputs === */
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; background: #fff;
    border: 1px solid #e0e3e7; border-radius: 10px;
    color: var(--text); font-size: 14px; font-family: var(--font);
    transition: all 0.25s ease;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc2626' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220,38,38,0.06);
    background: #fff;
}
.form-success { color: #10b981; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* === GAME IFRAME - Overlay game === */

/* Device choice popup */
.device-popup-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .25s ease;
}
.device-popup-box {
    background: linear-gradient(180deg, #1a1020 0%, #12101e 50%, #0d0a16 100%);
    border: 1.5px solid rgba(200,168,78,.35);
    border-radius: 20px; width: 460px; max-width: 94vw;
    position: relative; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,215,0,.08);
}
.device-popup-close {
    position: absolute; top: 12px; right: 14px; z-index: 5;
    background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15);
    color: #aaa; font-size: 18px; cursor: pointer;
    line-height: 1; padding: 4px 8px; border-radius: 8px;
    transition: all .2s;
}
.device-popup-close:hover { color: #fff; background: rgba(220,38,38,.5); border-color: rgba(220,38,38,.6); }
.device-popup-banner {
    width: 100%; overflow: hidden; line-height: 0;
    border-bottom: 1px solid rgba(200,168,78,.15);
}
.device-banner-img {
    width: 100%; height: auto; display: block;
    object-fit: cover;
}
.device-popup-body {
    padding: 24px 20px 20px;
}
.device-popup-options {
    display: flex; gap: 14px; justify-content: center;
}
.device-option {
    flex: 1; padding: 16px 14px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1.5px solid rgba(255,255,255,0.08);
    color: #fff; cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: relative; overflow: hidden;
}
.device-option::before {
    content: ''; position: absolute; inset: 0; border-radius: 14px;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,168,78,.08) 0%, transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.device-option:hover::before { opacity: 1; }
.device-option:hover {
    border-color: rgba(200,168,78,.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200,168,78,.12), 0 0 0 1px rgba(200,168,78,.1);
}
.device-option:active { transform: translateY(-1px) scale(.98); }
.device-option-img {
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.05); padding: 8px;
    transition: transform .3s;
}
.device-option:hover .device-option-img { transform: scale(1.05); }
.device-option-img img { width: 100%; height: 100%; object-fit: contain; }
.device-option-info {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.device-label { font-size: 15px; font-weight: 800; letter-spacing: .5px; color: #f0e6d2; }
.device-hint { font-size: 11px; color: #8a8a9a; font-weight: 400; }
.device-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; color: #c8a84e; font-weight: 600;
    background: rgba(200,168,78,.1); border: 1px solid rgba(200,168,78,.15);
    padding: 3px 10px; border-radius: 20px; margin-top: 4px;
    letter-spacing: .3px;
}
.device-tag i { font-size: 9px; }
.device-popup-footer {
    text-align: center; color: #5a5a6a; font-size: 11px; margin: 16px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.device-popup-footer i { color: #c8a84e; font-size: 12px; }
/* Responsive popup */
@media (max-width: 480px) {
    .device-popup-box { border-radius: 16px; }
    .device-popup-body { padding: 16px 14px 16px; }
    .device-popup-options { gap: 10px; }
    .device-option { padding: 12px 10px; border-radius: 12px; }
    .device-option-img { width: 60px; height: 60px; padding: 6px; }
    .device-label { font-size: 13px; }
    .device-hint { font-size: 10px; }
    .device-tag { font-size: 9px; padding: 2px 8px; }
}

.game-overlay {
    position: fixed; inset: 0; z-index: 9999; background: #000;
    width: 100%; height: 100%;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.game-frame {
    display: block;
    width: 100%; height: 100%;
    border: none;
    height: 100%;
    height: -webkit-fill-available;
    height: 100svh;
    height: 100dvh;
}

/* Floating Action Button */
.gfab {
    position: fixed; z-index: 10002;
    touch-action: none; user-select: none;
    transition: left 0.35s cubic-bezier(.4,0,.2,1), right 0.35s cubic-bezier(.4,0,.2,1), top 0.3s, opacity 0.3s;
}
.gfab.tucked-right {
    transform: translateX(50%);
    opacity: 0.5;
}
.gfab.tucked-left {
    transform: translateX(-50%);
    opacity: 0.5;
}
.gfab.tucked-right:hover,
.gfab.tucked-left:hover {
    opacity: 0.8;
}
.gfab-btn {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    /* No fixed size - adapts to image */
}
.gfab-btn .gfab-img {
    display: block;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.gfab-btn i {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,30,40,0.85), rgba(20,20,30,0.95));
    color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 16px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}
.gfab-btn:hover { transform: scale(1.1); }
.gfab-btn.active .gfab-img { filter: drop-shadow(0 0 8px rgba(220,38,38,0.6)); }
.gfab-btn.active i { border-color: var(--primary); box-shadow: 0 0 12px rgba(220,38,38,0.4); }

/* Sidebar */
.gsidebar {
    position: fixed; top: 0; left: 0; z-index: 10001;
    width: 200px; height: 100%; height: 100dvh;
    background: rgba(18,18,28,0.94);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,0.08);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; padding: 12px 0;
}
.gsidebar.open { transform: translateX(0); }
.gsidebar-inner { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; }
.gsb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    color: #ccc; font-size: 13.5px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    text-decoration: none; white-space: nowrap;
}
.gsb-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.gsb-item i { width: 20px; text-align: center; font-size: 15px; color: #999; }
.gsb-item:hover i { color: var(--primary); }
.gsb-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 10px; }
.gsb-exit { color: #e57373; }
.gsb-exit i { color: #e57373; }
.gsb-exit:hover { background: rgba(220,38,38,0.15); color: #ff6b6b; }

/* Game Panel Overlay */
.gpanel {
    position: fixed; top: 0; right: 0; z-index: 10001;
    width: 560px; max-width: 92vw; height: 100%; height: 100dvh;
    background: #f5f5f5;
    border-left: 1px solid #ddd;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
}
.gpanel.open { transform: translateX(0); }
.gpanel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #ddd;
    background: #1a1a2e; flex-shrink: 0;
}
.gpanel-title { color: #fff; font-size: 16px; font-weight: 700; }
.gpanel-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none;
    color: #ccc; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.gpanel-close:hover { background: rgba(220,38,38,0.4); color: #fff; }
.gpanel-body {
    flex: 1; overflow-y: auto; padding: 16px;
    background: #f5f5f5;
}
/* Override page styles inside panel */
.gpanel-body .page-section { margin-top: 0; padding: 0; min-height: auto; }
.gpanel-body .page-title { display: none; }
.gpanel-body .container { max-width: 100%; padding: 0; }
.gpanel-body .nap-layout,
.gpanel-body .shop-layout,
.gpanel-body .giftcode-layout { display: block; }
.gpanel-body .shop-sidebar,
.gpanel-body .nap-sidebar,
.gpanel-body .giftcode-sidebar { display: none; }
.gpanel-body .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gpanel-body .events-grid { grid-template-columns: 1fr; }
/* Fix modals inside game panel - must be above panel's z-index */
.gpanel-body .modal-overlay { z-index: 10010; }
.gpanel-body .modal-box { z-index: 10011; }

/* Full-bleed dark pages inside panel (Tết, Lật Thẻ) */
.gpanel-body:has(.tet-page),
.gpanel-body:has(.wish-wrap),
.gpanel-body.gpanel-dark {
    background: #0a0a14; padding: 0;
}
.gpanel:has(.gpanel-dark),
.gpanel:has(.tet-page),
.gpanel:has(.wish-wrap),
.gpanel.gpanel-dark-wrap {
    background: #0a0a14; border-left-color: #222;
}
.gpanel-dark .tet-page,
.gpanel-body .tet-page,
.gpanel-dark .wish-wrap,
.gpanel-body .wish-wrap {
    min-height: 100%; padding-top: 0; padding-bottom: 30px;
    margin: 0; width: 100%;
}
.gpanel-body .tet-page .tet-hero { border-radius: 0; }
.gpanel-body .wish-wrap .wish-banner { padding-top: 10px; }

/* === PAGE SECTION - Layout trang con (nạp, shop, tin tức, tài khoản) === */
.page-section { margin-top: 64px; padding: 48px 0 60px; min-height: 60vh; background: #fafafa; }
.page-title {
    font-size: 26px; font-weight: 800; color: var(--text);
    margin-bottom: 28px; padding-bottom: 14px;
    border-bottom: none;
    letter-spacing: 0.3px;
    display: flex; align-items: center; gap: 12px;
    position: relative;
}
.page-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.page-title i { font-size: 22px; color: var(--primary); opacity: 0.9; }
.balance-bar {
    background: linear-gradient(135deg, rgba(220,38,38,0.06), rgba(255,255,255,0.8));
    border: 1px solid rgba(220,38,38,0.15); border-radius: 12px;
    padding: 16px 22px; margin-bottom: 25px;
    display: none; align-items: center; justify-content: space-between; font-size: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.balance-bar strong { font-size: 20px; color: var(--primary); }
.recharge-packages .package-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px;
}
.package-card {
    background: #fff; border: 2px solid #e8eaed;
    border-radius: 14px; padding: 24px 16px; text-align: center;
    cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.package-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light)); 
    opacity: 0; transition: opacity 0.25s;
}
.package-card:hover::before, .package-card.selected::before { opacity: 1; }
.package-card:hover, .package-card.selected {
    border-color: var(--primary); background: #fff;
    transform: translateY(-4px); box-shadow: 0 8px 30px rgba(220,38,38,0.1);
}
.package-card .amount { font-size: 26px; font-weight: 900; color: var(--primary); }
.package-card .coin { font-size: 13px; color: #6b7280; margin-top: 4px; font-weight: 500; }
.package-card .bonus { font-size: 12px; color: #10b981; margin-top: 3px; font-weight: 700; }
.method-options { display: flex; gap: 10px; flex-wrap: wrap; }
.method-option {
    flex: 1; min-width: 140px; padding: 14px;
    background: #fff; border: 2px solid #e8eaed;
    border-radius: 12px; cursor: pointer; text-align: center;
    transition: all 0.25s ease; font-size: 14px; color: var(--text);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600;
}
.method-option input { display: none; }
.method-option:hover, .method-option.active {
    border-color: var(--primary); background: rgba(220,38,38,0.02);
    color: var(--primary); box-shadow: 0 2px 12px rgba(220,38,38,0.08);
}
.method-option i { font-size: 18px; }
.payment-info {
    background: #fff;
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 14px; padding: 24px; margin-top: 15px;
    box-shadow: 0 2px 12px rgba(16,185,129,0.06);
}
.payment-info p { margin-bottom: 8px; }
.payment-info strong { color: var(--primary); }

/* === SHOP - Cửa hàng === */
.shop-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 25px; justify-content: center;
}
.shop-tab {
    background: #fff; border: 1px solid #e8eaed;
    color: #6b7280; padding: 9px 20px; border-radius: 10px;
    cursor: pointer; font-family: var(--font); font-size: 13px;
    font-weight: 600; transition: all 0.25s ease;
}
.shop-tab:hover, .shop-tab.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(220,38,38,0.15);
}
.shop-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.shop-card {
    background: #fff; border: 1px solid #e8eaed;
    border-radius: 14px; overflow: hidden;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.shop-card:hover {
    border-color: rgba(220,38,38,0.15); transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.shop-card-img {
    width: 100%; height: 150px; object-fit: cover; background: #f8f8f8;
}
.shop-card-body { padding: 16px; }
.shop-card-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.shop-card-price { color: var(--primary); font-weight: 900; font-size: 18px; margin-bottom: 12px; }
.shop-card .btn { width: 100%; justify-content: center; }
.buy-modal-box { max-width: 400px; text-align: center; }

.account-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px;
}
.account-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 25px; transition: var(--transition);
}
.account-card:hover { border-color: var(--border-gold); }
.account-card h3 {
    color: var(--primary); font-size: 17px; margin-bottom: 18px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.info-table { width: 100%; }
.info-table td {
    padding: 8px 0; font-size: 14px;
    border-bottom: 1px solid rgba(58,48,32,0.5);
}
.info-table td:first-child { color: var(--text-muted); width: 120px; font-weight: 600; }
.info-table td:last-child { color: var(--text); }
.alert {
    padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
}
.alert-info { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); color: var(--primary); }

/* === TABLE - Bảng dữ liệu === */
.table-responsive { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th, table.data-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left;
}
table.data-table th {
    color: var(--primary); font-weight: 600; background: rgba(220,38,38,0.04);
}
.status-0 { color: #f59e0b; }
.status-1 { color: #10b981; }
.status-2 { color: var(--accent); }

/* === NEWS LIST - Danh sách tin tức === */
.news-list .news-item {
    display: flex; gap: 20px; padding: 20px;
    background: #fff; border: 1px solid #e8eaed;
    border-radius: 14px; margin-bottom: 14px;
    cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1);
    align-items: center;
    position: relative;
    overflow: hidden;
}
.news-list .news-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
    opacity: 0; transition: opacity 0.3s;
}
.news-list .news-item:hover {
    border-color: rgba(220,38,38,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.news-list .news-item:hover::before { opacity: 1; }
.news-list .news-item img {
    width: 130px; height: 86px; object-fit: cover; border-radius: 10px;
    flex-shrink: 0; background: #f3f4f6;
}
.news-list .news-item-content { flex: 1; }
.news-list .news-item-title {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin-bottom: 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list .news-item:hover .news-item-title { color: var(--primary); }
.news-list .news-item-meta { font-size: 12px; color: #9ca3af; }
.news-list .news-item-category {
    display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 10px;
    font-weight: 700; color: #fff; margin-right: 8px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.news-list .news-item-category { background: var(--primary); }
.news-list .news-item-category[data-cat='notice'] { background: #2563eb; }
.news-list .news-item-category[data-cat='event'] { background: #dc2626; }
.news-list .news-item-category[data-cat='update'] { background: #059669; }
.news-list .news-item-category[data-cat='guide'] { background: #d97706; }

.loading-spinner { text-align: center; padding: 40px; color: var(--text-muted); font-size: 16px; }
.text-muted { color: var(--text-muted); }

.btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; border-radius: 10px;
    font-size: 16px; font-weight: 800; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
    letter-spacing: 1px; text-transform: uppercase;
}
.btn-submit:hover { box-shadow: 0 0 20px rgba(220,38,38,0.3); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.recharge-form-wrapper {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 25px; margin-bottom: 25px;
}
.recharge-form-wrapper h3 { color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.recharge-result {
    background: var(--bg-card); border: 1px solid #10b981;
    border-radius: 10px; padding: 25px; margin-bottom: 25px;
}
.recharge-result h3 { color: #10b981; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.recharge-history { margin-top: 30px; }
.recharge-history h3 { color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.shop-history { margin-top: 30px; }
.shop-history h3 { color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

.pagination {
    display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap;
}
.pagination button {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
    transition: var(--transition);
}
.pagination button:hover, .pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.buy-item-img { max-width: 100%; max-height: 200px; border-radius: 4px; margin: 12px 0; }
.buy-price { font-size: 18px; color: var(--primary); font-weight: 700; margin: 10px 0 20px; }

/* ================================ */
/* === SIMPLE PAGES UI === */
/* ================================ */

/* Balance Box */
.balance-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.balance-box::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 0 4px 4px 0;
}
.balance-box strong { color: var(--primary); font-size: 20px; font-weight: 800; }

/* Nap Layout 7/3 */
.nap-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 24px;
    align-items: start;
}
.nap-main { min-width: 0; }
.nap-sidebar { min-width: 0; }
.nap-sidebar .box { 
    margin-bottom: 0;
    position: sticky;
    top: 80px;
}
.nap-sidebar .box-body {
    max-height: 500px;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .nap-layout {
        grid-template-columns: 1fr;
    }
    .nap-sidebar .box {
        position: static;
    }
}

/* Shop Layout 7/3 */
.shop-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 24px;
    align-items: start;
}
.shop-main { min-width: 0; }
.shop-sidebar { min-width: 0; }
.shop-sidebar .box { 
    margin-bottom: 0;
    position: sticky;
    top: 80px;
}
.shop-sidebar .box-body {
    max-height: 500px;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar .box {
        position: static;
    }
}

/* Account Layout 7/3 */
.acc-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 24px;
    align-items: start;
}
.acc-main { min-width: 0; }
.acc-sidebar { min-width: 0; }
.acc-sidebar .box { 
    margin-bottom: 0;
    position: sticky;
    top: 80px;
}
@media (max-width: 900px) {
    .acc-layout {
        grid-template-columns: 1fr;
    }
    .acc-sidebar .box {
        position: static;
    }
}

/* Giftcode Layout 7/3 */
.giftcode-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 24px;
    align-items: start;
}
.giftcode-main { min-width: 0; }
.giftcode-sidebar { min-width: 0; }
.giftcode-sidebar .box { 
    margin-bottom: 0;
    position: sticky;
    top: 80px;
}
.giftcode-sidebar .box-body {
    max-height: 400px;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .giftcode-layout {
        grid-template-columns: 1fr;
    }
    .giftcode-sidebar .box {
        position: static;
    }
}

/* Guide List */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.guide-list li:last-child {
    border-bottom: none;
}
.guide-list li i {
    color: var(--primary);
    margin-top: 2px;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.history-item {
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
}
.history-item:hover {
    border-color: rgba(220,38,38,0.3);
}
.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.history-row:last-of-type {
    margin-bottom: 4px;
}
.history-code {
    font-weight: 600;
    color: var(--text);
    font-size: 12px;
}
.history-name {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.history-method {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.history-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Box Component */
.box {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.box:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.04);
    border-color: #ddd;
}
.box-head {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.box-head i { color: var(--primary); font-size: 15px; }
.box-body { padding: 20px; }
.box-success { border-color: #10b981; }
.box-success .box-head { color: #10b981; background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, #fff 100%); }

/* Tabs */
.tabs-simple {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 4px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.tab-btn:hover {
    color: var(--text);
    background: #f5f5f5;
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(220,38,38,0.2);
}

/* Input & Button */
.input {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.25s ease;
}
.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220,38,38,0.06);
    background: #fff;
}
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc2626' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
    font-weight: 600;
}
.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-row .input { flex: 1; }
.form-error {
    color: var(--accent);
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(229,62,62,0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.form-error:empty { display: none; }
.form-success {
    color: #10b981;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(16,185,129,0.08);
    border-radius: 8px;
    border-left: 3px solid #10b981;
}
.form-success:empty { display: none; }

.btn-main {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px rgba(220,38,38,0.2);
    position: relative;
    overflow: hidden;
}
.btn-main:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(220,38,38,0.3);
    transform: translateY(-1px);
}
.btn-main:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(220,38,38,0.15); }

.btn-sm {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(220,38,38,0.05);
    transform: translateY(-1px);
}
.btn-sm.gold {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}
.btn-sm.gold:hover {
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
    transform: translateY(-1px);
}

/* Loading & Empty */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.loading i { font-size: 24px; }
.empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}

/* Method List (Nạp) */
.method-list {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.method-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    text-align: center;
}
.method-item input { display: none; }
.method-item i {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 4px;
}
.method-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.method-item.active {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(220,38,38,0.1) 0%, rgba(220,38,38,0.03) 100%);
    box-shadow: 0 4px 16px rgba(220,38,38,0.15);
}

/* Package Grid (Nạp) */
#recharge-packages .package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}
.pkg-card {
    padding: 20px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pkg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}
.pkg-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pkg-card:hover::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.pkg-card.selected {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(220,38,38,0.08) 0%, rgba(220,38,38,0.02) 100%);
    box-shadow: 0 6px 20px rgba(220,38,38,0.15);
}
.pkg-card.selected::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.pkg-card .pkg-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.pkg-card .pkg-xu {
    font-size: 14px;
    color: var(--text);
    margin-top: 6px;
}
.pkg-card .pkg-bonus {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(16,185,129,0.12);
    border-radius: 20px;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}
.shop-item:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.shop-item-img {
    width: 100%;
    height: 130px;
    background: linear-gradient(180deg, #f9fafb 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 36px;
    position: relative;
}
.shop-item-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}
.shop-item-img img { max-width: 80px; max-height: 80px; object-fit: contain; }
.shop-item-body { padding: 14px 16px 16px; }
.shop-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.shop-item .btn-sm {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.news-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
}
.news-row:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.news-row-thumb {
    width: 110px;
    height: 70px;
    flex-shrink: 0;
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
}
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row-content { flex: 1; }
.news-row-cat {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.news-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.news-row-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-row-meta i { font-size: 11px; }

/* Pagination */
.paging {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}
.paging button {
    min-width: 40px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.paging button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(220,38,38,0.03);
}
.paging button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(220,38,38,0.2);
}

/* Modal */
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.modal-close:hover {
    color: var(--accent);
    background: rgba(229,62,62,0.1);
}
.modal-body { padding: 20px; }
.buy-img {
    max-width: 100%;
    max-height: 160px;
    display: block;
    margin: 0 auto 16px;
    border-radius: 8px;
}
.buy-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}
.buy-price {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Account */
.guest-box {
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.guest-box p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}
.guest-box .btn-main { max-width: 220px; margin: 0 auto; }

.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.info-tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.info-tbl td {
    padding: 10px 12px;
    font-size: 13px;
    background: var(--bg-dark);
}
.info-tbl td:first-child {
    color: var(--text-muted);
    width: 100px;
    font-weight: 500;
    border-radius: 8px 0 0 8px;
}
.info-tbl td:last-child {
    color: var(--text);
    border-radius: 0 8px 8px 0;
}
.acc-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.gold { color: var(--primary); font-weight: 600; }
.green { color: var(--green); font-weight: 600; }

/* UCOIN Section */
.ucoin-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
}
.ucoin-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ucoin-row span { color: var(--text-muted); }
.ucoin-row strong { font-size: 18px; }
.convert-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.convert-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.convert-tab:hover { border-color: var(--primary); }
.convert-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    background: var(--bg-dark);
}
table.data-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
table.data-table th,
table.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
table.data-table th {
    color: var(--text);
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(220,38,38,0.03); }
.status-0 { color: #f59e0b; font-weight: 500; }
.status-1 { color: #10b981; font-weight: 500; }
.status-2 { color: var(--accent); font-weight: 500; }

/* === FOOTER === */
.footer {
    background: #1f2937;
    border-top: none;
    padding: 30px 0 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.footer-logo-wrap { flex-shrink: 0; }
.footer-logo-wrap img { max-width: 100px; }
.footer-text { text-align: center; color: #d1d5db; font-size: 13px; line-height: 1.8; }
.footer-text a { color: #ef4444; }
.footer-18 { flex-shrink: 0; }
.footer-18 img { max-width: 60px; }
.footer-bottom {
    text-align: center;
    padding: 18px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* --- Navbar --- */
    .navbar { height: 56px; }
    .navbar-inner { height: 56px; gap: 10px; }
    .logo-img { height: 48px; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        overflow-y: auto;
        max-height: calc(100vh - 56px);
        z-index: 999;
    }
    .navbar-menu.show { display: flex; }
    .navbar-toggle { display: block; }
    .navbar-menu li a {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    .navbar-menu li a::after { display: none; }
    .navbar-menu li a i { font-size: 16px; width: 20px; text-align: center; }
    .navbar-menu li a:hover, .navbar-menu li a.active {
        background: #fef2f2;
    }
    /* Sub-dropdown in mobile */
    .nav-dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #f9fafb !important;
        border-radius: 8px !important;
        margin: 4px 0 4px 20px !important;
        padding: 4px 0 !important;
    }
    .nav-dropdown-menu li a { padding: 10px 16px !important; font-size: 14px !important; }
    /* Auth */
    .navbar-actions .nav-guest { display: none; }
    .navbar-actions .nav-logged { display: none; }
    .navbar-menu .mobile-auth-btns {
        display: flex; gap: 8px; padding: 14px 8px; border-top: 1px solid #e5e7eb; margin-top: 8px;
    }
    .navbar-menu .mobile-auth-btns .btn-nav-login {
        flex: 1; justify-content: center; font-size: 13px; padding: 11px 16px;
        border-radius: 50px; border-width: 2px;
    }
    .navbar-menu .mobile-auth-btns .btn-nav-login::before { border-radius: 50px; }
    .navbar-menu .mobile-auth-btns .btn-nav-register {
        flex: 1; justify-content: center; font-size: 13px; padding: 11px 16px;
        border-radius: 50px;
    }

    /* --- Hero --- */
    .hero { padding-bottom: 120%; }
    .hero-logo { max-width: 200px; margin-bottom: 16px; }
    .btn-hero-play .play-icon { width: 60px; }
    .play-ring { width: 85px; height: 85px; }
    .hero-download-box { flex-direction: column; gap: 8px; }
    .btn-play-main { font-size: 18px; padding: 14px 40px; }

    /* --- Section --- */
    .section { padding: 30px 0; }
    .section-title-img-wrap { margin-bottom: 20px; }
    .section-title-img-wrap .section-title-img { max-height: 100px; }

    /* --- News Section --- */
    .news-section-layout { flex-direction: column; gap: 16px; }
    .news-banner-slider { width: 100%; padding: 12px; }
    .news-tab-panel { padding: 6px; }
    .news-tab-panel .tab-cats { margin-bottom: 4px; }
    .news-tab-panel .tab-cat { padding: 10px 4px; font-size: 11px; }
    .news-tab-panel .news-item { padding: 10px 6px; gap: 8px; }
    .news-tab-panel .news-item-title { font-size: 13px; }
    .news-date { font-size: 11px; }
    .news-view-more { padding: 10px; font-size: 13px; margin: 6px; }

    /* --- Heroes Section --- */
    .section-heroes { padding-top: 10px; padding-bottom: 0; }
    .heroes-inner { padding: 0 4px; }
    .heroes-tabs { gap: 8px; margin-bottom: 4px; }
    .heroes-tab img { height: 40px; }
    .heroes-carousel { padding: 0 8px; gap: 4px; }
    .hero-card { width: calc((100% - 20px) / 4); }
    .hero-card-art { aspect-ratio: 1/2.2; border-width: 1.5px; border-radius: 6px; }
    .heroes-prev, .heroes-next {
        min-width: 24px; min-height: 32px;
        width: 6vw; height: 8vw;
    }
    .heroes-prev { left: -2px; }
    .heroes-next { right: -2px; }
    .hero-detail-preview { margin-top: 2%; }
    .hero-detail-preview img { max-width: 100%; margin-left: 0; }
    .hero-detail-info {
        position: relative; width: 100%; bottom: auto; right: auto;
        margin-top: 12px; padding: 12px 14px; font-size: 12px;
        max-height: none;
    }
    .hero-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .hero-stat .stat-value { font-size: 12px; }
    .hero-stat .stat-label { font-size: 9px; }

    /* --- Media Section --- */
    .section-media { height: auto; min-height: 300px; padding: 20px 0; }
    .media-container {
        position: relative; width: 100%; height: auto;
        display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
        gap: 0;
    }
    .media-title {
        position: relative; width: 100%; height: auto; top: 0; left: auto; transform: none;
        margin-bottom: 10px; text-align: center;
    }
    .media-title img { width: 45%; max-width: 180px; height: auto; display: inline-block; }
    .media-tab-btn {
        position: relative; top: auto; left: auto !important;
        width: 38%; max-width: 150px; height: 7vw; min-height: 28px;
        flex-shrink: 0;
    }
    .media-feature-wrap {
        position: relative; top: auto; left: auto; transform: none;
        width: 100%; margin-top: 8px; padding: 0;
        overflow: hidden;
    }
    .media-feature-wrap .slider-feature,
    .media-feature-wrap .slider-feature-youtube { width: 100%; overflow: hidden; }
    .media-feature-wrap .swiper-slide {
        width: 90%; max-width: 380px; height: auto; aspect-ratio: 16/9;
        padding: 3vw;
        margin: 0 auto;
        overflow: hidden;
        background-size: 100% 100%;
        box-sizing: border-box;
    }
    .media-feature-wrap .swiper-slide .slide-image,
    .media-feature-wrap .swiper-slide .slide-video {
        width: 100%; height: 100%; overflow: hidden; border-radius: 4px;
    }
    .media-feature-wrap .swiper-slide .slide-image img {
        width: 100%; height: 90%; object-fit: contain; display: block; margin-top: 3%;
    }
    .media-feature-wrap .swiper-slide .slide-video iframe,
    .media-feature-wrap .swiper-slide .slide-video video {
        width: 100%; height: 100%;
    }
    .feature-prev, .feature-next {
        width: 28px; height: 28px; min-width: 28px;
    }
    .feature-prev { left: 4px; }
    .feature-next { right: 4px; }

    /* --- Floating --- */
    .floating-sidebar { display: none; }
    .floating-gift { left: 5px; bottom: 60px; }
    .floating-gift img { width: 120px; }
    .gift-badge { width: 18px; height: 18px; font-size: 10px; }

    /* --- Hourly Gift --- */
    .hourly-gift-box { max-width: 100%; border-radius: 12px; }
    .hg-header { padding: 14px 16px; }
    .hg-header .hg-icon { width: 36px; height: 36px; }
    .hg-header h3 { font-size: 15px; }
    .hg-slot-top { padding: 10px 12px; gap: 8px; }
    .hg-slot-icon { width: 36px; height: 36px; font-size: 16px; }
    .btn-claim { padding: 6px 12px; font-size: 12px; }
    .hg-server-row { flex-direction: column; }

    /* --- Shop / Nap / Account --- */
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    #recharge-packages .package-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .bonus-step { padding: 6px 4px; }
    .bs-val { font-size: 14px; }
    .method-list { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .acc-grid { grid-template-columns: 1fr; }
    .page-section { padding: 32px 0 40px; }
    .page-title { font-size: 20px; margin-bottom: 20px; }
    .tabs-simple { gap: 4px; padding: 3px; }
    .tab-btn { padding: 8px 14px; font-size: 12px; }
    .news-list .news-item { padding: 14px; gap: 14px; }
    .news-list .news-item img { width: 90px; height: 60px; border-radius: 8px; }
    .news-list .news-item-title { font-size: 14px; }
    /* Auth modal mobile */
    .auth-card { border-radius: 20px; }
    .auth-pill-tabs { margin: 76px 20px 0; }
    .auth-form { padding: 20px 20px 8px; }
    .auth-footer { padding: 12px 20px 18px; }
    .auth-deco { height: 100px; }
    .package-card { padding: 18px 12px; }
    .package-card .amount { font-size: 22px; }
    .box-head { padding: 14px 16px; font-size: 13px; }
    .box-body { padding: 16px; }

    /* --- Main bg wrap --- */
    .main-bg-wrap { min-height: auto; background-size: 100% auto; }
}

@media (max-width: 480px) {
    .hero { padding-bottom: 140%; }
    .hero-logo { max-width: 160px; }
    .btn-hero-play .play-icon { width: 50px; }
    .play-ring { width: 70px; height: 70px; }
    .container { padding: 0 12px; }
    .section { padding: 20px 0; }
    .section-title-img-wrap .section-title-img { max-height: 70px; }

    /* News tabs scroll */
    .news-tab-panel .tab-cats { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .news-tab-panel .tab-cat { white-space: nowrap; padding: 8px 6px; font-size: 10px; }

    /* Heroes - 3 cards mobile */
    .hero-card { width: calc((100% - 12px) / 3); }
    .hero-card-art { aspect-ratio: 1/2; border-radius: 4px; }
    .heroes-tabs { gap: 4px; }
    .heroes-tab img { height: 32px; }
    .hero-skill-item { padding: 4px 8px; }
    .hero-skill-item strong { font-size: 11px; }
    .hero-skill-item span { font-size: 10px; }

    /* Media even smaller */
    .media-feature-wrap .swiper-slide { width: 92%; max-width: 360px; padding: 2vw; }

    /* Shop/Nap */
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .shop-card-body { padding: 10px; }
    .shop-card-name { font-size: 12px; margin-bottom: 4px; }
    .shop-card-price { font-size: 15px; margin-bottom: 8px; }
    .shop-card-img { height: 110px; }
    #recharge-packages .package-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .tabs-simple { gap: 6px; }
    .tab-btn { padding: 6px 12px; font-size: 12px; }
}

/* === LOADING BOX === */
.loading-box {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
}
.loading-box i { margin-right: 8px; color: var(--primary); }

/* === ROLE DISPLAY === */
.role-display {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.role-display:empty { display: none; }
.role-display i { margin-right: 6px; }
.role-found {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
}
.role-found strong { color: var(--primary); }
.role-not-found {
    color: var(--accent);
    background: rgba(201, 85, 85, 0.1);
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
}

/* === LIGHT THEME - Already built into base theme === */

/* ============================================
   RANKING PAGE - Bảng Xếp Hạng
   ============================================ */
.ranking-page { padding: 90px 0 60px; min-height: 70vh; }
.ranking-header { text-align: center; margin-bottom: 30px; }
.ranking-title { font-size: 2rem; font-weight: 900; color: var(--primary); text-shadow: 0 2px 8px rgba(232,180,76,.3); }
.ranking-title i { color: #f0c040; margin-right: 8px; }
.ranking-subtitle { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }

/* Tabs */
.ranking-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.ranking-tab { padding: 10px 24px; border: 2px solid var(--border); border-radius: 30px; background: var(--card-bg); color: var(--text-muted); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.ranking-tab:hover { border-color: var(--primary); color: var(--primary); }
.ranking-tab.active { background: linear-gradient(135deg, var(--primary), #d4a03a); color: #fff; border-color: var(--primary); box-shadow: 0 4px 16px rgba(232,180,76,.35); }
.ranking-tab i { margin-right: 6px; }

/* Filter - moved to new filter-row class */

/* Season Info */
.season-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 10px; font-size: .85rem; flex-wrap: wrap; }
.season-badge.active { background: rgba(76,175,80,.12); border: 1px solid rgba(76,175,80,.3); }
.season-badge.ended { background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.3); }
.season-status { font-weight: 700; }
.season-badge.active .season-status { color: #4caf50; }
.season-badge.ended .season-status { color: #ff9800; }
.season-dates { color: var(--text-muted); }
.season-countdown { color: #e53935; font-weight: 700; }

/* Podium */
.ranking-podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin-bottom: 30px; padding: 20px 0; }
.podium-item { text-align: center; position: relative; }
.podium-2, .podium-3 { margin-top: 80px; }
.podium-avatar { width: 80px; height: 80px; margin: 0 auto 8px; }
.podium-avatar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.podium-crown { font-size: 1.5rem; color: #f0c040; margin-bottom: 4px; animation: crownBounce 2s ease infinite; }
@keyframes crownBounce { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
.podium-name { font-weight: 700; color: var(--text); font-size: .95rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-value { color: var(--primary); font-weight: 800; font-size: 1.1rem; margin-top: 2px; }
.podium-base { width: 100px; height: 50px; line-height: 50px; margin: 8px auto 0; border-radius: 8px 8px 0 0; font-weight: 900; font-size: 1.5rem; color: #fff; }
.podium-1 .podium-base { background: linear-gradient(135deg, #f0c040, #e8a832); height: 70px; line-height: 70px; width: 110px; }
.podium-1 .podium-avatar { width: 100px; height: 100px; }
.podium-2 .podium-base { background: linear-gradient(135deg, #b0bec5, #90a4ae); height: 55px; line-height: 55px; }
.podium-3 .podium-base { background: linear-gradient(135deg, #cd7f32, #a0522d); height: 40px; line-height: 40px; }

/* Table */
.ranking-table-wrap { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ranking-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ranking-table thead { background: linear-gradient(135deg, var(--primary), #d4a03a); }
.ranking-table th { padding: 12px 16px; color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.ranking-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ranking-table tr:hover { background: rgba(232,180,76,.06); }
.ranking-table tr.rank-top { font-weight: 600; }
.ranking-table tr.rank-1 { background: rgba(240,192,64,.1); }
.ranking-table tr.rank-2 { background: rgba(176,190,197,.08); }
.ranking-table tr.rank-3 { background: rgba(205,127,50,.08); }

.rank-badge { display: inline-flex; align-items: center; justify-content: center; }
.rank-badge img { width: 40px; height: 40px; object-fit: contain; }
.rank-badge.rank-num { width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--text-muted); font-weight: 700; font-size: .9rem; }
.rank-name { font-weight: 600; color: var(--text); }
.rank-value { color: var(--primary); font-weight: 700; }
.rank-reward { color: var(--text-muted); font-size: .85rem; }

/* Empty State */
.ranking-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.ranking-empty i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 12px; }
.ranking-empty p { font-size: 1rem; }

/* Rewards Section */
.ranking-rewards-section { margin-top: 40px; text-align: center; }
.ranking-rewards-section h3 { color: var(--primary); font-weight: 800; margin-bottom: 20px; }
.ranking-rewards-section h3 i { margin-right: 8px; }
.ranking-rewards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.reward-card { background: var(--card-bg); border: 2px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; transition: all .2s; }
.reward-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,180,76,.2); }
.reward-rank-icon { width: 50px; height: 50px; object-fit: contain; margin-bottom: 8px; }
.reward-rank-label { font-weight: 700; color: var(--primary); font-size: 1rem; margin-bottom: 8px; }
.reward-items { display: flex; flex-direction: column; gap: 4px; }
.reward-item { font-size: .85rem; color: var(--text); }
.reward-item i { color: #f0c040; margin-right: 4px; }

/* Podium Rewards */
.podium-rewards { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.podium-reward-tag { font-size: .7rem; color: var(--primary); background: rgba(232,180,76,.1); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

/* Reward tags in table */
.reward-tag-img { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; margin: 1px 2px; border-radius: 4px; font-size: .8rem; background: rgba(232,180,76,.08); border: 1px solid rgba(232,180,76,.15); vertical-align: middle; }
.reward-tag-img .reward-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.reward-tag-img b { color: var(--primary); font-size: .78rem; }
.no-reward { color: var(--text-muted); }

/* Quality colors for ranking items */
.ranking-page .quality-1 { color: #6c757d; }
.ranking-page .quality-2 { color: #198754; border-color: rgba(25,135,84,.2); background: rgba(25,135,84,.06); }
.ranking-page .quality-3 { color: #0d6efd; border-color: rgba(13,110,253,.2); background: rgba(13,110,253,.06); }
.ranking-page .quality-4 { color: #6f42c1; border-color: rgba(111,66,193,.2); background: rgba(111,66,193,.06); }
.ranking-page .quality-5 { color: #fd7e14; border-color: rgba(253,126,20,.2); background: rgba(253,126,20,.06); }
.ranking-page .quality-6 { color: #dc3545; border-color: rgba(220,53,69,.2); background: rgba(220,53,69,.06); }

/* Filter row */
.ranking-filter { margin-bottom: 20px; }
.filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-row label { font-weight: 600; color: var(--text); white-space: nowrap; }
.filter-row label i { margin-right: 4px; color: var(--primary); }
.filter-row select { padding: 8px 16px; border: 2px solid var(--border); border-radius: 8px; background: var(--card-bg); color: var(--text); font-size: .9rem; min-width: 180px; }
.season-info-wrap { margin-bottom: 16px; }

/* Mobile */
@media (max-width: 768px) {
    .ranking-title { font-size: 1.5rem; }
    .ranking-tabs { gap: 6px; }
    .ranking-tab { padding: 8px 16px; font-size: .8rem; }
    .ranking-tab span { display: none; }
    .ranking-podium { gap: 8px; }
    .podium-avatar { width: 60px; height: 60px; }
    .podium-1 .podium-avatar { width: 75px; height: 75px; }
    .podium-base { width: 80px; }
    .podium-1 .podium-base { width: 90px; }
    .podium-name { font-size: .8rem; max-width: 90px; }
    .podium-rewards { display: none; }
    .ranking-table th, .ranking-table td { padding: 8px 10px; font-size: .7rem; }
    .rank-badge img { width: 30px; height: 30px; }
    .ranking-rewards-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .reward-tag { font-size: .7rem; padding: 1px 5px; }
}

/* === PUBLIC GIFTCODE CARDS === */
.public-gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pgc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; position: relative; }
.pgc-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(var(--primary-rgb),.15); }
.pgc-card.claimed { opacity: .6; }
.pgc-card.claimed::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 10px; right: 12px; color: #22c55e; font-size: 1.1rem; }
.pgc-code-row { display: flex; align-items: center; gap: 8px; }
.pgc-code { font-family: monospace; font-size: 1.05rem; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.pgc-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }
.pgc-rewards { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; }
.pgc-reward-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-dark); padding: 3px 8px; border-radius: 5px; }
.pgc-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-muted); margin-top: auto; }
.pgc-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: none; border-radius: 6px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.pgc-btn-use { background: var(--primary); color: #fff; }
.pgc-btn-use:hover { filter: brightness(1.1); }
.pgc-btn-claimed { background: var(--bg-dark); color: var(--text-muted); cursor: default; }
@media (max-width: 600px) { .public-gc-grid { grid-template-columns: 1fr; } }

/* =============================================================
   PAGE-TET BODY OVERRIDES
   ============================================================= */
.page-tet #main-content { padding-top: 0; }
.page-tet .section { padding-top: 0; }
.page-tet .navbar { background: rgba(26,10,10,.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,215,0,.1); }
.page-tet .navbar .navbar-menu a { color: rgba(255,255,255,.7); }
.page-tet .navbar .navbar-menu a:hover,
.page-tet .navbar .navbar-menu a.active { color: #ffd700; }
.page-tet .navbar .navbar-toggle { color: #fff; border-color: rgba(255,255,255,.2); }
.page-tet .navbar .navbar-logo .logo-img { filter: brightness(1.2); }
.page-tet .nav-balance { color: #ffd700; }
.page-tet .btn-nav-user { color: #f90000; }
.page-tet footer { background: #1a0a0a !important; border-top: 1px solid rgba(255,215,0,.08); }
.page-tet footer, .page-tet footer a { color: rgba(255,255,255,.4) !important; }
/* Mobile menu override for Tet dark theme */
@media (max-width: 768px) {
    .page-tet .navbar-menu {
        background: #1a0a0a;
        border-bottom: 1px solid rgba(255,215,0,.15);
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .page-tet .navbar-menu li a {
        color: rgba(255,255,255,.75);
    }
    .page-tet .navbar-menu li a:hover,
    .page-tet .navbar-menu li a.active {
        color: #ffd700;
        background: rgba(255,215,0,.08);
    }
    .page-tet .navbar-menu .mobile-auth-btns {
        border-top-color: rgba(255,215,0,.15);
    }
    .page-tet .navbar-menu .mobile-auth-btns .btn {
        color: #fff;
        border-color: rgba(255,215,0,.3);
    }
}

/* =============================================================
   FLOATING TẾT BUTTON
   ============================================================= */
.floating-tet {
    position: fixed; left: 15px; bottom: 270px; z-index: 900;
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; transition: transform .3s;
    animation: tetFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(220,38,38,.4));
}
.floating-tet img {
    width: 80px; height: 80px; object-fit: contain;
    transition: transform .3s;
}
.floating-tet:hover { transform: scale(1.12); }
.floating-tet:hover img { transform: rotate(-8deg) scale(1.1); }
.floating-tet-label {
    margin-top: 2px; font-size: .65rem; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #dc2626, #b91c1c);
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.3); letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(220,38,38,.3);
}
@keyframes tetFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================================
   TẾT / LUNAR NEW YEAR EVENT — PREMIUM REDESIGN
   ============================================================= */

/* ---- Page wrapper ---- */
.tet-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a0808 0%, #2d0f0f 30%, #1a0505 60%, #0d0505 100%);
    padding-top: 80px; padding-bottom: 80px;
    overflow-x: hidden;
    position: relative;
}
.tet-page::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: 
        radial-gradient(ellipse 400px 400px at 10% 20%, rgba(200,30,30,.06) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 90% 70%, rgba(255,215,0,.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 200px at 50% 100%, rgba(200,30,30,.05) 0%, transparent 70%);
}
.tet-page > * { position: relative; z-index: 1; }

/* ---- Hero Banner ---- */
.tet-hero {
    position: relative; width: 100%; min-height: 300px; overflow: hidden;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 30%, #8b0000 50%, #660000 100%);
    border-bottom: 3px solid rgba(255, 215, 0, .4);
    background-size: cover; background-position: center;
}
.tet-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 150px 150px at 15% 30%, rgba(255,215,0,.15) 0%, transparent 70%),
        radial-gradient(ellipse 120px 120px at 80% 60%, rgba(255,215,0,.1) 0%, transparent 70%),
        radial-gradient(ellipse 200px 100px at 50% 90%, rgba(255,100,50,.1) 0%, transparent 70%);
    z-index: 1;
}
.tet-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle 2px, rgba(255,215,0,.35) 100%, transparent 100%),
        radial-gradient(circle 1.5px, rgba(255,215,0,.25) 100%, transparent 100%),
        radial-gradient(circle 1px, rgba(255,200,150,.2) 100%, transparent 100%);
    background-size: 80px 80px, 60px 60px, 40px 40px;
    background-position: 10px 10px, 35px 45px, 20px 30px;
    z-index: 1; opacity: .6;
}
/* Decorative elements */
.tet-hero-decor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tet-lantern {
    position: absolute; width: 36px; height: 50px;
    background: radial-gradient(ellipse, #ff4444 0%, #cc0000 60%, #990000 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px rgba(255,100,50,.5), 0 0 40px rgba(255,50,50,.3);
}
.tet-lantern::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 8px; background: #ffd700; border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px rgba(255,215,0,.5);
}
.tet-lantern::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 12px; background: linear-gradient(#cc0000, #ffd700);
}
.tet-lantern-1 { top: 30px; left: 12%; animation: tetLanternSway 4s ease-in-out infinite; }
.tet-lantern-2 { top: 20px; right: 10%; animation: tetLanternSway 5s ease-in-out infinite reverse; }
@keyframes tetLanternSway {
    0%,100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
.tet-blossom {
    position: absolute; width: 12px; height: 12px;
    background: radial-gradient(circle, #ffb7c5 30%, #ff8fab 70%, transparent 100%);
    border-radius: 50%;
    opacity: .6;
}
.tet-blossom-1 { top: 35%; left: 30%; animation: tetBlossomFall 8s linear infinite; }
.tet-blossom-2 { top: 20%; left: 55%; animation: tetBlossomFall 12s linear infinite 3s; width: 8px; height: 8px; }
.tet-blossom-3 { top: 40%; right: 25%; animation: tetBlossomFall 10s linear infinite 6s; width: 10px; height: 10px; }
@keyframes tetBlossomFall {
    0% { transform: translate(0,0) rotate(0); opacity: .7; }
    100% { transform: translate(30px, 200px) rotate(360deg); opacity: 0; }
}
.tet-hero-img {
    width: 100%; height: auto; display: block;
    object-fit: cover; max-height: 360px;
}
.tet-hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    background: linear-gradient(transparent 0%, rgba(26,8,8,.85) 60%, rgba(26,8,8,.98) 100%);
    padding: 80px 24px 28px; text-align: center;
}
.tet-hero-title {
    font-size: 2.2rem; font-weight: 900; margin: 0;
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700, #ff8c00);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none; letter-spacing: 1.5px;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,.5));
    animation: goldShimmer 4s ease-in-out infinite;
}
@keyframes goldShimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.tet-hero-countdown {
    font-size: .85rem; color: #ffcccb; margin-top: 6px;
    font-weight: 500; letter-spacing: .3px;
}

/* ---- Loading ---- */
.tet-loading {
    text-align: center; padding: 80px 20px; color: #ff8a80;
}
.tet-loading-spinner {
    width: 40px; height: 40px; border: 3px solid rgba(255,215,0,.2);
    border-top-color: #ffd700; border-radius: 50%;
    animation: tetSpin 1s linear infinite; margin: 0 auto 16px;
}
@keyframes tetSpin { to { transform: rotate(360deg); } }
.tet-loading p { margin: 0; font-size: 1rem; }

/* ---- No Event ---- */
.tet-no-event {
    text-align: center; padding: 80px 24px; color: #ffcccb;
}
.tet-no-event-img { width: 100px; margin-bottom: 20px; opacity: .5; filter: drop-shadow(0 4px 12px rgba(220,38,38,.3)); }
.tet-no-event h3 { color: #ffd700; margin: 0 0 8px; font-size: 1.3rem; }
.tet-no-event p { color: #ff8a80; margin: 0 0 20px; }

/* ---- Body Container ---- */
.tet-body {
    max-width: 900px; margin: 0 auto; padding: 0 16px;
}

/* ---- Server Bar ---- */
.tet-server-bar {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,.15); border-radius: 12px;
    padding: 12px 16px; margin: 20px 0; flex-wrap: wrap;
}
.tet-server-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    display: flex; align-items: center; justify-content: center;
    color: #ffd700; font-size: .9rem; flex-shrink: 0;
}
.tet-server-select {
    flex: 1; max-width: 220px; padding: 8px 12px;
    background: rgba(0,0,0,.3); border: 1px solid rgba(255,215,0,.2);
    border-radius: 8px; color: #fff; font-size: .85rem;
    outline: none;
}
.tet-server-select option { background: #1a0a0a; color: #fff; }
.tet-role-badge {
    font-size: .8rem; color: #4ade80; font-weight: 600;
    background: rgba(74,222,128,.1); padding: 4px 10px; border-radius: 6px;
}

/* ---- Navigation Tabs ---- */
.tet-nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 5px;
    background: rgba(0,0,0,.3); border-radius: 16px;
    margin-bottom: 24px; -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255,215,0,.1);
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.tet-nav-item {
    flex: 1; min-width: 0; padding: 12px 8px;
    border: none; background: transparent; border-radius: 10px;
    cursor: pointer; color: rgba(255,255,255,.65); font-weight: 600;
    font-size: .85rem; transition: all .25s; display: flex;
    flex-direction: column; align-items: center; gap: 4px;
    white-space: nowrap;
}
.tet-nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.tet-nav-item.active {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff; box-shadow: 0 4px 18px rgba(220,38,38,.45);
    border: 1px solid rgba(255,215,0,.15);
}
.tet-nav-icon { font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tet-nav-icon img.tet-tab-icon {
    width: 32px; height: 32px; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
    transition: transform .25s;
}
.tet-nav-item:hover .tet-tab-icon { transform: scale(1.1); }
.tet-nav-item.active .tet-tab-icon { transform: scale(1.15); filter: drop-shadow(0 2px 8px rgba(255,215,0,.5)) brightness(1.1); }
.tet-nav-label { font-size: .72rem; letter-spacing: .3px; }

/* ---- Panels ---- */
.tet-panel { display: none; animation: tetSlideIn .35s ease-out; }
.tet-panel.active { display: block; }
@keyframes tetSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ---- Shared Card ---- */
.tet-card {
    background: rgba(0,0,0,.25); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,.14);
    border-radius: 18px; padding: 24px; margin-bottom: 20px;
    transition: border-color .3s, box-shadow .3s;
    box-shadow: 0 4px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,215,0,.05);
}
.tet-card:hover { border-color: rgba(255,215,0,.3); box-shadow: 0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,215,0,.08); }
.tet-card-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
}
.tet-card-icon {
    font-size: 2.2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.tet-card-icon img.tet-tab-icon {
    width: 44px; height: 44px; object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,.4));
}
.tet-card-title h3 {
    margin: 0; font-size: 1.15rem; font-weight: 800;
    color: #ffd700;
}
.tet-card-title p {
    margin: 3px 0 0; font-size: .82rem; color: rgba(255,255,255,.65);
}

/* ---- Section Block ---- */
.tet-section-block {
    margin-top: 24px; background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,215,0,.15); border-radius: 14px; padding: 20px;
}
.tet-section-title {
    margin: 0 0 16px; font-size: .95rem; font-weight: 700;
    color: #ffd700; display: flex; align-items: center; gap: 8px;
}
.tet-section-title i { opacity: .7; }

/* ── Shared Reward Grid (compact chips) ── */
.tet-rw-grid {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.tet-rw-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,215,0,.15); border-radius: 8px;
    transition: all .2s; font-size: .8rem;
}
.tet-rw-chip:hover { border-color: rgba(255,215,0,.35); background: rgba(0,0,0,.4); }
.tet-rw-ic {
    width: 22px; height: 22px; object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
    vertical-align: middle;
}
i.tet-rw-ic {
    width: auto; height: auto; font-size: .85rem; color: #ffd700;
}
i.tet-rw-ic.coin { color: #f59e0b; }
.tet-rw-name {
    color: #fff; font-weight: 600; font-size: .78rem;
    max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tet-rw-qty {
    color: #ffd700; font-weight: 800; font-size: .8rem;
}
.tet-rw-empty {
    font-size: .82rem; color: rgba(255,255,255,.35); font-style: italic;
}
/* Eve variant */
.tet-rw-eve .tet-rw-chip {
    background: rgba(255,255,255,.08); border-color: rgba(253,230,138,.2);
}
.tet-rw-eve .tet-rw-chip:hover { background: rgba(255,255,255,.14); border-color: rgba(253,230,138,.4); }
.tet-rw-eve .tet-rw-name { color: #fef9c3; }
.tet-rw-eve .tet-rw-qty { color: #fbbf24; }

/* Redbag result item with icon */
.redbag-reward-item .tet-rw-icon {
    width: 36px; height: 36px; object-fit: contain;
    display: block; margin: 0 auto 6px;
    filter: drop-shadow(0 2px 6px rgba(255,215,0,.4));
}
.redbag-reward-item .tet-rw-icon-fa {
    font-size: 1.5rem; color: #ffd700; display: block;
    text-align: center; margin-bottom: 6px;
}

/* ---- Buttons ---- */
.tet-btn {
    padding: 10px 22px; border: none; border-radius: 10px;
    font-weight: 700; cursor: pointer; transition: all .25s;
    font-size: .85rem; display: inline-flex; align-items: center; gap: 6px;
}
.tet-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.tet-btn-primary {
    background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.tet-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,.4); }
.tet-btn-outline {
    background: transparent; color: #ff6b6b;
    border: 2px solid rgba(220,38,38,.4);
}
.tet-btn-outline:hover:not(:disabled) { background: rgba(220,38,38,.1); border-color: #dc2626; }
.tet-btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
    box-shadow: 0 4px 12px rgba(245,158,11,.3);
}
.tet-btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.tet-btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 12px; }

/* ---- Table ---- */
.tet-table-wrap {
    overflow-x: auto; border-radius: 12px;
    border: 1px solid rgba(255,215,0,.12);
    background: rgba(0,0,0,.2);
}
.tet-table {
    width: 100%; border-collapse: collapse;
}
.tet-table thead { background: rgba(0,0,0,.35); }
.tet-table th {
    padding: 12px 14px; color: #ffd700; font-weight: 700;
    font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
    text-align: left;
}
.tet-table td {
    padding: 11px 14px; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.06); font-size: .88rem;
}
.tet-table tr:hover td { background: rgba(255,215,0,.06); }
.tet-table .rank-1 td { background: rgba(255,215,0,.1); }
.tet-table .rank-2 td { background: rgba(192,192,192,.08); }
.tet-table .rank-3 td { background: rgba(205,127,50,.08); }
.rank-medal { font-size: 1.2rem; }
.ranking-my-info { margin-left: auto; font-size: .85rem; color: rgba(255,255,255,.7); }
.ranking-my-info strong { color: #ffd700; font-size: 1rem; }
.ranking-reward-tier {
    background: rgba(0,0,0,.25); border: 1px solid rgba(255,215,0,.12);
    border-radius: 12px; margin-bottom: 10px; overflow: hidden;
    transition: all .25s;
}
.ranking-reward-tier:hover { border-color: rgba(255,215,0,.3); }
.ranking-tier-head {
    padding: 12px 16px; display: flex; align-items: center;
    background: rgba(255,215,0,.06); border-bottom: 1px solid rgba(255,215,0,.08);
}
.ranking-tier-label { font-weight: 800; min-width: 90px; color: #ffd700; font-size: .9rem; }
.ranking-tier-rewards { padding: 12px 16px; }

/* ══════════ JAR ══════════ */
/* Jar Hero Section */
.jar-hero-section {
    display: flex; align-items: center; gap: 20px;
    padding: 28px 24px; margin-bottom: 16px;
    background: radial-gradient(ellipse at 30% 50%, rgba(220,38,38,.15) 0%, transparent 60%);
    border-radius: 20px;
    border: 1px solid rgba(220,38,38,.12);
}
.jar-hero-img-wrap {
    flex-shrink: 0; width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(255,215,0,.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: jarFloat 3s ease-in-out infinite;
}
@keyframes jarFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.jar-hero-img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(255,215,0,.3)); }
.jar-hero-info { flex: 1; }
.jar-hero-title {
    margin: 0 0 4px; font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.jar-hero-sub { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.jar-hero-sub strong { color: #ffd700; font-size: 1.1rem; }
.jar-hero-amount {
    font-size: 1rem; color: rgba(255,255,255,.7);
}
.jar-hero-amount span:first-child { color: #ffd700; font-weight: 800; font-size: 1.15rem; }

/* Progress bar */
.jar-progress-wrap {
    position: relative; margin-bottom: 28px; padding: 0 8px;
}
.jar-progress-track {
    height: 24px; background: rgba(0,0,0,.35);
    border-radius: 12px; position: relative; overflow: hidden;
    border: 1px solid rgba(255,215,0,.12);
}
.jar-progress-fill {
    height: 100%; border-radius: 12px;
    background: linear-gradient(90deg, #f87171, #dc2626, #991b1b);
    position: relative; z-index: 1;
    transition: width .8s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px rgba(220,38,38,.4);
    background-size: 200% 100%;
    animation: jarProgressShine 2s linear infinite;
}
@keyframes jarProgressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Milestone icons on bar */
.jar-milestone-icons {
    position: relative; display: flex; justify-content: space-between;
    margin-top: 8px; padding: 0 4px;
    min-height: 56px; /* Enough space for icon + label */
}
.jar-mi {
    position: absolute; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform .2s;
    z-index: 2;
}
.jar-mi:hover { transform: translateX(-50%) scale(1.15); }
.jar-mi-gift {
    font-size: 1.4rem; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.3); border: 2px solid rgba(255,215,0,.25);
    border-radius: 10px; transition: all .3s;
}
.jar-mi.reached .jar-mi-gift {
    border-color: #ffd700; background: rgba(255,215,0,.12);
    box-shadow: 0 0 14px rgba(255,215,0,.3);
    animation: giftBounce 1s ease-in-out infinite;
}
.jar-mi.claimed .jar-mi-gift {
    border-color: #4ade80; background: rgba(74,222,128,.1);
}
@keyframes giftBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.jar-mi-label {
    font-size: .65rem; font-weight: 700; margin-top: 2px;
    color: rgba(255,255,255,.6); white-space: nowrap;
}
.jar-mi.reached .jar-mi-label { color: #ffd700; }
.jar-mi.claimed .jar-mi-label { color: #4ade80; }

/* Milestone cards */
.jar-milestones-list {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 20px;
}
.jar-ms-card {
    background: rgba(0,0,0,.28); border: 1px solid rgba(255,215,0,.12);
    border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
    transition: all .3s;
}
.jar-ms-card:hover { border-color: rgba(255,215,0,.3); background: rgba(0,0,0,.35); }
.jar-ms-card.reached { border-color: rgba(255,215,0,.4); background: rgba(255,215,0,.08); }
.jar-ms-card.claimed { border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.06); opacity: .75; }
.jar-ms-card.highlight { border-color: #ffd700; box-shadow: 0 0 20px rgba(255,215,0,.25); background: rgba(255,215,0,.12); }

.jar-ms-status-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.1rem;
}
.jar-ms-status-icon.locked { background: rgba(0,0,0,.3); color: rgba(255,255,255,.4); }
.jar-ms-status-icon.reached { background: rgba(255,215,0,.18); color: #ffd700; }
.jar-ms-status-icon.claimed { background: rgba(74,222,128,.18); color: #4ade80; }

.jar-ms-main { flex: 1; min-width: 0; }
.jar-ms-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.jar-ms-threshold { font-weight: 700; font-size: .95rem; color: #fff; }
.jar-ms-pct { font-size: .75rem; color: #ffd700; font-weight: 600; }

.jar-ms-rewards { }
/* Remove old jar-ms-reward-item (now using shared tet-rw grid) */
.jar-ms-reward-item {
    display: none; /* deprecated: use tet-rw-card instead */
}
.jar-ms-reward-item i { color: #ffd700; font-size: .7rem; }
.jar-ms-reward-item .reward-icon { width: 20px; height: 20px; object-fit: contain; }
.jar-ms-reward-name { color: #ffd700; font-weight: 600; }
.jar-ms-reward-qty { color: rgba(255,255,255,.5); font-size: .7rem; }

.jar-ms-btn {
    padding: 8px 18px; border: none; border-radius: 10px;
    font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .2s;
    flex-shrink: 0; white-space: nowrap;
}
.jar-ms-btn.btn-claim {
    background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff;
    box-shadow: 0 2px 10px rgba(220,38,38,.35);
}
.jar-ms-btn.btn-claim:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(220,38,38,.5); }
.jar-ms-btn.btn-claimed { background: rgba(74,222,128,.15); color: #4ade80; cursor: default; }
.jar-ms-btn.btn-locked { background: rgba(0,0,0,.3); color: rgba(255,255,255,.4); cursor: default; }

/* Rules box */
.tet-rules-box {
    background: rgba(0,0,0,.25); border: 1px solid rgba(255,215,0,.12);
    border-radius: 14px; padding: 18px 20px;
}
.tet-rules-content p {
    margin: 0 0 8px; font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.6;
}
.tet-rules-content p:last-child { margin-bottom: 0; }
.tet-hl-red { color: #f87171; font-weight: 600; }
.tet-hl-gold { color: #ffd700; font-weight: 600; }

/* ══════════ RED BAG ══════════ */
.redbag-hero {
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; padding: 40px 20px;
    background: radial-gradient(ellipse at center, rgba(220,38,38,.15) 0%, rgba(220,38,38,.05) 40%, transparent 70%);
    border-radius: 20px; margin-bottom: 20px;
    border: 1px solid rgba(220,38,38,.1);
    position: relative; overflow: hidden;
}
.redbag-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle 200px at 50% 30%, rgba(255,100,50,.08) 0%, transparent 70%);
    pointer-events: none;
}
.redbag-envelope {
    position: relative; cursor: pointer; transition: transform .3s;
    display: flex; flex-direction: column; align-items: center; z-index: 1;
}
.redbag-envelope:hover { transform: scale(1.08) rotate(-3deg); }
.redbag-envelope:active { transform: scale(.95); }
.redbag-envelope-img {
    width: 140px; height: 140px; object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(220,38,38,.5));
    animation: redbagPulse 2s ease-in-out infinite;
}
@keyframes redbagPulse {
    0%,100% { filter: drop-shadow(0 8px 28px rgba(220,38,38,.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 14px 40px rgba(220,38,38,.7)); transform: scale(1.04); }
}
.redbag-tap-text {
    margin-top: 8px; font-size: .78rem; color: rgba(255,255,255,.65);
    font-weight: 600;
}
.redbag-stats {
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.redbag-stat-card {
    background: rgba(0,0,0,.3); border: 1px solid rgba(255,215,0,.18);
    border-radius: 14px; padding: 14px 22px; text-align: center;
    min-width: 100px; transition: all .3s;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.redbag-stat-card:hover { border-color: rgba(255,215,0,.35); transform: translateY(-2px); }
.redbag-stat-num {
    display: block; font-size: 1.5rem; font-weight: 900; color: #ffd700;
}
.redbag-stat-txt {
    display: block; font-size: .72rem; color: rgba(255,255,255,.65);
    margin-top: 2px; font-weight: 600;
}
.redbag-actions {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

/* Result box */
.redbag-result-box {
    background: rgba(0,0,0,.3); border: 1px solid rgba(255,215,0,.25);
    border-radius: 14px; padding: 20px; margin-bottom: 20px; text-align: center;
}
.redbag-result-box h4 { margin: 0 0 14px; color: #ffd700; font-size: .95rem; }
.redbag-rewards-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.redbag-reward-item {
    background: rgba(0,0,0,.3); border: 1px solid rgba(255,215,0,.2);
    border-radius: 10px; padding: 10px 14px; text-align: center;
    min-width: 80px; animation: tetPopIn .4s ease-out;
}
@keyframes tetPopIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.redbag-reward-item .rw-name { font-size: .78rem; color: #fff; }
.redbag-reward-item .rw-amount { font-size: 1.1rem; font-weight: 800; color: #ffd700; }

/* Pool & milestones */
.redbag-pool-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* redbag-pool-tag deprecated, using tet-rw-chip */
.redbag-pool-tag { display: none; }

/* ══════════ PIECES ══════════ */
.tet-card-piece { border-color: rgba(74,222,128,.15); }
.tet-card-piece .tet-card-title h3 { color: #4ade80; }
.piece-grid {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 28px; padding: 20px;
    background: rgba(0,0,0,.15);
    border-radius: 16px;
}
.piece-slot {
    width: 90px; height: 110px;
    background: rgba(0,0,0,.25); border: 2px dashed rgba(255,255,255,.15);
    border-radius: 14px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: all .3s; position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.piece-slot.has-piece {
    border-style: solid; border-color: #4ade80;
    background: rgba(74,222,128,.08);
    box-shadow: 0 0 16px rgba(74,222,128,.2), 0 4px 16px rgba(0,0,0,.2);
    animation: pieceGlow 3s ease-in-out infinite;
}
@keyframes pieceGlow {
    0%,100% { box-shadow: 0 0 16px rgba(74,222,128,.2), 0 4px 16px rgba(0,0,0,.2); }
    50% { box-shadow: 0 0 24px rgba(74,222,128,.3), 0 4px 20px rgba(0,0,0,.2); }
}
.piece-slot .piece-name { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 600; }
.piece-slot .piece-count { font-size: 1.3rem; font-weight: 800; color: #ffd700; }
.piece-slot .piece-empty { font-size: 1.5rem; color: rgba(255,255,255,.25); }
.piece-slot .piece-img {
    width: 52px; height: 52px; object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(255,215,0,.4));
    transition: transform .3s;
}
.piece-slot:hover .piece-img { transform: scale(1.1) rotate(-3deg); }
.piece-slot:not(.has-piece) .piece-img {
    filter: grayscale(1) brightness(.35); opacity: .35;
}
.piece-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.piece-exchange-info { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.6); text-align: center; }

/* ══════════ EVE ══════════ */
.eve-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e1b4b 80%, #0f0e2a 100%);
    border: 1px solid rgba(165,180,252,.2);
    border-radius: 24px; padding: 56px 24px; text-align: center;
    position: relative; overflow: hidden;
    box-shadow: 0 8px 40px rgba(30,27,75,.6), inset 0 1px 0 rgba(165,180,252,.1);
}
.eve-banner::before {
    content: ''; position: absolute; top: -60%; left: -60%;
    width: 220%; height: 220%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(165,180,252,.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(251,191,36,.04) 0%, transparent 40%);
    animation: eveGlow 6s ease-in-out infinite alternate;
}
@keyframes eveGlow {
    from { transform: scale(.8); opacity: .5; }
    to { transform: scale(1.2); opacity: 1; }
}
.eve-fireworks-wrap {
    position: relative; z-index: 1;
    font-size: 3rem; margin-bottom: 16px;
    display: flex; gap: 12px; justify-content: center;
}
.eve-fw { animation: tetPulse 1.5s infinite; display: inline-block; }
.eve-fw:nth-child(2) { animation-delay: .3s; }
.eve-fw:nth-child(3) { animation-delay: .6s; }
@keyframes tetPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.eve-banner h2 {
    position: relative; z-index: 1;
    margin: 0 0 8px; font-size: 1.6rem; font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.eve-desc {
    position: relative; z-index: 1;
    color: #c4b5fd; margin-bottom: 24px; font-size: .9rem;
}
.eve-rewards {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 28px;
}
.eve-reward-tag {
    padding: 6px 14px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(253,230,138,.2);
    border-radius: 8px; font-size: .85rem; color: #fde68a;
}
.eve-banner .tet-btn-gold { position: relative; z-index: 1; }
.eve-status { position: relative; z-index: 1; margin-top: 14px; font-size: .85rem; color: #a5b4fc; }

/* ── Redbag overlay animation ── */
.redbag-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.75); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.redbag-anim { text-align: center; animation: tetBounceIn .6s ease-out; }
.redbag-anim-img {
    width: 140px; height: 140px; object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(220,38,38,.6));
}
.redbag-anim-text {
    color: #ffd700; font-size: 1.6rem; font-weight: 900; margin-top: 20px;
    text-shadow: 0 2px 12px rgba(255,215,0,.5);
    letter-spacing: 1px;
}
@keyframes tetBounceIn {
    from { transform: scale(0) rotate(-15deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .floating-tet { left: 8px; bottom: 170px; }
    .floating-tet img { width: 56px; height: 56px; }
    .floating-tet-label { font-size: .55rem; padding: 2px 6px; }
    .floating-e83 { left: 8px; bottom: 100px; }
    .floating-e83 img { width: 56px; height: 56px; }
    .floating-e83-label { font-size: .55rem; padding: 2px 6px; }

    .tet-hero { min-height: 180px; }
    .tet-hero-title { font-size: 1.3rem; }
    .tet-hero-overlay { padding: 30px 16px 16px; }
    .tet-body { padding: 0 10px; }
    .tet-nav { gap: 3px; padding: 3px; }
    .tet-nav-item { padding: 10px 6px; }
    .tet-nav-label { display: none; }
    .tet-nav-icon { font-size: 1.3rem; }
    .tet-card { padding: 16px; border-radius: 14px; }
    .tet-card-icon { font-size: 1.6rem; }

    /* Jar responsive */
    .jar-hero-section { flex-direction: column; text-align: center; padding: 20px 16px; gap: 12px; }
    .jar-hero-img-wrap { width: 80px; height: 80px; }
    .jar-hero-img { width: 64px; height: 64px; }
    .jar-hero-title { font-size: 1.1rem; }
    .jar-mi-gift { width: 32px; height: 32px; font-size: 1.2rem; }
    .jar-mi-label { font-size: .55rem; }
    .jar-ms-card { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .jar-ms-status-icon { width: 32px; height: 32px; font-size: .9rem; }
    .jar-ms-threshold { font-size: .85rem; }
    .jar-ms-btn { padding: 6px 12px; font-size: .75rem; }

    /* Reward grid responsive */
    .tet-rw-grid { gap: 5px; }
    .tet-rw-chip { padding: 4px 8px; font-size: .75rem; }
    .tet-rw-ic { width: 18px; height: 18px; }
    .tet-rw-name { font-size: .72rem; max-width: 90px; }
    .tet-rw-qty { font-size: .72rem; }
    .ranking-reward-tier { margin-bottom: 8px; }
    .ranking-tier-head { padding: 10px 12px; }
    .ranking-tier-rewards { padding: 10px 12px; }
    .tet-section-block { padding: 14px; }

    .redbag-envelope-img { width: 110px; height: 110px; }
    .redbag-stat-card { padding: 10px 14px; min-width: 75px; }
    .piece-grid { gap: 10px; padding: 12px; }
    .piece-slot { width: 68px; height: 88px; }
    .piece-slot .piece-img { width: 40px; height: 40px; }
    .eve-banner { padding: 36px 16px; border-radius: 18px; }
    .eve-banner h2 { font-size: 1.2rem; }
    .eve-fireworks-wrap { font-size: 2.4rem; }
    .redbag-anim-img { width: 110px; height: 110px; }
}

/* ============================================================
   NAVBAR DROPDOWN (Hoạt Động)
   ============================================================ */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-wrap .nav-link { display: flex; align-items: center; gap: 5px; }
.nav-dd-arrow { font-size: 0.7em; transition: transform 0.2s; }
.nav-dropdown-wrap.open .nav-dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 6px 0;
    display: none;
    z-index: 200;
}
.nav-dropdown-wrap.open .nav-dropdown-menu { display: block; animation: ddSlide 0.15s ease; }
@keyframes ddSlide { 0% { opacity: 0; transform: translateX(-50%) translateY(-6px); } 100% { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
}
.nav-dropdown-menu .nav-link:hover { background: #fef2f2; color: var(--primary); }
.nav-dropdown-menu .nav-link.active { color: var(--primary); font-weight: 700; }

@media (max-width: 991px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 16px;
        display: none;
    }
    .nav-dropdown-wrap.open .nav-dropdown-menu { display: block; }
}

/* ============================================================
   DAILY CHECK-IN STYLES - Calendar Scroll (Light)
   ============================================================ */

/* Server Select Box (shared between checkin & wheel) */
.ck-server-box, .wh-server-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.ck-server-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.ck-server-field {
    flex: 1;
    min-width: 180px;
}
.ck-server-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.ck-server-field label i {
    color: var(--primary);
    margin-right: 4px;
}
.ck-role-card {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    min-height: 42px;
    box-shadow: 0 1px 4px rgba(220,38,38,0.06);
}
.ck-role-name {
    font-weight: 700;
    color: var(--text);
}
.ck-role-level {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Calendar Container */
.ck-calendar {
    margin-bottom: 20px;
}

/* Month Header */
.ck-month-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: #fff;
    border-radius: 14px;
    padding: 14px 22px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.18);
    position: relative;
    overflow: hidden;
}
.ck-month-header::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.ck-month-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 30%;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.ck-month-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.ck-month-stats {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.ck-month-stat {
    font-size: 0.8rem;
    opacity: 0.95;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.ck-month-stat i {
    margin-right: 4px;
}
.ck-month-stat strong {
    font-size: 0.95rem;
}

/* Monthly Calendar Grid */
.ck-grid {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ck-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(180deg, #f8f9fa, #f3f4f6);
    border-bottom: 2px solid var(--border);
}
.ck-grid-hcell {
    text-align: center;
    padding: 8px 2px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ck-grid-hcell.weekend { color: var(--primary); }

.ck-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 8px;
}

.ck-grid-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 3px;
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: default;
    background: #fafbfc;
    min-height: 54px;
}
.ck-grid-cell.empty { background: transparent; }
.ck-grid-cell:not(.empty):not(.checked):hover {
    background: #fef2f2;
    transform: scale(1.04);
}

.ck-cell-day {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.ck-cell-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s;
}
.ck-grid-cell:hover .ck-cell-icon { transform: scale(1.15); }
.ck-cell-icon.ck-xu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1rem;
}
.ck-cell-icon.ck-fa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1rem;
}
.ck-cell-reward {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--primary);
    background: #fef2f2;
    padding: 0px 5px;
    border-radius: 4px;
    line-height: 1.4;
}

/* Today */
.ck-grid-cell.today {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    box-shadow: inset 0 0 0 2px var(--primary);
    z-index: 1;
    animation: ckCellGlow 2s infinite;
    border-radius: 10px;
}
@keyframes ckCellGlow {
    0%, 100% { box-shadow: inset 0 0 0 2px rgba(220,38,38,0.4); }
    50% { box-shadow: inset 0 0 0 2px rgba(220,38,38,0.8); }
}
.ck-grid-cell.today .ck-cell-day {
    color: #fff;
    background: var(--primary);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem;
}

/* Checked */
.ck-grid-cell.checked {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 10px;
}
.ck-cell-check {
    color: #16a34a;
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(22,163,106,0.3));
}
.ck-grid-cell.checked .ck-cell-day {
    color: #16a34a;
    font-weight: 800;
}

/* Missed */
.ck-grid-cell.missed {
    opacity: 0.35;
    background: #fafafa;
}
.ck-grid-cell.missed .ck-cell-day {
    text-decoration: line-through;
    color: #9ca3af;
}

/* Future */
.ck-grid-cell.future {
    opacity: 0.6;
}
.ck-grid-cell.future .ck-cell-icon { filter: grayscale(0.4) opacity(0.7); }

/* Checkin Action */
.ck-checkin-action {
    text-align: center;
    margin: 24px 0;
}

.ck-claim-btn {
    max-width: 360px;
    margin: 0 auto;
    display: block;
    font-size: 0.95rem;
    padding: 13px 30px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
    transition: all 0.3s;
}
.ck-claim-btn:not(.done):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220,38,38,0.4);
}
.ck-claim-btn.done {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    cursor: default;
    box-shadow: 0 4px 16px rgba(22,163,106,0.25);
}

/* Pop animation */
.ck-pop { animation: ckCardPop 0.6s ease; }
@keyframes ckCardPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ===== Milestones ===== */
.ck-milestones-section {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.ck-milestones-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}
.ck-milestones-title i {
    color: #f59e0b;
    margin-right: 8px;
}

/* Milestone Progress Bar */
.ck-ms-progress {
    margin-bottom: 24px;
    padding: 0 16px;
}
.ck-ms-bar {
    position: relative;
    height: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 28px 0 40px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.ck-ms-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #eab308);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.ck-ms-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}
.ck-ms-marker-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.ck-ms-marker.ready .ck-ms-marker-dot {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #f59e0b;
    animation: msPulse 1.5s infinite;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
@keyframes msPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.1); }
    50% { box-shadow: 0 0 0 8px rgba(245,158,11,0.2); }
}
.ck-ms-marker.claimed .ck-ms-marker-dot {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.ck-ms-marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    white-space: nowrap;
}
.ck-ms-marker.ready .ck-ms-marker-label { color: #f59e0b; }
.ck-ms-marker.claimed .ck-ms-marker-label { color: #16a34a; }

/* Milestone Cards */
.ck-ms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.ck-ms-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.ck-ms-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.ck-ms-card.ready {
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245,158,11,0.15);
    animation: msCardPulse 2s infinite;
}
@keyframes msCardPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(245,158,11,0.15); }
    50% { box-shadow: 0 6px 28px rgba(245,158,11,0.25); }
}
.ck-ms-card.claimed {
    border-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.ck-ms-card.locked {
    opacity: 0.55;
    filter: grayscale(0.15);
}

.ck-ms-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 8px;
}
.ck-ms-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.ck-ms-card.ready .ck-ms-card-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #f59e0b; }
.ck-ms-card.claimed .ck-ms-card-icon { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }

.ck-ms-card-days {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
}

.ck-ms-card-items {
    padding: 0 12px 8px;
}
.ck-ms-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #6b7280;
    padding: 2px 0;
}
.ck-ms-item-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.ck-ms-item span {
    font-weight: 600;
}

.ck-ms-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
    transition: all 0.2s;
}
.ck-ms-card-btn.ready {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-top: none;
    animation: readyBtnGlow 1.5s infinite;
}
.ck-ms-card-btn.ready:hover { filter: brightness(1.1); transform: scale(1.02); }
@keyframes readyBtnGlow {
    0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
    50% { box-shadow: inset 0 0 20px rgba(255,255,255,0.15); }
}
.ck-ms-card-btn.claimed {
    background: #dcfce7;
    color: #16a34a;
    cursor: default;
}
.ck-ms-card-btn.locked {
    background: #f9fafb;
    color: #9ca3af;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .ck-server-row { flex-direction: column; gap: 10px; }
    .ck-server-field { min-width: 100%; }
    .ck-grid-body { gap: 3px; padding: 6px; }
    .ck-grid-cell { padding: 4px 2px; min-height: 44px; border-radius: 8px; }
    .ck-cell-icon { width: 20px; height: 20px; }
    .ck-cell-icon.ck-xu-icon, .ck-cell-icon.ck-fa-icon { font-size: 0.85rem; }
    .ck-cell-day { font-size: 0.65rem; }
    .ck-cell-reward { font-size: 0.5rem; padding: 0 3px; }
    .ck-month-header { flex-direction: column; text-align: center; padding: 12px 16px; }
    .ck-month-title { font-size: 0.95rem; }
    .ck-ms-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .ck-ms-marker-dot { width: 26px; height: 26px; font-size: 0.65rem; }
    .ck-grid-cell.today .ck-cell-day { width: 18px; height: 18px; font-size: 0.6rem; }
    .ck-cell-check { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .ck-grid-body { gap: 2px; padding: 4px; }
    .ck-grid-cell { padding: 3px 1px; min-height: 36px; border-radius: 6px; }
    .ck-grid-hcell { padding: 6px 1px; font-size: 0.6rem; }
    .ck-cell-icon { width: 16px; height: 16px; }
    .ck-cell-icon.ck-xu-icon, .ck-cell-icon.ck-fa-icon { font-size: 0.75rem; }
    .ck-cell-day { font-size: 0.6rem; }
    .ck-cell-reward { display: none; }
    .ck-ms-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ck-grid-cell.today .ck-cell-day { width: 16px; height: 16px; font-size: 0.55rem; }
    .ck-cell-check { font-size: 0.85rem; }
}

/* ============================================================
   LUCKY WHEEL STYLES (Light)
   ============================================================ */
.wheel-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}
.wheel-main-col {
    flex-shrink: 0;
    text-align: center;
}
.wheel-wrap-box {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}
.wheel-pointer-box {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    color: var(--primary);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(220,38,38,0.4));
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.wheel-center-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #b91c1c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 2px;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    z-index: 5;
    transition: all 0.3s ease;
}
.wheel-center-btn:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 6px 24px rgba(220,38,38,0.5); }
.wheel-center-btn.spinning { animation: wheelBtnPulse 1s infinite; pointer-events: none; }
@keyframes wheelBtnPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(220,38,38,0.35); }
    50% { box-shadow: 0 8px 32px rgba(220,38,38,0.65); }
}

.wheel-stats-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.wheel-stat-chip {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.wheel-stat-chip i { color: var(--primary); }

.wheel-side-col { flex: 1; max-width: 360px; min-width: 0; }

.wh-prize-list { max-height: 340px; overflow-y: auto; }
.wh-prize-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}
.wh-prize-row:hover { background: #fafafa; }
.wh-prize-row:last-child { border-bottom: none; }
.wh-prize-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; border-radius: 6px; background: #f9fafb; border: 1px solid #e5e7eb; }
.wh-prize-icon-xu { display: flex; align-items: center; justify-content: center; color: #f59e0b; font-size: 1.1rem; background: #fffbeb; border-color: #fde68a; }
.wh-prize-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wh-prize-name { font-weight: 600; line-height: 1.3; }
.wh-prize-rarity { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; color: #9ca3af; }
.wh-rarity-common { color: #9ca3af; }
.wh-rarity-uncommon { color: #22c55e; }
.wh-rarity-rare { color: #7c3aed; }
.wh-rarity-epic { color: #db2777; }
.wh-rarity-legendary { color: #d97706; }
.wh-prize-qty { color: #dc2626; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.wh-prize-row.wh-r-rare { background: #faf5ff; }
.wh-prize-row.wh-r-epic { background: #fdf2f8; }
.wh-prize-row.wh-r-legendary { background: #fffbeb; }

.wh-winner-list { max-height: 200px; overflow-y: auto; }
.wh-winner-item {
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wh-winner-item:last-child { border-bottom: none; }
.wh-winner-item.wh-r-legendary { background: linear-gradient(90deg, #fffbeb, transparent); }
.wh-winner-item.wh-r-epic { background: linear-gradient(90deg, #fdf2f8, transparent); }
.wh-winner-item.wh-r-rare { background: linear-gradient(90deg, #faf5ff, transparent); }
.wh-winner-name { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
    .wheel-layout { flex-direction: column; align-items: center; gap: 20px; }
    .wheel-main-col { width: 100%; }
    .wheel-wrap-box { width: min(300px, 80vw); height: min(300px, 80vw); }
    #wheel-canvas { width: min(300px, 80vw); height: min(300px, 80vw); }
    .wheel-center-btn { width: 48px; height: 48px; font-size: 0.65rem; }
    .wheel-side-col { max-width: 100%; width: 100%; }
    .wheel-stats-row { flex-wrap: wrap; gap: 6px; }
    .wheel-stat-chip { font-size: 0.72rem; padding: 6px 10px; }
}
@media (max-width: 480px) {
    .wheel-wrap-box { width: min(260px, 85vw); height: min(260px, 85vw); }
    #wheel-canvas { width: min(260px, 85vw); height: min(260px, 85vw); }
    .wheel-center-btn { width: 42px; height: 42px; font-size: 0.6rem; }
    .wheel-pointer-box { font-size: 1.6rem; top: -6px; }
    .wh-prize-row { padding: 6px 10px; font-size: 0.78rem; gap: 8px; }
    .wh-prize-icon { width: 28px; height: 28px; }
}

/* ============================================================
   ACHIEVEMENTS STYLES (Light)
   ============================================================ */
.ach-grid { display: flex; flex-direction: column; gap: 14px; }

.ach-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ach-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #e5e7eb;
    border-radius: 4px 0 0 4px;
    transition: background 0.3s;
}
.ach-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ach-card.ach-unlocked {
    border-color: #bbf7d0;
    box-shadow: 0 4px 16px rgba(22,163,106,0.08);
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}
.ach-card.ach-unlocked::before { background: linear-gradient(180deg, #16a34a, #22c55e); }
.ach-card.ach-claimed {
    opacity: 0.72;
    background: #fafafa;
}
.ach-card.ach-claimed::before { background: linear-gradient(180deg, #16a34a, #86efac); }
.ach-card.ach-locked::before { background: #d1d5db; }

.ach-icon-box {
    font-size: 1.8rem;
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08);
    transition: all 0.3s;
}
.ach-card:hover .ach-icon-box { transform: scale(1.08); }
.ach-card.ach-locked .ach-icon-box {
    filter: grayscale(0.7);
    opacity: 0.5;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    box-shadow: none;
}
.ach-card.ach-unlocked .ach-icon-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    box-shadow: 0 2px 8px rgba(22,163,106,0.12);
}

.ach-info { flex: 1; min-width: 0; }
.ach-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ach-desc { font-size: 0.78rem; color: #6b7280; margin-bottom: 10px; line-height: 1.4; }

.ach-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.ach-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ef4444);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(220,38,38,0.25);
}
.ach-card.ach-unlocked .ach-bar-fill {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 1px 4px rgba(22,163,106,0.25);
}

.ach-pct { font-size: 0.68rem; color: #9ca3af; font-weight: 600; }

.ach-reward-col { text-align: right; flex-shrink: 0; min-width: 80px; }
.ach-xu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d97706;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 8px;
    background: #fffbeb;
    padding: 3px 10px;
    border-radius: 6px;
}
.ach-xu i { margin-right: 2px; font-size: 0.8rem; }

.ach-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}
.ach-status.ach-locked { background: #f3f4f6; color: #9ca3af; }
.ach-status.ach-claimed {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
}

@media (max-width: 768px) {
    .ach-card { flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
    .ach-icon-box { width: 48px; height: 48px; font-size: 1.4rem; }
    .ach-info { min-width: calc(100% - 160px); }
    .ach-reward-col { min-width: auto; }
}

/* ============================================================
   SUPPORT / TICKET STYLES (Light)
   ============================================================ */
.sp-layout { max-width: 800px; margin: 0 auto; }

.sp-ticket-list { }

.sp-ticket-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.sp-ticket-item:last-child { border-bottom: none; }
.sp-ticket-item:hover {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    padding-left: 24px;
}
.sp-ticket-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s;
    border-radius: 0 3px 3px 0;
}
.sp-ticket-item:hover::before { background: var(--primary); }

.sp-ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-ticket-cat {
    font-size: 0.72rem;
    color: #6b7280;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 3px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.sp-status-badge {
    font-size: 0.68rem;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.sp-ticket-subject { color: var(--text); font-weight: 700; font-size: 0.94rem; margin-bottom: 4px; line-height: 1.4; }
.sp-ticket-date { color: #9ca3af; font-size: 0.72rem; }
.sp-ticket-date i { margin-right: 4px; }

.sp-empty {
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
}
.sp-empty i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    color: #d1d5db;
    animation: emptyBounce 3s infinite;
}
@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.sp-empty p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 8px;
}

.sp-messages {
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(180deg, #fafafa, #fff);
}

.sp-msg {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: msgFadeIn 0.3s ease;
}
@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.sp-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-bottom-right-radius: 4px;
}
.sp-msg-admin {
    align-self: flex-start;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-bottom-left-radius: 4px;
}
.sp-msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 0.72rem; }
.sp-msg-head strong { color: var(--text); font-weight: 700; }
.sp-msg-head span { color: #9ca3af; }
.sp-msg-body { color: #374151; font-size: 0.87rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

.sp-reply-box {
    padding: 18px 20px;
    border-top: 2px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 14px 14px;
}

.sp-form-group { margin-bottom: 18px; }
.sp-label {
    display: block;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.sp-label i { margin-right: 5px; color: var(--primary); font-size: 0.78rem; }

/* ============================================================
   NOTIFICATION BELL STYLES (Light)
   ============================================================ */
.nav-notification-bell {
    position: relative;
    cursor: pointer;
    padding: 6px 10px;
    margin-right: 8px;
    font-size: 1.15rem;
    color: #6b7280;
    transition: color 0.3s;
}
.nav-notification-bell:hover { color: var(--primary); }
.nav-notification-bell i { display: block; }

.notif-badge {
    position: absolute;
    top: 0; right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

.notif-dropdown {
    position: absolute;
    top: 44px;
    right: -60px;
    width: 340px;
    max-height: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.notif-dropdown.open { display: block; animation: notifSlide 0.2s ease; }

@keyframes notifSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
}
.notif-header a { color: var(--primary); font-size: 0.75rem; text-decoration: none; font-weight: 600; }
.notif-header a:hover { text-decoration: underline; }

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.notif-item:hover { background: #fef2f2; }
.notif-item.unread { background: #fef2f2; }
.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 6px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.notif-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.notif-msg { font-size: 0.75rem; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 0.65rem; color: #9ca3af; margin-top: 3px; }

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ════════════════════════════════════════════════════════════
   8/3 WOMEN'S DAY EVENT - Rose Gold + Gold Theme (v2)
   ════════════════════════════════════════════════════════════ */

/* Full-bleed dark page for 8/3 */
.gpanel-body:has(.e83-page) { background: #FFF7F0; padding: 0; }
.gpanel:has(.e83-page) { background: #FFF7F0; border-left-color: #F0D6D6; }
.gpanel-body .e83-page { min-height: 100%; padding-top: 0; padding-bottom: 30px; margin: 0; width: 100%; }
.gpanel-body .e83-page .e83-hero { border-radius: 0; }

.e83-page {
    --e83-rose: #D4727E;
    --e83-rose-light: #F2B5BC;
    --e83-rose-dark: #B85566;
    --e83-gold: #C8956C;
    --e83-gold-light: #DEBB96;
    --e83-gold-dark: #A67548;
    --e83-bg: #FFF7F0;
    --e83-card-bg: #FFFFFF;
    --e83-card-border: rgba(212,114,126,0.18);
    --e83-glass: rgba(255,255,255,0.85);
    --e83-text: #3D2C2E;
    --e83-text-muted: #9B8A8E;
    --e83-gradient: linear-gradient(135deg, #E8919E 0%, #D4A574 100%);
    --e83-gradient-soft: linear-gradient(135deg, rgba(212,114,126,0.08) 0%, rgba(200,149,108,0.06) 100%);
    --e83-glow-rose: 0 2px 12px rgba(212,114,126,0.12);
    --e83-glow-gold: 0 2px 12px rgba(200,149,108,0.10);
    --e83-green: #6AAF73;
    --e83-shadow: 0 2px 16px rgba(80,40,50,0.07);
    --e83-shadow-md: 0 4px 24px rgba(80,40,50,0.10);
    color: var(--e83-text);
    font-family: 'Noto Sans', sans-serif;
    background: var(--e83-bg);
}

/* ─── HERO BANNER ─── */
.e83-hero {
    position: relative;
    background: linear-gradient(170deg, #FDEEF0 0%, #FFF4EC 40%, #FFF9F5 100%);
    padding: 48px 20px 36px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(212,114,126,0.12);
}
.e83-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,114,126,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(200,149,108,0.06) 0%, transparent 55%);
    pointer-events: none;
}
.e83-hero::after { display: none; }
.e83-hero-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Floating petals — subtle and few */
.e83-petal {
    position: absolute;
    width: 14px; height: 14px;
    background: var(--e83-rose-light);
    border-radius: 50% 0 50% 0;
    opacity: 0.25;
    animation: e83PetalFall 12s linear infinite;
}
.e83-petal-1 { left: 10%; top: -16px; animation-delay: 0s; animation-duration: 11s; width: 12px; height: 12px; }
.e83-petal-2 { left: 30%; top: -16px; animation-delay: 2s; animation-duration: 14s; width: 16px; height: 16px; }
.e83-petal-3 { left: 55%; top: -16px; animation-delay: 5s; animation-duration: 10s; width: 10px; height: 10px; }
.e83-petal-4 { left: 75%; top: -16px; animation-delay: 3s; animation-duration: 13s; width: 13px; height: 13px; background: var(--e83-gold-light); opacity: 0.15; }
.e83-petal-5 { left: 90%; top: -16px; animation-delay: 7s; animation-duration: 15s; width: 11px; height: 11px; }
.e83-petal-6 { left: 18%; top: -16px; animation-delay: 9s; animation-duration: 12s; width: 9px; height: 9px; }
.e83-petal-7 { left: 68%; top: -16px; animation-delay: 1s; animation-duration: 13s; width: 14px; height: 14px; background: var(--e83-gold-light); opacity: 0.12; }

@keyframes e83PetalFall {
    0% { transform: translateY(-16px) rotate(0deg) translateX(0); opacity: 0; }
    8% { opacity: 0.25; }
    50% { transform: translateY(90px) rotate(120deg) translateX(15px); }
    92% { opacity: 0.15; }
    100% { transform: translateY(220px) rotate(240deg) translateX(-8px); opacity: 0; }
}

/* Sparkles — hidden for cleaner look */
.e83-sparkle { display: none; }
@keyframes e83Sparkle { 0%,100% { opacity:0; } }

.e83-hero-overlay { position: relative; z-index: 2; }
.e83-hero-emoji {
    font-size: 44px;
    margin-bottom: 6px;
    animation: e83EmojiFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(212,114,126,0.18));
}
@keyframes e83EmojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.e83-hero-badge {
    display: inline-block;
    font-size: 34px; font-weight: 900;
    color: var(--e83-rose-dark);
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.e83-hero-title {
    font-size: 26px; font-weight: 800;
    color: var(--e83-text);
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}
.e83-hero-sub {
    font-size: 14px;
    color: var(--e83-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.e83-hero-countdown {
    display: inline-flex; gap: 6px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(212,114,126,0.15);
    border-radius: 14px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--e83-rose-dark);
    font-weight: 700;
}
.e83-hero-countdown .cd-sep { color: var(--e83-text-muted); margin: 0 1px; }
.e83-hero-countdown .cd-num { min-width: 28px; text-align: center; }

/* ─── LOADING / NO EVENT ─── */
.e83-loading, .e83-no-event {
    text-align: center;
    padding: 60px 20px;
    color: var(--e83-text-muted);
}
.e83-loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(212,114,126,0.15);
    border-top-color: var(--e83-rose);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.e83-no-event-img { width: 80px; margin-bottom: 15px; opacity: 0.6; }

/* ─── BODY & SERVER BAR ─── */
.e83-body { max-width: 640px; margin: 0 auto; padding: 0 14px; }
.e83-server-bar {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 18px 0;
    box-shadow: var(--e83-shadow);
}
.e83-server-icon { color: var(--e83-rose); font-size: 16px; }
.e83-server-select {
    flex: 1;
    background: #FFF7F0;
    border: 1px solid var(--e83-card-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--e83-text);
    font-size: 13px;
    outline: none;
}
.e83-server-select option { background: #fff; }
.e83-role-badge {
    font-size: 12px;
    color: var(--e83-gold-dark);
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── NAVIGATION TABS ─── */
.e83-nav {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--e83-shadow);
}
.e83-nav::-webkit-scrollbar { height: 0; }
.e83-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--e83-text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.e83-nav-item:hover { color: var(--e83-rose); background: rgba(212,114,126,0.06); }
.e83-nav-item.active {
    background: var(--e83-rose);
    color: #fff;
    box-shadow: 0 3px 12px rgba(212,114,126,0.25);
}
.e83-nav-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.e83-tab-icon { width: 24px; height: 24px; object-fit: contain; }
.e83-nav-item.active .e83-tab-icon { filter: brightness(0) invert(1); }
.e83-nav-label { font-size: 10px; }

/* ─── PANELS ─── */
.e83-panel { display: none; animation: e83FadeIn 0.3s ease; }
.e83-panel.active { display: block; }
@keyframes e83FadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── BUTTONS ─── */
.e83-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
    position: relative;
    overflow: hidden;
}
.e83-btn::after { display: none; }
.e83-btn-primary {
    background: var(--e83-rose);
    color: #fff;
    box-shadow: 0 3px 12px rgba(212,114,126,0.25);
}
.e83-btn-primary:hover {
    background: var(--e83-rose-dark);
    box-shadow: 0 4px 16px rgba(212,114,126,0.35);
    transform: translateY(-1px);
}
.e83-btn-outline {
    background: transparent;
    border: 1.5px solid var(--e83-rose);
    color: var(--e83-rose);
}
.e83-btn-outline:hover {
    background: rgba(212,114,126,0.08);
}
.e83-btn-gold {
    background: var(--e83-gold);
    color: #fff;
    box-shadow: 0 3px 12px rgba(200,149,108,0.25);
}
.e83-btn-gold:hover {
    background: var(--e83-gold-dark);
    box-shadow: 0 4px 16px rgba(200,149,108,0.35);
    transform: translateY(-1px);
}
.e83-btn-glow {
    animation: e83BtnGlow 3s ease-in-out infinite;
}
@keyframes e83BtnGlow {
    0%, 100% { box-shadow: 0 3px 12px rgba(212,114,126,0.25); }
    50% { box-shadow: 0 3px 20px rgba(212,114,126,0.40); }
}
.e83-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── CARDS & SECTIONS ─── */
.e83-card {
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--e83-shadow);
}
.e83-card-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212,114,126,0.10);
}
.e83-card-icon { width: 40px; height: 40px; flex-shrink: 0; }
.e83-card-icon img { width: 100%; height: 100%; }
.e83-card-title h3 {
    font-size: 16px; font-weight: 700;
    color: var(--e83-text);
    margin: 0;
}
.e83-card-title p { font-size: 12px; color: var(--e83-text-muted); margin: 4px 0 0; }
.e83-section-block {
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--e83-shadow);
}
.e83-section-title {
    font-size: 14px; font-weight: 700;
    color: var(--e83-rose-dark);
    margin: 0 0 14px;
    display: flex; align-items: center; gap: 8px;
}

/* ─── HIGHLIGHT TEXT ─── */
.e83-hl-rose { color: var(--e83-rose); font-weight: 700; }
.e83-hl-gold { color: var(--e83-gold-dark); font-weight: 700; }

/* ─── RULES BOX ─── */
.e83-rules-box {
    background: #FFF7F0;
    border: 1px dashed rgba(212,114,126,0.20);
    border-radius: 12px;
    padding: 14px;
    margin-top: 16px;
}
.e83-rules-title {
    font-size: 13px; font-weight: 700;
    color: var(--e83-rose);
    margin-bottom: 8px;
}
.e83-rules-content p {
    font-size: 12px;
    color: var(--e83-text-muted);
    margin: 4px 0;
    line-height: 1.6;
}

/* ─── MILESTONES LIST ─── */
.e83-milestones-list { display: flex; flex-direction: column; gap: 10px; }
.e83-ms-card {
    display: flex; align-items: center; gap: 14px;
    background: #FFF9F5;
    border: 1px solid var(--e83-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.25s ease;
}
.e83-ms-card:hover { transform: translateX(3px); }
.e83-ms-card.claimed {
    border-color: rgba(106,175,115,0.35);
    background: rgba(106,175,115,0.06);
}
.e83-ms-card.claimable {
    border-color: rgba(200,149,108,0.30);
    background: rgba(200,149,108,0.05);
    animation: e83MsGlow 3s ease-in-out infinite;
}
@keyframes e83MsGlow {
    0%, 100% { box-shadow: 0 1px 8px rgba(212,114,126,0.06); }
    50% { box-shadow: 0 2px 14px rgba(212,114,126,0.12); }
}
.e83-ms-threshold {
    min-width: 50px; height: 50px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    flex-shrink: 0;
    background: rgba(212,114,126,0.08);
    color: var(--e83-rose);
    border: 1px solid rgba(212,114,126,0.15);
    line-height: 1.1;
    text-align: center;
}
.e83-ms-card.claimed .e83-ms-threshold { background: rgba(106,175,115,0.10); color: var(--e83-green); border-color: rgba(106,175,115,0.25); }
.e83-ms-card.claimable .e83-ms-threshold { background: rgba(200,149,108,0.10); color: var(--e83-gold-dark); border-color: rgba(200,149,108,0.25); }
.e83-ms-info { flex: 1; min-width: 0; }
.e83-ms-label { font-size: 12px; color: var(--e83-text-muted); margin-bottom: 4px; }
.e83-ms-label strong { color: var(--e83-text); }
.e83-ms-rewards { display: flex; flex-wrap: wrap; gap: 6px; }
.e83-ms-reward {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(200,149,108,0.06);
    border: 1px solid rgba(200,149,108,0.14);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--e83-gold-dark);
}
.e83-ms-reward img { width: 20px; height: 20px; object-fit: contain; }
.e83-ms-action { flex-shrink: 0; }
.e83-ms-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 70px; padding: 8px 14px;
    border: none; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.25s ease;
}
.e83-ms-btn.btn-claim {
    background: var(--e83-rose);
    color: #fff;
}
.e83-ms-btn.btn-claimed {
    background: rgba(106,175,115,0.12);
    color: var(--e83-green);
    cursor: default;
}
.e83-ms-btn.btn-locked {
    background: rgba(155,138,142,0.08);
    color: var(--e83-text-muted);
    cursor: default;
    font-size: 11px;
    white-space: nowrap;
}

/* ─── TABLE ─── */
.e83-table-wrap { overflow-x: auto; }
.e83-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.e83-table th {
    background: rgba(212,114,126,0.06);
    color: var(--e83-rose-dark);
    font-size: 12px; font-weight: 700;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--e83-card-border);
}
.e83-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(212,114,126,0.06);
    color: var(--e83-text);
}
.e83-table tbody tr:hover { background: rgba(212,114,126,0.03); }
.e83-table .rank-1 td { color: #C8956C; font-weight: 700; }
.e83-table .rank-2 td { color: #9B9B9B; font-weight: 600; }
.e83-table .rank-3 td { color: #B8845A; font-weight: 600; }

/* ─── GARDEN TAB ─── */
.garden-hero-section {
    display: flex; align-items: center; gap: 24px;
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: var(--e83-shadow);
}
.garden-visual { flex-shrink: 0; position: relative; width: 130px; text-align: center; }
.garden-pot { position: relative; display: flex; flex-direction: column; align-items: center; }

/* Flower image stages */
.garden-flower-stage {
    height: 80px;
    display: flex; align-items: flex-end; justify-content: center;
    margin-bottom: 4px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.garden-flower-img {
    width: 30px; height: 30px;
    opacity: 0.25;
    filter: grayscale(100%) brightness(0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
    transform: scale(0.5);
}
/* Stage 1: Seedling */
.garden-flower-stage.stage-1 .garden-flower-img {
    width: 40px; height: 40px;
    opacity: 0.5;
    filter: grayscale(50%) brightness(0.7);
    transform: scale(0.7);
}
/* Stage 2: Growing */
.garden-flower-stage.stage-2 .garden-flower-img {
    width: 55px; height: 55px;
    opacity: 0.8;
    filter: grayscale(20%) brightness(0.9);
    transform: scale(0.9);
}
/* Stage 3: Full bloom */
.garden-flower-stage.stage-3 .garden-flower-img {
    width: 70px; height: 70px;
    opacity: 1;
    filter: none;
    transform: scale(1);
    animation: e83FlowerBloom 4s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(212,114,126,0.25));
}
@keyframes e83FlowerBloom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.03) rotate(1deg); }
}

/* Pot redesign */
.garden-pot-body {
    width: 80px;
    position: relative;
}
.garden-pot-rim {
    width: 88px; height: 12px;
    margin: 0 auto;
    background: linear-gradient(180deg, #D4A06A 0%, #C0875A 100%);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.garden-pot-base {
    width: 76px; height: 40px;
    margin: 0 auto;
    background: linear-gradient(180deg, #BE8754 0%, #A0724A 60%, #8A5E3A 100%);
    border-radius: 0 0 14px 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.3);
}
.garden-soil {
    width: 66px; height: 8px;
    margin: -2px auto 0;
    background: linear-gradient(180deg, #5D3A1A 0%, #4A2E12 100%);
    border-radius: 0 0 10px 10px;
    position: relative;
    top: -40px;
}
.garden-seed { display: none; } /* Hide old seed div */
.garden-info { flex: 1; }
.garden-title {
    font-size: 18px; font-weight: 800;
    color: var(--e83-text);
    margin: 0 0 4px;
}
.garden-sub { font-size: 12px; color: var(--e83-text-muted); margin-bottom: 12px; }
.garden-stats { display: flex; gap: 16px; margin-bottom: 14px; }
.garden-stat { text-align: center; }
.garden-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--e83-rose-dark); }
.garden-stat-label { font-size: 11px; color: var(--e83-text-muted); }

/* Garden Progress */
.garden-progress-wrap { position: relative; margin-bottom: 16px; }
.garden-progress-track {
    height: 8px;
    background: rgba(212,114,126,0.10);
    border-radius: 4px;
    overflow: hidden;
}
.garden-progress-fill {
    height: 100%;
    background: var(--e83-rose);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.garden-milestone-markers { position: relative; height: 26px; margin-top: 6px; }
.garden-milestone-markers .ms-marker {
    position: absolute;
    top: 0;
    min-width: 28px; height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #fff;
    border: 2px solid var(--e83-rose);
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: var(--e83-rose);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
}
.garden-milestone-markers .ms-marker.reached { background: var(--e83-gold); border-color: var(--e83-gold-dark); color: #fff; }
.garden-milestone-markers .ms-marker.claimed { background: var(--e83-green); border-color: var(--e83-green); color: #fff; }

/* ─── CARD TAB ─── */
.card-hero {
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 18px;
    text-align: center;
    box-shadow: var(--e83-shadow);
}
.card-envelope {
    width: 150px; height: 130px;
    margin: 0 auto 20px;
    cursor: pointer;
    perspective: 800px;
}
.card-envelope-body {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-envelope:hover .card-envelope-body { transform: scale(1.08) rotate(-2deg); }
.card-envelope:active .card-envelope-body { transform: scale(0.92); }
.card-envelope-front {
    width: 100%; height: 100%;
    background: var(--e83-rose);
    border-radius: 14px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(212,114,126,0.25);
    position: relative;
    overflow: hidden;
}
.card-envelope-front::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    border-radius: 14px;
}
.card-envelope-flap {
    position: absolute; top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-top: 40px solid var(--e83-rose-dark);
    z-index: 2;
}
.card-envelope-text { font-size: 36px; position: relative; z-index: 1; margin-top: 10px; }
.card-envelope-sub { font-size: 11px; color: rgba(26,10,20,0.7); font-weight: 600; position: relative; z-index: 1; }

.card-stats { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.card-stat-card {
    background: #FFF7F0;
    border: 1px solid var(--e83-card-border);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    flex: 1; max-width: 100px;
}
.card-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--e83-rose-dark); }
.card-stat-txt { font-size: 11px; color: var(--e83-text-muted); }

.card-actions { display: flex; gap: 8px; justify-content: center; }
.card-result-box {
    background: #FFF9F5;
    border: 1px solid rgba(200,149,108,0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.card-result-box h4 {
    font-size: 14px;
    color: var(--e83-gold-dark);
    margin: 0 0 12px;
}
.card-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}
.e83-reward-item {
    background: rgba(200,149,108,0.05);
    border: 1px solid rgba(200,149,108,0.12);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
}
.e83-reward-item img { width: 32px; height: 32px; object-fit: contain; margin-bottom: 4px; }
.e83-reward-item .reward-name { font-size: 10px; color: var(--e83-text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e83-reward-item .reward-amount { font-size: 12px; color: var(--e83-gold-dark); font-weight: 700; }

.card-pool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 6px;
}
.card-pool-item {
    background: #FFF9F5;
    border: 1px solid rgba(212,114,126,0.08);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
}
.card-pool-item img { width: 30px; height: 30px; object-fit: contain; }
.card-pool-item .pool-name { font-size: 9px; color: var(--e83-text-muted); display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-pool-item .pool-pct { font-size: 10px; color: var(--e83-rose); }

/* ─── GIFTBOX TAB ─── */
.giftbox-hero {
    display: flex; align-items: center; gap: 24px;
    background: #fff;
    border: 1px solid var(--e83-card-border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: var(--e83-shadow);
}
.giftbox-visual { flex-shrink: 0; width: 100px; text-align: center; }
.giftbox-box {
    width: 80px; height: 80px;
    margin: 0 auto;
    position: relative;
    animation: e83GiftboxBounce 4s ease-in-out infinite;
}
@keyframes e83GiftboxBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.giftbox-lid {
    width: 88px; height: 20px; margin-left: -4px;
    background: linear-gradient(90deg, var(--e83-rose), var(--e83-gold));
    border-radius: 6px 6px 0 0;
    position: relative;
}
.giftbox-body {
    width: 80px; height: 60px;
    background: var(--e83-rose);
    border-radius: 0 0 10px 10px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.giftbox-ribbon {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 12px; height: 100%;
    background: var(--e83-gold);
}
.giftbox-heart { font-size: 24px; position: relative; z-index: 2; }
.giftbox-info { flex: 1; }
.giftbox-info h3 { font-size: 18px; font-weight: 800; color: var(--e83-text); margin: 0 0 4px; }
.giftbox-info p { font-size: 12px; color: var(--e83-text-muted); margin: 0 0 10px; }
.giftbox-total { font-size: 13px; color: var(--e83-text); }
.giftbox-total strong { color: var(--e83-rose-dark); }

/* Giftbox Progress */
.giftbox-progress-wrap { position: relative; margin-bottom: 16px; }
.giftbox-progress-track {
    height: 8px;
    background: rgba(212,114,126,0.10);
    border-radius: 4px;
    overflow: hidden;
}
.giftbox-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--e83-rose), var(--e83-gold));
    border-radius: 4px;
    transition: width 0.5s ease;
}
.giftbox-markers { position: relative; height: 26px; margin-top: 6px; }
.giftbox-markers .ms-marker {
    position: absolute; top: 0;
    min-width: 28px; height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #fff;
    border: 2px solid var(--e83-rose);
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700;
    color: var(--e83-rose);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
}
.giftbox-markers .ms-marker.reached { background: var(--e83-gold); border-color: var(--e83-gold-dark); color: #fff; }
.giftbox-markers .ms-marker.claimed { background: var(--e83-green); border-color: var(--e83-green); color: #fff; }

/* ─── COLLECTION TAB ─── */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.collection-flower {
    background: #FFF9F5;
    border: 2px solid var(--e83-card-border);
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
}
.collection-flower.has-flower {
    border-color: var(--e83-rose);
    background: rgba(212,114,126,0.05);
    box-shadow: 0 2px 10px rgba(212,114,126,0.08);
}
.collection-flower.has-flower:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212,114,126,0.14);
}
.collection-flower img {
    width: 42px; height: 42px;
    object-fit: contain;
    opacity: 0.2;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.collection-flower.has-flower img {
    opacity: 1;
    filter: drop-shadow(0 2px 5px rgba(212,114,126,0.2));
}
@keyframes e83FlowerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.collection-flower .flower-name { font-size: 10px; color: var(--e83-text-muted); margin-top: 4px; display: block; }
.collection-flower .flower-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    background: var(--e83-rose);
    color: #fff;
    border-radius: 10px;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    opacity: 0;
    transition: all 0.3s;
}
.collection-flower.has-flower .flower-count { opacity: 1; }

.collection-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.collection-exchange-info { text-align: center; font-size: 12px; color: var(--e83-text-muted); }

/* ─── CARD ANIMATION OVERLAY ─── */
.e83-card-overlay {
    position: fixed; inset: 0;
    background: rgba(61,44,46,0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.e83-card-anim {
    text-align: center;
    animation: e83CardPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes e83CardPop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.e83-card-anim-envelope { font-size: 80px; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(212,114,126,0.3)); }
.e83-card-anim-text {
    font-size: 22px; font-weight: 800;
    color: #fff;
}

/* ─── WATER ANIMATION OVERLAY ─── */
.e83-water-overlay {
    position: fixed; inset: 0;
    background: rgba(61,44,46,0.20);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 9998;
    pointer-events: none;
}
.e83-water-drops {
    position: absolute; top: 30%; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 20px;
}
.e83-drop {
    font-size: 28px;
    animation: e83DropFall 1s ease-in forwards;
    opacity: 0;
}
.e83-drop:nth-child(1) { animation-delay: 0s; }
.e83-drop:nth-child(2) { animation-delay: 0.1s; }
.e83-drop:nth-child(3) { animation-delay: 0.2s; }
.e83-drop:nth-child(4) { animation-delay: 0.3s; }
.e83-drop:nth-child(5) { animation-delay: 0.4s; }
@keyframes e83DropFall {
    0% { transform: translateY(-30px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(120px); opacity: 0; }
}

/* ─── RANKING REWARDS ─── */
.e83-ranking-reward-card {
    display: flex; align-items: center; gap: 14px;
    background: #FFF9F5;
    border: 1px solid var(--e83-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.e83-ranking-reward-card:hover { transform: translateX(3px); }
.e83-ranking-rank {
    min-width: 48px; height: 48px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(212,114,126,0.08);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex-shrink: 0;
    gap: 1px;
}
.e83-ranking-rank .rank-label {
    font-size: 9px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}
.e83-ranking-rank .rank-num {
    font-size: 16px; font-weight: 800;
    line-height: 1;
}
.e83-ranking-rank.top-1 { background: linear-gradient(135deg, #F5DCA0, #D4A574); color: #6B4226; }
.e83-ranking-rank.top-2 { background: linear-gradient(135deg, #D8D8D8, #B0B0B0); color: #4A4A4A; }
.e83-ranking-rank.top-3 { background: linear-gradient(135deg, #DEBB96, #C8956C); color: #5A3A1E; }
.e83-ranking-reward-info { flex: 1; min-width: 0; }

/* ─── FLOATING 8/3 BUTTON ─── */
.floating-e83 {
    position: fixed;
    left: 15px;
    bottom: 180px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform .3s;
    animation: e83Float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(212,114,126,0.4));
}
.floating-e83 img {
    width: 80px; height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
}
.floating-e83:hover { transform: scale(1.12); }
.floating-e83:hover img { transform: rotate(-8deg) scale(1.1); }
.floating-e83-label {
    margin-top: 2px; font-size: .65rem; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #e8457a, #c03060);
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.3); letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(212,114,126,.3);
}
@keyframes e83Float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
    .e83-hero { padding: 38px 14px 28px; }
    .e83-hero-emoji { font-size: 40px; }
    .e83-hero-badge { font-size: 28px; }
    .e83-hero-title { font-size: 22px; }
    .e83-body { padding: 0 10px; }
    .e83-nav { padding: 5px; gap: 2px; }
    .e83-nav-item { padding: 8px 4px; }
    .e83-nav-label { font-size: 9px; }
    .garden-hero-section { flex-direction: column; text-align: center; padding: 20px; }
    .garden-stats { justify-content: center; }
    .garden-visual { width: 100px; }
    .garden-flower-stage { height: 65px; }
    .garden-flower-stage.stage-3 .garden-flower-img { width: 55px; height: 55px; }
    .giftbox-hero { flex-direction: column; text-align: center; padding: 20px; }
    .collection-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .collection-flower { padding: 10px 4px; border-radius: 12px; }
    .collection-flower img { width: 34px; height: 34px; }
    .card-envelope { width: 120px; height: 100px; }
    .e83-card, .e83-section-block { padding: 16px; border-radius: 14px; }
    .e83-ms-card { padding: 12px; gap: 10px; }
    .e83-btn { padding: 11px 20px; font-size: 13px; }
}