/* ==========================================================
   MicroTask Pro - main stylesheet
   ========================================================== */
:root {
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --accent: #06b6d4;
  --bg: #f5f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e6e8f0;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #0369a1;
  --info-bg: #e0f2fe;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px -12px rgba(30, 27, 75, .25);
  --sidebar: 260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.site { background: #fff; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--primary-50); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.green { color: var(--success); } .red { color: var(--danger); }
.break { word-break: break-word; overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-50); }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.textarea { min-height: 110px; resize: vertical; }
.textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; min-height: 280px; }
.help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
input[type=file].input { padding: 8px; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: #166534; border-color: #bbf7d0; }
.alert-error, .alert-danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: #075985; border-color: #bae6fd; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: #166534; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-info { background: var(--info-bg); color: #075985; }
.badge-primary { background: var(--primary-100); color: var(--primary-600); }
.badge-gray { background: #f1f5f9; color: #475569; }
.level-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--lv); background: color-mix(in srgb, var(--lv) 12%, white);
  border: 1px solid color-mix(in srgb, var(--lv) 30%, white);
}
.level-badge .icon { width: 14px; height: 14px; }

/* ---------- Cards / grid ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.form .grid { gap: 0 16px; }

.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.cyan { background: #cffafe; color: #0e7490; }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }

.progress { height: 8px; background: #eef0f6; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width .4s; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #fafbfe; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }
.empty p { margin: 0; }

.pager { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); font-size: .88rem; background: #fff; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager span { border: 0; background: transparent; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { width: auto; min-width: 160px; padding: 9px 12px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .86rem; }
.tabs a.active, .tabs a:hover { background: var(--primary-50); color: var(--primary); }

/* ==========================================================
   Public website
   ========================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(230, 232, 240, .7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 14px -4px rgba(79, 70, 229, .5); }
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 3; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a { padding: 8px 14px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: .93rem; }
.nav-links > a:hover, .nav-links > a.active { color: var(--primary); background: var(--primary-50); }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle .icon { width: 24px; height: 24px; }

.hero { position: relative; overflow: hidden; padding: 80px 0 90px; background:
  radial-gradient(900px 500px at 85% -10%, rgba(6, 182, 212, .18), transparent 60%),
  radial-gradient(800px 500px at 0% 0%, rgba(79, 70, 229, .16), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: .82rem; margin-bottom: 18px; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--success); width: 16px; height: 16px; }

.mock { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 22px; position: relative; }
.mock-balance { background: linear-gradient(135deg, var(--primary), #7c3aed 60%, var(--accent)); color: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.mock-balance small { opacity: .85; }
.mock-balance strong { display: block; font-size: 2rem; letter-spacing: -.03em; }
.mock-task { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.mock-task .stat-icon { width: 38px; height: 38px; border-radius: 10px; }
.mock-task b { display: block; font-size: .9rem; }
.mock-task small { color: var(--muted); font-size: .78rem; }
.mock-task .amt { margin-left: auto; font-weight: 700; color: var(--success); }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; }
.float-chip.one { left: -28px; bottom: -20px; }
.float-chip.two { right: -18px; top: -16px; }
.float-chip .icon { color: var(--success); }

.stats-band { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.stats-band .card { display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px; }
.stats-band .item { text-align: center; }
.stats-band .item + .item { border-left: 1px solid var(--border); }
.stats-band strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }

.section { padding: 90px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--primary-50); line-height: 1; }
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.feature h3 { margin-top: 14px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--primary); box-shadow: 0 20px 40px -18px rgba(79, 70, 229, .45); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan-name { font-weight: 800; font-size: 1.1rem; color: var(--lv, var(--text)); display: flex; align-items: center; gap: 6px; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { display: flex; gap: 8px; padding: 6px 0; font-size: .9rem; color: var(--text-2); }
.plan li .icon { color: var(--success); width: 16px; height: 16px; margin-top: 3px; }
.plan .alt-path { font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.plan.current { border: 2px solid var(--success); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

.cta { background: linear-gradient(135deg, var(--primary), #7c3aed 60%, var(--accent)); border-radius: 24px; padding: 56px 40px; text-align: center; color: #fff; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
.cta p { opacity: .9; font-size: 1.05rem; margin-bottom: 26px; }

.page-hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--primary-50), #fff); text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.prose { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; color: var(--text-2); font-size: 1.02rem; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }

.footer { background: #0b1020; color: #cbd5e1; padding: 60px 0 0; }
.footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a:not(.brand) { display: block; color: #94a3b8; padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .muted { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding: 22px 20px; font-size: .85rem; color: #64748b; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; background:
  radial-gradient(700px 400px at 100% 0%, rgba(6, 182, 212, .14), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(79, 70, 229, .14), transparent 60%), var(--bg); }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 40px 16px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px; }
.auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .9rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { padding: 6px 0; font-weight: 500; }
.check-list .ok { color: var(--success); } .check-list .bad { color: var(--danger); }

/* ==========================================================
   Dashboard layout
   ========================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: #0f1229; color: #c7cbe0; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 60; transition: transform .25s ease; }
.sidebar .brand { color: #fff; }
.sidebar-head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.side-label { padding: 18px 22px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7194; font-weight: 700; }
.side-nav { padding: 12px; flex: 1; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b4b9d4; font-weight: 500; font-size: .92rem; margin-bottom: 2px; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active { background: linear-gradient(90deg, var(--primary), #6d5cf5); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8); }
.side-link .count { margin-left: auto; font-style: normal; background: #ef4444; color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 40; }
.topbar-title { font-size: 1.15rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--success-bg); color: #166534; font-weight: 700; font-size: .9rem; }
.balance-pill:hover { color: #166534; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn .icon { width: 22px; height: 22px; }
.only-mobile { display: none; }
.content { padding: 28px; flex: 1; }
.sidebar-backdrop { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h2 { margin: 0; font-size: 1.3rem; }

.welcome { background: linear-gradient(135deg, var(--primary), #7c3aed 60%, var(--accent)); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.welcome h2 { margin: 0 0 4px; font-size: 1.4rem; }
.welcome p { margin: 0; opacity: .9; }
.welcome .level-badge { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .3); }

.task-card { display: flex; flex-direction: column; padding: 20px; gap: 10px; height: 100%; }
.task-card h3 { margin: 0; font-size: 1rem; }
.task-card p { margin: 0; color: var(--muted); font-size: .88rem; flex: 1; }
.task-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reward { font-size: 1.2rem; font-weight: 800; color: var(--success); }
.task-card.done { opacity: .65; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: .92rem; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 600; text-align: right; }
.method-box { background: var(--bg); border: 1px dashed #c7cbe0; border-radius: 12px; padding: 14px; font-size: .9rem; white-space: pre-line; word-break: break-word; }
.proof-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .only-mobile { display: inline-grid; }
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 55; }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { flex: 1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .grid-4.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stats-grid .stat { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; }
  .stats-grid .stat-value { font-size: 1.1rem; }
  .hero { padding: 48px 0 70px; }
  .section { padding: 60px 0; }
  .stats-band .card { grid-template-columns: 1fr; gap: 16px; }
  .stats-band .item + .item { border-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .cta { padding: 40px 20px; }
  .auth-card { padding: 24px 20px; }
  .hide-sm { display: none; }
  .topbar-title { font-size: 1rem; }
  .filters .input, .filters .select, .filters .btn { width: 100%; min-width: 0; }
  .table th, .table td { padding: 10px 12px; }
  .card-body { padding: 16px; }
  .welcome { padding: 20px; }
}
