/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --radius: 6px;
    --radius-lg: 10px;
}

/* ===== DARK THEME (Default) ===== */
.theme-dark {
    --bg: #0a0a0a;
    --surface: #111111;
    --border: #1f1f1f;
    --primary: #ff8c00;
	--mmd : #000;
    --primary-hover: #e67e00;
    --text: #e0e0e0;
    --text-muted: #999;
    --danger: #d32f2f;
    --success: #2e7d32;
    --font-en: 'Inter', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
    --navbar-bg: #000;
    --hero-bg: #111111;
    --input-bg: #000;
    --chat-user-bg: #1a1a1a;
    --chat-admin-bg: #1c1100;
    --footer-bg: #000;
    --modal-bg: #111;
    --shadow: rgba(255,140,0,0.2);
    --success-bg: rgba(46,125,50,0.15);
    --danger-bg: rgba(211,47,47,0.15);
    --overlay-bg: rgba(0,0,0,0.8);
}

/* ===== LIGHT THEME ===== */
.theme-light {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --border: #dddddd;
    --primary: #e67e00;
	--mmd : #fff;
    --primary-hover: #cc7000;
    --text: #1a1a1a;
    --text-muted: #666666;
    --danger: #c62828;
    --success: #2e7d32;
    --font-en: 'Inter', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
    --navbar-bg: #ffffff;
    --hero-bg: #ffffff;
    --input-bg: #ffffff;
    --chat-user-bg: #f0f0f0;
    --chat-admin-bg: #fff3e0;
    --footer-bg: #ffffff;
    --modal-bg: #ffffff;
    --shadow: rgba(230,126,0,0.15);
    --success-bg: rgba(46,125,50,0.08);
    --danger-bg: rgba(211,47,47,0.08);
    --overlay-bg: rgba(0,0,0,0.5);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-en);
    line-height: 1.6;
    direction: ltr;
    transition: background 0.3s, color 0.3s;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-fa);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 2rem;
    transition: background 0.3s, border-color 0.3s;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 1.8rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
    outline: none;
    border-radius: var(--radius);
    transition: border 0.2s, background 0.3s, color 0.3s;
}
.lang-switch select:hover {
    border-color: var(--primary);
}
/* Responsive fixes for mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-container {
        height: auto;
        padding: 0.5rem 0;
        flex-wrap: wrap;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-menu.active-mobile {
        display: flex;
    }
    
    .nav-actions {
        gap: 0.3rem;
    }
    
    .nav-actions .btn-auth {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
    }
    
    .section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .server-ip-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
    }
    
    .shop-tab-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal {
        width: 95%;
        padding: 1rem;
    }
    
    .chat-bubble {
        max-width: 85%;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-tab {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .ticket-card {
        padding: 0.8rem;
    }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--surface);
    color: var(--primary);
    transform: rotate(20deg);
}

.theme-toggle-btn .theme-icon {
    transition: all 0.4s ease;
    position: absolute;
    font-size: 1.2rem;
}

.theme-toggle-btn .fa-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-light .theme-toggle-btn .fa-sun {
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
}

.theme-toggle-btn .fa-moon {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
}

.theme-light .theme-toggle-btn .fa-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ===== AUTH BUTTONS ===== */
.btn-auth {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
.btn-auth:hover {
    background: var(--primary);
    color: #fff;
}

.nav-wallet {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}
.nav-wallet i {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #b71c1c;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--hero-bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}
.hero h1 .accent {
    color: var(--primary);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.server-ip-box {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
    transition: background 0.3s, border-color 0.3s;
}

.version-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, border-color 0.3s;
}
.version-badge strong {
    color: var(--primary);
}

.players-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, border-color 0.3s;
}
.players-badge i {
    margin-right: 0.4rem;
}

.ip-text {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text);
}

.btn-copy {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.btn-copy:hover {
    background: var(--primary-hover);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
    transition: border-color 0.3s, color 0.3s;
}
.section-title .accent {
    color: var(--primary);
}

/* ===== WALLET ===== */
.wallet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: background 0.3s, border-color 0.3s;
}

.wallet-balance {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mmd);
}

.wallet-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NOTIFICATION CARD ===== */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 300;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.notification-overlay.active {
    display: flex;
}

.notification-card {
    background: var(--modal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.notification-card.success {
    border-top: 3px solid #4caf50;
}

.notification-card.error {
    border-top: 3px solid var(--danger);
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notification-card.success .notification-icon {
    color: #4caf50;
}

.notification-card.error .notification-icon {
    color: var(--danger);
}

.notification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.notification-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    white-space: pre-line;
}

.notification-card .balance-info {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.8rem 0;
}

.notification-card button {
    margin-top: 1rem;
}

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

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

/* ===== RANK FEATURES ===== */
.rank-features-list {
    list-style: none;
    text-align: left;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.rank-features-list li {
    font-size: 0.73rem;
    color: var(--text-muted);
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}

.rank-features-list li i {
    color: var(--primary);
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s, background 0.3s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}
.feature-icon {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== STAFF PAGE ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.staff-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, background 0.3s, box-shadow 0.2s;
}
.staff-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow);
}
.staff-card .staff-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.staff-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.staff-card .staff-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}
.staff-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== GAMEMODES ===== */
.gamemode-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gamemode-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s, background 0.3s;
    text-align: center;
}
.gamemode-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.gamemode-card.active-gm {
    border-left: 3px solid var(--success);
}
.gamemode-card.coming-soon-gm {
    border-left: 3px solid var(--primary);
    opacity: 0.85;
}

.gm-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.gm-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.gm-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.gm-info .gm-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.gamemode-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gm-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.status-online {
    background: var(--success-bg);
    color: #4caf50;
    border: 1px solid rgba(46,125,50,0.3);
}

.status-soon {
    background: rgba(255,140,0,0.15);
    color: var(--primary);
    border: 1px solid rgba(255,140,0,0.3);
}

.gm-players {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.gm-features {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.gm-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.3s;
}

.gm-features li i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* ===== SHOP ===== */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.shop-tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.shop-tab-btn.active {
    background: var(--primary);
    color: white;
}

.shop-tab-btn:hover:not(.active) {
    color: var(--primary);
    background: var(--surface);
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.shop-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s, background 0.3s;
    display: flex;
    flex-direction: column;
}
.shop-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.shop-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.item-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.shop-item button {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.73rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: background 0.2s;
    margin-top: auto;
}
.shop-item button:hover {
    background: var(--primary-hover);
}

/* Cart */
.cart-section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    transition: background 0.3s, border-color 0.3s;
}
.cart-section h3 {
    margin-bottom: 1rem;
}
.cart-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}
.cart-item-remove {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.cart-item-remove:hover {
    background: var(--danger);
    color: #fff;
}
.cart-total {
    font-weight: 700;
    margin: 1rem 0;
    font-size: 1.1rem;
}
.btn-checkout {
    width: 100%;
    padding: 0.7rem;
    font-weight: 700;
    color: #fff;
}
.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== TRANSACTIONS ===== */
.transactions-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    transition: border-color 0.3s;
}
.transaction-item:last-child {
    border-bottom: none;
}
.transaction-credit {
    color: #4caf50;
}
.transaction-debit {
    color: var(--danger);
}

/* ===== SUPPORT CHAT ===== */
.chat-container {
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--chat-user-bg);
    border: 1px solid var(--border);
}

.chat-bubble.admin {
    align-self: flex-start;
    background: var(--chat-admin-bg);
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

.chat-bubble .meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0.8rem;
    gap: 0.5rem;
    transition: border-color 0.3s;
}

.chat-input-area input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem;
    font-family: inherit;
    outline: none;
    border-radius: var(--radius);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.chat-input-area input:focus {
    border-color: var(--primary);
}

/* ===== AUTH MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--overlay-bg);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--modal-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    width: 400px;
    max-width: 90%;
    border-radius: var(--radius-lg);
    transition: background 0.3s, border-color 0.3s;
    animation: slideUp 0.3s ease;
}

.modal h3 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.modal .form-group {
    margin-bottom: 1rem;
}
.modal label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
.modal input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 0.6rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
    border-radius: var(--radius);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.modal input:focus {
    border-color: var(--primary);
}

.modal-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.modal-footer a {
    color: var(--primary);
    cursor: pointer;
}
.modal-footer a:hover {
    text-decoration: underline;
}

/* ===== TICKET LIST ===== */
.ticket-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    color: var(--text);
}
.ticket-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.ticket-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.ticket-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}
.ticket-list-item:hover {
    transform: translateX(3px);
    border-color: var(--primary);
    background: var(--chat-admin-bg);
}
.ticket-list-item strong {
    color: var(--primary);
}
.ticket-list-item .ticket-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ===== FORMS ===== */
select, textarea {
    border-radius: var(--radius);
    font-family: inherit;
}
textarea {
    resize: vertical;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.form-group select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem;
    border-radius: var(--radius);
    outline: none;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.form-group select:focus {
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
    transition: background 0.3s, border-color 0.3s;
}
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.social-link {
    color: var(--primary);
    font-weight: 600;
    transition: opacity 0.2s;
}
.social-link:hover {
    opacity: 0.8;
}

/* ===== ADMIN ===== */
.admin-login {
    max-width: 400px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: background 0.3s, border-color 0.3s;
}
.admin-login input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem;
    border-radius: var(--radius);
    outline: none;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.admin-login input:focus {
    border-color: var(--primary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-tab {
    padding: 0.5rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.admin-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.admin-tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-ticket-filter {
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    margin-bottom: 1rem;
    cursor: pointer;
}
.admin-ticket-filter:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-tickets .ticket-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}
.admin-tickets .ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.admin-tickets .ticket-card .cart-summary {
    background: var(--input-bg);
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    border-radius: var(--radius);
}
.admin-tickets input {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem;
    border-radius: var(--radius);
    outline: none;
}
.admin-tickets input:focus {
    border-color: var(--primary);
}

.charge-section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    transition: background 0.3s, border-color 0.3s;
}
.charge-section input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem;
    border-radius: var(--radius);
    outline: none;
    margin-bottom: 0.8rem;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.charge-section input:focus {
    border-color: var(--primary);
}

/* ===== RULES MODAL ===== */
.rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.rules-modal-content {
    background: var(--modal-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.rules-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

.rules-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

.rules-modal-body {
    padding: 20px;
}

.rules-text {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.rules-player-info {
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rules-player-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
}

.rules-checkbox {
    margin: 15px 0;
    text-align: center;
}

.rules-checkbox label {
    cursor: pointer;
    font-size: 16px;
}

.rules-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--navbar-bg);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        transition: background 0.3s;
        z-index: 99;
    }
    .nav-menu.active-mobile {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .nav-right {
        gap: 0.8rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card .stat-number {
        font-size: 1.4rem;
    }
    .ticket-filter-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
}