/* ========================================
   PHONG THAN - WEBSITE STYLES
   Theme: Võ Lâm Hoàng Gia
   ======================================== */

/* CSS Variables */
:root {
    --primary-gold: #d4a843;
    --primary-gold-light: #f0d78c;
    --primary-gold-dark: #a67c00;
    --secondary-red: #8b1a1a;
    --secondary-red-light: #c62828;
    --bg-dark: #0d0d0d;
    --bg-dark-secondary: #1a1a1a;
    --bg-card: #1f1f1f;
    --text-white: #ffffff;
    --text-gold: #d4a843;
    --text-gray: #9e9e9e;
    --border-gold: rgba(212, 168, 67, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.3);
    --shadow-red: 0 0 20px rgba(139, 26, 26, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 26, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 2px solid var(--primary-gold);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 50%, var(--primary-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.5);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-white);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary-gold);
}

.nav-link.active {
    background: rgba(212, 168, 67, 0.2);
    color: var(--primary-gold);
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   FLOATING SIDEBAR (LEFT)
   ======================================== */
.floating-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-btn:hover::before {
    opacity: 1;
}

.sidebar-btn span {
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 2px;
}

.sidebar-btn.ios {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.sidebar-btn.ios:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.sidebar-btn.android {
    background: linear-gradient(135deg, #3DDC84 0%, #2E9E62 100%);
    border-color: #3DDC84;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.sidebar-btn.android:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(61, 220, 132, 0.5);
}

.sidebar-btn.chplay {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.sidebar-btn.chplay:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
}

.sidebar-btn.charge {
    background: linear-gradient(135deg, var(--secondary-red-light) 0%, var(--secondary-red) 100%);
    border-color: var(--secondary-red-light);
    box-shadow: var(--shadow-red);
    animation: pulse-red 2s infinite;
}

.sidebar-btn.charge:hover {
    transform: scale(1.1);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 26, 26, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 26, 26, 0.8);
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-top: 100px;
    margin-left: 100px;
    margin-right: 100px;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 2px solid var(--border-gold);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(13, 13, 13, 0.7) 0%, rgba(26, 26, 26, 0.5) 50%, rgba(139, 26, 26, 0.3) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(212,168,67,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 50%, var(--primary-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(212, 168, 67, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 168, 67, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    letter-spacing: 5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border-color: var(--primary-gold-light);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.5);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.btn-secondary:hover {
    background: rgba(212, 168, 67, 0.1);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--secondary-red-light) 0%, var(--secondary-red) 100%);
    border-color: var(--secondary-red-light);
    color: var(--text-white);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, transparent 100%);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 100%);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--primary-gold-light);
}

/* ========================================
   CARD GRID
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary-gold);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-gold);
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover .card-image::before {
    left: 100%;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.new {
    background: var(--secondary-red-light);
    color: var(--text-white);
}

.card-badge.hot {
    background: var(--primary-gold);
    color: #000;
}

.card-badge.event {
    background: #2196F3;
    color: var(--text-white);
}

.card-content {
    padding: 1.5rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title:hover {
    color: var(--primary-gold);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-link {
    color: var(--primary-gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--primary-gold-light);
}

/* ========================================
   NEWS LIST (For News Page)
   ======================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.news-thumb {
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.news-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 168, 67, 0.2);
    color: var(--primary-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.news-title:hover {
    color: var(--primary-gold);
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   GUIDES & SUPPORT
   ======================================== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-category {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-gold);
}

.guide-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-item {
    padding: 1rem;
    background: var(--bg-dark-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.guide-item:hover {
    background: rgba(212, 168, 67, 0.1);
    transform: translateX(5px);
}

.guide-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
}

.guide-text {
    flex: 1;
}

.guide-text h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
}

.guide-text p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Support Form */
.support-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.support-form {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-gold);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.3);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-gold);
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.info-card a {
    color: var(--primary-gold);
}

.info-card a:hover {
    color: var(--primary-gold-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
    border-top: 2px solid var(--primary-gold);
    padding: 3rem 2rem 1.5rem;
    margin-left: 100px;
    margin-right: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column h4 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gold);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-gray);
}

.breadcrumb-item a:hover {
    color: var(--primary-gold);
}

.breadcrumb-item.active {
    color: var(--primary-gold);
}

.breadcrumb-separator {
    color: var(--text-gray);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1) 0%, rgba(139, 26, 26, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-gold);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: var(--text-white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: var(--primary-gold);
}

.pagination-item.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--primary-gold);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--secondary-red-light);
    border-color: var(--secondary-red-light);
}

.modal h2 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-gold);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 90px;
        margin-right: 90px;
    }
    
    .footer {
        margin-left: 90px;
        margin-right: 90px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .floating-sidebar {
        left: 10px;
    }
    
    .sidebar-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .sidebar-btn span {
        font-size: 0.5rem;
    }
    
    .main-content {
        margin-left: 80px;
        margin-right: 2rem;
    }
    
    .footer {
        margin-left: 80px;
        margin-right: 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .support-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark-secondary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--primary-gold);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 2rem;
        padding: 1rem;
    }
    
    .footer {
        margin-left: 0;
        padding: 2rem 1rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        height: auto;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-thumb {
        width: 100%;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .floating-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: rgba(13, 13, 13, 0.95);
        padding: 0.75rem;
        gap: 10px;
        border-top: 1px solid var(--border-gold);
    }
    
    .sidebar-btn {
        width: 55px;
        height: 55px;
    }
    
    .sidebar-btn span {
        display: none;
    }
    
    .main-content {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 80px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   DARK / LIGHT MODE
   ============================================ */
:root {
    --bg-dark: #0a0a12;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e1e32;
    --bg-card-hover: #252540;
    --gold-primary: #d4a843;
    --gold-light: #f0d78c;
    --gold-dark: #b8860b;
    --accent-red: #e94560;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --accent-purple: #9b59b6;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #888;
    --text-gray: #9ca3af;
    --border-color: #2a2a4a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-height: 80px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --z-header: 100;
    --z-sidebar: 90;
    --z-modal: 1000;
    --z-toast: 2000;
}

body.light-mode {
    --bg-dark: #f0f2f5;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --text-white: #1a1a2e;
    --text-light: #2d3748;
    --text-muted: #718096;
    --text-gray: #4a5568;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gold-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: var(--gold-primary);
    transform: scale(1.1);
}

body.light-mode .dark-mode-toggle {
    color: var(--gold-dark);
}

body.light-mode .card,
body.light-mode .stat-card,
body.light-mode .download-card,
body.light-mode .feature-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .floating-sidebar {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .modal {
    background: #ffffff;
}

body.light-mode .footer {
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
}

body.light-mode .particle {
    opacity: 0.15;
}

/* ============================================
   LAZY LOADING
   ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[data-src].loaded,
img:not([data-src]) {
    opacity: 1;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.countdown-wrapper .cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    min-width: 60px;
}

body.light-mode .countdown-wrapper .cd-unit {
    background: rgba(212, 168, 67, 0.15);
}

.countdown-wrapper .cd-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
}

body.light-mode .countdown-wrapper .cd-num {
    color: var(--gold-dark);
}

.countdown-wrapper .cd-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.countdown-wrapper .cd-sep {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 1.2rem;
}

body.light-mode .countdown-wrapper .cd-sep {
    color: var(--gold-dark);
}

.countdown-ended {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   RANKING PAGE STYLES
   ============================================ */
.ranking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ranking-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ranking-tab:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.ranking-tab.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    border-color: var(--gold-primary);
}

.ranking-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: rgba(212, 168, 67, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.ranking-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table tr:hover td {
    background: rgba(212, 168, 67, 0.05);
}

.ranking-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 900;
}

.ranking-rank.gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.ranking-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.ranking-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.ranking-rank.default {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 1rem;
}

.vip-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.vip-badge.vip-high { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }
.vip-badge.vip-mid { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.vip-badge.vip-low { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

/* ============================================
   GIFTCODE PAGE STYLES
   ============================================ */
.giftcode-input-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.giftcode-input-wrapper input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.giftcode-input-wrapper input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.giftcode-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.giftcode-result.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.giftcode-result.error {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.giftcode-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(212, 168, 67, 0.1);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.reward-item i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.reward-item span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   EVENTS PAGE STYLES
   ============================================ */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 40px rgba(212, 168, 67, 0.15);
}

.event-card-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.event-card-image i {
    color: var(--gold-primary);
    opacity: 0.8;
}

.event-card-body {
    padding: 1.5rem;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.event-card-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.event-status.active {
    background: rgba(46, 204, 113, 0.15);
    color: var(--accent-green);
}

.event-status.upcoming {
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-blue);
}

.event-status .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   COMMUNITY / DISCORD WIDGET
   ============================================ */
.discord-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.discord-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.discord-widget-header i {
    font-size: 2rem;
    color: #5865F2;
}

.discord-widget-header h3 {
    color: var(--text-white);
    font-size: 1.3rem;
}

.discord-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1rem 0;
}

.discord-stat {
    text-align: center;
}

.discord-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.discord-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fanpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.fanpage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(212, 168, 67, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.fanpage-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    background: rgba(212, 168, 67, 0.1);
}

.fanpage-item i {
    font-size: 1.5rem;
}

.fanpage-item.facebook i { color: #1877F2; }
.fanpage-item.youtube i { color: #FF0000; }
.fanpage-item.tiktok i { color: #000000; }
.fanpage-item.discord i { color: #5865F2; }

.fanpage-item span {
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   HERO COUNTDOWN & VIDEO
   ============================================ */
.hero-countdown {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

body.light-mode .hero-countdown {
    background: rgba(255, 255, 255, 0.3);
}

.countdown-label {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .giftcode-input-wrapper {
        flex-direction: column;
    }
}
