﻿
body:not(.is-admin) [id^="admin-"],
body:not(.is-admin) [class^="admin-"],
body:not(.is-admin) [id^="st-admin-"],
body:not(.is-admin) [class^="st-admin-"] {
    display: none !important;
}

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

:root {
    --surface: #000000;
    --surface-light: #030303;
    --surface-white: #080808;
    --accent: #ffffff;
    --accent-hover: #d0d0d0;
    --accent-glow: rgba(255,255,255,0.06);
    --accent-2: #ffffff;
    --accent-2-hover: #d0d0d0;
    --accent-2-glow: rgba(255,255,255,0.06);
    --text-primary: #e8eef6;
    --text-secondary: #4a5060;
    --border: #111111;
    --border-light: #181818;
    --tab-active: #0a0a0a;
    --tab-hover: #0a0a0a;
    --tab-inactive: #000000;
    --section-margin: 5rem 0;
    --font-headline: 'Inter', sans-serif;

    --gradient-1: #ffffff;
    --gradient-2: #101010;
    --shadow-glow: none;
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    font-family: var(--font-headline);
    letter-spacing: 0.01em;
}

.accent-2 { color: var(--accent); }
.btn-cyan {
    background: var(--accent-2);
    color: #fff;
    font-weight: 700;
}
.btn-cyan:hover { background: var(--accent-2-hover); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #181818; }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: none;
    transition: background 0.2s;
}

.nav.scrolled {
    background: rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
}

.user-nav-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.7rem;
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
    margin-left: 0.5rem;
}

.user-nav-profile:hover {
    border-color: var(--accent);
}

.user-nav-balance {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.5rem;
}

.balance-icon {
    color: #ffd700;
    font-size: 0.85rem;
}

.user-nav-avatar {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.user-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-nav-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-notifications {
    position: relative;
    margin-right: 0.1rem;
}

.notification-bell {
    background: none !important;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.notification-bell:hover {
    color: var(--text-primary);
    background: var(--tab-hover) !important;
}

.nav-search-wrap { position: relative; display: flex; align-items: center; }
.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: all 0.15s;
    outline: none;
    border-radius: 6px;
}
.nav-search-btn:hover { color: var(--text-primary); background: var(--tab-hover); }
.nav-search-expand { overflow: hidden; max-width: 0; transition: max-width 0.25s ease; }
.nav-search-expand.open { max-width: 140px; }
.nav-search-expand input {
    background: var(--surface-white);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    width: 120px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}
.nav-search-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: rgba(4,4,4,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #EF4444;
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 310px;
    background: rgba(4,4,4,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1100;
}

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

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    font-size: 0.875rem;
    font-weight: 700;
}

.mark-all-read {
    font-size: 0.75rem;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

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

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0.9rem;
    cursor: pointer;
    transition: background 0.1s;
    position: relative;
}

.notification-item:hover {
    background: var(--tab-hover);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.notification-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.65rem;
    color: var(--border-light);
    margin-top: 0.4rem;
    display: block;
}

.notification-footer {
    padding: 0.85rem;
    text-align: center;
    background: #000;
    border-top: 1px solid var(--border);
}

.notification-footer a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--tab-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--tab-active);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.2s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255,255,255, 0.1);
    border: 1px solid rgba(255,255,255, 0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
}

.btn-blocked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: #fff;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}

.mod-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.mod-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.mod-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.mod-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255, 0.07);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.server-name {
    font-weight: 600;
    color: var(--accent);
}

.feature-list {
    display: grid;
    gap: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    background: #000;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}

.feature-item:hover {
    border-color: var(--accent);
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(62,184,212,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-section {
    padding: 5rem 2rem;
    background: var(--surface-light);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color 0.15s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(62,184,212,0.35);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.88rem;
}

.download-section {
    padding: 5rem 2rem;
}

.download-container {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.download-card {
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: rgba(62,184,212,0.1);
    border: 1px solid rgba(62,184,212,0.3);
    border-radius: 4px;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.download-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.system-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.75rem;
    text-align: left;
}

.req-item {
    padding: 1rem;
    background: #000;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.req-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.faq-section {
    max-width: 860px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.faq-item {
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.15s;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-size: 0.9rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.2s;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.88rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 300px;
    opacity: 1;
}

.footer {
    background: var(--surface-light);
    border-top: 1px solid var(--border);
    padding: 3.5rem 2rem 2rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
    isolation: isolate;
    padding: 10px;
}

.glitch-text {
    position: relative;
    color: #ffffff !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    animation: none;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
}

.glitch-text::before,
.glitch-text::after {
    display: none;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.user-profile-btn:hover {
    border-color: var(--accent);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.8rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: rgba(4,4,4,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 0.35rem;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.83rem;
    border-radius: 6px;
    transition: all 0.1s;
}

.dropdown-item:hover {
    background: var(--tab-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem;
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .forum-container { padding: 1rem; flex-direction: column; }
    .chat-section { width: 100%; max-height: 400px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.75rem; }
    .dashboard-container { padding: 1rem; }
    .user-header { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
    .dashboard-tabs { flex-wrap: wrap; justify-content: center; }
    .forum-section-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .modal-content { width: 95%; padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .btn { width: 100%; justify-content: center; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .notification-dropdown { width: calc(100vw - 2rem); right: -1rem; }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { margin: 0 auto 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-links {
        display: flex !important; 
        position: fixed;
        top: 64px;
        left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.75);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.25s;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-link { padding: 0.85rem; font-size: 1.1rem; display: block; }
    .hero-title { font-size: 2.5rem; }
    .download-card { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 1rem 2rem; }
    .hero-title { font-size: 2rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
    
    .user-nav-balance { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
    .user-nav-profile { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
    .nav-search-btn { display: none; }

    
    .page-wrap,
    [class*="page-wrap"] { padding-left: 1rem !important; padding-right: 1rem !important; }

    
    .table-wrap, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 480px; }

    
    .dashboard-grid { grid-template-columns: 1fr !important; }
    .dashboard-container { padding: 80px 1rem 4rem !important; }
    .dashboard-tabs { gap: 0.25rem; }
    .dashboard-tab { padding: 0.5rem 0.75rem; font-size: 0.78rem; }

    
    .profile-header { flex-direction: column; gap: 1rem; }
    .profile-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .profile-username { font-size: 1.4rem !important; }
    .match-teams { flex-direction: column !important; }

    
    .history-row { gap: 0.4rem; padding: 0.6rem 0.75rem; }
    .h-time { display: none; }
    .h-mode { display: none; }

    
    .lb-table td:nth-child(3),
    .lb-table th:nth-child(3) { display: none; } 
    .podium-card { padding: 0.75rem 0.5rem; }
    .podium-name { font-size: 0.78rem; }

    
    .layout { grid-template-columns: 1fr !important; }
    .clan-header-row { flex-direction: column; }
    .header-actions { flex-wrap: wrap; width: 100%; }
    .header-actions .btn { flex: 1; min-width: 120px; }

    
    .mm-grid,
    .panels { grid-template-columns: 1fr !important; }

    
    .modal { max-width: 100% !important; margin: 0.5rem; width: calc(100% - 1rem) !important; }
    .modal-backdrop { padding: 0.5rem; }

    
    .form-row { grid-template-columns: 1fr !important; }

    
    .stat-grid { grid-template-columns: 1fr 1fr !important; }

    
    .t-grid { grid-template-columns: 1fr !important; }

    
    .ticket-item > div { flex-wrap: wrap; gap: 0.5rem; }
    #ticket-reply-box { flex-wrap: wrap; }
    #ticket-reply-input { width: 100%; }
    #ticket-view-panel .btn { font-size: 0.75rem; padding: 0.35rem 0.65rem; }

    
    .chat-wrap { height: 300px; }

    
    .forum-thread-card { padding: 0.85rem 1rem; }

    
    .shop-grid,
    .marketplace-grid,
    .clan-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    
    .balance-text { display: none; }
    .nav-container { padding: 0 0.75rem; }

    
    .header-actions { flex-direction: column; }
    .header-actions .btn { width: 100%; }

    
    .lb-table td:nth-child(4),
    .lb-table th:nth-child(4) { display: none; }

    
    .profile-stats-grid { grid-template-columns: 1fr 1fr !important; }

    
    .mode-card { padding: 0.75rem; }

    
    .detail-title { font-size: 1.2rem; }

    
    .clan-title { font-size: 1.2rem; }
}

.form-input {
    background: rgba(4,4,4,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.15s;
    outline: none;
    border-radius: 6px;
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.28);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666680'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #444455;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

@keyframes skel-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
.skel {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s infinite;
    border-radius: 4px;
}
.skel-line  { height: 12px; border-radius: 3px; }
.skel-title { height: 18px; border-radius: 3px; }
.skel-circle{ border-radius: 50%; }

.frame-ring {
    position: relative;
    padding: 3px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.frame-ring-gold     { animation: frameGoldAnim 2s ease-in-out infinite; }
.frame-ring-purple   { animation: framePurpleAnim 2s ease-in-out infinite; }
.frame-ring-ice      { animation: frameIceAnim 2s ease-in-out infinite; }
.frame-ring-neon     { animation: frameNeonAnim 1.5s ease-in-out infinite; }
.frame-ring-crimson  { animation: frameCrimsonAnim 1.5s ease-in-out infinite; }
.frame-ring-cosmic   { animation: frameCosmicAnim 3s linear infinite; }
.frame-ring-shadow   { animation: frameShadowAnim 2s ease-in-out infinite; }
.frame-ring-emerald  { animation: frameEmeraldAnim 2s ease-in-out infinite; }
.frame-ring-hologram { animation: frameHologramAnim 2s linear infinite; }
.frame-ring-cyber    { animation: frameCyberAnim 1s steps(2) infinite; }
.frame-ring-blood    { animation: frameBloodAnim 2s ease-in-out infinite; }
.frame-ring-plasma   { animation: framePlasmaAnim 1.5s linear infinite; }
.frame-ring-storm    { animation: frameStormAnim 0.5s linear infinite; }

@keyframes frameGoldAnim     { 0%,100%{box-shadow:0 0 0 3px #ffd70088} 50%{box-shadow:0 0 0 4px #ffd700cc,0 0 16px 2px #ffd70044} }
@keyframes framePurpleAnim   { 0%,100%{box-shadow:0 0 0 3px #fff88} 50%{box-shadow:0 0 0 4px #fffcc,0 0 16px 2px #fff44} }
@keyframes frameIceAnim      { 0%,100%{box-shadow:0 0 0 3px #60a5fa88} 50%{box-shadow:0 0 0 4px #60a5facc,0 0 16px 2px #60a5fa44} }
@keyframes frameNeonAnim     { 0%,100%{box-shadow:0 0 0 3px #22c55e88} 50%{box-shadow:0 0 0 4px #22c55ecc,0 0 16px 2px #22c55e44} }
@keyframes frameCrimsonAnim  { 0%,100%{box-shadow:0 0 0 3px #ef444488} 50%{box-shadow:0 0 0 4px #ef4444cc,0 0 16px 2px #ef444444} }
@keyframes frameCosmicAnim   { 0%{box-shadow:0 0 0 3px #62d4ec88, 0 0 15px #e0e0e044} 50%{box-shadow:0 0 0 4px #e0e0e0cc, 0 0 25px #62d4ec88} 100%{box-shadow:0 0 0 3px #62d4ec88, 0 0 15px #e0e0e044} }
@keyframes frameShadowAnim   { 0%,100%{box-shadow:0 0 0 3px #1f293788} 50%{box-shadow:0 0 0 4px #111827cc,0 0 20px 4px #00000088} }
@keyframes frameEmeraldAnim  { 0%,100%{box-shadow:0 0 0 3px #05966988} 50%{box-shadow:0 0 0 4px #10b981cc,0 0 16px 2px #10b98144} }
@keyframes frameHologramAnim { 0%{box-shadow:0 0 0 3px #22d3ee88} 33%{box-shadow:0 0 0 4px #62d4ec88} 66%{box-shadow:0 0 0 3px #f472b688} 100%{box-shadow:0 0 0 3px #22d3ee88} }
@keyframes frameCyberAnim    { 0%,100%{box-shadow:0 0 0 3px #06b6d488, 2px 0 0 #ec489988} 50%{box-shadow:0 0 0 4px #ec4899cc, -2px 0 0 #06b6d4cc} }
@keyframes frameBloodAnim    { 0%,100%{box-shadow:0 0 0 3px #7f1d1d88} 50%{box-shadow:0 0 0 5px #b91c1ccc, 0 8px 15px #991b1b66} }
@keyframes framePlasmaAnim   { 0%{box-shadow:0 0 0 3px #d946ef88, 0 0 10px #d946ef44} 50%{box-shadow:0 0 0 4px #fffcc, 0 0 20px #fff66} 100%{box-shadow:0 0 0 3px #d946ef88, 0 0 10px #d946ef44} }
@keyframes frameStormAnim    { 0%,100%{box-shadow:0 0 0 3px #cbd5e188, 0 0 5px #fff} 10%,90%{box-shadow:0 0 0 3px #60a5fa88} 50%{box-shadow:0 0 0 4px #fff, 0 0 20px #60a5fa} }

.chat-effect-chat-rainbow { animation: rainbowAnim 3s linear infinite; font-weight: 700; }
.chat-effect-chat-glow    { color: #e0e0e0 !important; text-shadow: 0 0 8px rgba(92,205,232,0.7); font-weight: 700; }
.chat-effect-chat-gold    { color: #ffd700 !important; font-weight: 900; text-shadow: 0 0 4px rgba(251,191,36,0.4); }
.chat-effect-chat-fire    { background: linear-gradient(0deg, #f97316, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.chat-effect-chat-ice     { color: #93c5fd !important; text-shadow: 0 0 10px #60a5fa; font-weight: 700; }
.chat-effect-chat-shadow  { color: #f3f4f6 !important; text-shadow: 2px 2px 4px #000; font-weight: 700; }
.chat-effect-chat-neon-green { color: #4ade80 !important; text-shadow: 0 0 8px #22c55e; font-weight: 700; }
.chat-effect-chat-cyber   { color: #22d3ee !important; text-shadow: 1px 1px #ec4899, -1px -1px #ec4899; font-weight: 800; }
.chat-effect-chat-blood   { color: #b91c1c !important; text-shadow: 0 0 5px #7f1d1d; font-weight: 800; }
.chat-effect-chat-toxic   { color: #84cc16 !important; text-shadow: 0 0 8px #4d7c0f; font-weight: 700; }
.chat-effect-chat-void    { background: linear-gradient(90deg, #1e1b4b, #0d7a94, #1e1b4b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.chat-effect-chat-platinum{ color: #e5e7eb !important; text-shadow: 0 0 5px #9ca3af; font-weight: 700; }
.chat-effect-chat-matrix  { color: #22c55e !important; font-family: 'Courier New', monospace; font-weight: 900; text-shadow: 0 0 5px #166534; }

@keyframes rainbowAnim {
    0% { color: #ff4444; }
    16% { color: #ff8c00; }
    33% { color: #ffd700; }
    50% { color: #34d399; }
    66% { color: #60a5fa; }
    83% { color: #fff; }
    100% { color: #ff4444; }
}

@keyframes glitch-main {
    0%   { transform: translate(0); }
    5%   { transform: translate(-5px, 2px); }
    10%  { transform: translate(3px, -3px); }
    15%  { transform: translate(-2px, 5px); }
    20%  { transform: translate(6px, 1px); }
    25%  { transform: translate(-4px, -4px); }
    30%  { transform: translate(0, 0); }
    70%  { transform: translate(4px, 2px); }
    75%  { transform: translate(-6px, -1px); }
    80%  { transform: translate(2px, 4px); }
    85%  { transform: translate(-3px, -2px); }
    90%  { transform: translate(5px, 0); }
    100% { transform: translate(0); }
}

@keyframes glitch-cyan {
    0%   { transform: translate(-2px, 0); clip-path: inset(10% 0 80% 0); }
    10%  { transform: translate(-8px, 4px); clip-path: inset(40% 0 30% 0); }
    20%  { transform: translate(4px, -2px); clip-path: inset(70% 0 10% 0); }
    30%  { transform: translate(-6px, 0); clip-path: inset(20% 0 50% 0); }
    40%  { transform: translate(2px, 6px); clip-path: inset(50% 0 20% 0); }
    50%  { transform: translate(-4px, -4px); clip-path: inset(80% 0 5% 0); }
    100% { transform: translate(-2px, 0); }
}

@keyframes glitch-magenta {
    0%   { transform: translate(2px, 0); clip-path: inset(80% 0 10% 0); }
    15%  { transform: translate(8px, -4px); clip-path: inset(30% 0 40% 0); }
    30%  { transform: translate(-4px, 2px); clip-path: inset(10% 0 70% 0); }
    45%  { transform: translate(6px, 0); clip-path: inset(50% 0 20% 0); }
    60%  { transform: translate(-2px, -6px); clip-path: inset(20% 0 50% 0); }
    75%  { transform: translate(4px, 4px); clip-path: inset(5% 0 80% 0); }
    100% { transform: translate(2px, 0); }
}

.glitch-jitter {
    animation: glitch-flicker 0.08s infinite;
}

@keyframes glitch-flicker {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.role-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.role-Owner { background: #ef4444; color: white; }
.role-Admin { background: #f59e0b; color: white; }
.role-Dev { background: #3b82f6; color: white; }
.role-Moderator { background: #10b981; color: white; }
.role-Supporter { background: #4ec9e3; color: white; }
.role-VIP { background: #ec4899; color: white; }
.role-Veteran { background: #6b7280; color: white; }
.role-Noticable { background: #06b6d4; color: white; }
.role-Member { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.role-AlphaUsr { background: #65a30d; color: white; }
.role-ContentCreator { background: linear-gradient(90deg,#f97316,#ec4899); color: white; }
.role-CheatDev { background: #a855f7; color: white; }
