/* ==========================================
   BOLBOLPARAKAZAN - Styles v0.6.0
   Dark Theme + Gold Accents
   ========================================== */

/* ---- Variables ---- */
:root {
    --bg-primary: #0a0b14;
    --bg-secondary: #111222;
    --bg-card: #141528;
    --bg-chat: #0d0e1a;
    --bg-input: #1a1b30;
    --gold: #FFD700;
    --gold-dim: #c9a832;
    --gold-glow: rgba(255, 215, 0, 0.15);
    --red: #ff4757;
    --green: #2ed573;
    --cyan: #00d2ff;
    --purple: #a855f7;
    --white: #ffffff;
    --text-primary: #e8e8f0;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 215, 0, 0.15);
    --border-hover: rgba(255, 215, 0, 0.4);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.45); }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--white);
}

.logo-icon { font-size: 1.4rem; }
.gold { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 20, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.mobile-menu a:hover { color: var(--gold); padding-left: 8px; }
.mobile-menu.active { display: flex; }

/* ========================================
   PROMO TICKER
   ======================================== */
.promo-ticker {
    margin-top: 64px;
    background: linear-gradient(90deg, var(--bg-secondary), #1a1030, var(--bg-secondary));
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.promo-ticker-track {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.ticker-item.gold { color: var(--gold); }
.ticker-sep { font-size: 1rem; }

/* ========================================
   SPONSOR BAR
   ======================================== */
.sponsor-bar {
    background: var(--bg-secondary);
    padding: 16px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.sponsor-track {
    display: flex;
    align-items: center;
    gap: 50px;
    will-change: transform;
}

.sponsor-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.sponsor-item img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.05);
    transition: var(--transition);
}

.sponsor-item img:hover {
    filter: brightness(1.15);
    transform: scale(1.08);
}

/* ========================================
   CHAT LAUNCH
   ======================================== */
.home-page .chat-section {
    display: none;
}

.chat-launch {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.chat-launch-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(17, 18, 34, 0.98), rgba(10, 11, 20, 0.98));
    box-shadow: var(--shadow), var(--shadow-gold);
}

.chat-launch-title {
    font-family: var(--font-display);
    font-size: 2.3rem;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.chat-launch-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 60ch;
}

.chat-launch-points {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.chat-launch-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.chat-launch-point i {
    color: var(--gold);
}

.chat-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-chat-launch,
.btn-chat-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-chat-launch {
    background: linear-gradient(135deg, var(--gold), #e6ac00);
    color: #000;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.2);
}

.btn-chat-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 215, 0, 0.28);
}

.btn-chat-secondary {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.btn-chat-secondary:hover {
    border-color: rgba(255, 215, 0, 0.18);
    color: var(--gold);
}

.chat-launch-preview {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.chat-launch-preview-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.chat-launch-preview h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 2px;
    margin: 16px 0 8px;
}

.chat-launch-preview p {
    color: var(--text-secondary);
}

.chat-launch-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.chat-launch-stat {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-launch-stat strong {
    display: block;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
    line-height: 1;
}

.chat-launch-stat span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ========================================
   CHAT SECTION (MAIN)
   ======================================== */
.chat-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    scroll-margin-top: 76px;
}

.chat-section-header {
    text-align: center;
    margin-bottom: 20px;
}

.chat-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: var(--gold);
}

.chat-section-title i {
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.chat-section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.chat-container {
    background: var(--bg-chat);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-gold);
    min-height: 520px;
    position: relative;
}

/* ---- Chat Login ---- */
.chat-panel { width: 100%; min-height: 0; }
.chat-panel.hidden { display: none; }
.chat-panel:not(.hidden) { display: flex; flex-direction: column; min-height: 0; }

.chat-login-inner {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
}

.chat-login-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

.chat-login-inner h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.chat-login-inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.chat-error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--red);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.chat-input-group {
    position: relative;
    margin-bottom: 14px;
}

.chat-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chat-input-group input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.chat-input-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.chat-input-group input::placeholder {
    color: var(--text-muted);
}

.chat-admin-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.chat-admin-toggle:hover, .chat-admin-toggle.active { color: var(--gold); }

.admin-fields { margin-bottom: 10px; }

.chat-admin-note {
    margin: -4px 0 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.chat-admin-note strong {
    color: var(--gold);
    font-weight: 600;
}

.btn-join {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), #e6ac00);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-join:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Chat Main ---- */
.chat-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.chat-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-topbar-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

.chat-topbar-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.chat-topbar-user {
    font-size: 0.8rem;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.chat-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-topbar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.chat-topbar-btn:hover { color: var(--gold); }
.chat-topbar-btn.muted { color: var(--red); }

.online-badge-count {
    font-size: 0.8rem;
    color: var(--green);
}

.online-badge-count i {
    font-size: 0.5rem;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

/* ---- Chat Body ---- */
.chat-body {
    display: flex;
    height: 420px;
    min-height: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.04), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.chat-messages-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

/* ---- Chat Sidebar ---- */
.chat-sidebar {
    width: 200px;
    border-left: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar-title {
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title i { margin-right: 6px; color: var(--gold); }

.online-list { padding: 8px 12px; }

.online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.online-user:hover { background: rgba(255, 255, 255, 0.03); }

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.online-name {
    font-size: 0.82rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-admin .online-dot { background: var(--gold); }
.online-admin .online-name { color: var(--gold); font-weight: 600; }
.online-badge { font-size: 0.75rem; }

/* ---- Messages ---- */
.chat-message {
    max-width: min(85%, 520px);
    animation: fadeInUp 0.25s ease;
}

.msg-mine { align-self: flex-end; }
.msg-other { align-self: flex-start; }

.msg-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.msg-username {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--cyan);
}

.msg-mine .msg-username { color: var(--green); }
.username-admin { color: var(--gold) !important; }

.admin-badge {
    font-size: 0.65rem;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.msg-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.msg-mine .msg-body {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.09));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px 12px 4px 12px;
}

.msg-admin .msg-body {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* System Messages */
.msg-system {
    align-self: center !important;
    max-width: 100%;
}

.msg-system-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Announce Messages */
.msg-announce {
    align-self: center !important;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.msg-announce-badge {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 4px;
}

.msg-announce-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Chat Notifications */
.chat-notification {
    align-self: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    animation: fadeInUp 0.3s ease;
}

.notif-error {
    background: rgba(255, 71, 87, 0.12);
    color: var(--red);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.notif-admin {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.notif-system {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Typing Indicator */
.typing-indicator {
    padding: 0 18px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    animation: fadeInUp 0.2s ease;
}

/* ---- Chat Input Bar ---- */
.chat-inputbar {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.chat-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px;
    border-radius: 999px;
    background: rgba(26, 27, 48, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.chat-composer:focus-within {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.08);
}

.chat-inputbar input {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 10px 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.chat-inputbar input:focus {
    box-shadow: none;
}

.chat-inputbar input::placeholder { color: var(--text-muted); }

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #e6ac00);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* ========================================
   CHAT PAGE
   ======================================== */
body.chat-page {
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 215, 0, 0.12), transparent 24%),
        radial-gradient(circle at 92% 0%, rgba(0, 210, 255, 0.08), transparent 18%),
        linear-gradient(180deg, #0c0d18, #090a12 42%, #0b0c15);
}

.chat-page-shell {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.chat-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 0 clamp(16px, 2.4vw, 28px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 11, 20, 0.92);
    backdrop-filter: blur(18px);
    flex-shrink: 0;
}

.chat-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
}

.chat-page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transition: var(--transition);
}

.chat-page-back:hover {
    border-color: rgba(255, 215, 0, 0.18);
    color: var(--gold);
}

.chat-page-main {
    flex: 1;
    min-height: 0;
    width: min(1580px, 100%);
    margin: 0 auto;
    padding: 14px clamp(12px, 1.6vw, 20px) 18px;
}

body.chat-page .chat-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    scroll-margin-top: 0;
}

.chat-page-hero {
    display: grid;
    grid-template-columns: minmax(280px, 500px) auto;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(17, 18, 34, 0.96), rgba(11, 12, 22, 0.96));
    box-shadow: var(--shadow), 0 8px 22px rgba(0, 0, 0, 0.14);
}

.chat-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.chat-page-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.6vw, 2rem);
    line-height: 0.92;
    letter-spacing: 1.2px;
    color: var(--white);
    margin-bottom: 2px;
}

.chat-page-hero-copy p {
    max-width: 34ch;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.chat-page-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 8px;
}

.chat-page-stat {
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.chat-page-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.56rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chat-page-stat strong {
    display: block;
    margin-top: 3px;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
}

body.chat-page .chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    border-radius: 26px;
    border: 1px solid rgba(255, 215, 0, 0.12);
    background:
        radial-gradient(circle at top, rgba(255, 215, 0, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(14, 15, 28, 0.98), rgba(10, 11, 20, 0.98));
    box-shadow: var(--shadow), 0 26px 70px rgba(0, 0, 0, 0.24);
}

body.chat-page .chat-panel:not(.hidden),
body.chat-page #chat-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.chat-page #chat-login {
    padding: 28px;
    overflow: auto;
}

.chat-login-layout {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px);
    gap: 24px;
}

.chat-login-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: clamp(24px, 3vw, 42px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(18, 19, 35, 0.94), rgba(10, 11, 20, 0.94));
}

.chat-login-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.chat-login-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.chat-login-copy p {
    max-width: 56ch;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.chat-login-points {
    display: grid;
    gap: 14px;
}

.chat-login-point {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.chat-login-point-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-login-point strong {
    display: block;
    color: var(--white);
    font-size: 0.98rem;
    margin-bottom: 3px;
}

.chat-login-point span:last-child {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.chat-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    width: 100%;
    min-height: 100%;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 11, 20, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.chat-login-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

body.chat-page .chat-login-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 18px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    font-size: 1.3rem;
    animation: none;
}

.chat-login-label {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.chat-login-card-copy h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 4px;
}

.chat-login-card-copy p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
}

body.chat-page .chat-error {
    margin-bottom: 18px;
}

body.chat-page .chat-input-group {
    margin-bottom: 16px;
}

body.chat-page .chat-admin-toggle {
    margin-bottom: 16px;
    font-size: 0.84rem;
    font-weight: 600;
}

body.chat-page .chat-topbar {
    padding: 18px 24px;
    background: rgba(13, 14, 26, 0.94);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

body.chat-page .chat-topbar-left {
    gap: 14px;
    min-width: 0;
}

body.chat-page .chat-topbar-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.chat-topbar-heading {
    min-width: 0;
}

.chat-topbar-kicker {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.chat-topbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.chat-page .chat-topbar-title {
    font-size: 1.35rem;
    letter-spacing: 2px;
}

body.chat-page .chat-topbar-user {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

body.chat-page .chat-topbar-right {
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.chat-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.chat-status-pill.is-online {
    border-color: rgba(46, 213, 115, 0.24);
    color: var(--green);
    background: rgba(46, 213, 115, 0.08);
}

.chat-status-pill.is-online .chat-status-dot {
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(46, 213, 115, 0.12);
}

.chat-status-pill.is-pending {
    border-color: rgba(255, 215, 0, 0.24);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.chat-status-pill.is-pending .chat-status-dot {
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.12);
}

.chat-status-pill.is-error {
    border-color: rgba(255, 71, 87, 0.24);
    color: var(--red);
    background: rgba(255, 71, 87, 0.08);
}

.chat-status-pill.is-error .chat-status-dot {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0.12);
}

.chat-topbar-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.16);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.08));
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.chat-topbar-link:hover {
    border-color: rgba(255, 215, 0, 0.34);
    box-shadow: 0 10px 22px rgba(255, 215, 0, 0.08);
    transform: translateY(-1px);
}

.chat-topbar-link i {
    font-size: 0.88rem;
}

.chat-topbar-link-label-short {
    display: none;
}

body.chat-page .chat-pinbar {
    padding: 10px 22px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-pin-display,
.chat-pin-empty,
.chat-pin-editor {
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.14);
    background:
        radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(23, 24, 42, 0.96), rgba(14, 15, 28, 0.96));
}

.chat-pin-display,
.chat-pin-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.chat-pin-display.is-admin-clickable {
    cursor: pointer;
}

.chat-pin-display.is-admin-clickable:hover {
    border-color: rgba(255, 215, 0, 0.24);
}

.chat-pin-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.chat-pin-empty .chat-pin-copy {
    grid-template-columns: auto minmax(0, 1fr);
}

.chat-pin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.chat-pin-message {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-pin-message.is-empty {
    color: var(--text-secondary);
}

.chat-pin-meta {
    color: var(--text-muted);
    font-size: 0.71rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.chat-pin-actions,
.chat-pin-editor-actions,
.chat-pin-editor-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-pin-actions {
    flex-shrink: 0;
    gap: 6px;
}

.chat-pin-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.chat-pin-btn:hover {
    border-color: rgba(255, 215, 0, 0.22);
    color: var(--gold);
}

.chat-pin-btn.primary {
    border-color: rgba(255, 215, 0, 0.18);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.08));
    color: var(--gold);
}

.chat-pin-btn.primary:hover {
    border-color: rgba(255, 215, 0, 0.32);
    box-shadow: 0 10px 22px rgba(255, 215, 0, 0.08);
}

.chat-pin-btn.ghost {
    background: transparent;
}

.chat-pin-btn.danger:hover {
    border-color: rgba(255, 71, 87, 0.26);
    color: var(--red);
}

.chat-pin-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
}

.chat-pin-label {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.chat-pin-editor textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 11, 20, 0.82);
    color: var(--white);
    font: inherit;
    line-height: 1.55;
    outline: none;
}

.chat-pin-editor textarea:focus {
    border-color: rgba(255, 215, 0, 0.26);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.08);
}

.chat-pin-counter {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.chat-pin-editor-row {
    justify-content: space-between;
}

body.chat-page .chat-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    flex: 1;
    min-height: 0;
    height: auto;
    background: none;
}

body.chat-page .chat-messages-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.025), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.chat-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.chat-feed-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.chat-feed-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.chat-feed-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
}

body.chat-page .chat-messages {
    padding: 22px;
    gap: 12px;
}

body.chat-page .chat-message {
    max-width: min(78%, 720px);
}

body.chat-page .msg-body {
    padding: 12px 16px;
    border-radius: 18px 18px 18px 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

body.chat-page .msg-mine .msg-body {
    border-radius: 18px 18px 6px 18px;
}

body.chat-page .typing-indicator {
    padding: 0 22px 18px;
}

body.chat-page .chat-sidebar {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(13, 14, 26, 0.96), rgba(10, 11, 20, 0.96));
    overflow: hidden;
}

.chat-sidebar-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.chat-sidebar-card-intro {
    padding: 18px;
    gap: 12px;
}

.chat-sidebar-kicker {
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.chat-sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 1.6px;
}

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

.chat-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.chat-sidebar-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.14);
}

.chat-sidebar-stat span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.chat-sidebar-stat strong {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.2;
}

.chat-sidebar-card-users {
    flex: 1;
    min-height: 0;
}

body.chat-page .sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.sidebar-title-count {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
}

body.chat-page .online-list {
    padding: 10px 12px 14px;
    overflow-y: auto;
    min-height: 0;
}

body.chat-page .online-user {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

body.chat-page .online-user:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.12);
}

body.chat-page .online-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 700;
}

body.chat-page .chat-inputbar {
    padding: 18px 22px 22px;
    background: linear-gradient(180deg, rgba(17, 18, 34, 0.9), rgba(17, 18, 34, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.chat-page .chat-composer {
    align-items: stretch;
    gap: 12px;
    padding: 10px;
    border-radius: 24px;
}

.chat-composer-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.chat-page .chat-inputbar input {
    padding: 12px 14px 8px;
    font-size: 0.96rem;
}

.chat-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 4px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.chat-composer-count {
    color: var(--gold);
    font-weight: 700;
}

body.chat-page .btn-send {
    width: 56px;
    min-height: 56px;
    height: auto;
    border-radius: 18px;
}

/* ========================================
   HERO CAROUSEL
   ======================================== */
.hero {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label i { font-size: 1rem; }

.carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/6;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* ========================================
   VIP CARDS
   ======================================== */
.content-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.site-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    z-index: 5;
}

.badge-vip { background: linear-gradient(135deg, var(--gold), #e6ac00); color: #000; }
.badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.badge-new { background: linear-gradient(135deg, var(--green), #10b981); color: #000; }

.card-logo {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: linear-gradient(180deg, rgba(20, 21, 40, 1), rgba(10, 11, 20, 1));
}

.card-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.card-cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold-dim), #b8941e);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.card-cta:hover {
    background: linear-gradient(135deg, var(--gold), #e6ac00);
    letter-spacing: 4px;
}

.ad-card { border-style: dashed; border-color: rgba(255, 255, 255, 0.1); }
.ad-card:hover { border-color: rgba(255, 215, 0, 0.3); }

.ad-placeholder {
    flex-direction: column;
    text-align: center;
}

/* ========================================
   FEATURES
   ======================================== */
.features-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.section-title span { color: var(--gold); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
}

.feature-icon.green { background: rgba(46, 213, 115, 0.12); color: var(--green); }
.feature-icon.gold { background: rgba(255, 215, 0, 0.12); color: var(--gold); }
.feature-icon.cyan { background: rgba(0, 210, 255, 0.12); color: var(--cyan); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple); }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
    transform: translateY(-3px);
}

.footer-contact {
    margin-bottom: 24px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin: 0 4px;
    transition: var(--transition);
}

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

.footer-warning {
    max-width: 600px;
    margin: 0 auto 20px;
}

.warning-badge {
    display: inline-block;
    background: rgba(255, 71, 87, 0.12);
    color: var(--red);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-warning p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   UTILITY
   ======================================== */
.hidden { display: none !important; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .chat-launch-card { grid-template-columns: 1fr; }

    .chat-page-hero {
        grid-template-columns: 1fr;
    }

    .chat-page-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chat-login-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    }

    body.chat-page .chat-body {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (min-width: 1280px) {
    body.chat-page .chat-body {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    body.chat-page .chat-messages {
        padding: 24px 24px 18px;
    }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin-right: -6px;
    }
    .header-inner {
        height: 58px;
        padding: 0 14px;
    }
    .logo {
        gap: 6px;
        font-size: 1.25rem;
        letter-spacing: 1.6px;
    }
    .mobile-menu {
        top: calc(58px + env(safe-area-inset-top));
        max-height: calc(100svh - 58px - env(safe-area-inset-top));
        overflow-y: auto;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .promo-ticker {
        margin-top: 58px;
        padding: 8px 0;
    }
    .ticker-item {
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }
    .sponsor-bar {
        padding: 12px 0;
    }
    .sponsor-item img {
        height: 38px;
        max-width: 120px;
    }
    .hero,
    .content-section,
    .features-section {
        margin: 18px auto;
        padding: 0 10px;
    }
    .section-label {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }
    .carousel-slide img {
        aspect-ratio: 4 / 3;
    }
    .chat-launch {
        padding: 0 10px;
    }

    .chat-launch-card {
        padding: 24px 18px;
        gap: 18px;
    }

    .chat-launch-title {
        font-size: 1.9rem;
    }

    .chat-launch-text {
        font-size: 0.94rem;
    }

    .chat-launch-actions a,
    .card-cta {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chat-launch-stats {
        grid-template-columns: 1fr;
    }

    body.chat-page .chat-page-header {
        min-height: auto;
        padding: max(8px, env(safe-area-inset-top)) 12px 8px;
        flex-wrap: wrap;
    }

    body.chat-page .chat-page-actions {
        width: 100%;
        justify-content: space-between;
    }

    body.chat-page .chat-page-main {
        width: 100%;
        padding: 0;
    }

    body.chat-page .chat-section {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .chat-page-badge,
    .chat-page-hero,
    .chat-login-copy {
        display: none;
    }

    body.chat-page .chat-container {
        flex: 1;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    body.chat-page #chat-login {
        padding: 14px 12px calc(20px + env(safe-area-inset-bottom));
    }

    .chat-login-layout {
        display: block;
    }

    .chat-login-card {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 22px;
        box-shadow: none;
        background: rgba(10, 11, 20, 0.92);
    }

    .chat-login-card-head {
        margin-bottom: 18px;
    }

    .chat-login-card-copy h3 {
        font-size: 1.8rem;
    }

    body.chat-page .chat-topbar {
        padding: 12px 14px;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    body.chat-page .chat-topbar-left {
        gap: 10px;
    }

    body.chat-page .chat-topbar-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .chat-topbar-kicker,
    .chat-feed-hint {
        display: none;
    }

    body.chat-page .chat-topbar-title {
        font-size: 1.08rem;
        letter-spacing: 1.5px;
    }

    body.chat-page .chat-topbar-user {
        max-width: 116px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-status-pill {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .chat-topbar-link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.74rem;
        gap: 7px;
        justify-content: center;
        flex: 1 1 auto;
    }

    body.chat-page .chat-topbar-right {
        width: 100%;
        gap: 8px;
        margin-left: 0;
        flex-shrink: 0;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    body.chat-page .chat-pinbar {
        padding: 10px 12px 0;
        gap: 8px;
    }

    .chat-pin-display,
    .chat-pin-empty,
    .chat-pin-editor {
        border-radius: 16px;
    }

    .chat-pin-display,
    .chat-pin-empty {
        padding: 10px 12px;
        gap: 8px;
        align-items: center;
    }

    .chat-pin-copy {
        gap: 8px;
    }

    .chat-pin-message {
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .chat-pin-meta {
        max-width: 140px;
        font-size: 0.66rem;
    }

    .chat-pin-actions {
        gap: 6px;
    }

    .chat-pin-btn {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .chat-pin-editor {
        padding: 12px;
    }

    .chat-pin-editor textarea {
        min-height: 72px;
    }

    body.chat-page .chat-body {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        flex: 1;
        min-height: 0;
        height: auto;
    }

    .chat-feed-header {
        padding: 12px 14px 10px;
    }

    .chat-feed-header h3 {
        font-size: 0.92rem;
    }

    body.chat-page .chat-messages-wrap {
        overflow: hidden;
    }

    body.chat-page .chat-messages {
        padding: 14px 12px 10px;
        gap: 8px;
    }

    body.chat-page .typing-indicator {
        padding: 0 12px 10px;
    }

    body.chat-page .chat-message {
        max-width: 94%;
    }

    body.chat-page .msg-body {
        padding: 10px 12px;
        font-size: 0.94rem;
    }

    body.chat-page .chat-inputbar {
        margin-top: auto;
        position: sticky;
        bottom: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        backdrop-filter: blur(18px);
    }

    body.chat-page .chat-composer {
        padding: 6px;
        gap: 8px;
        border-color: rgba(255, 215, 0, 0.12);
    }

    .chat-composer-meta {
        padding: 0 12px 2px;
        font-size: 0.68rem;
    }

    body.chat-page .chat-inputbar input {
        padding: 12px 14px 6px;
        font-size: 0.95rem;
    }

    body.chat-page .btn-send {
        width: 42px;
        min-height: 42px;
        border-radius: 14px;
    }

    body.chat-page .chat-sidebar {
        display: flex;
        padding: 0 12px 10px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        background: none;
    }

    body.chat-page .chat-sidebar-card {
        width: 100%;
        border-radius: 16px;
    }

    body.chat-page .sidebar-title {
        padding: 12px 14px;
    }

    body.chat-page .online-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-height: 132px;
        padding: 10px 12px 12px;
    }

    .chat-section {
        max-width: none;
        margin: 0 auto 20px;
        padding: 0 10px 14px;
        min-height: calc(100svh - 56px);
        display: flex;
        flex-direction: column;
    }

    .chat-section-header {
        text-align: left;
        margin-bottom: 10px;
        padding-top: 6px;
    }

    .chat-section-title {
        font-size: 1.45rem;
        letter-spacing: 2px;
    }

    .chat-section-sub {
        font-size: 0.82rem;
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: calc(100svh - 128px);
        height: calc(100svh - 128px);
        border-radius: 20px;
        background:
            radial-gradient(circle at top, rgba(255, 215, 0, 0.06), transparent 28%),
            linear-gradient(180deg, rgba(14, 15, 28, 0.98), rgba(10, 11, 20, 0.98));
    }

    .chat-panel:not(.hidden) {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .chat-login-inner {
        max-width: none;
        padding: 36px 20px;
    }

    #chat-main {
        height: 100%;
        min-height: 0;
    }

    .chat-topbar {
        padding: 12px 14px;
        gap: 10px;
        align-items: center;
    }

    .chat-topbar-left {
        gap: 8px;
        min-width: 0;
    }

    .chat-topbar-user {
        max-width: 116px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-topbar-right {
        gap: 10px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .online-badge-count {
        font-size: 0.74rem;
    }

    .chat-body {
        display: flex;
        flex: 1;
        min-height: 0;
        height: auto;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-messages-wrap {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .chat-messages {
        padding: 14px 12px 10px;
        gap: 8px;
    }

    .typing-indicator {
        padding: 0 12px 10px;
    }

    .chat-message {
        max-width: 94%;
    }

    .msg-header {
        gap: 4px 6px;
    }

    .msg-time {
        margin-left: 0;
    }

    .msg-body {
        padding: 10px 12px;
        font-size: 0.94rem;
    }

    .chat-inputbar {
        margin-top: auto;
        position: sticky;
        bottom: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(17, 18, 34, 0.9), rgba(17, 18, 34, 0.98));
        backdrop-filter: blur(18px);
    }

    .chat-composer {
        padding: 6px;
        gap: 8px;
        border-color: rgba(255, 215, 0, 0.12);
    }

    .chat-inputbar input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .btn-send {
        width: 42px;
        height: 42px;
    }

    .features-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .header-inner { height: 56px; }
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1.2px;
    }
    .promo-ticker { margin-top: 56px; }
    .mobile-menu {
        top: calc(56px + env(safe-area-inset-top));
        max-height: calc(100svh - 56px - env(safe-area-inset-top));
        padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
    }

    .chat-launch {
        padding: 0 8px;
    }

    .chat-launch-card {
        padding: 20px 16px;
    }

    .chat-launch-actions {
        display: grid;
        gap: 10px;
    }

    .chat-launch-title {
        font-size: 1.65rem;
    }

    .chat-launch-preview {
        padding: 18px;
    }

    .chat-launch-preview h3 {
        font-size: 1.45rem;
    }

    body.chat-page .chat-page-header {
        padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    }

    body.chat-page .chat-page-actions {
        width: 100%;
        gap: 8px;
    }

    body.chat-page .chat-page-back {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .chat-login-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .chat-login-card-head {
        gap: 12px;
    }

    body.chat-page .chat-login-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .chat-login-card-copy h3 {
        font-size: 1.55rem;
        letter-spacing: 1.4px;
    }

    .chat-section {
        padding: 0 8px 14px;
        min-height: calc(100svh - 56px);
    }

    .chat-section-header {
        margin-bottom: 8px;
    }

    .chat-container {
        min-height: calc(100svh - 116px);
        height: calc(100svh - 116px);
        border-radius: 16px;
    }

    .chat-login-inner {
        padding: 28px 16px;
    }

    body.chat-page .chat-topbar {
        padding: 10px 12px;
    }

    body.chat-page .chat-topbar-title {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    body.chat-page .chat-topbar-user {
        max-width: 88px;
        font-size: 0.72rem;
    }

    .chat-topbar-link {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .chat-topbar-link-label {
        display: none;
    }

    .chat-topbar-link-label-short {
        display: inline;
    }

    body.chat-page .chat-pinbar {
        padding: 8px 10px 0;
    }

    .chat-pin-display,
    .chat-pin-empty,
    .chat-pin-editor {
        border-radius: 14px;
    }

    .chat-pin-display,
    .chat-pin-empty {
        padding: 10px;
    }

    .chat-pin-copy {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px;
    }

    .chat-pin-kicker,
    .chat-pin-label,
    .chat-pin-meta {
        font-size: 0.66rem;
    }

    .chat-pin-message {
        font-size: 0.82rem;
    }

    .chat-pin-meta {
        display: none;
    }

    .chat-status-pill .chat-status-text,
    .chat-composer-hint,
    body.chat-page .chat-page-back span {
        display: none;
    }

    .chat-status-pill {
        min-width: 34px;
        justify-content: center;
        padding: 0 9px;
    }

    .online-badge-count {
        font-size: 0.72rem;
    }

    body.chat-page .chat-sidebar {
        padding: 0 10px 8px;
    }

    body.chat-page .online-list {
        grid-template-columns: 1fr;
        max-height: 116px;
        padding: 10px;
    }

    body.chat-page .chat-messages {
        padding: 12px 10px 8px;
    }

    body.chat-page .chat-message {
        max-width: 96%;
    }

    body.chat-page .msg-body {
        font-size: 0.93rem;
    }

    body.chat-page .chat-inputbar {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }

    body.chat-page .chat-inputbar input {
        padding: 11px 12px;
        font-size: 0.94rem;
    }

    body.chat-page .btn-send {
        width: 40px;
        min-height: 40px;
        font-size: 0.92rem;
    }
}
