/* =====================================================================
   Prime Koders — global theme
   Dark and light themes, accent presets and corner styles are switched with
   attributes on <html>: data-theme, data-accent, data-radius.
   ===================================================================== */

/* ---------- Dark theme (default) ---------- */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0f19;
    --bg-soft: #0f1524;
    --surface: #131b2e;
    --surface-2: #18223a;
    --surface-3: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e5e7eb;
    --text-strong: #ffffff;
    --muted: #94a3b8;
    --subtle: #64748b;
    --hover: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(11, 15, 25, 0.72);
    --overlay: rgba(2, 6, 15, 0.72);
    --input-bg: #0f1524;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --green-text: #86efac;
    --amber-text: #fcd34d;
    --red-text: #fca5a5;
    --cyan-text: #67e8f9;
    --indigo-text: #c7d2fe;
    --body-glow-1: rgba(99, 102, 241, 0.12);
    --body-glow-2: rgba(6, 182, 212, 0.10);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f6fb;
    --bg-soft: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef2f7;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.15);
    --text: #1e293b;
    --text-strong: #0f172a;
    --muted: #64748b;
    --subtle: #94a3b8;
    --hover: rgba(15, 23, 42, 0.04);
    --header-bg: rgba(255, 255, 255, 0.78);
    --overlay: rgba(15, 23, 42, 0.45);
    --input-bg: #ffffff;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.2);
    --green-text: #15803d;
    --amber-text: #b45309;
    --red-text: #b91c1c;
    --cyan-text: #0e7490;
    --indigo-text: #4338ca;
    --body-glow-1: rgba(99, 102, 241, 0.08);
    --body-glow-2: rgba(6, 182, 212, 0.06);
}

/* ---------- Accent presets (Admin -> Settings -> Theme) ---------- */
:root, [data-accent="indigo"] { --accent: #6366f1; --accent-2: #06b6d4; --accent-rgb: 99, 102, 241; --accent2-rgb: 6, 182, 212; }
[data-accent="emerald"] { --accent: #10b981; --accent-2: #06b6d4; --accent-rgb: 16, 185, 129; --accent2-rgb: 6, 182, 212; }
[data-accent="rose"]    { --accent: #f43f5e; --accent-2: #f97316; --accent-rgb: 244, 63, 94; --accent2-rgb: 249, 115, 22; }
[data-accent="violet"]  { --accent: #8b5cf6; --accent-2: #ec4899; --accent-rgb: 139, 92, 246; --accent2-rgb: 236, 72, 153; }
[data-accent="amber"]   { --accent: #f59e0b; --accent-2: #ef4444; --accent-rgb: 245, 158, 11; --accent2-rgb: 239, 68, 68; }
[data-accent="ocean"]   { --accent: #3b82f6; --accent-2: #14b8a6; --accent-rgb: 59, 130, 246; --accent2-rgb: 20, 184, 166; }

/* ---------- Corner styles ---------- */
:root, [data-radius="rounded"] { --radius: 16px; --radius-sm: 10px; --radius-pill: 999px; }
[data-radius="soft"]  { --radius: 24px; --radius-sm: 14px; --radius-pill: 999px; }
[data-radius="sharp"] { --radius: 6px; --radius-sm: 4px; --radius-pill: 6px; }

:root {
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    --accent-soft: rgba(var(--accent-rgb), 0.14);
    --accent-line: rgba(var(--accent-rgb), 0.4);
    --header-h: 68px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.font-poppins { --font: 'Poppins', system-ui, sans-serif; }
.font-plus-jakarta-sans { --font: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-dm-sans { --font: 'DM Sans', system-ui, sans-serif; }
.font-outfit { --font: 'Outfit', system-ui, sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 10% 0%, var(--body-glow-1), transparent 40%),
        radial-gradient(circle at 90% 10%, var(--body-glow-2), transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--text-strong); letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--accent-rgb), 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.site-main { flex: 1; padding-bottom: 56px; }
.muted { color: var(--muted); }
.block { display: block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--red-text); }
.text-green { color: var(--green-text); }
.text-amber { color: var(--amber-text); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inline-form { display: inline; margin: 0; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.dot-sep::before { content: '·'; margin: 0 6px; color: var(--subtle); }
code, kbd { background: var(--hover); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; border: 1px solid var(--border); }

/* ---------- Announcement bar ---------- */
.announce { font-size: 0.88rem; color: #fff; background: var(--gradient); }
.announce-warning { background: linear-gradient(90deg, #b45309, #ef4444); }
.announce-success { background: linear-gradient(90deg, #15803d, #0d9488); }
.announce-info { background: linear-gradient(90deg, #1e40af, #0e7490); }
.announce-promo { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; text-align: center; }
.announce a { color: #fff; font-weight: 700; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.announce-close { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0.8; margin-left: auto; }

/* ---------- Glass header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 18px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text-strong); flex-shrink: 0; }
.logo:hover { color: var(--text-strong); }
.logo-img { height: 36px; width: auto; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
    background: var(--gradient); color: #fff; font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.45);
}
.logo-text span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-center { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: 0.92rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.main-nav a i { font-size: 0.85rem; opacity: 0.8; }
.main-nav a:hover, .main-nav a.active { color: var(--text-strong); background: var(--hover); }
.main-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-search { position: relative; flex: 1; max-width: 380px; min-width: 180px; }
.nav-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.nav-search input[type="search"] { padding: 9px 40px 9px 36px; border-radius: var(--radius-pill); background: var(--hover); border-color: var(--border); }
.nav-search input:focus { background: var(--input-bg); }
.nav-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; padding: 1px 6px; color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted);
    cursor: pointer; font-size: 1rem; transition: background 0.15s, color 0.15s, transform 0.15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text-strong); }
.icon-btn:active { transform: scale(0.92); }
.count-badge {
    position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px var(--bg); animation: pop-in 0.35s var(--spring);
}
.theme-toggle .theme-icon-light { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-light { display: inline; }
[data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
.theme-toggle i { transition: transform 0.5s var(--spring); }
.theme-toggle:hover i { transform: rotate(-25deg) scale(1.1); }
.avatar-btn { position: relative; background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 50%; }
.lvl-dot {
    position: absolute; right: -4px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--gradient); color: #fff; font-size: 0.65rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.nav-toggle { display: none; }

/* Streak + XP chip (Duolingo style) */
.streak-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; position: relative;
    transition: transform 0.2s var(--spring), border-color 0.2s;
}
.streak-chip:hover { transform: translateY(-1px); border-color: rgba(245, 158, 11, 0.6); color: var(--text-strong); }
.streak-chip .fa-fire { color: var(--subtle); }
.streak-chip.lit .fa-fire { color: #f97316; filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6)); animation: flicker 2.4s ease-in-out infinite; }
.streak-chip strong { color: var(--text-strong); }
.goal-ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.goal-ring circle { fill: none; stroke-width: 4; }
.goal-ring .ring-bg { stroke: var(--border-strong); }
.goal-ring .ring-fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray 0.8s var(--ease); }
.xp-mini { font-weight: 700; color: var(--amber-text); display: inline-flex; gap: 3px; align-items: center; font-size: 0.8rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font: inherit; font-weight: 600; font-size: 0.93rem; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform 0.15s var(--spring), box-shadow 0.2s ease, background 0.2s ease, color 0.2s;
    position: relative; overflow: hidden; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--text-strong); background: var(--surface-2); border-color: var(--accent-line); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--hover); color: var(--text-strong); }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: var(--red-text); border-color: rgba(239, 68, 68, 0.4); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); color: var(--red-text); }
.btn-success { background: rgba(34, 197, 94, 0.12); color: var(--green-text); border-color: rgba(34, 197, 94, 0.4); }
.btn-success:hover { background: rgba(34, 197, 94, 0.22); color: var(--green-text); }
.btn-social { background: var(--surface); color: var(--text-strong); border-color: var(--border-strong); width: 100%; }
.btn-social:hover { background: var(--surface-2); color: var(--text-strong); }
.btn-social .fa-google { color: #ea4335; }
.btn-sm { padding: 7px 12px; font-size: 0.84rem; }
.btn-xs { padding: 4px 9px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px 11px; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-heart.saved, .quick-btn.saved { color: #f472b6; border-color: rgba(244, 114, 182, 0.5); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.35); animation: ripple 0.6s linear; pointer-events: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
label, .label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
input[type="tel"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="file"], input[type="color"], select, textarea {
    width: 100%; padding: 11px 14px; background: var(--input-bg); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.22); }
input[type="file"] { padding: 9px; cursor: pointer; }
input[type="color"] { padding: 4px; height: 44px; }
textarea { min-height: 120px; resize: vertical; }
select { cursor: pointer; }
.is-invalid { border-color: var(--red) !important; animation: shake 0.35s; }
.field-error { color: var(--red-text); font-size: 0.84rem; margin: 6px 0 0; }
.form-hint { color: var(--muted); font-size: 0.84rem; margin: 6px 0 0; }
.char-counter { display: block; text-align: right; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.char-counter.over { color: var(--red-text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full, .form-grid-3 .full { grid-column: 1 / -1; }
.form-section { margin-bottom: 20px; }
.form-section > h2 { font-size: 1.08rem; display: flex; gap: 10px; align-items: center; }
.form-section > h2 i { color: var(--accent-2); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.checkbox-row, .radio-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 38px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 44px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background 0.2s; flex-shrink: 0; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--spring); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35); }

/* Auth pages */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 40px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-side { position: relative; padding: 40px; color: #fff; background: var(--gradient); display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 1.8rem; }
.auth-side li { margin-bottom: 8px; }
.auth-side ul { padding-left: 0; list-style: none; }
.auth-side li i { width: 22px; }
.auth-main { padding: 40px; }
.auth-card { max-width: 480px; margin: 48px auto 0; }
.auth-card.wide { max-width: 760px; }
.auth-card h1, .auth-main h1 { font-size: 1.6rem; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.social-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-field button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; }
.strength { display: flex; gap: 4px; margin-top: 6px; }
.strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--border-strong); transition: background 0.3s; }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--red); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] span:nth-child(-n+3) { background: #84cc16; }
.strength[data-level="4"] span { background: var(--green); }

/* Role cards on register */
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-card { position: relative; margin: 0; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card-body {
    display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: var(--radius-sm);
    border: 2px solid var(--border-strong); background: var(--surface-2);
    transition: border-color 0.15s, background 0.15s, transform 0.2s var(--spring);
}
.role-card-body i { font-size: 1.4rem; color: var(--accent-2); }
.role-card-body strong { color: var(--text-strong); }
.role-card-body small { color: var(--muted); font-weight: 400; }
.role-card:hover .role-card-body { border-color: var(--accent-line); transform: translateY(-2px); }
.role-card input:checked + .role-card-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 6px 0 rgba(var(--accent-rgb), 0.25); }
.role-card input:focus-visible + .role-card-body { box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.4); }

/* Tag chips (skills) */
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.tag-input .tag-entry { flex: 1; min-width: 160px; border: 0; padding: 6px; background: transparent; box-shadow: none; }
.tag-list { display: contents; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--indigo-text); border: 1px solid var(--accent-line); font-size: 0.8rem; font-weight: 500;
}
.tag button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Star picker */
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { font-size: 2rem; color: var(--border-strong); cursor: pointer; margin: 0; transition: color 0.1s, transform 0.2s var(--spring); }
.star-picker label:hover { transform: scale(1.2); }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { color: var(--amber); }

/* Image previews */
.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.preview-grid img { width: 110px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); animation: pop-in 0.3s var(--spring); }
.media-edit { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.media-edit-item { width: 140px; }
.media-edit-item img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 6px; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 18px; text-align: center; color: var(--muted); transition: border-color 0.2s, background 0.2s; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.73rem; font-weight: 600; background: var(--hover); color: var(--text); border: 1px solid var(--border); white-space: nowrap;
}
.badge-category { background: rgba(var(--accent2-rgb), 0.12); color: var(--cyan-text); border-color: rgba(var(--accent2-rgb), 0.3); }
.badge-equity, .badge-free, .badge-ending { position: absolute; top: 12px; left: 12px; background: rgba(11, 15, 25, 0.78); color: #67e8f9; border-color: rgba(6, 182, 212, 0.4); backdrop-filter: blur(6px); }
.badge-free { left: auto; right: 12px; top: auto; bottom: 12px; color: #86efac; border-color: rgba(34, 197, 94, 0.45); }
.badge-ending { left: auto; right: 12px; color: #fcd34d; border-color: rgba(245, 158, 11, 0.5); }
.badge-buyer { background: rgba(6, 182, 212, 0.12); color: var(--cyan-text); }
.badge-developer { background: rgba(99, 102, 241, 0.15); color: var(--indigo-text); }
.badge-investor { background: rgba(34, 197, 94, 0.12); color: var(--green-text); }
.badge-admin { background: rgba(239, 68, 68, 0.14); color: var(--red-text); }
.verified-tick { color: #3b82f6; font-size: 0.85em; }
.level-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.level-grey { color: var(--muted); }
.level-cyan { color: var(--cyan-text); background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.3); }
.level-indigo { color: var(--indigo-text); background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.35); }
.level-amber { color: var(--amber-text); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }

/* ---------- Alerts and notices ---------- */
.flash-stack { margin-top: 16px; display: grid; gap: 10px; }
.alert {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); transition: opacity 0.4s ease, transform 0.4s ease;
    animation: slide-down 0.35s var(--ease);
}
.alert > span { flex: 1; }
.alert > i { margin-top: 3px; }
.alert.hide { opacity: 0; transform: translateY(-6px); }
.alert-success { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); color: var(--green-text); }
.alert-error { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); color: var(--red-text); }
.alert-info { border-color: var(--accent-line); background: var(--accent-soft); color: var(--indigo-text); }
.alert-warning { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1); color: var(--amber-text); }
.alert-close { background: none; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0.7; }
.notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
    border: 1px dashed rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.08); color: var(--amber-text);
}
.notice i { margin-top: 3px; }
.notice-info { border-color: rgba(var(--accent2-rgb), 0.5); background: rgba(var(--accent2-rgb), 0.08); color: var(--cyan-text); }
.notice-success { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.08); color: var(--green-text); }
.warning-banner { padding: 14px 16px; border-radius: var(--radius-sm); margin: 24px 0; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.5); color: var(--red-text); font-weight: 600; }

/* ---------- Cards and grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-glass { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(12px); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }

.project-card, .campaign-card, .dev-card {
    padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative;
    transition: transform 0.25s var(--spring), border-color 0.2s ease, box-shadow 0.25s ease;
}
.project-card:hover, .campaign-card:hover, .dev-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .card-media img, .campaign-card:hover .card-media img { transform: scale(1.05); }
.ribbon { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--gradient); box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.5); }
.card-quick { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(8px); transition: opacity 0.2s, transform 0.25s var(--spring); z-index: 2; }
.project-card:hover .card-quick, .project-card:focus-within .card-quick { opacity: 1; transform: none; }
.quick-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(11, 15, 25, 0.7); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: transform 0.2s var(--spring), background 0.2s; }
.quick-btn:hover { transform: scale(1.12); background: rgba(var(--accent-rgb), 0.9); }
.quick-btn.active { background: var(--accent); }
.card-body { padding: 14px 16px; flex: 1; }
.card-tags { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.os-icons { display: inline-flex; gap: 7px; color: var(--muted); font-size: 0.85rem; }
.card-title { font-size: 1.02rem; margin: 10px 0 4px; }
.card-title a { color: var(--text-strong); }
.card-title a:hover { color: var(--accent); }
.card-text { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; flex-wrap: wrap; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); }
.card-seller { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; max-width: 55%; }
.card-seller span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; gap: 8px; padding: 0 16px 14px; flex-wrap: wrap; }
.price { color: var(--text-strong); font-size: 1.05rem; }

/* List view of the marketplace */
.grid.list-view { grid-template-columns: 1fr; }
.grid.list-view .project-card { flex-direction: row; }
.grid.list-view .card-media { width: 260px; flex-shrink: 0; aspect-ratio: auto; }
.grid.list-view .card-footer { border-top: 0; border-left: 1px solid var(--border); flex-direction: column; align-items: flex-start; justify-content: center; width: 220px; }
.grid.list-view .card-text { -webkit-line-clamp: 3; }

.mini-card { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius-sm); color: var(--text); transition: background 0.15s; }
.mini-card:hover { background: var(--hover); color: var(--text-strong); }
.mini-card img { width: 72px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mini-card span { display: flex; flex-direction: column; min-width: 0; }
.mini-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); font-size: 0.9rem; }

.dev-card { text-align: center; padding: 22px 18px 18px; align-items: center; gap: 4px; }
.dev-card-top { position: relative; margin: 0 auto 8px; }
.presence { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--surface); }
.presence.on { background: var(--green); }
.presence.off { background: var(--amber); }
.dev-card h3 { margin-bottom: 0; }
.dev-card .tags { justify-content: center; margin: 10px 0; }
.dev-card-level { margin: 6px 0; }
.dev-card-foot { display: flex; justify-content: space-between; width: 100%; font-size: 0.85rem; margin: 6px 0 12px; }
.dev-rate { color: var(--text-strong); font-weight: 800; }
.dev-rate small { color: var(--muted); font-weight: 500; }

.category-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform 0.25s var(--spring), border-color 0.2s;
}
.category-tile:hover { transform: translateY(-4px) rotate(-0.5deg); border-color: rgba(var(--accent2-rgb), 0.5); color: var(--text-strong); }
.category-tile i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; transition: transform 0.3s var(--spring); }
.category-tile:hover i { transform: scale(1.12) rotate(-8deg); }
.category-tile strong { color: var(--text-strong); }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); background: var(--bg-soft); flex-shrink: 0; }
.avatar-xs { width: 22px; height: 22px; border-width: 1px; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 84px; height: 84px; }
.avatar-xl { width: 128px; height: 128px; border-width: 4px; border-color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--indigo-text); font-size: 0.84rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 18px 0 14px; letter-spacing: -0.03em; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search { display: flex; gap: 8px; padding: 6px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); max-width: 560px; margin-bottom: 18px; }
.hero-search input { border: 0; background: transparent; box-shadow: none; }
.hero-search .btn { border-radius: var(--radius-pill); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); align-items: center; }
.hero-tags a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); }
.hero-tags a:hover { border-color: var(--accent-line); color: var(--accent); }
.hero-visual { position: relative; min-height: 380px; }
.hero-visual .float-card { position: absolute; width: 64%; animation: float 6s ease-in-out infinite; }
.hero-visual .float-card:nth-child(1) { top: 0; left: 0; }
.hero-visual .float-card:nth-child(2) { top: 26%; right: 0; animation-delay: -2s; }
.hero-visual .float-card:nth-child(3) { bottom: 0; left: 12%; width: 56%; animation-delay: -4s; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.hero-blob { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: 0.35; z-index: -1; animation: blob 14s ease-in-out infinite; }
.hero-blob.one { background: var(--accent); top: -120px; right: 10%; }
.hero-blob.two { background: var(--accent-2); bottom: -160px; left: 5%; animation-delay: -7s; }

/* Hero slider (Admin -> Banners -> Home hero) */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 300px; background: var(--gradient); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: flex-end; padding: 36px; color: #fff; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 70%); }
.slide-content { position: relative; z-index: 2; max-width: 600px; }
.slide h2 { color: #fff; font-size: 1.9rem; }
.slider-dots { position: absolute; bottom: 14px; right: 18px; z-index: 3; display: flex; gap: 6px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: width 0.3s; padding: 0; }
.slider-dots button.active { width: 26px; background: #fff; }

/* Promo banner */
.promo-banner { position: relative; border-radius: var(--radius); overflow: hidden; padding: 36px; color: #fff; background: var(--gradient); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 160px; }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.promo-banner > * { position: relative; }
.promo-banner h3 { color: #fff; font-size: 1.5rem; }
.promo-banner p { margin: 0; opacity: 0.92; max-width: 640px; }
.promo-banner .btn { background: #fff; color: #0f172a; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat-big { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat-big strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--text-strong); }
.stat-big span { color: var(--muted); font-size: 0.85rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 800; font-size: 0.85rem; }
.step i { font-size: 1.5rem; color: var(--accent); margin: 8px 0 12px; }

/* Activity feed */
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); animation: slide-up 0.4s var(--ease) both; }
.feed li:hover { background: var(--hover); }
.feed-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); }
.feed-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green-text); }
.feed-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber-text); }
.feed li p { margin: 0; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.page-head { padding: 30px 0 18px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span::before { content: '/'; margin-right: 8px; color: var(--subtle); }
.cta-band { margin-top: 24px; padding: 44px 24px; border-radius: var(--radius); text-align: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent2-rgb), 0.18)); border: 1px solid var(--accent-line); }
.cta-band p { color: var(--muted); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state > i { font-size: 2.6rem; color: var(--subtle); margin-bottom: 12px; animation: bob 3s ease-in-out infinite; }

/* ---------- Marketplace layout (filters + results) ---------- */
.layout-filters { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 18px; }
.filter-panel h3 { font-size: 1rem; }
.filter-group { border-bottom: 1px solid var(--border); padding: 12px 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > summary { cursor: pointer; font-weight: 700; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.72rem; color: var(--muted); transition: transform 0.2s; }
.filter-group[open] > summary::after { transform: rotate(180deg); }
.filter-group .stack { margin-top: 10px; gap: 7px; }
.filter-count { margin-left: auto; color: var(--subtle); font-size: 0.78rem; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.check-line input { accent-color: var(--accent); width: 16px; height: 16px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.results-bar form { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.results-bar select { width: auto; }
.view-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { background: transparent; border: 0; color: var(--muted); padding: 9px 12px; cursor: pointer; }
.view-toggle button.active { background: var(--accent-soft); color: var(--accent); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; min-height: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--indigo-text); border: 1px solid var(--accent-line); font-size: 0.82rem; font-weight: 600; animation: pop-in 0.25s var(--spring); }
.chip a, .chip button { color: inherit; background: none; border: 0; cursor: pointer; padding: 0 2px; font-size: 1rem; line-height: 1; }
.chip-clear { background: transparent; border-style: dashed; }
.filter-open-btn { display: none; }
.results-loading { opacity: 0.45; pointer-events: none; transition: opacity 0.2s; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 20px; }
.detail-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.detail-section { margin-bottom: 24px; }
.detail-section h2 { font-size: 1.12rem; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; margin-bottom: 16px; background: var(--bg-soft); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
img.detail-cover { width: 100%; height: auto; object-fit: cover; }
.description { white-space: pre-line; color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.logo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-row img { height: 56px; width: auto; border-radius: 8px; background: #fff; padding: 6px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 1rem; margin-left: 8px; }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.meta-list li strong { color: var(--text); text-align: right; }
.link-list { display: flex; gap: 10px; flex-wrap: wrap; }
.fund-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); margin-top: 20px; background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(6, 182, 212, 0.15)); border: 1px solid rgba(34, 197, 94, 0.4); }
.person { display: flex; align-items: center; gap: 12px; color: var(--text); }
.person strong { display: block; color: var(--text-strong); }
.trust-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.trust-list i { color: var(--green); width: 18px; }

/* Platforms & requirements */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.platform-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; background: var(--surface-2); }
.platform-card h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.platform-card h4 i { font-size: 1.4rem; color: var(--accent); }
.platform-card .meta-list { font-size: 0.86rem; margin-bottom: 12px; }
.platform-editor { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.platform-editor > label { margin: 0; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: var(--surface-2); }
.platform-editor > label i { font-size: 1.2rem; color: var(--accent); width: 22px; }
.platform-fields { padding: 14px; border-top: 1px solid var(--border); }

/* Rating breakdown */
.rating-summary { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; margin: 12px 0 18px; }
.rating-score { text-align: center; }
.rating-score strong { display: block; font-size: 3rem; font-weight: 800; color: var(--text-strong); line-height: 1; }
.rating-bars { display: grid; gap: 6px; }
.rating-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 0.84rem; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.rating-bar progress { margin: 0; }

/* Reviews */
.review { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review p { margin: 0; color: var(--text); white-space: pre-line; }
.review-reply { margin: 12px 0 0 22px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--hover); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.9rem; }
.review-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 0.82rem; }
.helpful-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: 0.8rem; transition: all 0.2s; }
.helpful-btn:hover, .helpful-btn.voted { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.stars { color: var(--amber); display: inline-flex; gap: 2px; font-size: 0.84rem; }
.rating-big { font-size: 2.2rem; font-weight: 800; color: var(--text-strong); }

/* Q&A and changelog */
.qa-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.qa-q { display: flex; gap: 10px; font-weight: 600; color: var(--text-strong); }
.qa-a { display: flex; gap: 10px; margin-top: 8px; color: var(--text); }
.qa-q i, .qa-a i { margin-top: 4px; color: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 22px 38px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.in_progress::before { border-color: var(--amber); animation: pulse-ring 1.8s infinite; }
.timeline h4 { margin: 0 0 4px; }

/* Developer profile */
.profile-cover { height: 190px; border-radius: var(--radius); margin-top: 20px; background: linear-gradient(120deg, #312e81 0%, var(--accent) 45%, var(--accent-2) 100%); position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 45%); }
.profile-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px; margin-top: -64px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-head-info { flex: 1; min-width: 220px; padding-bottom: 6px; }
.profile-head-info h1 { margin-bottom: 2px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text); font-weight: 600; transition: all 0.15s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pagination .current { background: var(--gradient); border-color: transparent; color: #fff; }
.pagination .gap { border: 0; }
.pagination .disabled { opacity: 0.4; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--header-h) - 140px); min-height: 480px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.conv-panel { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.conv-search { padding: 12px; border-bottom: 1px solid var(--border); }
.conv-list { overflow-y: auto; flex: 1; }
.conv-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); align-items: center; }
.conv-item:hover { background: var(--hover); color: var(--text-strong); }
.conv-item.active { background: var(--accent-soft); }
.conv-info { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { color: var(--muted); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; }
.unread-bubble { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }
.chat-panel { display: flex; flex-direction: column; min-height: 0; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
.date-sep { text-align: center; margin: 10px 0; }
.date-sep span { font-size: 0.74rem; color: var(--muted); background: var(--bg-soft); padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 16px; position: relative; animation: bubble-in 0.3s var(--spring); }
.bubble p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.bubble time { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 3px; text-align: right; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form textarea { min-height: 46px; height: 46px; resize: none; }
.chat-back { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { max-width: 360px; margin-top: 10px; }
.site-footer h4 { font-size: 0.9rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); }
.socials a:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 16px; margin-top: 28px; border-top: 1px solid var(--border); color: var(--muted); }

/* ---------- 404 / maintenance ---------- */
.not-found { text-align: center; padding: 80px 16px; }
.not-found .code { font-size: 6rem; font-weight: 800; line-height: 1; }

/* ---------- Small extras ---------- */
.theme-anim, .theme-anim * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 14px; font-size: 1.6rem; border-radius: 50%; animation: pop-in 0.5s var(--spring); }
.filter-bar .full { flex-basis: 100%; margin: 0; }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes pop-in { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(-4deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1440px) {
    .main-nav a i { display: none; }
    .main-nav a { padding: 8px 9px; }
    .nav-search { max-width: 240px; min-width: 150px; }
}
@media (max-width: 1180px) {
    .main-nav a i { display: none; }
    .main-nav a { padding: 8px 7px; font-size: 0.88rem; }
    .nav-search { max-width: 190px; }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .nav-center {
        position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
        padding: 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        display: none; animation: slide-down 0.25s var(--ease);
    }
    .site-header.nav-open .nav-center { display: flex; }
    .nav-search { max-width: none; }
    .main-nav { flex-direction: column; }
    .main-nav a { padding: 11px 12px; }
    .main-nav a i { display: inline; }
    .nav-toggle { display: inline-grid; }
    .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .layout-filters, .detail-layout, .grid-2-1 { grid-template-columns: minmax(0, 1fr); }
    .filter-panel {
        position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 250; border-radius: 0 var(--radius) var(--radius) 0;
        transform: translateX(-105%); transition: transform 0.3s var(--ease); top: 0;
    }
    .filter-panel.open { transform: none; box-shadow: var(--shadow-lg); }
    .filter-open-btn { display: inline-flex; }
    .detail-side { position: static; }
    .auth-wrap { grid-template-columns: 1fr; margin-top: 20px; }
    .auth-side { min-height: 200px; padding: 28px; }
    .grid.list-view .project-card { flex-direction: column; }
    .grid.list-view .card-media { width: 100%; aspect-ratio: 16 / 9; }
    .grid.list-view .card-footer { width: auto; border-left: 0; border-top: 1px solid var(--border); flex-direction: row; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    .grid-4, .grid-3, .grid-2, .form-grid, .form-grid-3, .role-cards, .steps { grid-template-columns: minmax(0, 1fr); }
    .category-grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 40px 0 24px; }
    .card { padding: 16px; }
    .project-card, .campaign-card { padding: 0; }
    .card-quick { opacity: 1; transform: none; }
    .profile-head { padding: 0 12px; margin-top: -48px; }
    .avatar-xl { width: 96px; height: 96px; }
    .rating-summary { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--header-h) - 110px); }
    .chat-layout.has-chat .conv-panel { display: none; }
    .chat-layout:not(.has-chat) .chat-panel { display: none; }
    .chat-back { display: inline-flex; }
    .bubble { max-width: 86%; }
    .social-row { grid-template-columns: 1fr; }
    .auth-main { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .slide { padding: 22px; }
    .slide h2 { font-size: 1.4rem; }
    .hide-sm { display: none !important; }
}
@media (max-width: 480px) {
    .xp-mini, .goal-ring, .hide-xs { display: none !important; }
    .nav-wrap { gap: 10px; }
    .logo-text { display: none; }
}
.flex-1 { flex: 1; min-width: 200px; }
.results-bar.card { padding: 12px; }
.buy-box .price-big { margin-bottom: 4px; }
.coupon-hint { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--accent-line); background: var(--accent-soft); font-size: 0.86rem; margin-top: 12px; }
.coupon-hint code { font-weight: 800; color: var(--text-strong); }
.project-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.project-stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; align-items: center; margin-bottom: 18px; }
.project-stats strong { color: var(--text-strong); }
.share-row { display: flex; gap: 8px; margin-top: 10px; }
.ribbon.position-static { position: static; display: inline-flex; gap: 6px; align-items: center; }
.lead-sm { font-size: 1.05rem; }
.gap-sm { gap: 8px; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment .comment { border: 0; margin-left: 42px; padding-bottom: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 4px 0 0; white-space: pre-line; }
.founder-tag { font-size: 0.7rem; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--indigo-text); margin-left: 6px; }
.stats-band.compact-3, .stats-band.compact-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stats-band.compact-3 .stat-big { padding: 10px 6px; }
.stats-band.compact-3 .stat-big strong { font-size: 1.15rem; }
.help-hero { text-align: center; padding: 40px 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent2-rgb), 0.15)); border: 1px solid var(--accent-line); margin: 24px 0; }
.help-hero .hero-search { margin: 18px auto 0; }
.help-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }

/* Chat extras */
.chat-header-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.quick-replies { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies .chip { cursor: pointer; white-space: nowrap; padding: 5px 12px; font-family: inherit; }
.quick-replies .chip:hover { background: var(--accent); color: #fff; }
.bubble time .fa-check, .bubble time .fa-check-double { font-size: 0.7rem; opacity: 0.75; }
.bubble time .seen { color: #67e8f9; opacity: 1; }
@media (max-width: 640px) { .chat-header-actions .btn span { display: none; } }

/* Checkout */
.checkout-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; counter-reset: step; }
.checkout-steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 999px; background: var(--hover); color: var(--muted); font-weight: 700; font-size: 0.86rem; }
.checkout-steps li.done { background: rgba(34, 197, 94, 0.14); color: var(--green-text); }
.checkout-steps li.current { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
.trust-row i { color: var(--green-text); margin-right: 4px; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.checkout-summary .thumb { width: 52px; height: 36px; }
.coupon-box { margin: 14px 0; padding: 14px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); }
.coupon-box label { font-size: 0.84rem; }
.coupon-applied { display: flex; gap: 12px; align-items: center; }
.coupon-applied > i { font-size: 1.4rem; color: var(--green-text); }
.coupon-chip { margin: 8px 6px 0 0; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--indigo-text); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.coupon-chip:hover { background: var(--accent); color: #fff; }
.summary-lines { display: grid; gap: 8px; margin-bottom: 14px; font-size: 0.92rem; }
.summary-total { padding-top: 10px; border-top: 1px solid var(--border); align-items: baseline; }
.text-upper { text-transform: uppercase; }
@media (max-width: 1024px) { .checkout-summary { position: static; } }
@media (max-width: 560px) { .checkout-steps li { font-size: 0.75rem; padding: 8px 4px; } }

/* Project form: section stepper, platform editor */
.form-steps { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 6px; border-radius: 999px; background: var(--header-bg); backdrop-filter: blur(14px); border: 1px solid var(--border); }
.form-steps::-webkit-scrollbar { display: none; }
.form-steps a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.form-steps a:hover { background: var(--hover); color: var(--text-strong); }
.form-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--indigo-text); font-size: 0.75rem; font-weight: 800; }
.project-form .form-section { scroll-margin-top: calc(var(--header-h) + 70px); }
.platform-editor { display: grid; gap: 10px; }
.platform-edit { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; transition: border-color 0.2s; }
.platform-edit:has(.platform-toggle input:checked) { border-color: var(--accent-line); background: var(--surface); }
.platform-edit.has-error { border-color: var(--red); }
.platform-toggle { display: block; margin: 0; cursor: pointer; position: relative; }
.platform-toggle input { position: absolute; opacity: 0; }
.platform-toggle-body { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.platform-toggle-body > i:first-child { font-size: 1.3rem; width: 26px; text-align: center; color: var(--muted); }
.platform-toggle-body strong { flex: 1; color: var(--text-strong); }
.platform-check { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; font-size: 0.8rem; transition: all 0.2s var(--spring); }
.platform-toggle input:checked + .platform-toggle-body > i:first-child { color: var(--accent); }
.platform-toggle input:checked + .platform-toggle-body .platform-check { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }
.platform-toggle input:focus-visible + .platform-toggle-body { outline: 2px solid var(--accent); outline-offset: -2px; }
.platform-fields { padding: 4px 16px 14px; border-top: 1px dashed var(--border); animation: slide-down 0.25s var(--ease); }
.file-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-radius: 10px; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); font-size: 0.86rem; margin-bottom: 8px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 6; padding: 12px; margin: 0 -12px; background: var(--header-bg); backdrop-filter: blur(14px); border-top: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.price-cards .role-card-body small { display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
