/* =========================================
   1. ROOT VARIABLES & GLOBAL STYLES
========================================= */
:root {
    --theme-primary: #65a30d;
    --theme-light: #bef264;
    --theme-pale: #ecfccb;
    --theme-dark: #3f6212;
    --pastel-bg: #fdfbf7;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(101, 163, 13, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(101, 163, 13, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: var(--pastel-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(var(--theme-pale) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* =========================================
   2. MARQUEE & HEADER & NAVIGATION
========================================= */
.marquee-container {
    background: linear-gradient(90deg, var(--theme-dark), var(--theme-primary));
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    box-sizing: border-box;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeAnimation 25s linear infinite;
}

.marquee-content:hover { animation-play-state: paused; }

@keyframes marqueeAnimation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
}

.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(101, 163, 13, 0.3); border: 2px solid var(--theme-light); }
.logo-text h1 { font-size: 18px; font-weight: 700; color: var(--theme-dark); line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.main-menu { display: flex; list-style: none; gap: 8px; }
.main-menu a { text-decoration: none; color: var(--text-main); padding: 8px 14px; border-radius: 20px; font-weight: 500; font-size: 13px; transition: var(--transition); }
.main-menu a:hover, .main-menu a.active { background-color: var(--theme-pale); color: var(--theme-dark); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    background: var(--white); min-width: 180px; box-shadow: 0 10px 25px -3px rgba(101, 163, 13, 0.2);
    border-radius: 12px; padding: 8px 0; list-style: none; border: 1px solid var(--border-color);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(5px); }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 0; }
.dropdown-menu li a:hover { background-color: var(--theme-pale); color: var(--theme-dark); padding-left: 25px; }

.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin-top: -9px; transform: translateX(15px); }
.dropdown-submenu .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateX(0); }
.dropdown-toggle-sub { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; }

/* =========================================
   3. BUTTONS & FLOATING SIDEBAR
========================================= */
.nav-actions { display: flex; gap: 10px; }
.btn { padding: 9px 18px; border-radius: 25px; font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--theme-primary), var(--theme-dark)); color: var(--white); box-shadow: 0 4px 12px rgba(101, 163, 13, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(101, 163, 13, 0.4); }
.btn-outline { background: var(--white); color: var(--theme-dark); border: 2px solid var(--theme-primary); }
.btn-outline:hover { background: var(--theme-pale); }

.right-sidebar { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 999; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.right-sidebar.collapsed { transform: translate(90px, -50%); }
.sidebar-toggle { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); width: 32px; height: 48px; background: var(--white); border: 2px solid var(--theme-pale); border-right: none; border-radius: 12px 0 0 12px; color: var(--theme-dark); cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: -4px 4px 12px rgba(101, 163, 13, 0.2); transition: var(--transition); font-size: 14px; }
.sidebar-toggle:hover { background: var(--theme-primary); color: var(--white); }
.sidebar-btn { width: 55px; height: 55px; background: var(--white); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--theme-dark); box-shadow: var(--shadow-lg); border: 2px solid var(--theme-pale); transition: var(--transition); position: relative; }
.sidebar-btn i { font-size: 20px; }
.sidebar-btn span { font-size: 9px; font-weight: 600; margin-top: 2px; }
.sidebar-btn:hover { background: var(--theme-primary); color: var(--white); transform: scale(1.1); }

/* =========================================
   4. LAYOUT & HERO SECTION
========================================= */
.master-bg-container { position: relative; width: 100%; overflow: hidden; padding-bottom: 60px; border-bottom: 4px solid var(--theme-light); }
.header-overlay2 { position: absolute; inset: 0; background: url('../Wallpaper.png') no-repeat center center; background-size: cover; animation: bgZoom 20s ease-in-out infinite alternate; z-index: 1; }
@keyframes bgZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
.hero-overlay-tint { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(101, 163, 13, 0.3), rgba(63, 98, 18, 0.45)); z-index: 2; }
.hero-banner { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0px 20px 40px 20px; }

.hero-ImageContent { position: relative; z-index: 3; max-width: 800px; margin: 0 auto; background: transparent; border: none; box-shadow: none; }
.hero-logo-img { width: 100%; max-width: 800px; height: auto; margin-bottom: 12px; animation: floatLogo 3s ease-in-out infinite; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.hero-content { position: relative; z-index: 3; max-width: 1100px; margin: 0 auto; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 35px 30px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 15px 35px rgba(101, 163, 13, 0.25); }
.hero-content > *:not(.novice-mascot) { opacity: 0; transform: translateY(30px); animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-content h2 { animation-delay: 0.1s; font-size: 32px; font-weight: 700; color: var(--theme-dark); margin-bottom: 10px; text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); }
.hero-content p { animation-delay: 0.3s; font-size: 15px; color: var(--text-main); margin-bottom: 25px; line-height: 1.6; }
.hero-content .hero-highlight-box { animation-delay: 0.5s; }
.hero-content .hero-buttons { animation-delay: 0.7s; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
@keyframes heroFadeInUp { to { opacity: 1; transform: translateY(0); } }

.main-layout { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 30px; width: 100%; position: relative; z-index: 5; }

/* =========================================
   5. WIDGETS & CARDS
========================================= */
.widget { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-radius: 20px; padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid rgba(255, 255, 255, 0.8); margin-bottom: 25px; }
.widget-title { font-size: 18px; font-weight: 700; color: var(--theme-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--theme-pale); padding-bottom: 10px; }

.status-box { background: var(--white); border-radius: 16px; padding: 20px; text-align: center; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); border-top: 4px solid var(--theme-primary); }
.badge-status { background: #dcfce7; color: #16a34a; padding: 4px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.badge-status.online::before { content: ''; width: 8px; height: 8px; background: #16a34a; border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }

.compact-status-bar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-radius: 100px; padding: 12px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.status-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.status-label { color: var(--text-muted); font-weight: 500; }
.status-val { color: var(--theme-dark); font-weight: 700; }

.hero-highlight-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto 30px auto; }
.hero-card { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 16px; padding: 20px; text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(101, 163, 13, 0.1); opacity: 0; }
.hero-card:hover { transform: translateY(-10px) scale(1.02); background: rgba(255, 255, 255, 0.95); box-shadow: 0 15px 30px rgba(101, 163, 13, 0.2); border-color: var(--theme-light); }
.hero-card.animate-drop { animation: dropAndBounce 0.8s ease-out forwards; transition: none; }
@keyframes dropAndBounce { 0% { transform: translateY(-100px); opacity: 0; } 30% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-25px); opacity: 1; } 70% { transform: translateY(0); opacity: 1; } 85% { transform: translateY(-10px); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }

.hero-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 15px auto; font-size: 20px; transition: transform 0.3s ease; }
.hero-card:hover .hero-icon { transform: rotateY(180deg); }
.hero-icon.secret { background: var(--theme-pale); color: var(--theme-dark); }
.hero-icon.magic { background: #fef3c7; color: #d97706; }
.hero-icon.balance { background: #dcfce7; color: #16a34a; }

/* =========================================
   6. NEWS & TABS
========================================= */
.news-tabs { display: flex; gap: 12px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; flex-wrap: wrap; }
.tab-btn { background: var(--white); border: 1px solid var(--border-color); padding: 10px 24px; border-radius: 25px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); text-decoration: none; }
.tab-btn:hover, .tab-btn.active { background: var(--theme-primary); color: var(--white); border-color: var(--theme-primary); box-shadow: 0 4px 12px rgba(101, 163, 13, 0.25); }
.tab-btn.tab-event:hover, .tab-btn.tab-event.active { background: #fef3c7 !important; color: #d97706 !important; border-color: #fde68a !important; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important; }
.tab-btn.tab-promo:hover, .tab-btn.tab-promo.active { background: #fce7f3 !important; color: #db2777 !important; border-color: #fbcfe8 !important; box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15) !important; }
.tab-btn.tab-update:hover, .tab-btn.tab-update.active { background: #dcfce7 !important; color: #16a34a !important; border-color: #bbf7d0 !important; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15) !important; }
.tab-btn.tab-system:hover, .tab-btn.tab-system.active { background: #ecfccb !important; color: #3f6212 !important; border-color: #bef264 !important; box-shadow: 0 4px 12px rgba(63, 98, 18, 0.15) !important; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--theme-light); }
.news-img { height: 160px; width: 100%; object-fit: cover; }
.news-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-category { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 10px; width: fit-content; }
.news-category.cat-event { background: #fef3c7; color: #d97706; }
.news-category.cat-promo { background: #fce7f3; color: #db2777; }
.news-category.cat-update { background: #dcfce7; color: #16a34a; }
.news-category.cat-system { background: #ecfccb; color: #3f6212; }

/* =========================================
   7. FEATURES PAGE ACCORDION
========================================= */
.feature-accordion { display: flex; flex-direction: column; gap: 15px; }
.feature-item { background: var(--white); border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(40px); animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; overflow: hidden; }
.feature-item:nth-child(1) { animation-delay: 0.2s; } .feature-item:nth-child(2) { animation-delay: 0.4s; } .feature-item:nth-child(3) { animation-delay: 0.6s; } .feature-item:nth-child(4) { animation-delay: 0.8s; } .feature-item:nth-child(5) { animation-delay: 1.0s; } .feature-item:nth-child(6) { animation-delay: 1.2s; } .feature-item:nth-child(7) { animation-delay: 1.4s; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }

.feature-header { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: all 0.3s ease; }
.feature-header:hover { background: var(--theme-pale); }
.feature-header h4 { margin: 0; font-size: 18px; color: var(--theme-dark); display: flex; align-items: center; gap: 15px; transition: color 0.3s ease; }
.feature-icon-box { width: 45px; height: 45px; background: var(--theme-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--theme-primary); transition: all 0.3s ease; }
.toggle-icon { color: var(--text-muted); font-size: 18px; transition: transform 0.4s ease; }

.feature-item.active { border-color: var(--theme-primary); box-shadow: var(--shadow-lg); }
.feature-item.active .feature-header { background: linear-gradient(135deg, var(--theme-primary), var(--theme-dark)); }
.feature-item.active .feature-header h4 { color: var(--white); }
.feature-item.active .feature-icon-box { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.feature-item.active .toggle-icon { color: var(--white); transform: rotate(180deg); }
.feature-content { display: none; padding: 25px; background: var(--pastel-bg); border-top: 1px solid var(--border-color); }

.compare-box { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 15px; }
.compare-panel { flex: 1; min-width: 260px; border-radius: 12px; padding: 15px; position: relative; }
.compare-normal { background: var(--white); border: 1px solid #cbd5e1; }
.vs-divider { display: flex; align-items: center; justify-content: center; width: 40px; opacity: 0; transform: scale(0.5); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s; color: var(--theme-primary); font-size: 28px; }
.compare-custom { background: #f0f9ff; border: 2px solid var(--theme-primary); box-shadow: 0 8px 20px rgba(101, 163, 13, 0.15); opacity: 0; transform: translateX(40px) scale(0.95); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s; }

.feature-item.revealed .vs-divider { opacity: 1; transform: scale(1); }
.feature-item.revealed .compare-custom { opacity: 1; transform: translateX(0) scale(1); }
.custom-badge { position: absolute; top: -14px; right: 15px; background: linear-gradient(90deg, var(--theme-dark), var(--theme-primary)); color: white; font-size: 12px; font-weight: bold; padding: 6px 16px; border-radius: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.15); animation: pulse 2s infinite; }

.click-hint-container { text-align: center; margin-bottom: 30px; margin-top: -5px; }
.click-hint-text { color: var(--theme-dark); font-size: 15px; font-weight: 500; margin-bottom: 8px; animation: softPulse 2.5s ease-in-out infinite alternate; }
.bounce-arrow { color: var(--theme-primary); font-size: 20px; animation: bounceDown 2s infinite; }
@keyframes softPulse { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 10px rgba(101, 163, 13, 0.4); } }
@keyframes bounceDown { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 60% { transform: translateY(-3px); } }

/* =========================================
   8. REBALANCE PAGE (Modals & Sprites)
========================================= */
.class-sprite-btn { background: var(--white); border: 2px solid var(--border-color); border-radius: 12px; padding: 12px 10px; text-align: center; text-decoration: none; color: var(--text-main); transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: pointer; }
.class-sprite-btn:hover, .class-sprite-btn.active { border-color: var(--theme-primary); background: var(--theme-pale); box-shadow: 0 5px 15px rgba(101, 163, 13, 0.25); transform: translateY(-3px); }
.class-sprite-title { font-weight: 700; font-size: 13px; color: var(--theme-dark); margin-bottom: 10px; width: 100%; border-bottom: 1px dashed var(--theme-light); padding-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-sprite-images { display: flex; justify-content: center; gap: 15px; height: 65px; align-items: flex-end; }
.class-sprite-images img { max-height: 100%; object-fit: contain; filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.15)); }

.skill-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.skill-modal-overlay.active { display: flex; opacity: 1; animation: fadeIn 0.2s ease-out forwards; }
.skill-modal-box { background: var(--white); width: 100%; max-width: 650px; max-height: 85vh; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transform: scale(0.95); transition: transform 0.3s ease; }
.skill-modal-overlay.active .skill-modal-box { transform: scale(1); }
.skill-modal-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--theme-pale); border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; }
.skill-modal-header h3 { margin: 0; font-size: 18px; color: var(--theme-dark); display: flex; align-items: center; gap: 10px; }
.btn-close-modal { background: var(--white); border: 1px solid var(--border-color); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.btn-close-modal:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.skill-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.skill-modal-body::-webkit-scrollbar { width: 8px; }
.skill-modal-body::-webkit-scrollbar-track { background: var(--pastel-bg); border-radius: 4px; }
.skill-modal-body::-webkit-scrollbar-thumb { background: var(--theme-light); border-radius: 4px; }
.skill-modal-body::-webkit-scrollbar-thumb:hover { background: var(--theme-primary); }

/* =========================================
   9. PETS PAGE (Datatables & Tooltips)
========================================= */
.item-cell { display: flex; align-items: center; gap: 12px; }
.item-icon { width: 28px; height: 28px; object-fit: contain; }
.mob-icon { width: 50px; height: 50px; object-fit: contain; }
.name-wrapper { display: flex; flex-direction: column; }
.name-primary { font-weight: 600; color: #1e293b; font-size: 14px; margin-bottom: 2px; }
.name-secondary { color: #64748b; font-size: 12px; }
.id-text { color: #94a3b8; font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tooltip-container { position: relative; display: inline-block; }
.tooltip-container:hover .drop-tooltip { visibility: visible; opacity: 1; bottom: 140%; }
.drop-link { color: #0284c7; cursor: pointer; font-weight: bold; background: #e0f2fe; padding: 2px 6px; border-radius: 4px; transition: 0.2s; }
.drop-link:hover { background: #bae6fd; color: #0369a1; }
.group-link { color: #7c3aed; cursor: pointer; font-weight: bold; background: #ede9fe; padding: 2px 6px; border-radius: 4px; transition: 0.2s; }
.group-link:hover { background: #ddd6fe; color: #6d28d9; }
.drop-tooltip { visibility: hidden; background-color: #1e293b; color: #fff; text-align: left; border-radius: 8px; padding: 12px; position: absolute; z-index: 1000; bottom: 130%; left: 50%; transform: translateX(-50%); width: 250px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s, bottom 0.3s; max-height: 250px; overflow-y: auto; border: 1px solid #334155; }
.drop-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border-width: 6px; border-style: solid; border-color: #1e293b transparent transparent transparent; }
.tooltip-title { font-size: 12px; color: #cbd5e1; margin-bottom: 8px; border-bottom: 1px solid #334155; padding-bottom: 4px; font-weight: bold; }
.drop-mob-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #334155; font-size: 13px; }
.drop-mob-item:last-child { border-bottom: none; }
.drop-mob-img { width: 35px; height: 35px; object-fit: contain; }
.drop-rate { color: #38bdf8; font-size: 11px; font-weight: bold; background: rgba(56, 189, 248, 0.1); padding: 1px 4px; border-radius: 3px; }
.group-rate { color: #a78bfa; font-size: 11px; font-weight: bold; background: rgba(139, 92, 246, 0.1); padding: 1px 4px; border-radius: 3px; }
.drop-tooltip::-webkit-scrollbar { width: 6px; }
.drop-tooltip::-webkit-scrollbar-track { background: #1e293b; border-radius: 8px; }
.drop-tooltip::-webkit-scrollbar-thumb { background: #475569; border-radius: 8px; }
.pet-bonus-container { background: #fefce8; border: 1px solid #fde047; padding: 8px 10px; border-radius: 8px; box-shadow: 0 2px 4px rgba(253,224,71,0.2); }
.pet-bonus-title { font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 5px; padding-bottom: 4px; margin-bottom: 4px; }
.pet-bonus-title.base { color: #0284c7; border-bottom: 1px solid #bae6fd; }
.pet-bonus-title.loyal { color: #a16207; border-bottom: 1px solid #fef08a; margin-top: 8px; }
.pet-bonus-item { font-size: 12px; color: #422006; line-height: 1.6; margin-bottom: 2px; }
.pet-bonus-item.base-color { color: #0f172a; }
.pet-bonus-item.raw-script { color: #b91c1c; font-family: monospace; background: rgba(185, 28, 28, 0.1); padding: 2px 5px; border-radius: 4px; display: inline-block; margin-top: 2px; }
table.dataTable { border-bottom: 1px solid var(--border-color); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--theme-primary) !important; color: white !important; border: none; border-radius: 6px; }

#petModalOverlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(4px); }
#petModalOverlay.active { display: flex; opacity: 1; animation: fadeIn 0.2s ease-out forwards; }
.pet-modal-box { background: var(--white); width: 100%; max-width: 500px; max-height: 85vh; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: scale(0.95); transition: transform 0.3s ease; }
#petModalOverlay.active .pet-modal-box { transform: scale(1); }
.pet-modal-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: var(--theme-pale); border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; }
.pet-modal-header h3 { margin: 0; font-size: 18px; color: var(--theme-dark); display: flex; align-items: center; gap: 10px; }
.pet-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.pet-modal-body::-webkit-scrollbar { width: 8px; }
.pet-modal-body::-webkit-scrollbar-track { background: var(--pastel-bg); border-radius: 4px; }
.pet-modal-body::-webkit-scrollbar-thumb { background: var(--theme-light); border-radius: 4px; }

/* =========================================
   10. MISCELLANEOUS
========================================= */
.info-box ul li { border-bottom: 1px dashed var(--border-color); }
.feature-card ul li::before { color: var(--theme-dark); }
.command-code { background: var(--theme-pale); color: var(--theme-dark); }
footer { background: var(--white); border-top: 1px solid var(--border-color); text-align: center; padding: 30px; margin-top: auto; color: var(--text-muted); font-size: 14px; position: relative; z-index: 10; }
#snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 1050; }
.snowflake { position: absolute; background: #ffffff; border-radius: 50%; opacity: 0.8; box-shadow: 0 0 6px #bef264, 0 0 10px #65a30d; animation: fallSnow linear infinite, swaySnow ease-in-out infinite; }
@keyframes fallSnow { 0% { top: -10vh; } 100% { top: 105vh; } }
@keyframes swaySnow { 0% { transform: translateX(0px); } 50% { transform: translateX(35px); } 100% { transform: translateX(-35px); } }

/* LOADER */
#page-loader { position: fixed; inset: 0; background: rgba(248, 250, 252, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#page-loader.active { opacity: 1; visibility: visible; }
.loader-card { background: var(--white); padding: 35px 45px; border-radius: 24px; box-shadow: 0 20px 40px rgba(101, 163, 13, 0.2); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 20px; width: 340px; text-align: center; }
.loader-spinner { width: 50px; height: 50px; border: 4px solid var(--theme-pale); border-top: 4px solid var(--theme-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-title { font-size: 18px; font-weight: 700; color: var(--theme-dark); }
.progress-bar-container { width: 100%; height: 10px; background: var(--theme-pale); border-radius: 10px; overflow: hidden; position: relative; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--theme-primary), var(--theme-dark)); border-radius: 10px; transition: width 0.1s ease; }
.loader-percent { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.register-link-container { text-align: center; margin-top: 15px; font-size: 14px; color: var(--text-muted); }
.register-link-container span { color: #64748b; }
.register-link-container a { color: var(--theme-dark); font-weight: 600; text-decoration: none; margin-left: 5px; transition: var(--transition); }
.register-link-container a:hover { color: var(--theme-primary); text-decoration: underline; }

.novice-mascot { position: absolute; top: -46px; z-index: 10; filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2)); animation: mascotBreathe 3s ease-in-out infinite; cursor: pointer; transition: transform 0.2s; opacity: 1 !important; }
.novice-m { left: 40px; --flip-val: -1; animation-delay: 0s; }
.novice-f { right: 40px; --flip-val: 1; animation-delay: 1.5s; }
@keyframes mascotBreathe { 0%, 100% { transform: translateY(0) scaleX(var(--flip-val)); } 50% { transform: translateY(-5px) scaleX(var(--flip-val)); } }
.novice-mascot:hover { animation-play-state: paused; transform: translateY(-15px) scaleX(var(--flip-val)) !important; }
.hero-sitting-char { height: 65px; object-fit: contain; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(2px 4px 5px rgba(0, 0, 0, 0.2)); }
/* =========================================
   FIX 1: ซ่อนปุ่ม Hamburger บนหน้าจอคอมพิวเตอร์
========================================= */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--theme-dark);
    cursor: pointer;
    position: relative;
    z-index: 1050;
    padding: 5px 10px;
}

/* =========================================
   FIX 3: จำกัดความยาวเนื้อหาข่าว (ตัดคำอัตโนมัติที่ 3 บรรทัด)
========================================= */
.news-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    /* บังคับใช้ webkit-box เพื่อตัดคำ */
    display: -webkit-box !important; 
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .mobile-menu-toggle { display: block; }
    .nav-actions { display: none; }
    .main-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); flex-direction: column; box-shadow: 0 10px 25px -3px rgba(101, 163, 13, 0.15); padding: 0; gap: 0; max-height: calc(100vh - 75px); overflow-y: auto; }
    .main-menu.active { display: flex; }
    .main-menu li { width: 100%; }
    .main-menu li a { padding: 15px 30px; border-radius: 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
    .main-menu li a.dropdown-toggle, .main-menu li a.dropdown-toggle-sub { justify-content: space-between; }
    .dropdown-menu, .dropdown-submenu .dropdown-menu { position: static; transform: none !important; box-shadow: none; border: none; background: var(--theme-pale); width: 100%; opacity: 1; visibility: visible; display: none; border-radius: 0; }
    .dropdown-menu.show, .dropdown-submenu .dropdown-menu.show { display: block; }
    .main-menu .dropdown-menu li a { padding-left: 50px; background-color: var(--theme-pale); border-left: 3px solid var(--theme-light); }
    .main-menu .dropdown-submenu .dropdown-menu li a { padding-left: 70px; background-color: #ecfccb; border-left: 3px solid var(--theme-primary); }
}

@media (max-width: 992px) {
    .home-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .compact-status-bar { border-radius: 16px; padding: 15px 20px; justify-content: flex-start; }
    .status-item { width: calc(50% - 10px); }
    .hide-mobile { display: none !important; }
    .compare-box { flex-direction: column; }
    .vs-divider { transform: rotate(90deg) scale(0.5); padding: 10px 0; height: 40px; width: 100%; }
    .feature-item.revealed .vs-divider { transform: rotate(90deg) scale(1); }
    .compare-custom { transform: translateY(30px) scale(0.95); }
    .feature-item.revealed .compare-custom { transform: translateY(0) scale(1); }
    .hero-content { padding: 25px 15px !important; }
    .hero-content h2 { font-size: 24px !important; }
    .hero-content p#typewriter-text { font-size: 14px !important; min-height: 45px; }
    #hero-chars-container { gap: 5px !important; }
    .hero-sitting-char { height: 38px !important; }
    .hero-highlight-box { grid-template-columns: 1fr !important; gap: 15px !important; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-height: 550px) {
    .right-sidebar { display: none !important; }
}

@media (max-width: 480px) {
    .right-sidebar { transform: scale(0.85); transform-origin: right center; }
    .right-sidebar.collapsed { transform: translate(90px, -50%) scale(0.85); }
}
/* =========================================
   FIX 1: ซ่อมแซมรูปภาพและแบนเนอร์ (Swiper) 
   ที่ใหญ่เกินไปและหายไป
========================================= */
.banner-img-fit {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain; /* บังคับให้รูปไม่ล้นกรอบ */
    border-radius: 12px;
    display: block;
}

.swiper-banner-container {
    min-height: 250px; /* กันกล่องยุบหายไปตอนที่รูปยังโหลดไม่เสร็จ */
    display: flex;
    align-items: center;
}

.mySwiper {
    /* ลบล้าง style="height: 100%;" ในไฟล์ HTML ที่ทำให้เบราว์เซอร์คำนวณสัดส่วนพัง */
    height: auto !important; 
}

/* =========================================
   FIX 2: ซ่อมแซมกล่อง Weekly Ranking 
   ที่ไม่ยอมแสดงผล
========================================= */
.ranking-widget {
    height: auto;
    min-height: 380px; /* บังคับให้กล่องมีความสูงเสมอ ไม่ยุบตัวตามแบนเนอร์ */
    display: flex;
    flex-direction: column;
}

.ranking-body {
    flex: 1;
    overflow-y: auto;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; 
}

/* คลาสสำคัญที่ทำให้แท็บ Ranking โชว์ข้อมูล */
.rank-list.active {
    display: block;
}
/* =========================================
   SUPER FIX: แก้ปัญหา Swiper ยุบหาย และ Grid ทะลุขอบ
========================================= */
/* 1. คุม Grid หลักไม่ให้ไอเทมข้างในขยายตัวแบบไร้ขีดจำกัด */
.home-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: start; /* สำคัญมาก: ป้องกันกล่องซ้าย-ขวาพยายามยืดความสูงให้เท่ากันจนพัง */
}

/* 2. หัวใจสำคัญ: min-width: 0 คือการบอก Grid ว่าห้ามยืดกล่องนี้เกินกว่าขนาดจอ */
.swiper-banner-container {
    min-width: 0; 
    width: 100%;
    border-radius: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

/* 3. ลบล้าง style="height: 100%;" ใน HTML ที่ทำให้ความสูงยุบเหลือ 0 */
.mySwiper {
    width: 100%;
    height: auto !important; /* บังคับให้ความสูงปรับตามเนื้อหารูปภาพจริงๆ */
    border-radius: 16px;
    overflow: hidden;
}

/* 4. ล็อกสัดส่วนรูปภาพ ป้องกันรูปใหญ่เบิ้มโผล่มาแว๊บนึงก่อนสคริปต์ทำงาน */
.banner-img-fit {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    aspect-ratio: 16 / 7; /* จองพื้นที่ว่างไว้รอรูปล่วงหน้า ป้องกันการกระตุก */
    background-color: var(--pastel-bg); /* สีพื้นหลังระหว่างรอรูปโหลด */
}

/* 5. คุม Ranking ให้ทำงานปกติเมื่ออยู่ข้าง Swiper */
.ranking-widget {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
/* =========================================
   11. WEEKLY RANKING WIDGET (ส่วนที่ตกหล่น)
========================================= */
.ranking-widget {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.ranking-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-dark));
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.ranking-tabs {
    display: flex;
    background: var(--theme-pale);
    border-bottom: 1px solid var(--border-color);
}

.rank-tab {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.rank-tab:hover {
    background: var(--theme-light);
}

.rank-tab.active {
    color: var(--theme-dark);
    border-bottom-color: var(--theme-dark);
    background: var(--white);
}

.ranking-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.ranking-body::-webkit-scrollbar { width: 5px; }
.ranking-body::-webkit-scrollbar-thumb { background: var(--theme-light); border-radius: 5px; }

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; 
}

.rank-list.active {
    display: block;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px dashed var(--border-color);
    transition: background 0.2s;
}

.rank-item:hover {
    background: var(--pastel-bg);
}

.rank-num {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
}

/* ตกแต่งอันดับ 1-2-3 ให้มีสีพิเศษ ทอง-เงิน-ทองแดง */
.rank-item:nth-child(1) .rank-num { color: #d97706; font-size: 18px; text-shadow: 1px 1px 2px rgba(217,119,6,0.3); }
.rank-item:nth-child(2) .rank-num { color: #64748b; font-size: 16px; }
.rank-item:nth-child(3) .rank-num { color: #b45309; font-size: 15px; }

.rank-avatar {
    width: 35px;
    height: 35px;
    background: var(--theme-pale);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-light);
    overflow: hidden;
}

.rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.rank-guild {
    font-size: 10px;
    color: var(--text-muted);
}

.rank-score {
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-dark);
    background: var(--theme-pale);
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}
/* =========================================
   FIX: ปรับให้ Swiper Banner และ Ranking สูงเท่ากันเสมอ
========================================= */
/* 1. สั่งให้ Grid ยืดความสูงคอลัมน์ให้เท่ากับฝั่งที่ยาวที่สุด */
.home-top-grid {
    align-items: stretch !important; 
}

/* 2. บังคับให้กล่องคอนเทนเนอร์ของแบนเนอร์สูง 100% ตาม Grid */
.swiper-banner-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 3. บังคับให้ตัว Swiper เองกางเต็มพื้นที่กล่อง */
.mySwiper {
    height: 100% !important;
    flex: 1;
}

/* 4. ให้สไลด์แต่ละหน้ายืดเต็มความสูง */
.swiper-slide {
    height: 100%;
    display: flex;
}

/* 5. ปรับให้รูปภาพยืดเต็ม 100% และใช้ cover เพื่อไม่ให้ภาพเสียสัดส่วน (ภาพอาจจะถูกตัดขอบบนล่างเล็กน้อยเพื่อให้เต็มกรอบพอดี) */
.banner-img-fit {
    width: 100%;
    height: 100%;
    max-height: none !important; /* ปลดล็อกความสูงสูงสุด */
    object-fit: cover !important; 
    border-radius: 12px;
}

/* 6. คุมให้กล่อง Ranking ยืดเต็ม 100% เช่นกัน */
.ranking-widget {
    height: 100% !important;
}
/* =========================================
   FIX: ซ่อมแซม CSS หน้าข้อมูลเซิร์ฟเวอร์ (Info)
========================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-box {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--theme-primary);
}

.info-box h3 {
    font-size: 18px;
    color: var(--theme-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-box ul li {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.info-box ul li span {
    font-weight: 600;
    color: var(--theme-dark);
}

.info-box ul li a {
    color: var(--theme-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-box ul li a:hover {
    color: var(--theme-primary);
    text-decoration: underline;
}
/* =========================================
   FIX: ซ่อมแซมหน้าดาวน์โหลดให้แสดงผลเต็มกล่อง
========================================= */
.download-section {
    padding: 30px;
    text-align: center;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.download-card {
    background: var(--pastel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--theme-light);
}

.download-icon {
    font-size: 48px;
    color: var(--theme-primary);
    margin-bottom: 15px;
}

/* ปรับแต่ง Modal สำหรับแจ้งเตือนการดาวน์โหลด */
.modal {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(4px);
    justify-content: center; 
    align-items: center;
}

.modal-content {
    background-color: var(--white); 
    padding: 35px; 
    border-radius: 20px; 
    text-align: center; 
    max-width: 420px; 
    width: 90%; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s ease-out;
}
/* =========================================
   FIX: ยืดกล่องพื้นหลังให้เต็มจอลงมาถึง Footer
========================================= */
.master-bg-container {
    flex: 1; /* สั่งให้กล่องขยายตัวเติมเต็มพื้นที่ว่างแนวตั้งทั้งหมด */
    display: flex;
    flex-direction: column;
}
/* =========================================
   FIX: ปรับให้ Grid เรียงซ้อนกันบนมือถือ/แท็บเล็ต
========================================= */
@media (max-width: 992px) {
    .home-top-grid {
        grid-template-columns: 1fr; /* เปลี่ยนให้เหลือแค่ 1 คอลัมน์กว้างเต็มจอ */
    }
    
    .ranking-widget {
        min-height: auto; /* ปลดล็อกความสูงของ Ranking เพื่อให้ยืดหยุ่น */
    }
}
/* =========================================
   12. ADMIN PANEL & TICKET SYSTEM STYLES
========================================= */
.admin-nav-tabs { display: flex; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.admin-tab-btn { padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; background: var(--white); color: var(--text-muted); border: 1px solid var(--border-color); transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.admin-tab-btn.active, .admin-tab-btn:hover { background: var(--theme-primary); color: var(--white); border-color: var(--theme-primary); box-shadow: 0 4px 12px rgba(101, 163, 13, 0.25); }

.btn-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #dc2626; color: var(--white); }

.form-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-main); }
.form-control { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color); outline: none; font-size: 14px; background: var(--white); transition: var(--transition); }
.form-control:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }

.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.table th { background: var(--theme-pale); color: var(--theme-dark); font-weight: 700; }
.table tr:hover { background: #fafafa; }
/* =========================================
   ระบบสีหมวดหมู่ข่าวสาร (Category Color Coding)
========================================= */

/* 1. หมวดหมู่: อีเว้นท์ (Event) - โทนส้ม */
.cat-event { background-color: #fef3c7 !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.news-tabs .tab-event { color: #d97706 !important; border-color: #fde68a !important; }
.news-tabs .tab-event:hover { background-color: #fef3c7 !important; }
.news-tabs .tab-event.active { background-color: #d97706 !important; color: #fff !important; border-color: #d97706 !important; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2) !important; }

/* 2. หมวดหมู่: โปรโมชั่น (Promo) - โทนแดง/ชมพูเข้ม */
.cat-promo { background-color: #ffe4e6 !important; color: #e11d48 !important; border: 1px solid #fecdd3 !important; }
.news-tabs .tab-promo { color: #e11d48 !important; border-color: #fecdd3 !important; }
.news-tabs .tab-promo:hover { background-color: #ffe4e6 !important; }
.news-tabs .tab-promo.active { background-color: #e11d48 !important; color: #fff !important; border-color: #e11d48 !important; box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2) !important; }

/* 3. หมวดหมู่: อัปเดต (Update) - โทนฟ้า/น้ำเงิน */
.cat-update { background-color: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.news-tabs .tab-update { color: #2563eb !important; border-color: #bfdbfe !important; }
.news-tabs .tab-update:hover { background-color: #eff6ff !important; }
.news-tabs .tab-update.active { background-color: #2563eb !important; color: #fff !important; border-color: #2563eb !important; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important; }

/* 4. หมวดหมู่: ระบบ (System) - โทนม่วง */
.cat-system { background-color: #f5f3ff !important; color: #7c3aed !important; border: 1px solid #ddd6fe !important; }
.news-tabs .tab-system { color: #7c3aed !important; border-color: #ddd6fe !important; }
.news-tabs .tab-system:hover { background-color: #f5f3ff !important; }
.news-tabs .tab-system.active { background-color: #7c3aed !important; color: #fff !important; border-color: #7c3aed !important; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2) !important; }