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

:root {
    --bg: #0b0b0e;
    --bg-2: #111114;
    --card: #18181c;
    --card-2: #1e1e24;
    --border: #2a2a32;
    --text: #eaeaf0;
    --dim: #8a8a96;
    --muted: #5a5a66;
    --accent: #e63946;
    --accent-hover: #ff4757;
    --ok: #22c55e;
    --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-animated {
    position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at top, #16161c 0%, #0b0b0e 60%);
}
.bg-animated::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.preloader {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .5s, visibility .5s;
}
.preloader.hidden-preloader { opacity: 0; visibility: hidden; }
.preloader-logo { font-size: 70px; margin-bottom: 25px; animation: pulseL 1.4s infinite; }
@keyframes pulseL {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}
.preloader-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; font-weight: 900; letter-spacing: 6px;
    color: var(--text); margin-bottom: 25px;
}
.preloader-bar {
    width: 200px; height: 2px;
    background: rgba(255,255,255,0.1); overflow: hidden; position: relative;
}
.preloader-bar::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: slide 1.4s infinite;
}
@keyframes slide { 0% { left: -30%; } 100% { left: 100%; } }
.preloader-text {
    margin-top: 15px; font-size: 11px;
    color: var(--muted); letter-spacing: 4px;
    text-transform: uppercase;
}

.header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px; gap: 20px; flex-wrap: wrap;
    background: rgba(11, 11, 14, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: #1e1e24; border: 1px solid var(--border);
    border-radius: 12px; font-size: 20px;
    transition: all .3s;
}
.logo:hover .logo-icon { background: var(--accent); border-color: var(--accent); transform: rotate(-6deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 17px;
    color: var(--text); letter-spacing: 2px;
}
.logo-sub { font-size: 9px; color: var(--muted); letter-spacing: 3px; margin-top: 4px; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
    padding: 10px 18px; color: var(--dim);
    text-decoration: none; font-weight: 600;
    font-size: 14px; border-radius: 8px;
    transition: all .25s; position: relative;
}
.nav-link::after {
    content: ''; position: absolute;
    left: 18px; right: 18px; bottom: 6px;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: center;
    transition: transform .3s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }

.auth-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
    padding: 12px 26px; border: none; border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: 15px; letter-spacing: .5px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.2,.9,.3,1.1);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden; z-index: 1;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.1);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s;
    z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn-primary {
    background: var(--accent); color: white;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.55);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--text); background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-xl { padding: 18px 44px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.hidden { display: none !important; }

.avatar-mini {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; overflow: hidden;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.hero { padding: 140px 40px 100px; max-width: 1000px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 50px; font-size: 13px;
    color: var(--dim); margin-bottom: 40px;
    font-weight: 600; letter-spacing: .5px;
}
.pulse-dot {
    width: 6px; height: 6px; background: var(--ok);
    border-radius: 50%; box-shadow: 0 0 8px var(--ok);
    animation: pulseG 1.6s infinite;
}
@keyframes pulseG {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(38px, 7vw, 82px);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -1px; margin-bottom: 30px;
    color: var(--text);
}
.hero-title .accent-line {
    display: block; color: var(--accent);
    position: relative;
}
.hero-title .accent-line::after {
    content: ''; position: absolute;
    left: 50%; bottom: -8px;
    width: 60px; height: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}
.hero-desc {
    max-width: 640px; margin: 0 auto 50px;
    font-size: 19px; color: var(--dim);
    line-height: 1.55; font-weight: 500;
}
.hero-cta {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 60px;
}
.hero-ip {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 22px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; color: var(--dim);
}
.hero-ip code {
    font-family: 'Orbitron', monospace;
    color: var(--text); font-weight: 700;
    letter-spacing: 1px; font-size: 15px;
}
.copy-btn {
    background: transparent; border: none;
    cursor: pointer; font-size: 16px;
    transition: transform .2s; color: var(--dim);
}
.copy-btn:hover { transform: scale(1.15); color: var(--text); }

.monitoring-section,
.forum-section,
.rules-section,
.shop-section { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900; letter-spacing: 1px;
    color: var(--text); margin-bottom: 14px;
}
.gradient-text { color: var(--accent); background: none; -webkit-text-fill-color: var(--accent); }
.section-desc {
    color: var(--dim); font-size: 16px;
    max-width: 600px; margin: 0 auto;
}

.monitoring-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
    position: relative; overflow: hidden;
}
.monitoring-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shine 3s linear infinite;
    background-size: 200% 100%;
}
@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.monitoring-header {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap;
    gap: 20px; margin-bottom: 35px;
}
.server-name-big {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px; font-weight: 900;
    color: var(--text); margin-bottom: 6px;
}
.server-ip-big { font-family: monospace; font-size: 13px; color: var(--dim); }
.server-status-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 50px;
    font-weight: 700; color: var(--ok); font-size: 13px;
}
.server-status-badge.offline {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.3);
    color: var(--accent);
}
.status-dot {
    width: 8px; height: 8px; background: var(--ok);
    border-radius: 50%; box-shadow: 0 0 8px var(--ok);
    animation: pulseG 1.6s infinite;
}
.server-status-badge.offline .status-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.monitoring-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px; margin-bottom: 30px;
}
.mon-stat {
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 22px 18px;
    text-align: center; transition: all .3s;
}
.mon-stat:hover {
    border-color: var(--accent); transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
}
.mon-stat-icon { font-size: 26px; margin-bottom: 10px; }
.mon-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px; font-weight: 900;
    color: var(--text); margin-bottom: 6px;
}
.mon-stat-label {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 700;
}
.progress-bar {
    height: 6px; background: var(--card-2);
    border-radius: 50px; overflow: hidden;
    margin-bottom: 30px; border: 1px solid var(--border);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 50px; transition: width 1s ease;
}
.monitoring-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.online-players {
    margin: 20px 0 30px;
    padding: 22px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.online-players-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px; letter-spacing: 1.5px;
    color: var(--dim); margin-bottom: 14px;
    text-transform: uppercase;
}
.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.player-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    transition: all .25s;
}
.player-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.player-chip .dot {
    width: 6px; height: 6px;
    background: var(--ok); border-radius: 50%;
    box-shadow: 0 0 6px var(--ok);
}
.player-chip.empty {
    color: var(--muted); border-style: dashed; font-style: italic;
}

.promo-section { padding: 60px 40px; max-width: 700px; margin: 0 auto; }
.promo-card {
    display: flex; gap: 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
}
.promo-card input {
    flex: 1; padding: 14px 20px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-family: 'Rajdhani', sans-serif; font-size: 15px;
    outline: none; letter-spacing: 1px;
}
.promo-card input:focus { border-color: var(--accent); }
.promo-card input::placeholder { color: var(--muted); }

.forum-tabs {
    display: flex; gap: 6px;
    background: var(--card); border: 1px solid var(--border);
    padding: 6px; border-radius: 12px;
    margin-bottom: 30px; overflow-x: auto;
}
.forum-tab {
    flex: 1; padding: 12px 20px;
    background: transparent; border: none;
    border-radius: 8px; color: var(--dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all .3s;
    white-space: nowrap; letter-spacing: .5px;
}
.forum-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.forum-tab.active { background: var(--accent); color: white; }

.forum-panel { display: none; animation: fadeIn .35s; }
.forum-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-container {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    min-height: 500px; display: flex; flex-direction: column;
}
.chat-header {
    padding: 18px 25px; background: var(--card-2);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.chat-online {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--dim); font-weight: 600;
}
.chat-user { font-size: 14px; font-weight: 700; }
.chat-online-users {
    padding: 10px 25px;
    border-bottom: 1px solid var(--border);
    background: var(--card-2);
    font-size: 12px;
    color: var(--dim);
    line-height: 1.5;
}
.chat-messages {
    flex: 1; min-height: 380px; max-height: 520px;
    overflow-y: auto; padding: 25px;
    display: flex; flex-direction: column; gap: 14px;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.chat-msg {
    display: flex; gap: 12px;
    padding: 12px 16px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 12px; animation: msgIn .3s;
    max-width: 80%;
}
.chat-msg.own {
    background: rgba(230, 57, 70, 0.08);
    border-color: rgba(230, 57, 70, 0.3);
    align-self: flex-end;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; background: var(--card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-name {
    font-size: 12px; font-weight: 800;
    color: var(--accent); margin-bottom: 4px;
}
.chat-msg-text {
    font-size: 15px; color: var(--text);
    line-height: 1.5; word-wrap: break-word;
}
.chat-msg-time { font-size: 11px; color: var(--muted); margin-top: 5px; }
.chat-form {
    display: flex; gap: 10px;
    padding: 18px 22px;
    background: var(--card-2);
    border-top: 1px solid var(--border);
    align-items: center;
}
.chat-form input {
    flex: 1; padding: 12px 20px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; outline: none;
    transition: all .3s;
}
.chat-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.chat-form button { padding: 12px 22px; }

.emoji-picker { position: relative; }
.emoji-btn {
    width: 46px; height: 46px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer;
    font-size: 22px; transition: all .25s;
}
.emoji-btn:hover { border-color: var(--accent); transform: scale(1.05); }
.emoji-panel {
    display: none; position: absolute; bottom: 60px; left: 0;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px; z-index: 50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.emoji-panel.active { display: grid; }
.emoji-panel span {
    cursor: pointer; padding: 6px 8px;
    font-size: 20px; border-radius: 6px;
    transition: all .15s;
}
.emoji-panel span:hover { background: var(--card-2); transform: scale(1.2); }

.apply-start {
    text-align: center;
    padding: 60px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.apply-icon { font-size: 60px; margin-bottom: 20px; }
.apply-start h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; color: var(--text);
    margin-bottom: 12px; letter-spacing: 1px;
}
.apply-start p {
    color: var(--dim); font-size: 15px;
    margin-bottom: 25px; line-height: 1.6;
    max-width: 500px; margin-left: auto; margin-right: auto;
}

.apps-list { display: flex; flex-direction: column; gap: 14px; }
.app-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 26px;
    transition: all .3s;
}
.app-item:hover { border-color: var(--accent); transform: translateX(4px); }
.app-item-header {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap;
    gap: 12px; margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.app-item-author { display: flex; align-items: center; gap: 12px; }
.app-item-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--card-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; overflow: hidden;
}
.app-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-item-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px; color: var(--text);
}
.app-item-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.app-item-status {
    padding: 5px 14px; border-radius: 50px;
    font-size: 12px; font-weight: 800;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--ok);
    letter-spacing: 1px;
}
.app-item-body {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-top: 8px;
}
.app-field {
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 15px;
}
.app-field.full { grid-column: 1 / -1; }
.app-field-label {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 4px; font-weight: 700;
}
.app-field-value {
    font-size: 14px; color: var(--text);
    line-height: 1.5; word-break: break-word;
    white-space: pre-wrap;
}
.apps-empty {
    text-align: center; padding: 60px 40px;
    background: var(--card); border: 1px dashed var(--border);
    border-radius: var(--radius); color: var(--dim);
}
.apps-empty-icon { font-size: 50px; margin-bottom: 15px; opacity: .5; }

.apply-modal {
    max-width: 720px !important;
    max-height: 90vh;
    overflow-y: auto;
}
.apply-modal-header {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}
.apply-warn-icon { font-size: 50px; margin-bottom: 12px; }
.apply-modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px; color: var(--accent);
    letter-spacing: 1px; margin-bottom: 8px;
}
.apply-warn-text { color: #ffb4b4; font-weight: 700; font-size: 14px; }
.apply-modal-body h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px; color: var(--text);
    letter-spacing: 1px; margin-bottom: 16px;
}
.requirements-list {
    list-style: none; counter-reset: req; margin-bottom: 20px;
}
.requirements-list li {
    counter-increment: req;
    position: relative;
    padding: 12px 14px 12px 50px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}
.requirements-list li::before {
    content: counter(req);
    position: absolute;
    left: 12px; top: 12px;
    width: 26px; height: 26px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.apply-note {
    padding: 14px 18px;
    background: rgba(230, 57, 70, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    color: #ffb4b4;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.6;
}
.apply-modal-footer {
    margin-top: 22px; padding-top: 22px;
    border-top: 1px solid var(--border);
}
.apply-checkbox {
    display: flex; align-items: flex-start;
    gap: 12px; cursor: pointer;
    margin-bottom: 16px;
    font-size: 14px; color: var(--text);
    user-select: none; line-height: 1.5;
}
.apply-checkbox input {
    width: 20px; height: 20px;
    accent-color: var(--accent);
    margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
#applyContinueBtn:disabled {
    opacity: 0.5; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
}
.apply-form-modal {
    max-width: 620px !important;
    max-height: 92vh; overflow-y: auto;
}
.apply-form-modal .form-group { margin-bottom: 16px; }
.apply-form-modal textarea,
.apply-form-modal select {
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; outline: none;
    width: 100%; transition: all .3s;
}
.apply-form-modal textarea { resize: vertical; }
.apply-form-modal textarea:focus,
.apply-form-modal select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.rules-category { margin-bottom: 50px; }
.rules-cat-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px; color: var(--text);
    letter-spacing: 1.5px; margin-bottom: 20px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}
.rules-list { display: flex; flex-direction: column; gap: 12px; }
.rule-item {
    display: flex; align-items: flex-start; gap: 18px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 22px;
    transition: all .3s;
}
.rule-item:hover { border-color: var(--accent); transform: translateX(6px); }
.rule-num {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 12px;
    flex-shrink: 0; color: var(--accent);
    padding: 0 4px;
}
.rule-body { flex: 1; }
.rule-body p {
    color: var(--text); font-size: 14px;
    line-height: 1.65; margin-bottom: 8px;
}
.rule-body p:last-child { margin-bottom: 0; }
.rule-body .rule-punish {
    color: #ffb4b4; font-weight: 700; font-size: 13px;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    display: inline-block; margin-top: 6px;
}
.rule-body .rule-note {
    color: var(--dim); font-size: 13px;
    font-style: italic; padding-left: 12px;
    border-left: 2px solid var(--border);
    margin-top: 8px;
}
.rule-item > span:last-child {
    color: var(--text); font-size: 14px;
    line-height: 1.65; flex: 1;
}

.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px 20px;
}
.auth-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 1050px; width: 100%;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    animation: authIn .5s ease;
}
@keyframes authIn {
    from { opacity: 0; transform: translateY(30px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-visual {
    padding: 60px 50px;
    background-image:
        linear-gradient(150deg, rgba(11,11,14,.75), rgba(30,30,36,.7)),
        url('hqdefault.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center;
    min-height: 500px;
}
.visual-content {
    text-align: center; color: white;
    position: relative; z-index: 2;
}
.visual-icon {
    font-size: 60px; margin-bottom: 18px;
    opacity: .9; animation: iconF 4s infinite;
}
@keyframes iconF {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.visual-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px; font-weight: 900;
    letter-spacing: 4px; margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}
.visual-content > p {
    font-size: 15px; line-height: 1.6;
    margin-bottom: 30px; color: #eaeaf0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.visual-features {
    list-style: none; text-align: left;
    display: inline-block;
    padding: 22px 26px;
    background: rgba(0,0,0,0.4);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}
.visual-features li {
    padding: 10px 0; font-size: 14px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.visual-features li + li {
    border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-box {
    padding: 50px 45px;
    background: var(--card-2);
    display: flex; flex-direction: column; justify-content: center;
}
.auth-tabs {
    display: flex; gap: 6px;
    background: var(--bg-2);
    padding: 6px; border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.auth-tab {
    flex: 1; padding: 12px 20px;
    background: transparent; border: none;
    border-radius: 8px; color: var(--dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700; font-size: 15px;
    cursor: pointer; transition: all .3s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--accent); color: white; }
.auth-form-page {
    display: none; flex-direction: column; gap: 16px;
    animation: fadeIn .4s;
}
.auth-form-page.active { display: flex; }
.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; font-weight: 900;
    color: var(--text); letter-spacing: 1px;
    margin-bottom: 5px;
}
.form-subtitle { color: var(--dim); font-size: 14px; margin-bottom: 15px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
    font-size: 12px; font-weight: 700;
    color: var(--dim); text-transform: uppercase;
    letter-spacing: 1.5px;
}
.form-group input,
.input-text,
.form-group select {
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 500;
    outline: none; transition: all .3s;
    width: 100%;
}
.form-group input:focus,
.input-text:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.form-group input::placeholder { color: var(--muted); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 16px;
    font-size: 16px; pointer-events: none;
    opacity: 0.7; z-index: 2;
}
.input-wrap input { padding-left: 46px !important; }
.checkbox {
    display: inline-flex; align-items: center;
    gap: 10px; cursor: pointer;
    font-size: 14px; color: var(--dim);
    font-weight: 500;
}
.checkbox input {
    width: 18px; height: 18px;
    accent-color: var(--accent); cursor: pointer;
}
.checkbox a { color: var(--accent); text-decoration: none; }
.form-footer {
    text-align: center; font-size: 14px;
    color: var(--dim); margin-top: 10px;
}
.form-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.form-footer a:hover { text-decoration: underline; }

.shop-hero {
    padding: 100px 40px 60px;
    max-width: 1200px; margin: 0 auto;
    text-align: center;
}
.shop-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900; letter-spacing: 2px;
    margin-bottom: 20px; color: var(--text);
}
.shop-hero-desc {
    color: var(--dim); font-size: 17px;
    max-width: 700px; margin: 0 auto; line-height: 1.6;
}
.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--text); letter-spacing: 2px;
    margin-bottom: 35px; padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    display: inline-block;
}
.privileges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}
.priv-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px 24px;
    text-align: center; position: relative;
    transition: all .35s ease; overflow: hidden;
    display: flex; flex-direction: column;
}
.priv-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.18);
}
.priv-card.featured { border-color: var(--accent); }
.priv-badge {
    position: absolute; top: 15px; right: 15px;
    padding: 5px 12px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 10px; font-weight: 900;
    letter-spacing: 1.5px; color: white;
}
.priv-icon {
    width: 74px; height: 74px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50%; font-size: 34px;
    transition: all .35s;
}
.priv-card:hover .priv-icon {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--accent);
}
.priv-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px; font-weight: 900;
    margin-bottom: 15px; color: var(--text);
}
.priv-price {
    display: flex; align-items: baseline;
    justify-content: center; gap: 6px;
    margin-bottom: 22px; flex-wrap: wrap;
}
.priv-price .price {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px; font-weight: 900;
    color: var(--accent);
}
.priv-price .period {
    font-size: 13px; color: var(--dim); font-weight: 600;
}
.priv-features {
    list-style: none; text-align: left;
    margin-bottom: 22px; flex-grow: 1;
    display: flex; flex-direction: column; gap: 8px;
}
.priv-features li {
    font-size: 14px; color: var(--dim);
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    transition: color .3s; font-weight: 500;
}
.priv-features li:last-child { border-bottom: none; }
.priv-card:hover .priv-features li { color: var(--text); }
.buy-btn { margin-top: auto; }

.modal {
    position: fixed; inset: 0;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 40px;
    max-width: 480px; width: 100%;
    position: relative;
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.buy-modal-wide { max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-close {
    position: absolute; top: 14px; right: 18px;
    background: transparent; border: none;
    color: var(--dim); font-size: 28px;
    cursor: pointer; transition: all .3s;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; color: var(--text);
}
.buy-header {
    display: flex; align-items: center; gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
}
.buy-icon-lg {
    width: 74px; height: 74px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50%; font-size: 34px; flex-shrink: 0;
}
.buy-price-lg {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px; font-weight: 900;
    color: var(--accent);
}
.buy-instruction h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px; letter-spacing: 1px;
    color: var(--accent); margin-bottom: 18px;
}
.instruction-step {
    display: flex; gap: 15px; align-items: flex-start;
    padding: 15px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 12px;
}
.instruction-step .step-num {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border-radius: 50%;
    font-weight: 900; font-size: 13px;
    flex-shrink: 0; color: white;
}
.instruction-step b { color: var(--text); }
.instruction-step p {
    margin-top: 6px; color: var(--dim);
    font-size: 13px; line-height: 1.5;
}
.card-copy {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px; padding: 10px 14px;
    background: rgba(230, 57, 70, 0.08);
    border: 1px dashed var(--accent);
    border-radius: 10px;
}
.card-copy code {
    font-family: 'Orbitron', monospace;
    font-size: 17px; font-weight: 700;
    color: var(--accent); letter-spacing: 2px;
    flex: 1;
}
.copy-btn-inline {
    background: transparent; border: none;
    font-size: 16px; cursor: pointer;
    transition: transform .2s;
}
.copy-btn-inline:hover { transform: scale(1.2); }
.card-holder { color: var(--text) !important; font-size: 14px; margin-top: 8px !important; }
.card-holder b { color: var(--accent); }
.example-comment {
    margin-top: 10px; padding: 10px 14px;
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid var(--ok);
    border-radius: 8px;
    font-size: 13px; color: var(--text);
}
.warning-box {
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    color: #fbbf24; font-weight: 700;
    font-size: 13px; text-align: center;
    margin-top: 15px;
}
.buy-actions { display: flex; gap: 12px; margin-top: 25px; }

.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--accent); border-radius: 12px;
    color: white; font-weight: 700;
    opacity: 0; transition: all .4s ease;
    z-index: 2000; pointer-events: none;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }
.toast.success { background: #16a34a; }

.footer {
    margin-top: 80px;
    padding: 50px 40px 25px;
    background: rgba(11, 11, 14, 0.6);
    border-top: 1px solid var(--border);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px; margin: 0 auto 40px;
}
.footer-col p {
    color: var(--dim); font-size: 14px;
    margin-top: 12px; line-height: 1.6;
}
.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px; margin-bottom: 15px;
    color: var(--text); letter-spacing: 1.5px;
    text-transform: uppercase;
}
.footer-col a {
    display: block; color: var(--dim);
    text-decoration: none; margin-bottom: 10px;
    font-size: 14px; transition: all .3s;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
    text-align: center; padding-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--muted); font-size: 13px;
}

.dashboard { padding: 40px; max-width: 1400px; margin: 0 auto; }
.dashboard-container {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 28px;
}
.dashboard-sidebar {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px;
    height: fit-content;
    position: sticky; top: 100px;
}
.profile-preview {
    text-align: center; padding: 28px 20px;
    border-radius: 14px; margin-bottom: 22px;
    background: var(--card-2);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
    transition: all .5s;
    background-size: cover;
    background-position: center;
}
.profile-preview.has-custom-banner::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}
.profile-preview > * { position: relative; z-index: 1; }
.profile-preview.banner-purple { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.profile-preview.banner-fire { background: linear-gradient(135deg, #7c2d12, #ef4444, #f59e0b); }
.profile-preview.banner-ocean { background: linear-gradient(135deg, #0c4a6e, #0ea5e9, #22d3ee); }
.profile-preview.banner-matrix { background: linear-gradient(135deg, #052e16, #22c55e, #065f46); }
.profile-preview.banner-gold { background: linear-gradient(135deg, #78350f, #f59e0b, #fbbf24); }
.profile-preview.banner-space { background: linear-gradient(135deg, #1e1b4b, #7c3aed, #db2777); }
.profile-preview.banner-default { background: var(--card-2); }
.profile-avatar {
    width: 84px; height: 84px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%; font-size: 42px;
    overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-nick {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px; font-weight: 900;
    margin-bottom: 8px; word-break: break-word;
    color: var(--text);
}
.profile-rank {
    display: inline-block; padding: 4px 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1px; color: var(--text);
}
.dashboard-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-link {
    padding: 12px 18px;
    color: var(--dim); text-decoration: none;
    border-radius: 10px;
    font-weight: 600; font-size: 14px;
    transition: all .25s;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.dash-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.dash-link.active { background: var(--accent); color: white; }
.dashboard-main {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
    min-height: 500px;
}
.dash-tab { display: none; }
.dash-tab.active { display: block; animation: fadeIn .4s ease; }
.dash-tab h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; margin-bottom: 25px;
    color: var(--text); letter-spacing: 1px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}
.stat-card {
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 18px;
    text-align: center; transition: all .3s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-icon { font-size: 28px; margin-bottom: 10px; }
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; font-weight: 900;
    color: var(--text); margin-bottom: 6px;
}
.stat-label {
    font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.customize-section { margin-bottom: 32px; }
.customize-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px; margin-bottom: 16px;
    color: var(--text); letter-spacing: 1.5px;
    text-transform: uppercase;
}
.avatar-options {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 15px;
}
.avatar-option {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50%; font-size: 26px;
    cursor: pointer; transition: all .25s;
    overflow: hidden;
}
.avatar-option img { width: 100%; height: 100%; object-fit: cover; }
.avatar-option:hover { border-color: var(--accent); transform: scale(1.08); }
.avatar-option.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.avatar-upload-row {
    display: flex; gap: 12px;
    flex-wrap: wrap; align-items: center;
    margin-top: 15px;
}
.file-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.nick-styles {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin: 14px 0;
}
.nick-style {
    padding: 8px 18px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer; font-weight: 600;
    transition: all .25s; font-size: 13px;
    color: var(--dim);
}
.nick-style:hover { border-color: var(--accent); color: var(--text); }
.nick-style.active {
    border-color: var(--accent);
    background: var(--accent); color: white;
}
.nick-preview {
    padding: 22px; background: var(--card-2);
    border-radius: 14px; text-align: center;
    margin-top: 15px; border: 1px dashed var(--border);
}
.animated-nick {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 20px;
}
.animated-nick.plain { color: var(--text); }
.animated-nick.glow {
    color: #c084fc;
    text-shadow: 0 0 10px #c084fc, 0 0 20px #8b5cf6;
}
.animated-nick.rainbow {
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s linear infinite;
}
@keyframes rainbow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}
.animated-nick.pulse {
    color: #c084fc;
    animation: nickPulse 1.5s ease-in-out infinite;
}
@keyframes nickPulse {
    0%, 100% { text-shadow: 0 0 5px #8b5cf6; transform: scale(1); }
    50% { text-shadow: 0 0 25px #c084fc; transform: scale(1.05); }
}
.animated-nick.neon {
    color: #22d3ee;
    text-shadow: 0 0 5px #22d3ee, 0 0 20px #0ea5e9;
}
.animated-nick.fire {
    background: linear-gradient(0deg, #ef4444, #f59e0b, #fbbf24, #ef4444);
    background-size: 100% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fire 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
}
@keyframes fire {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 100%; }
}
.animated-nick.ice {
    background: linear-gradient(0deg, #22d3ee, #a5f3fc, #22d3ee);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ice 3s ease-in-out infinite;
}
@keyframes ice {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 100%; }
}
.banner-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}
.banner-option {
    height: 60px; border-radius: 12px;
    cursor: pointer; border: 2px solid transparent;
    transition: all .25s; position: relative;
}
.banner-option:hover { transform: scale(1.04); }
.banner-option.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.banner-option.active::after {
    content: '✓';
    position: absolute; top: 4px; right: 8px;
    color: white; font-weight: 900; font-size: 16px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}
.banner-purple { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.banner-fire { background: linear-gradient(135deg, #7c2d12, #ef4444, #f59e0b); }
.banner-ocean { background: linear-gradient(135deg, #0c4a6e, #0ea5e9, #22d3ee); }
.banner-matrix { background: linear-gradient(135deg, #052e16, #22c55e, #065f46); }
.banner-gold { background: linear-gradient(135deg, #78350f, #f59e0b, #fbbf24); }
.banner-space { background: linear-gradient(135deg, #1e1b4b, #7c3aed, #db2777); }
.custom-banner-preview {
    margin-top: 15px;
    height: 90px;
    border-radius: 12px;
    background: var(--card-2);
    border: 1px dashed var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; font-weight: 600;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.custom-banner-preview.has-image {
    border-style: solid;
    border-color: var(--accent);
}
.custom-banner-preview.has-image span { display: none; }
.my-priv-card {
    display: flex; align-items: center; gap: 20px;
    padding: 22px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 14px; margin-bottom: 18px;
    flex-wrap: wrap;
}
.my-priv-icon { font-size: 42px; }
.my-priv-info { flex: 1; min-width: 200px; }
.my-priv-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px; color: var(--text); margin-bottom: 6px;
}
.my-priv-info p { color: var(--dim); font-size: 13px; margin-bottom: 4px; }
.priv-time-left { color: var(--ok) !important; font-weight: 700; }
.upgrade-card {
    padding: 22px; background: var(--card-2);
    border: 1px dashed var(--border);
    border-radius: 14px;
}
.upgrade-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px; color: var(--text);
    margin-bottom: 10px;
}
.upgrade-card p { color: var(--dim); font-size: 14px; margin-bottom: 15px; }
.settings-group { margin-bottom: 18px; }
.settings-group label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--dim); text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 8px;
}
#purchaseHistory .purchase-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 18px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 10px;
}
.purchase-icon { font-size: 26px; }
.purchase-info { flex: 1; }
.purchase-name { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.purchase-date { font-size: 12px; color: var(--muted); }
.purchase-price {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; color: var(--accent); font-size: 15px;
}
.empty {
    text-align: center; padding: 30px;
    color: var(--dim); font-style: italic;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.user-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px;
    transition: all .25s;
}
.user-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.user-card .avatar {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 50%; font-size: 24px; overflow: hidden;
}
.user-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card .info .nick {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--text);
}
.user-card .info .rank { font-size: 12px; color: var(--dim); margin-top: 4px; }

/* АДМИН-ПАНЕЛЬ */
.admin-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px; color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.admin-sub {
    font-size: 14px; color: var(--dim);
    margin-bottom: 25px;
}
.admin-users { display: flex; flex-direction: column; gap: 12px; }
.admin-user-row {
    display: flex; align-items: center; gap: 15px;
    padding: 14px 18px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-wrap: wrap;
    transition: all .25s;
}
.admin-user-row:hover { border-color: var(--accent); }
.admin-user-avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 50%; font-size: 22px; overflow: hidden;
}
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { flex: 1; min-width: 180px; }
.admin-user-nick {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text); margin-bottom: 4px;
}
.admin-user-meta { font-size: 12px; color: var(--dim); }
.admin-user-meta b { color: var(--text); }
.admin-user-actions {
    display: flex; gap: 8px; align-items: center;
    flex-wrap: wrap;
}
.admin-select {
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer; outline: none;
    transition: all .2s;
}
.admin-select:focus { border-color: var(--accent); }
.admin-select:disabled { opacity: .5; cursor: not-allowed; }
.admin-checkbox {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 18px;
    user-select: none;
}
.admin-checkbox input {
    width: 18px; height: 18px;
    accent-color: var(--accent); cursor: pointer;
}
.admin-checkbox input:disabled { opacity: .5; cursor: not-allowed; }
.admin-save-btn, .admin-del-btn {
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px; cursor: pointer;
    transition: all .25s;
}
.admin-save-btn:hover { border-color: var(--ok); background: rgba(34, 197, 94, 0.08); }
.admin-del-btn:hover { border-color: var(--accent); background: rgba(230, 57, 70, 0.08); }
.admin-save-btn:disabled, .admin-del-btn:disabled {
    opacity: .4; cursor: not-allowed;
}
.admin-save-btn:disabled:hover, .admin-del-btn:disabled:hover {
    border-color: var(--border); background: var(--card);
}

@media (max-width: 900px) {
    .header { padding: 14px 20px; }
    .nav { order: 3; width: 100%; justify-content: center; }
    .hero { padding: 90px 20px 60px; }
    .monitoring-section, .forum-section, .rules-section,
    .shop-section { padding: 50px 20px; }
    .auth-wrapper { grid-template-columns: 1fr; max-width: 500px; }
    .auth-visual { padding: 40px 30px; min-height: 320px; }
    .auth-box { padding: 36px 28px; }
    .dashboard { padding: 20px; }
    .dashboard-container { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .dashboard-main { padding: 22px 18px; }
    .app-item-body { grid-template-columns: 1fr; }
    .forum-tab { font-size: 12px; padding: 10px 12px; }
}

@media (max-width: 600px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .monitoring-actions { flex-direction: column; }
    .monitoring-actions .btn { width: 100%; justify-content: center; }
    .chat-messages { padding: 18px; }
    .chat-form { padding: 14px; flex-direction: column; }
    .chat-form button { width: 100%; justify-content: center; }
    .rule-item { padding: 14px 16px; gap: 12px; }
    .privileges-grid { grid-template-columns: 1fr; }
    .priv-price .price { font-size: 26px; }
    .priv-icon { width: 64px; height: 64px; font-size: 30px; }
    .priv-name { font-size: 18px; }
    .buy-actions { flex-direction: column; }
    .app-item-header { flex-direction: column; align-items: flex-start; }
    .promo-card { flex-direction: column; }
}