﻿/* ============================================
   ByteBunny Customer Panel v5 — Styles
   Cosmic Purple/Pink/Cyan Palette
   ============================================ */
:root {
    --cp-bg: #0a0005;
    --cp-surface: #0f0409;
    --cp-card: #180a10;
    --cp-card-hover: #221218;
    --cp-border: rgba(220, 38, 38, 0.12);
    --cp-glass: rgba(255, 255, 255, 0.04);
    --cp-glass-border: rgba(255, 255, 255, 0.08);
    --cp-text: #f5f0f0;
    --cp-text-muted: #b8a0a5;
    --cp-text-dim: #785a60;
    --cp-primary: #dc2626;
    --cp-secondary: #9f1239;
    --cp-accent: #f43f5e;
    --cp-gradient: linear-gradient(135deg, #dc2626, #9f1239);
    --cp-blue: #3b82f6;
    --cp-green: #22c55e;
    --cp-orange: #f59e0b;
    --cp-red: #ef4444;
    --cp-purple: #ef4444;
    --cp-sidebar-w: 260px;
    --cp-topbar-h: 64px;
    --cp-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--cp-bg);
    color: var(--cp-text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--cp-purple); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(220, 38, 38, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(220, 38, 38, 0.4); }

/* ===== Auth Overlay ===== */
.auth-overlay {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: var(--cp-bg);
    padding: 1.5rem;
}
.auth-bg-elements { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-bg-circle {
    position: absolute; border-radius: 50%;
    background: var(--cp-primary); opacity: 0.06;
    animation: authFloat 20s ease-in-out infinite;
}
.auth-bg-circle:nth-child(1) { width: 600px; height: 600px; top: -200px; left: -200px; }
.auth-bg-circle:nth-child(2) { width: 400px; height: 400px; bottom: -100px; right: -100px; background: var(--cp-secondary); animation-delay: -7s; }
.auth-bg-circle:nth-child(3) { width: 300px; height: 300px; top: 50%; left: 50%; background: var(--cp-accent); animation-delay: -14s; }
@keyframes authFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.auth-card {
    position: relative; z-index: 1;
    background: var(--cp-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    padding: 2.5rem; width: 420px; max-width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(220,38,38,.08);
}
.auth-card-header { text-align: center; margin-bottom: 1.5rem; }
.auth-card-header img { width: 56px; border-radius: 14px; margin-bottom: 0.75rem; }
.auth-card-header h2 { font-size: 1.5rem; font-weight: 700; }
.auth-card-header p { color: var(--cp-text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

.auth-field { margin-bottom: 1rem; }
.auth-field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--cp-text-muted); margin-bottom: 0.3rem; }
.auth-field input {
    width: 100%; background: var(--cp-card);
    border: 1px solid var(--cp-glass-border); border-radius: 10px;
    color: var(--cp-text); padding: 0.6rem 0.85rem;
    font-size: 0.9rem; outline: none; transition: border-color .25s, box-shadow .25s;
}
.auth-field input:focus { border-color: rgba(220,38,38,.4); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.auth-error { color: var(--cp-red); font-size: 0.82rem; margin-bottom: 0.5rem; min-height: 1.2em; }

.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.7rem; background: var(--cp-gradient);
    color: #fff; border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(220,38,38,.35); }
.auth-btn.loading { opacity: .65; pointer-events: none; }

.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--cp-text-muted); }

/* Discord Auth */
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--cp-text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cp-glass-border); }
.discord-btn {
    background: #5865F2 !important; color: #fff !important;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.7rem; border: none; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.discord-btn:hover { background: #4752c4 !important; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(88,101,242,.35); }
.discord-btn i { font-size: 1.1rem; }

.discord-linked-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(88,101,242,.08); border: 1px solid rgba(88,101,242,.2);
    border-radius: 10px; padding: 0.75rem 1rem;
}
.discord-linked-avatar { width: 40px; height: 40px; border-radius: 50%; }
.discord-linked-details { display: flex; flex-direction: column; gap: 0.15rem; }
.discord-linked-details strong { font-size: 0.9rem; }
.discord-linked-badge { font-size: 0.75rem; color: #5865F2; display: flex; align-items: center; gap: 0.3rem; }

/* ===== Achievements ===== */
.achievements-summary { display: flex; gap: 1.5rem; align-items: stretch; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ach-level-card {
    display: flex; align-items: center; gap: 1.25rem;
    background: var(--cp-glass); backdrop-filter: blur(20px);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    padding: 1.5rem 2rem; min-width: 280px; flex-shrink: 0;
}
.ach-level-ring { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.ach-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ach-ring-svg circle:last-of-type { transition: stroke-dashoffset .8s ease; }
.ach-level-number {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 1.75rem; font-weight: 800;
    background: var(--cp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ach-level-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.ach-level-info h3 span { background: var(--cp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ach-xp-bar { width: 140px; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.ach-xp-fill { height: 100%; background: var(--cp-gradient); border-radius: 4px; transition: width .6s ease; }
.ach-xp-label { font-size: 0.72rem; color: var(--cp-text-muted); margin-top: 0.3rem; display: block; }
.ach-stats { flex: 1; min-width: 0; }

.ach-filters { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.ach-filter {
    padding: 0.4rem 0.85rem; border-radius: 8px; border: 1px solid var(--cp-glass-border);
    background: var(--cp-glass); color: var(--cp-text-muted); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all .2s;
}
.ach-filter:hover { border-color: rgba(220,38,38,.3); color: var(--cp-text); }
.ach-filter.active { background: var(--cp-gradient); color: #fff; border-color: transparent; }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ach-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--cp-card); border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius); padding: 1.15rem; transition: all .3s;
    position: relative; overflow: hidden;
}
.ach-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--cp-glass-border); transition: background .3s;
}
.ach-card.earned::before { background: var(--cp-gradient); }
.ach-card.locked { opacity: 0.55; }
.ach-card.locked .ach-card-icon { filter: grayscale(1); }
.ach-card.earned:hover { border-color: rgba(220,38,38,.25); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.3); }

.ach-card.rarity-common::before    { background: linear-gradient(90deg, #9ca3af, #6b7280) !important; }
.ach-card.rarity-uncommon::before  { background: linear-gradient(90deg, #22c55e, #16a34a) !important; }
.ach-card.rarity-rare::before      { background: linear-gradient(90deg, #3b82f6, #2563eb) !important; }
.ach-card.rarity-epic::before      { background: linear-gradient(90deg, #ef4444, #dc2626) !important; }
.ach-card.rarity-legendary::before { background: linear-gradient(90deg, #f59e0b, #f97316) !important; }
.ach-card.locked::before { opacity: 0.35; }

.ach-card-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    background: rgba(220,38,38,.12); color: var(--cp-primary);
}
.ach-card.rarity-uncommon .ach-card-icon { background: rgba(34,197,94,.12); color: var(--cp-green); }
.ach-card.rarity-rare .ach-card-icon     { background: rgba(59,130,246,.12); color: var(--cp-blue); }
.ach-card.rarity-epic .ach-card-icon     { background: rgba(239,68,68,.12); color: var(--cp-purple); }
.ach-card.rarity-legendary .ach-card-icon { background: rgba(245,158,11,.12); color: var(--cp-orange); }

.ach-card-body { flex: 1; min-width: 0; }
.ach-card-body h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.ach-card-body p { font-size: 0.78rem; color: var(--cp-text-muted); margin-bottom: 0.5rem; line-height: 1.35; }
.ach-card-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ach-rarity {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem; border-radius: 4px;
}
.ach-rarity.common    { background: rgba(156,163,175,.15); color: #9ca3af; }
.ach-rarity.uncommon  { background: rgba(34,197,94,.15); color: #22c55e; }
.ach-rarity.rare      { background: rgba(59,130,246,.15); color: #3b82f6; }
.ach-rarity.epic      { background: rgba(239,68,68,.15); color: #ef4444; }
.ach-rarity.legendary { background: rgba(245,158,11,.15); color: #f59e0b; }
.ach-xp-badge { font-size: 0.7rem; font-weight: 600; color: var(--cp-accent); }
.ach-earned-date { font-size: 0.7rem; color: var(--cp-green); display: flex; align-items: center; gap: 0.25rem; }
.ach-locked-label { font-size: 0.7rem; color: var(--cp-text-dim); display: flex; align-items: center; gap: 0.25rem; }

/* Achievement toast */
.achievement-toast {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--cp-card); border: 1px solid rgba(220,38,38,.3);
    border-radius: 12px; padding: 0.85rem 1rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(220,38,38,.15);
    animation: achToastGlow 2s ease-in-out infinite;
}
.achievement-toast.rarity-legendary { border-color: rgba(245,158,11,.4); box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(245,158,11,.2); }
.achievement-toast.rarity-epic { border-color: rgba(239,68,68,.4); box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 30px rgba(239,68,68,.2); }
@keyframes achToastGlow { 0%,100% { box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(220,38,38,.1); } 50% { box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 35px rgba(220,38,38,.25); } }
.ach-toast-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--cp-gradient); color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.ach-toast-body { display: flex; flex-direction: column; }
.ach-toast-body strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cp-secondary); }
.ach-toast-body span { font-size: 0.88rem; font-weight: 600; }
.ach-toast-xp { font-size: 0.78rem; font-weight: 700; color: var(--cp-accent); margin-left: auto; white-space: nowrap; }

@media (max-width: 768px) {
    .achievements-summary { flex-direction: column; }
    .ach-level-card { min-width: auto; }
    .ach-grid { grid-template-columns: 1fr; }
}

/* ===== Panel Wrapper ===== */
.panel-wrapper {
    display: grid;
    grid-template-columns: var(--cp-sidebar-w) 1fr;
    grid-template-rows: var(--cp-topbar-h) 1fr;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(7, 11, 36, 0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cp-border);
    z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.topbar-left button { display: none; background: none; border: none; color: var(--cp-text); font-size: 1.2rem; }
.topbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--cp-text); }
.topbar-logo { width: 30px; height: 30px; border-radius: 8px; }
.topbar-brand-text { font-weight: 700; font-size: 1rem; }
.topbar-brand-text span { background: var(--cp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.topbar-icon-btn {
    background: none; border: none; color: var(--cp-text-muted);
    font-size: 1rem; padding: 0.45rem; border-radius: 8px;
    transition: color .2s, background .2s; position: relative;
}
.topbar-icon-btn:hover { color: var(--cp-text); background: rgba(220,38,38,.1); }
.notif-badge {
    position: absolute; top: 0; right: -2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--cp-red); color: #fff;
    border-radius: 10px; font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--cp-surface);
}
.topbar-user {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 500;
}
.topbar-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--cp-gradient);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; z-index: 18;
    background: rgba(3, 0, 20, 0.5); backdrop-filter: blur(4px);
}
.sidebar-overlay.open { display: block; }

/* Sidebar */
.sidebar {
    background: var(--cp-surface);
    border-right: 1px solid var(--cp-border);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.sidebar-profile {
    text-align: center; padding: 1.75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--cp-border);
}
.sidebar-avatar {
    width: 56px; height: 56px; border-radius: 18px;
    background: var(--cp-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: #fff;
    margin: 0 auto 0.5rem;
    box-shadow: 0 6px 20px rgba(220,38,38,.25);
}
.sidebar-profile h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.sidebar-membership {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 20px;
    background: rgba(220,38,38,.15); color: var(--cp-purple);
}

.sidebar-nav {
    flex: 1; padding: 0.75rem 0.85rem;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.nav-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--cp-text-dim);
    padding: 0.85rem 0.85rem 0.3rem; margin-top: 0.2rem;
}
.nav-label:first-child { margin-top: 0; }

.sidebar-nav a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.85rem; border-radius: 10px;
    color: var(--cp-text-muted); font-weight: 500; font-size: 0.85rem;
    transition: all .25s; position: relative;
    border: 1px solid transparent; text-decoration: none;
}
.sidebar-nav a i { width: 18px; text-align: center; font-size: 0.85rem; }
.sidebar-nav a:hover { color: var(--cp-text); background: rgba(220,38,38,.08); }
.sidebar-nav a.active {
    color: #fff; background: rgba(220,38,38,.12);
    border-color: rgba(220,38,38,.25);
}
.sidebar-nav a.active::before {
    content: ''; position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--cp-gradient);
    border-radius: 0 3px 3px 0;
}
.sidebar-bottom {
    padding: 0.85rem 1.1rem; border-top: 1px solid var(--cp-border);
}
.sidebar-bottom a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.65rem; border-radius: 8px;
    color: var(--cp-text-muted); font-size: 0.85rem; font-weight: 500;
    transition: color .2s, background .2s; text-decoration: none;
}
.sidebar-bottom a:hover { color: var(--cp-red); background: rgba(239,68,68,.08); }

/* Main Content */
.panel-content {
    padding: 1.75rem; overflow-y: auto;
    max-height: calc(100vh - var(--cp-topbar-h));
    background: radial-gradient(ellipse at 30% 0%, rgba(220,38,38,.05) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 100%, rgba(159,18,57,.04) 0%, transparent 50%);
}

.panel-section { display: none; animation: fadeSection .4s ease; }
.panel-section.active { display: block; }
@keyframes fadeSection { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Section Header */
.section-header {
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.65rem; font-weight: 700; }
.section-header p { color: var(--cp-text-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.section-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem;
}
.stat-card {
    background: var(--cp-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    padding: 1.15rem 1.25rem; display: flex; align-items: center; gap: 1rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat-card:hover {
    transform: translateY(-3px); border-color: rgba(220,38,38,.2);
    box-shadow: 0 8px 30px rgba(220,38,38,.08);
}
.stat-card-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.stat-card-icon.blue   { background: rgba(59,130,246,.12); color: var(--cp-blue); }
.stat-card-icon.green  { background: rgba(34,197,94,.12); color: var(--cp-green); }
.stat-card-icon.orange { background: rgba(245,158,11,.12); color: var(--cp-orange); }
.stat-card-icon.purple { background: rgba(239,68,68,.12); color: var(--cp-purple); }
.stat-card-value { font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.stat-card-label { font-size: 0.75rem; color: var(--cp-text-muted); margin-top: 2px; }

/* ===== Data Cards ===== */
.data-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.overview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem;
}
.data-card {
    background: var(--cp-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    overflow: hidden; transition: border-color .25s;
}
.data-card:hover { border-color: rgba(220,38,38,.15); }
.data-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.04);
}
.data-card-header h3 { font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.data-card-header h3 i { color: var(--cp-secondary); }

.data-badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: capitalize;
}
.data-badge.active  { background: rgba(34,197,94,.12); color: var(--cp-green); }
.data-badge.pending  { background: rgba(245,158,11,.12); color: var(--cp-orange); }
.data-badge.expired  { background: rgba(156,163,194,.1); color: var(--cp-text-muted); }

/* License Card */
.license-card .license-details { padding: 0 1.25rem 1.25rem; }
.license-key { font-size: 0.8rem; opacity: 0.45; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.license-meta {
    display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--cp-text-muted); margin-bottom: 0.75rem;
}
.license-meta i { margin-right: 0.25rem; font-size: 0.75rem; }
.license-bar { background: rgba(255,255,255,.06); border-radius: 6px; height: 6px; overflow: hidden; }
.license-bar-fill { height: 100%; border-radius: 6px; transition: width .6s ease; }

/* Download Card */
.download-card { text-align: center; padding: 1.5rem 1.25rem; }
.download-icon { font-size: 2.2rem; color: var(--cp-primary); margin-bottom: 0.5rem; }
.download-card h3 { margin-bottom: 0.5rem; }
.dl-desc { font-size: 0.85rem; opacity: .6; margin-bottom: 1rem; }
.dl-meta { display: flex; gap: 0.75rem; justify-content: center; font-size: 0.8rem; opacity: .5; margin-bottom: 1rem; }

/* ===== Quick Actions ===== */
.quick-actions {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem; padding: 1rem 1.25rem;
}
.qa-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 1rem 0.5rem; background: var(--cp-card);
    border: 1px solid var(--cp-glass-border); border-radius: 12px;
    color: var(--cp-text); font-size: 0.78rem; font-weight: 500;
    text-decoration: none; transition: all .25s;
}
.qa-btn i { font-size: 1.1rem; color: var(--cp-purple); }
.qa-btn:hover {
    transform: translateY(-3px); border-color: rgba(220,38,38,.25);
    box-shadow: 0 6px 20px rgba(220,38,38,.1);
}

/* ===== Buttons ===== */
.btn-cp-primary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--cp-gradient); color: #fff; border: none; border-radius: 10px;
    padding: 0.55rem 1.1rem; font-weight: 600; font-size: 0.85rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-cp-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(220,38,38,.35); }

.btn-cp-glass {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--cp-glass); color: var(--cp-text);
    border: 1px solid var(--cp-glass-border); border-radius: 10px;
    padding: 0.55rem 1.1rem; font-size: 0.85rem; font-weight: 500;
    transition: background .2s, border-color .2s;
}
.btn-cp-glass:hover { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.3); }
.btn-cp-glass:disabled { opacity: .45; cursor: default; }

.btn-danger {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--cp-red); color: #fff; border: none; border-radius: 8px;
    padding: 0.4rem 0.9rem; font-size: 0.8rem; font-weight: 600;
    transition: opacity .2s;
}
.btn-danger:hover { opacity: .85; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-icon { background: none; border: none; color: var(--cp-text-muted); padding: 0.3rem; font-size: 0.85rem; transition: color .2s; }
.btn-icon:hover { color: var(--cp-text); }

/* ===== Tables ===== */
.panel-table-wrap { overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.panel-table th {
    text-align: left; padding: 0.75rem 0.85rem;
    font-weight: 600; color: var(--cp-text-muted);
    border-bottom: 1px solid var(--cp-border);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.panel-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.panel-table tbody tr { transition: background .2s; }
.panel-table tbody tr:hover { background: rgba(220,38,38,.04); }
.table-empty { text-align: center; padding: 40px !important; color: var(--cp-text-muted); }

/* ===== Activity List ===== */
.activity-list { list-style: none; padding: 0.75rem 1.25rem; }
.activity-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.activity-item:last-child { border-bottom: none; }
.act-icon { color: var(--cp-accent); font-size: 0.7rem; padding-top: 0.25rem; }
.act-body h4 { font-size: 0.85rem; font-weight: 500; }
.act-body p { font-size: 0.75rem; color: var(--cp-text-muted); }

.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem; text-align: center; color: var(--cp-text-dim);
}
.empty-state i { font-size: 2rem; margin-bottom: 0.75rem; opacity: .4; }
.empty-state p { font-size: 0.9rem; }

/* ===== Search ===== */
.search-box-cp {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--cp-card); border: 1px solid var(--cp-glass-border);
    border-radius: 10px; padding: 0 0.85rem; transition: border-color .2s;
}
.search-box-cp:focus-within { border-color: rgba(220,38,38,.35); }
.search-box-cp i { color: var(--cp-text-dim); font-size: 0.85rem; }
.search-box-cp input {
    background: transparent; border: none; outline: none;
    color: var(--cp-text); font-size: 0.85rem; padding: 0.5rem 0; width: 160px;
}
.search-box-cp input::placeholder { color: var(--cp-text-dim); }

.filter-select {
    background: var(--cp-card); border: 1px solid var(--cp-glass-border);
    border-radius: 10px; color: var(--cp-text);
    padding: 0.45rem 0.75rem; font-size: 0.82rem; outline: none;
}
.filter-select option { background: var(--cp-surface); }

/* ===== Notifications ===== */
.notif-filters {
    display: flex; gap: 0.35rem; margin-bottom: 1rem; overflow-x: auto;
}
.notif-filter {
    padding: 0.4rem 0.85rem; border-radius: 20px;
    background: var(--cp-glass); border: 1px solid var(--cp-glass-border);
    color: var(--cp-text-muted); font-size: 0.8rem; font-weight: 500;
    white-space: nowrap; transition: all .2s;
}
.notif-filter:hover { color: var(--cp-text); border-color: rgba(220,38,38,.25); }
.notif-filter.active { background: rgba(220,38,38,.15); color: var(--cp-text); border-color: rgba(220,38,38,.3); }

.notif-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 1rem 1.15rem; background: var(--cp-glass);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    transition: border-color .2s;
}
.notif-item.unread { border-left: 3px solid var(--cp-purple); }
.notif-item.read { opacity: .65; }
.notif-item:hover { border-color: rgba(220,38,38,.2); }

.notif-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.notif-icon.blue   { background: rgba(59,130,246,.12); color: var(--cp-blue); }
.notif-icon.green  { background: rgba(34,197,94,.12); color: var(--cp-green); }
.notif-icon.orange { background: rgba(245,158,11,.12); color: var(--cp-orange); }
.notif-icon.purple { background: rgba(239,68,68,.12); color: var(--cp-purple); }

.notif-body { flex: 1; }
.notif-body strong { font-size: 0.9rem; display: block; margin-bottom: 0.15rem; }
.notif-body p { font-size: 0.82rem; color: var(--cp-text-muted); }
.notif-time { font-size: 0.72rem; color: var(--cp-text-dim); margin-top: 0.3rem; display: block; }
.notif-read-btn {
    background: none; border: none; color: var(--cp-text-dim);
    font-size: 0.85rem; padding: 0.3rem; border-radius: 6px; transition: color .2s;
}
.notif-read-btn:hover { color: var(--cp-green); }

/* ===== API Keys ===== */
.api-info-banner {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding: 1rem 1.25rem; background: rgba(59,130,246,.06);
    border: 1px solid rgba(59,130,246,.12); border-radius: var(--cp-radius);
    margin-bottom: 1.25rem;
}
.api-info-banner > i { color: var(--cp-blue); font-size: 1.1rem; margin-top: 0.15rem; }
.api-info-banner strong { display: block; margin-bottom: 0.15rem; }
.api-info-banner p { font-size: 0.85rem; color: var(--cp-text-muted); }

.api-keys-list { display: flex; flex-direction: column; gap: 0.75rem; }
.api-key-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; background: var(--cp-glass);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
}
.api-key-info { flex: 1; }
.api-key-info strong { display: block; margin-bottom: 0.35rem; }
.api-key-value {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}
.api-key-value code {
    font-size: 0.8rem; color: var(--cp-text-muted);
    padding: 0.3rem 0.6rem; background: var(--cp-card);
    border-radius: 6px; word-break: break-all;
}
.api-key-meta { font-size: 0.75rem; color: var(--cp-text-dim); margin-top: 0.35rem; }

.api-ref { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.api-endpoint {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0.85rem; background: var(--cp-card);
    border-radius: 8px; font-size: 0.82rem;
}
.api-method {
    display: inline-block; padding: 0.15rem 0.4rem;
    border-radius: 4px; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; font-family: 'JetBrains Mono', monospace;
}
.api-method.get { background: rgba(34,197,94,.12); color: var(--cp-green); }
.api-method.post { background: rgba(59,130,246,.12); color: var(--cp-blue); }
.api-method.put { background: rgba(245,158,11,.12); color: var(--cp-orange); }
.api-endpoint code { font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; color: var(--cp-text); flex: 1; }
.api-desc { color: var(--cp-text-muted); font-size: 0.78rem; }

/* ===== Referrals ===== */
.referral-link-box {
    display: flex; gap: 0.5rem; padding: 1rem 1.25rem;
}
.referral-input {
    flex: 1; background: var(--cp-card); border: 1px solid var(--cp-glass-border);
    border-radius: 10px; color: var(--cp-text); padding: 0.55rem 0.85rem;
    font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; outline: none;
}
.referral-share {
    display: flex; align-items: center; gap: 0.5rem; padding: 0 1.25rem 1rem;
    font-size: 0.82rem; color: var(--cp-text-muted);
}
.share-btn {
    width: 36px; height: 36px; border-radius: 10px; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.discord { background: rgba(88,101,242,.2); color: #5865F2; }
.share-btn.discord:hover { box-shadow: 0 4px 12px rgba(88,101,242,.3); }
.share-btn.twitter { background: rgba(29,155,240,.2); color: #1DA1F2; }
.share-btn.twitter:hover { box-shadow: 0 4px 12px rgba(29,155,240,.3); }
.share-btn.email { background: rgba(34,197,94,.15); color: var(--cp-green); }
.share-btn.email:hover { box-shadow: 0 4px 12px rgba(34,197,94,.3); }

.tier-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem; padding: 1rem 1.25rem;
}
.tier-card {
    text-align: center; padding: 1.25rem 0.75rem;
    background: var(--cp-card); border: 1px solid var(--cp-glass-border);
    border-radius: var(--cp-radius); transition: border-color .3s, transform .3s;
}
.tier-card:hover { border-color: rgba(220,38,38,.25); transform: translateY(-3px); }
.tier-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 0.5rem;
}
.tier-icon.bronze  { background: rgba(180,130,80,.15); color: #cd7f32; }
.tier-icon.silver  { background: rgba(192,192,192,.15); color: #c0c0c0; }
.tier-icon.gold    { background: rgba(255,215,0,.15); color: #ffd700; }
.tier-icon.diamond { background: rgba(244,63,94,.15); color: var(--cp-accent); }
.tier-card h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.tier-card p { font-size: 0.75rem; color: var(--cp-text-muted); margin-bottom: 0.5rem; }
.tier-reward {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    padding: 0.15rem 0.5rem; border-radius: 10px;
    background: rgba(220,38,38,.1); color: var(--cp-purple);
}

/* ===== Usage Stats ===== */
.usage-chart { padding: 1rem 1.25rem; }
.usage-bars {
    display: flex; align-items: flex-end; gap: 12px; height: 140px;
}
.usage-bar-col {
    flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%;
    justify-content: flex-end; gap: 0.4rem;
}
.usage-bar {
    width: 100%; background: var(--cp-gradient); border-radius: 6px 6px 0 0;
    transition: height .6s ease; min-height: 4px;
}
.usage-bar-col span { font-size: 0.7rem; color: var(--cp-text-dim); }

.endpoint-list { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.endpoint-item { display: flex; align-items: center; gap: 0.6rem; }
.endpoint-name { font-size: 0.82rem; min-width: 120px; display: flex; align-items: center; gap: 0.4rem; }
.endpoint-bar { flex: 1; height: 8px; background: var(--cp-card); border-radius: 4px; overflow: hidden; }
.endpoint-fill { height: 100%; background: var(--cp-gradient); border-radius: 4px; transition: width .6s ease; }
.endpoint-count { font-size: 0.8rem; font-weight: 600; min-width: 50px; text-align: right; }

/* ===== Support ===== */
.support-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.support-faq { padding: 1.25rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.04); }
.faq-item:last-child { border-bottom: none; }
.faq-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.7rem 0; background: none; border: none;
    color: var(--cp-text); font-size: 0.85rem; font-weight: 500;
    text-align: left;
}
.faq-toggle i { color: var(--cp-text-dim); font-size: 0.7rem; transition: transform .3s; }
.faq-item.open .faq-toggle i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
    font-size: 0.84rem; color: var(--cp-text-muted); padding: 0;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 0.75rem; }

.ticket-form {
    background: var(--cp-glass); border: 1px solid var(--cp-glass-border);
    border-radius: var(--cp-radius); padding: 1.25rem;
}
.ticket-form h3 {
    font-size: 1rem; font-weight: 600; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.ticket-form h3 i { color: var(--cp-secondary); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--cp-text-muted); margin-bottom: 0.3rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: var(--cp-card);
    border: 1px solid var(--cp-glass-border); border-radius: 10px;
    color: var(--cp-text); padding: 0.55rem 0.85rem;
    font-size: 0.875rem; font-family: inherit; outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: rgba(220,38,38,.4); box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select option { background: var(--cp-surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Tickets List */
.ticket-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem; }
.ticket-item {
    padding: 0.85rem 1rem; background: var(--cp-card);
    border: 1px solid var(--cp-glass-border); border-radius: 10px;
    transition: border-color .2s;
}
.ticket-item:hover { border-color: rgba(220,38,38,.2); }
.tk-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.tk-subject { font-weight: 600; font-size: 0.9rem; }
.tk-meta {
    display: flex; gap: 0.75rem; font-size: 0.78rem; color: var(--cp-text-muted);
}
.tk-meta i { margin-right: 0.2rem; }
.tk-reply {
    margin-top: 0.65rem; padding: 0.65rem 0.85rem;
    background: rgba(220,38,38,.06); border-radius: 8px;
    font-size: 0.84rem; border-left: 3px solid var(--cp-purple);
}
.tk-reply i { color: var(--cp-purple); margin-right: 0.35rem; }

/* ===== Settings ===== */
.settings-tabs {
    display: flex; gap: 0.35rem; border-bottom: 1px solid var(--cp-border);
    margin-bottom: 1.5rem; overflow-x: auto;
}
.settings-tab {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1rem; background: none; border: none;
    color: var(--cp-text-muted); font-size: 0.85rem; font-weight: 500;
    border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.settings-tab:hover { color: var(--cp-text); }
.settings-tab.active { color: var(--cp-text); border-bottom-color: var(--cp-purple); }
.settings-tab i { font-size: 0.8rem; }

.settings-tab-content { display: none; }
.settings-tab-content.active { display: block; }

.settings-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.25rem;
}
.settings-card {
    background: var(--cp-glass); backdrop-filter: blur(8px);
    border: 1px solid var(--cp-glass-border); border-radius: var(--cp-radius);
    padding: 1.25rem;
}
.settings-card h3 {
    font-size: 1rem; font-weight: 600; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.settings-card h3 i { color: var(--cp-purple); }
.card-desc { color: var(--cp-text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.settings-note { font-size: 0.78rem; color: var(--cp-text-dim); margin-top: 0.75rem; }

/* Preferences Rows */
.pref-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.pref-row:last-child { border-bottom: none; }
.pref-row strong { font-size: 0.9rem; display: block; margin-bottom: 0.1rem; }
.pref-row p { font-size: 0.78rem; color: var(--cp-text-muted); }

/* Toggle Switch */
.toggle-switch { position: relative; width: 46px; height: 24px; display: inline-block; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--cp-card); border: 1px solid var(--cp-glass-border);
    border-radius: 24px; cursor: pointer; transition: background .3s, border-color .3s;
}
.toggle-slider::before {
    content: ''; position: absolute;
    left: 3px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    background: var(--cp-text-muted); border-radius: 50%;
    transition: transform .3s, background .3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: rgba(220,38,38,.2); border-color: rgba(220,38,38,.4);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateY(-50%) translateX(20px);
    background: var(--cp-purple); box-shadow: 0 0 8px rgba(220,38,38,.4);
}

/* Password Strength */
.password-strength { margin-bottom: 1rem; }
.strength-bar { height: 4px; background: var(--cp-card); border-radius: 2px; overflow: hidden; margin-bottom: 0.3rem; }
.strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }
.strength-label { font-size: 0.75rem; color: var(--cp-text-dim); }

/* 2FA Badge */
.twofa-status { margin-bottom: 0.5rem; }
.twofa-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600;
}
.twofa-badge.disabled { background: rgba(239,68,68,.1); color: var(--cp-red); }
.twofa-badge.enabled  { background: rgba(34,197,94,.1); color: var(--cp-green); }

/* Account Info */
.account-info-list { display: flex; flex-direction: column; }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 0.85rem;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--cp-text-muted); }
.info-row span:last-child { font-weight: 600; }

/* Sessions */
.sessions-list { display: flex; flex-direction: column; gap: 0.5rem; }
.session-item {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1rem; background: var(--cp-card);
    border: 1px solid var(--cp-glass-border); border-radius: 10px;
}
.session-item.current { border-color: rgba(34,197,94,.2); }
.session-icon { font-size: 1.2rem; color: var(--cp-text-muted); }
.session-info { flex: 1; }
.session-info strong { display: block; font-size: 0.9rem; margin-bottom: 0.1rem; }
.session-info p { font-size: 0.78rem; color: var(--cp-text-muted); }
.session-badge {
    display: inline-block; padding: 0.15rem 0.5rem;
    border-radius: 10px; font-size: 0.7rem; font-weight: 600; margin-top: 0.25rem;
}
.session-badge.current { background: rgba(34,197,94,.12); color: var(--cp-green); }

/* Danger Zone */
.danger-card { border-color: rgba(239,68,68,.15) !important; }
.danger-card h3 { color: var(--cp-red); }
.danger-card h3 i { color: var(--cp-red); }
.danger-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.danger-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.danger-row:last-child { border-bottom: none; }
.danger-row strong { display: block; margin-bottom: 0.1rem; font-size: 0.9rem; }
.danger-row p { font-size: 0.78rem; color: var(--cp-text-muted); }

/* Expiry Warnings */
.expiry-list { padding: 0.75rem 1.25rem; }

/* ===== Toast ===== */
.toast-container {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--cp-surface); border: 1px solid var(--cp-glass-border);
    border-radius: 10px; padding: 0.75rem 1.1rem;
    font-size: 0.85rem; box-shadow: 0 12px 30px rgba(0,0,0,.4);
    animation: toastIn .3s ease;
}
.toast.success { border-left: 3px solid var(--cp-green); }
.toast.error   { border-left: 3px solid var(--cp-red); }
.toast.info    { border-left: 3px solid var(--cp-blue); }
.toast .toast-close { background: none; border: none; color: var(--cp-text-muted); margin-left: auto; padding: 0 0.25rem; font-size: 0.8rem; transition: color .2s; }
.toast .toast-close:hover { color: var(--cp-text); }
.toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== Utility ===== */
.mt { margin-top: 1.5rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .panel-wrapper { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; left: -280px; top: var(--cp-topbar-h); bottom: 0;
        width: var(--cp-sidebar-w); z-index: 20;
        transition: left .3s ease; box-shadow: 4px 0 20px rgba(0,0,0,.4);
    }
    .sidebar.open { left: 0; }
    .topbar-left button { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .overview-grid { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .pref-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .danger-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .settings-tabs { gap: 0; }
    .settings-tab { padding: 0.5rem 0.65rem; font-size: 0.78rem; }
    .referral-link-box { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .panel-content { padding: 1rem; }
    .data-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

/* Compact mode */
body.compact .stat-card { padding: 0.75rem; }
body.compact .panel-content { padding: 1rem; }
body.compact .activity-item { padding: 0.35rem 0; }

/* No animations */
body.no-animations * { animation: none !important; transition: none !important; }

/* ===== Theme: Midnight ===== */
body.theme-midnight {
    --cp-bg: #020025;
    --cp-surface: #05082e;
    --cp-card: #0a1040;
    --cp-card-hover: #121a52;
    --cp-border: rgba(220, 38, 38, 0.15);
    --cp-glass: rgba(255, 255, 255, 0.05);
}

/* ===== Theme: AMOLED ===== */
body.theme-amoled {
    --cp-bg: #000000;
    --cp-surface: #030308;
    --cp-card: #080810;
    --cp-card-hover: #0e0e18;
    --cp-border: rgba(220, 38, 38, 0.08);
    --cp-glass: rgba(255, 255, 255, 0.03);
    --cp-glass-border: rgba(255, 255, 255, 0.05);
}

/* ===== Avatar Upload ===== */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cp-border);
}
.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--cp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--cp-glass-border);
    transition: border-color 0.3s;
}
.avatar-preview:hover { border-color: var(--cp-primary); }
.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
}
.avatar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============ Reviews ============ */
.star-rating-input {
    display: flex;
    gap: 4px;
    font-size: 1.4rem;
    color: var(--accent-color, #f59e0b);
    cursor: pointer;
}
.star-rating-input i:hover,
.star-rating-input i.fas {
    color: var(--accent-color, #f59e0b);
}
.star-rating-input i.far {
    color: var(--text-secondary, #b8a0a5);
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-item {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-color, rgba(255,255,255,.06));
    border-radius: var(--border-radius, 14px);
    padding: 20px;
    transition: border-color .3s;
}
.review-item:hover {
    border-color: rgba(220,38,38,.25);
}
.review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-item-stars {
    font-size: .9rem;
}
.review-item h4 {
    font-size: .95rem;
    margin-bottom: 6px;
}
.review-item p {
    font-size: .85rem;
    color: var(--text-secondary, #b8a0a5);
    line-height: 1.6;
    margin-bottom: 10px;
}
.review-item-meta {
    display: flex;
    gap: 16px;
    font-size: .75rem;
    color: var(--text-secondary, #b8a0a5);
    opacity: .7;
    flex-wrap: wrap;
}
.review-admin-note {
    color: var(--accent-color, #f59e0b);
    opacity: 1;
}
.review-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 600;
}
.badge-success { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-danger  { background: rgba(239,68,68,.15); color: #ef4444; }
.badge-warning { background: rgba(245,158,11,.15); color: #f59e0b; }