/* Source: user/guide-x-post-280.html */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ─── Variables ─── */
:root {
    --bg:           #060608;
    --surface:      #0e0e12;
    --surface2:     #141418;
    --surface3:     #1a1a20;
    --border:       rgba(255,255,255,0.07);
    --border2:      rgba(255,255,255,0.13);
    --text:         #f0f0f0;
    --muted:        #555560;
    --muted2:       #888894;
    --accent:       #44ff5f;
    --accent2:      #28e049;
    --gold:         #fbbf24;
    --gold2:        #f59e0b;
    --danger:       #ff4d4d;
    --danger-dim:   rgba(255,77,77,0.1);
    --success:      #44ff5f;
    --success-dim:  rgba(68,255,95,0.1);
    --warn:         #fbbf24;
    --warn-dim:     rgba(251,191,36,0.1);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;
    --sidebar-w:    240px;
    --topbar-h:     64px;
    --radius:       12px;
    --radius-lg:    18px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

/* ─── Layout ─── */
.dash-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sidebar-logo span { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; }

.sidebar-section {
    padding: 20px 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted2);
    margin: 2px 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.sidebar-link.active iconify-icon { color: var(--accent); }
.sidebar-link iconify-icon { font-size: 17px; flex-shrink: 0; }

.sidebar-link.danger { color: var(--danger); }
.sidebar-link.danger:hover { background: var(--danger-dim); }

.sidebar-bottom {
    margin-top: auto;
    padding: 16px 8px;
    border-top: 1px solid var(--border);
}

/* ─── Main content ─── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Topbar ─── */
.topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* ─── Page content ─── */
.page { padding: 32px 28px; }
.page-header { margin-bottom: 28px; }
.page-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--muted2); }

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card-sm { padding: 16px 20px; }

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -0.02em; line-height: 1; }
.stat-sub { font-size: 12px; color: var(--muted2); margin-top: 6px; }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid var(--border2);
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:hover { background: var(--surface3); border-color: rgba(255,255,255,0.2); }

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

.btn-gold {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
}
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }

.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: rgba(255,77,77,0.25);
}
.btn-danger:hover { background: rgba(255,77,77,0.2); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface2); }

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-green  { background: rgba(68,255,95,0.1);   color: var(--accent); border: 1px solid rgba(68,255,95,0.2); }
.badge-gold   { background: rgba(251,191,36,0.1);  color: var(--gold);   border: 1px solid rgba(251,191,36,0.2); }
.badge-red    { background: rgba(255,77,77,0.1);   color: var(--danger); border: 1px solid rgba(255,77,77,0.2); }
.badge-muted  { background: var(--surface2);       color: var(--muted2); border: 1px solid var(--border); }
.badge-blue   { background: rgba(96,165,250,0.1);  color: #60a5fa;       border: 1px solid rgba(96,165,250,0.2); }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted2);
    border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }

/* ─── Forms ─── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted2);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--muted2); margin-top: 5px; }

/* ─── Progress bar ─── */
.progress { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.4s; }
.progress-fill.gold { background: var(--gold); }

/* ─── Avatar ─── */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

/* ─── Rank badge inline ─── */
.rank-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
.rank-inline img { width: 20px; height: 20px; }

/* ─── Empty state ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted2);
}
.empty-state iconify-icon { font-size: 40px; color: var(--muted); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 13px; line-height: 1.6; max-width: 320px; margin: 0 auto 20px; }

/* ─── Notification dot ─── */
.notif-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Auth pages ─── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-glow-1 {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(68,255,95,0.05);
    top: -150px; left: -150px;
    filter: blur(80px);
    pointer-events: none;
}

.auth-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(251,191,36,0.04);
    bottom: -100px; right: -100px;
    filter: blur(80px);
    pointer-events: none;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.auth-logo img { width: 36px; height: 36px; border-radius: 50%; }
.auth-logo span { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.05em; }

.auth-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.04em; margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: 13px; color: var(--muted2); text-align: center; margin-bottom: 28px; line-height: 1.6; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-x {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border-radius: var(--radius);
    background: #000;
    border: 1px solid var(--border2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-x:hover { background: #111; border-color: rgba(255,255,255,0.2); }
.btn-x iconify-icon { font-size: 18px; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted2); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ─── Step indicator ─── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.step-dot.done { background: var(--accent); color: #000; }
.step-dot.active { background: var(--surface3); color: var(--text); border: 2px solid var(--accent); }
.step-dot.todo { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.step-line { flex: 1; height: 1px; background: var(--border); }
.step-line.done { background: var(--accent); }

/* ─── Campaign card ─── */
.campaign-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all 0.25s;
}
.campaign-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.campaign-card.featured { border-color: rgba(68,255,95,0.25); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page { padding: 20px 16px; }
}


.guide-hero {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.guide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.guide-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6,6,8,0.92) 35%, rgba(6,6,8,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 36px;
}
.guide-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0.8;
}
.guide-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 10px;
}
.guide-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    max-width: 420px;
    line-height: 1.6;
}

/* Content blocks */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.guide-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
}
.guide-section p {
    font-size: 14px;
    color: var(--muted2);
    line-height: 1.85;
    margin-bottom: 12px;
}
.guide-section p:last-child { margin-bottom: 0; }
.guide-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.guide-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(68,255,95,0.05);
    border: 1px solid rgba(68,255,95,0.18);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 20px;
}
.guide-tip iconify-icon {
    color: var(--accent);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.guide-tip-text {
    font-size: 14px;
    color: var(--muted2);
    line-height: 1.7;
}
.guide-tip-text strong { color: var(--text); }

/* Stat pills */
.guide-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.guide-stat {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.guide-stat iconify-icon { color: var(--accent); font-size: 15px; }
.guide-stat span { color: var(--muted2); }
.guide-stat strong { color: var(--text); margin-left: 2px; }

/* Nav */
.guide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}
.guide-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted2);
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
}
.guide-nav-btn:hover {
    border-color: var(--border2);
    color: var(--text);
}
.guide-nav-center {
    font-size: 12px;
    color: var(--muted2);
}
.guide-nav-center a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
    

.guide-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.guide-list li { font-size: 13px; color: var(--muted2); line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; }
.guide-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.guide-ol li { counter-increment: ol-counter; }
.guide-ol { counter-reset: ol-counter; }
.guide-ol li::before { content: counter(ol-counter) "."; color: var(--accent); flex-shrink: 0; font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
.guide-example { background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 18px; font-size: 13px; color: var(--muted2); line-height: 1.8; margin-top: 8px; font-style: italic; }
.guide-example strong { color: var(--text); font-style: normal; }
.guide-example code { font-family: var(--font-mono); font-size: 11px; background: var(--surface3); padding: 2px 6px; border-radius: 4px; color: var(--accent); font-style: normal; }
.guide-bad { background: rgba(255,77,77,0.06); border: 1px solid rgba(255,77,77,0.2); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; font-size: 13px; color: var(--muted2); line-height: 1.8; }
