/* ============================================
   芒果帝国 (Mango Empire) - Main Stylesheet
   Theme: Dark with Gold Accents
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --bg-primary: #0A0B0D;
    --bg-surface: #1a1a2e;
    --bg-surface-hover: #222240;
    --bg-card: #1e1e32;
    --bg-input: #14142a;
    --bg-nav: rgba(10, 11, 13, 0.95);
    --bg-footer: #0d0d1a;
    --bg-dropdown: #1a1a2e;
    --bg-modal-overlay: rgba(0, 0, 0, 0.75);

    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --text-gold: #F5B342;
    --text-gold-light: #ffd700;
    --text-white: #ffffff;

    --gold: #F5B342;
    --gold-dark: #c98a2e;
    --gold-light: #ffcc66;
    --gold-gradient: linear-gradient(135deg, #F5B342, #d4942f);

    --border-color: #2a2a3e;
    --border-gold: rgba(245, 179, 66, 0.3);
    --border-gold-strong: rgba(245, 179, 66, 0.6);
    --divider: #2a2a3e;

    --btn-primary-bg: var(--gold);
    --btn-primary-text: #1a1a1a;
    --btn-primary-hover: #d4942f;
    --btn-secondary-border: var(--gold);
    --btn-secondary-text: var(--gold);
    --btn-secondary-hover-bg: rgba(245, 179, 66, 0.1);
    --btn-danger-bg: #dc3545;
    --btn-danger-hover: #c82333;

    --status-online: #28a745;
    --status-maintenance: #ffc107;
    --status-offline: #dc3545;

    --font-heading: 'Cinzel Decorative', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(245, 179, 66, 0.2);
    --shadow-glow: 0 0 20px rgba(245, 179, 66, 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;

    --nav-height: 70px;
    --container-max: 1200px;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

/* ============================================
   1. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   2. LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-content {
    min-height: calc(100vh - var(--nav-height) - 250px);
    padding-top: var(--nav-height);
}

/* ============================================
   3. TYPOGRAPHY HELPERS
   ============================================ */
.gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-white);
}

/* ============================================
   4. NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 179, 66, 0.1);
    height: var(--nav-height);
    transition: background var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 11, 13, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo:hover {
    color: var(--text-white);
}
.nav-logo .gold {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    background: none;
    border: none;
    user-select: none;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-menu > li > a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.08);
}

.nav-menu > li > a.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
}

.nav-menu > li > a.btn-nav-register {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-round);
    margin-left: 8px;
}
.nav-menu > li > a.btn-nav-register:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ----- Dropdown Menu ----- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.08);
}

.dropdown-divider {
    height: 1px;
    background: var(--divider);
    margin: 4px 0;
}

/* ============================================
   5. FOOTER
   ============================================ */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-bottom: 0;
}

/* ============================================
   6. HERO / BANNER SECTION
   ============================================ */
.section-1 {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-2 {
    padding: 80px 0;
    background: var(--bg-primary);
}

.back-banner-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.back-banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.back-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 400px;
    width: 100%;
    padding: 0 20px;
}

.bb-chara {
    position: absolute;
    bottom: 0;
    right: 10%;
    z-index: 1;
    max-height: 80vh;
}

.bb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.bb-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----- News / Banner Area ----- */
.wrap-news {
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding: 20px 0;
    background: linear-gradient(transparent, rgba(10, 11, 13, 0.95));
}

.news-banner-area {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.news-banner-prev,
.news-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}
.news-banner-prev:hover,
.news-banner-next:hover {
    background: var(--gold);
    color: var(--btn-primary-text);
    border-color: var(--gold);
}
.news-banner-prev { left: 10px; }
.news-banner-next { right: 10px; }

.news-banner-list {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 20px 0;
}

.news-banner-list > div {
    min-width: 280px;
    flex: 1;
}

.news-banner-list-title {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}
.news-banner-list-title:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.news-banner-list-title h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold);
}

.news-banner-list-title p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.news-banner {
    display: none;
}

/* ----- News List ----- */
.news-list-area {
    max-width: var(--container-max);
    margin: 30px auto 0;
    padding: 0 20px;
}

.news-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-list-top h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-white);
}

.news-list-top .more {
    color: var(--gold);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.news-list-top .more:hover {
    color: var(--gold-light);
}

.news-list {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list li {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list li:hover {
    background: var(--bg-surface-hover);
}

.news-list .news {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
}

.news-gamestag {
    display: none;
}

.news-catetag {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.news-titlecon {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
}
.news:hover .news-titlecon {
    color: var(--gold);
}

.news-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-align: right;
    white-space: nowrap;
}

/* ----- Games Section ----- */
.games-sec-pc {
    padding: 60px 0;
}

.games-sec-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.sec-title {
    text-align: center;
    margin-bottom: 40px;
}

.sec-title h1 {
    font-family: var(--font-body);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-white);
}

.sec-title h1 i {
    color: var(--gold);
    margin-right: 8px;
}

/* ============================================
   7. PAGE HEADER (Account Pages)
   ============================================ */
.account-page {
    padding: 40px 0;
    min-height: calc(100vh - var(--nav-height) - 250px);
}

.in-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.main-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.page-top {
    margin-bottom: 30px;
}

.page-top h1 {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    padding-bottom: 12px;
}
.page-top h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* ----- Page Title / Subtitle ----- */
.page-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    color: var(--text-white);
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    margin-bottom: 40px;
}

/* ============================================
   8. PAGE NAVIGATION (Tabs)
   ============================================ */
.page-nav {
    margin-bottom: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav li {
    display: block;
}

.page-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.page-nav a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}

.page-nav a.page-nav-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
}

.page-nav-icn {
    font-size: var(--font-size-base);
    width: 20px;
    text-align: center;
}

.page-nav-name {
    font-size: var(--font-size-sm);
}

/* ============================================
   9. PAGE BOX / CONTENT
   ============================================ */
.page-content {
    margin-bottom: 40px;
}

.page-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.page-box-content {
    padding: 24px;
}

/* ============================================
   10. TABLES
   ============================================ */
.page-table-04 {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.page-table-04 thead {
    background: rgba(245, 179, 66, 0.05);
}

.page-table-04 th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 2px solid var(--border-gold);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-table-04 td {
    padding: 12px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.page-table-04 tbody tr {
    transition: background var(--transition-fast);
}

.page-table-04 tbody tr:hover {
    background: rgba(245, 179, 66, 0.03);
}

.page-table-04 tbody tr:last-child td {
    border-bottom: none;
}

.pg-td {
    padding: 12px 16px;
}

/* ============================================
   11. BUTTONS
   ============================================ */
/* Base button (must come before variants) */
.btn,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

/* Primary / Gold */
.page-btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #F5B342 0%, #E08A2A 100%);
    color: #0A0B0D;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.page-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #E08A2A 0%, #c98a2e 100%);
    color: #0A0B0D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 179, 66, 0.4);
}
.page-btn:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Secondary / Outline */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Danger */
.btn-danger {
    background: var(--btn-danger-bg);
    color: #fff;
    border: none;
}
.btn-danger:hover {
    background: var(--btn-danger-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Disabled */
.page-btn:disabled,
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ============================================
   12. FORMS
   ============================================ */
.input-field,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.input-field:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: var(--border-gold-strong);
    box-shadow: 0 0 0 3px rgba(245, 179, 66, 0.1);
}

.input-field::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

select,
.input-field[type="select"] {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
}

select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox / Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold);
    margin-right: 6px;
}

/* ============================================
   13. SIGN IN / SIGN UP FORMS
   ============================================ */
.signin,
.signup {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding: 40px 20px;
}

.signin-area,
.signup-area {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.sign-logo {
    margin: 0 auto 24px;
    width: 180px;
}

.signin-area h1,
.signup-area h1 {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-white);
}

.signin-form,
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signin-form input,
.signup-form input,
.signup-form select {
    padding: 14px 16px;
}

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

.ca-birth {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

#ca-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

#ca-check a {
    color: var(--gold);
    text-decoration: underline;
}

#ca-check .g-recaptcha {
    margin-top: 8px;
    width: 100%;
}

/* ============================================
   14. ALERTS (Success / Danger)
   ============================================ */
.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #f8a5a5;
    font-size: var(--font-size-sm);
}

.alert-danger .info {
    display: block;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #a5d6a7;
    font-size: var(--font-size-sm);
}

/* ============================================
   15. DOWNLOAD PAGE
   ============================================ */
.download {
    margin-bottom: 30px;
}

.download ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}
.download-box:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.download-box img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.download-box span {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
}

/* ============================================
   16. DONATE / RECHARGE PAGE
   ============================================ */
.donate .page-box-content {
    padding: 24px;
}

/* Plan Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}
.card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(245, 179, 66, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
}

.card-header h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-body .card-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 16px;
    font-weight: 400;
}

.card-link {
    text-decoration: none;
}

/* Premium / Silk specific */
.premium-btn {
    background: var(--gold-gradient) !important;
    color: var(--btn-primary-text) !important;
}

.silk-btn {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}
.silk-btn:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* ============================================
   17. MODAL / DIALOG
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: var(--bg-modal-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    margin: 10% auto;
    padding: 36px;
    border: 1px solid var(--border-gold);
    width: 90%;
    max-width: 440px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    text-align: center;
}

.math-question {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.math-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.25rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    margin-bottom: 24px;
    box-sizing: border-box;
    outline: none;
}
.math-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 179, 66, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   18. RANKING TABS
   ============================================ */
.ranking-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.ranking-tab {
    flex: 1;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}
.ranking-tab:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}
.ranking-tab.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    font-weight: 600;
}

.ranking-content {
    display: none;
}
.ranking-content.active {
    display: block;
}

/* ============================================
   19. ADMIN TABS
   ============================================ */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.admin-tab:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}
.admin-tab.active {
    color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    font-weight: 600;
}

.admin-content {
    display: none;
}
.admin-content.active {
    display: block;
}

/* ============================================
   20. FAQ ACCORDION
   ============================================ */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover {
    background: rgba(245, 179, 66, 0.03);
}

.faq-arrow {
    font-size: var(--font-size-sm);
    color: var(--gold);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-arrow.open {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 16px;
}

/* ============================================
   21. SERVER STATUS DOTS
   ============================================ */
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-dot.online {
    background: var(--status-online);
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.status-dot.maintenance {
    background: var(--status-maintenance);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: pulse-yellow 1.5s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--status-offline);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   22. BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-round);
    line-height: 1.2;
    white-space: nowrap;
}

.badge-gold {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
}

.badge-silver {
    background: linear-gradient(135deg, #a0a0a0, #707070);
    color: #fff;
}

.badge-danger {
    background: var(--btn-danger-bg);
    color: #fff;
}

.badge-success {
    background: var(--status-online);
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

/* First Recharge Badge */
.badge-first-recharge {
    background: var(--gold-gradient);
    color: var(--btn-primary-text);
    padding: 6px 14px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-round);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.3);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(245, 179, 66, 0.3); }
    50% { box-shadow: 0 0 24px rgba(245, 179, 66, 0.6); }
}

/* ============================================
   23. PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    background: rgba(245, 179, 66, 0.05);
}

.pagination .active {
    color: var(--btn-primary-text);
    background: var(--gold-gradient);
    border-color: var(--gold);
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   24. LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 40px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ============================================
   25. TOAST / NOTIFICATION
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.toast.toast-success {
    border-left: 4px solid var(--status-online);
}

.toast.toast-error {
    border-left: 4px solid var(--status-offline);
}

.toast.toast-warning {
    border-left: 4px solid var(--status-maintenance);
}

.toast.toast-info {
    border-left: 4px solid var(--gold);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
}
.toast-close:hover {
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ============================================
   26. METHOD CARDS (Payment)
   ============================================ */
.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.method-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.method-card.selected {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.05);
    box-shadow: 0 0 0 2px rgba(245, 179, 66, 0.2);
}

.method-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.method-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   27. PLAN CARDS (Recharge)
   ============================================ */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.plan-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.plan-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.plan-card:hover::before {
    opacity: 1;
}

.plan-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(245, 179, 66, 0.15);
}
.plan-card.featured::before {
    opacity: 1;
}

.plan-card-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.plan-card-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-card-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.plan-card-bonus {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 179, 66, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-round);
    font-size: var(--font-size-xs);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-card .page-btn {
    width: 100%;
}

/* ============================================
   AUTH, ACCOUNT, LANDING PAGE & UTILITY STYLES
   ============================================ */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    background: radial-gradient(ellipse at center, rgba(245, 179, 66, 0.03) 0%, transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: var(--gold);
}

/* Forgot password link */
.forgot-pw {
    color: var(--status-offline) !important;
}

/* Gender button group */
.gender-btn-group {
    display: flex;
    gap: 12px;
}

.gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    user-select: none;
    font-family: var(--font-body);
}

.gender-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gender-btn.active {
    border-color: var(--gold);
    background: rgba(245, 179, 66, 0.1);
    color: var(--gold);
}

/* Birthday group */
.birthday-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Checkbox */
.form-checkbox {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--gold);
}

/* Account page */
.account-page {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 250px);
}

.account-menu {
    margin-bottom: 30px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.account-menu ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-menu li {
    display: block;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.account-menu a:hover {
    color: var(--text-white);
    background: rgba(245, 179, 66, 0.05);
}

.account-menu a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(245, 179, 66, 0.08);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A0B0D 0%, #1a0a0a 50%, #0A0B0D 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 11, 13, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-title .gold {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 179, 66, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.server-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(245, 179, 66, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-footer {
    text-align: center;
    margin-top: 32px;
}

/* Download Section */
.download-section {
    padding: 100px 0;
}

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

.download-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: rgba(245, 179, 66, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* News section */
.news-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

/* Ticket styles */
.ticket-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color var(--transition-fast);
}

.ticket-item:hover {
    border-color: var(--border-gold);
}

.ticket-reply {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 12px 0;
}

/* Admin panel */
.admin-panel {
    padding: 40px 0;
    min-height: calc(100vh - 70px - 250px);
}

/* ============================================
   28. RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .page-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .page-nav ul::-webkit-scrollbar {
        display: none;
    }

    .plan-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li > a.btn-nav-register {
        margin-left: 0;
        margin-top: 8px;
        border-radius: var(--radius-md);
        text-align: center;
    }

    /* Mobile dropdown becomes expandable section */
    .nav-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 0;
        opacity: 1;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 24px;
        font-size: var(--font-size-sm);
    }

    .hero-section {
        min-height: 70vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand h3 {
        font-size: 1.25rem;
    }

    .signin-area,
    .signup-area {
        padding: 30px 24px;
    }

    .ca-mobile {
        grid-template-columns: 1fr;
    }

    .ca-birth {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .page-top h1 {
        font-size: 1.5rem;
    }

    .page-nav a {
        padding: 12px 16px;
        font-size: var(--font-size-xs);
    }

    .page-table-04 {
        font-size: var(--font-size-xs);
    }
    .page-table-04 th,
    .page-table-04 td {
        padding: 10px 12px;
    }

    .news-banner-list > div {
        min-width: 240px;
    }

    .news-list .news {
        grid-template-columns: 70px 1fr 80px;
        padding: 12px 16px;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .method-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        margin: 20% auto;
        padding: 24px;
    }

    .ranking-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .admin-tabs {
        flex-direction: column;
        gap: 2px;
    }

    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .signin-area,
    .signup-area {
        padding: 24px 16px;
    }

    .ca-birth {
        grid-template-columns: 1fr;
    }

    .page-box-content {
        padding: 16px;
    }

    .news-banner-list > div {
        min-width: 200px;
    }

    .news-list .news {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .news-date {
        text-align: left;
    }

    .modal-content {
        padding: 20px;
    }
}

/* ============================================
   29. UTILITY CLASSES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.w-full { width: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ============================================
   30. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   31. SELECTION
   ============================================ */
::selection {
    background: rgba(245, 179, 66, 0.3);
    color: var(--text-white);
}

/* ============================================
   32. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}