/* =========================================================
   TəmirUsta — design system
   ========================================================= */
:root {
  --bg: #fafaf9;
  --bg-2: #f5f5f4;
  --surface: #ffffff;
  --ink: #0c0a09;
  --ink-2: #292524;
  --muted: #78716c;
  --muted-2: #a8a29e;
  --line: #e7e5e4;
  --line-2: #f0efed;
  --brand: #ea580c;
  --brand-d: #c2410c;
  --brand-soft: #fff4ed;
  --brand-line: #fed7bf;
  --accent: #f59e0b;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(12,10,9,.05);
  --shadow: 0 1px 2px rgba(12,10,9,.04), 0 4px 16px -4px rgba(12,10,9,.08);
  --shadow-lg: 0 2px 4px rgba(12,10,9,.04), 0 24px 48px -12px rgba(12,10,9,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#app { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.15; font-weight: 650; }
::selection { background: #fed7bf; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
  white-space: nowrap; letter-spacing: -.005em; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-primary:hover { background: #292524; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(194,65,12,.3), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-brand:hover { background: var(--brand-d); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--bg-2); border-color: #d6d3d1; }
.btn-text { background: transparent; color: var(--ink-2); padding-left: 12px; padding-right: 12px; }
.btn-text:hover { background: var(--bg-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-d); }
.btn-soft:hover { background: #ffe8d9; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f5f5f4; }
.btn-danger { background: var(--surface); color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Top bar ---------- */
#topbar { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.8);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
#topbar.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.85); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.logo .mark svg { width: 18px; height: 18px; }
.logo .mark svg path:last-child { stroke: var(--brand); }
.nav .spacer { flex: 1; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--bg-2); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .15s; }
.icon-btn:hover { background: var(--bg-2); }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 2px #fff; display: none; }
.bell.has .dot { display: block; }
.avatar { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0; }
.avatar-btn { cursor: pointer; border-radius: 999px; padding: 2px; border: 1px solid var(--line); background: var(--surface); transition: .15s; }
.avatar-btn:hover { border-color: #d6d3d1; }
.avatar-btn .avatar { width: 32px; height: 32px; font-size: 12.5px; }
.menu-toggle { display: none; }

.dropdown { position: fixed; top: 74px; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); width: 340px; padding: 6px; z-index: 60;
  animation: pop .16s var(--ease); max-height: 70vh; overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown.user-menu { width: 240px; }
.dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.dd-head b { display: block; font-size: 14.5px; }
.dd-head small { color: var(--muted); font-size: 13px; }
.dropdown a, .dropdown button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 9px; border: none; background: none; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--ink-2); }
.dropdown a .ic, .dropdown button .ic { color: var(--muted); width: 17px; height: 17px; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-2); color: var(--ink); }
.dropdown .sep { height: 1px; background: var(--line-2); margin: 4px 0; }
.dropdown .danger { color: var(--red); }
.dropdown .danger .ic { color: var(--red); }
.notif-item { display: block !important; padding: 10px 12px; border-radius: 9px; font-size: 14px; line-height: 1.45; }
.notif-item small { color: var(--muted); font-size: 12.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: -160px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,.14), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-xs); }
.eyebrow .tag { background: var(--brand-soft); color: var(--brand-d); padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.hero h1 { font-size: 60px; line-height: 1.02; margin: 22px 0 20px; letter-spacing: -.045em; font-weight: 700; }
.hero h1 .hl { color: var(--brand); }
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 520px; line-height: 1.6; }
.searchbar { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); max-width: 580px; }
.searchbar .seg { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); }
.searchbar .seg.grow { flex: 1; }
.searchbar select, .searchbar input { border: none; outline: none; font: inherit; font-size: 15px; padding: 10px 0; background: transparent; color: var(--ink); min-width: 0; }
.searchbar input { flex: 1; }
.searchbar select { cursor: pointer; max-width: 170px; }
.searchbar .divider { width: 1px; height: 26px; background: var(--line); }
.quick-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.quick-tags span.lbl { color: var(--muted); font-size: 13.5px; margin-right: 2px; }
.quick-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink-2); transition: .15s; }
.quick-tags a:hover { border-color: var(--ink); color: var(--ink); }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 34px; height: 34px; font-size: 12px; border: 2.5px solid var(--bg); margin-left: -9px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.hero-proof .t { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.hero-proof .t b { color: var(--ink); }
.hero-proof .stars-row { display: flex; gap: 1px; color: var(--accent); }
.hero-proof .stars-row .ic { width: 14px; height: 14px; }

/* hero visual */
.hero-visual { position: relative; height: 480px; }
.hv-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.hv-main { left: 6%; right: 4%; top: 30px; padding: 20px; }
.hv-main .hv-map { height: 190px; border-radius: 14px; overflow: hidden; background: #f5f2ee; margin-bottom: 16px; }
.hv-row { display: flex; align-items: center; gap: 12px; }
.hv-row .grow { flex: 1; min-width: 0; }
.hv-row b { font-size: 15px; display: flex; align-items: center; gap: 5px; }
.hv-row b .ic { color: var(--brand); width: 16px; height: 16px; }
.hv-row small { color: var(--muted); font-size: 13px; }
.hv-eta { text-align: right; }
.hv-eta b { font-size: 22px; letter-spacing: -.03em; display: block; }
.hv-progress { display: flex; gap: 6px; margin-top: 16px; }
.hv-progress i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.hv-progress i.on { background: var(--ink); }
.hv-progress i.cur { background: linear-gradient(90deg, var(--brand) 55%, var(--line) 55%); }
.hv-float { padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; animation: floaty 6s ease-in-out infinite; }
.hv-float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.hv-float b { display: block; font-size: 14px; }
.hv-float small { color: var(--muted); }
.hv-f1 { left: -4%; bottom: 60px; }
.hv-f1 .ico { background: var(--green-soft); color: var(--green); }
.hv-f2 { right: -2%; bottom: 0; animation-delay: -3s; }
.hv-f2 .ico { background: var(--brand-soft); color: var(--brand); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* logo / stats strip */
.stats-strip { border-block: 1px solid var(--line); background: var(--surface); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip .s { padding: 28px 24px; border-left: 1px solid var(--line); }
.stats-strip .s:first-child { border-left: none; padding-left: 0; }
.stats-strip b { display: block; font-size: 30px; letter-spacing: -.04em; font-weight: 700; }
.stats-strip span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.sec-head .kicker { display: block; color: var(--brand); font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.sec-head h2 { font-size: 38px; margin: 0; letter-spacing: -.04em; font-weight: 700; }
.sec-head p { color: var(--muted); margin: 10px 0 0; font-size: 16.5px; max-width: 520px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: .2s var(--ease); display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cat-card:hover { border-color: #d6d3d1; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-2); color: var(--ink-2); transition: .2s; }
.cat-ico .ic { width: 22px; height: 22px; }
.cat-card:hover .cat-ico { background: var(--brand); color: #fff; }
.cat-card b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cat-card span { color: var(--muted); font-size: 13.5px; }
.cat-card .go { position: absolute; top: 22px; right: 22px; color: var(--muted-2); transition: .2s var(--ease); }
.cat-card:hover .go { color: var(--ink); transform: translateX(2px); }

/* craftsman cards */
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.craft-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .2s var(--ease); cursor: pointer; display: flex; flex-direction: column; }
.craft-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6d3d1; }
.craft-top { padding: 20px 20px 14px; display: flex; gap: 14px; align-items: center; }
.craft-top .avatar { width: 52px; height: 52px; font-size: 17px; border-radius: 14px; }
.craft-top .grow { flex: 1; min-width: 0; }
.craft-name { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.verified-badge { color: var(--brand); display: inline-flex; }
.verified-badge .ic { width: 17px; height: 17px; }
.craft-cats { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.craft-body { padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.55; min-height: 58px; }
.craft-meta { padding: 0 20px 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.craft-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fcfcfb;
  display: flex; align-items: center; justify-content: space-between; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 14.5px; }
.rating .ic { color: var(--accent); width: 16px; height: 16px; }
.rating .cnt { color: var(--muted); font-weight: 400; }
.price-tag { font-weight: 600; font-size: 14.5px; }
.price-tag span { color: var(--muted); font-weight: 400; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-2); color: var(--ink-2);
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: #fffbeb; color: #b45309; }
.chip.featured { background: var(--brand-soft); color: var(--brand-d); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.stars-svg { display: inline-flex; gap: 2px; color: var(--accent); }
.stars-svg .ic { width: 15px; height: 15px; }
.stars-svg .off { color: #e7e5e4; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 40px; }
.step .n .ic { width: 20px; height: 20px; }
.step .num { position: absolute; top: 26px; right: 28px; font-size: 13px; color: var(--muted-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.step b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.step p { color: var(--muted); margin: 8px 0 0; font-size: 14.5px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature .fi { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--brand); margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.feature b { font-size: 15.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band::before { content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,.45), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.035em; font-weight: 700; }
.cta-band p { margin: 0; color: #a8a29e; font-size: 16px; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-text { color: #e7e5e4; }
.cta-band .btn-text:hover { background: rgba(255,255,255,.08); }

/* ---------- Layout pages ---------- */
.page { padding-top: 40px; padding-bottom: 80px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 34px; margin: 0; letter-spacing: -.04em; font-weight: 700; }
.page-head p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s; }
.back-link:hover { color: var(--ink); }
.back-link .ic { width: 16px; height: 16px; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.layout > .panel + .panel { margin-top: 0; }
.panel h3 { margin: 0 0 16px; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.panel h3 .cnt { color: var(--muted); font-weight: 500; font-size: 14px; background: var(--bg-2); padding: 1px 8px; border-radius: 999px; }
.sticky { position: sticky; top: 88px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font: inherit; font-size: 14.5px; outline: none; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-xs); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d6d3d1; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12,10,9,.07); }
.field textarea { resize: vertical; min-height: 110px; }
.field input[type=range] { padding: 0; border: none; box-shadow: none; accent-color: var(--ink); }
.field input[type=file] { padding: 9px; font-size: 13.5px; cursor: pointer; }
.field input[type=file]::file-selector-button { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px;
  padding: 6px 14px; margin-right: 10px; font: inherit; font-weight: 500; cursor: pointer; }
select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px !important; }
.select { width: auto; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

.range-val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; transition: .15s; user-select: none; }
.pill .ic { width: 16px; height: 16px; }
.pill:hover { border-color: #d6d3d1; }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }

/* auth */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-side { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ''; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,.4), transparent 65%); }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: 36px; letter-spacing: -.04em; margin: 0 0 14px; max-width: 420px; font-weight: 700; }
.auth-side p { color: #a8a29e; max-width: 400px; margin: 0; font-size: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; align-items: center; gap: 12px; color: #e7e5e4; font-size: 15px; }
.auth-side li .ic { color: var(--brand); }
.auth-quote { border-top: 1px solid #292524; padding-top: 24px; font-size: 15px; color: #d6d3d1; }
.auth-quote small { display: block; margin-top: 10px; color: #78716c; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-card h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.035em; font-weight: 700; }
.auth-card .muted { color: var(--muted); margin: 0 0 26px; }
.tabs { display: flex; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 32px; border: 1px solid var(--line); }
.tabs button { flex: 1; border: none; background: none; padding: 8px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: .15s; }
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted-2); margin: 20px 0; font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 11px; font: inherit; font-size: 14.5px;
  font-weight: 500; cursor: pointer; transition: .15s; box-shadow: var(--shadow-xs); }
.google-btn:hover { background: var(--bg-2); }
.test-accounts { margin-top: 24px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.test-accounts summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.test-accounts summary::-webkit-details-marker { display: none; }
.test-accounts[open] summary { border-bottom: 1px dashed var(--line); }
.test-accounts .rows { padding: 8px; display: grid; gap: 2px; }
.test-accounts .acc { display: flex; justify-content: space-between; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.test-accounts .acc:hover { background: var(--bg-2); color: var(--ink); }
.test-accounts code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.info-note { display: flex; gap: 10px; background: var(--bg-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
.info-note .ic { color: var(--muted); margin-top: 1px; }

/* profile / detail */
.detail-head { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.detail-head::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), #f59e0b); }
.detail-head .avatar { width: 88px; height: 88px; font-size: 30px; border-radius: 22px; }
.detail-head h1 { margin: 0 0 4px; font-size: 28px; display: flex; align-items: center; gap: 8px; letter-spacing: -.035em; font-weight: 700; }
.detail-head .verified-badge .ic { width: 22px; height: 22px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.detail-meta .ic { width: 16px; height: 16px; }
.detail-price { text-align: right; padding-left: 24px; border-left: 1px solid var(--line); }
.detail-price .p { font-size: 26px; font-weight: 700; letter-spacing: -.035em; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.portfolio-grid .pf { aspect-ratio: 4 / 3; border-radius: 12px; position: relative; overflow: hidden; }
.portfolio-grid .pf::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.portfolio-grid .pf span { position: absolute; z-index: 1; bottom: 10px; left: 12px; right: 12px; color: #fff; font-size: 13px; font-weight: 500; }
.review { border-top: 1px solid var(--line-2); padding: 16px 0; }
.review:first-of-type { border-top: none; padding-top: 0; }
.review .rh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who .avatar { width: 32px; height: 32px; font-size: 12px; }
.review p { margin: 10px 0 4px; color: var(--ink-2); font-size: 14.5px; }
.review small { color: var(--muted); font-size: 12.5px; }

/* orders */
.order-list { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); cursor: pointer; transition: .15s var(--ease); }
.order-row:hover { border-color: #d6d3d1; box-shadow: var(--shadow); }
.order-row .oi { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.order-row .oi .ic { width: 20px; height: 20px; }
.order-row .main { flex: 1; min-width: 0; }
.order-row .main b { font-weight: 600; }
.order-row .main .d { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row .side { text-align: right; font-size: 13px; color: var(--muted); }
.order-row .side div { color: var(--ink-2); font-weight: 500; }
.order-row .id { color: var(--muted-2); font-weight: 400; font-size: 13.5px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.panel .order-row { padding: 12px 14px; }
.panel .order-row .side { display: none; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { background: var(--bg-2); color: #57534e; }
.st-accepted { background: #eff6ff; color: #1d4ed8; }
.st-enroute { background: var(--brand-soft); color: var(--brand-d); }
.st-in_progress { background: #f5f3ff; color: #6d28d9; }
.st-completed { background: var(--green-soft); color: var(--green); }
.st-cancelled { background: var(--red-soft); color: var(--red); }

.order-title { display: flex; align-items: center; gap: 14px; }
.order-title .oi { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.order-title .oi .ic { width: 24px; height: 24px; }
.order-title h1 { margin: 0; font-size: 28px; letter-spacing: -.035em; font-weight: 700; }
.order-title h1 span { color: var(--muted-2); font-weight: 500; font-size: 20px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.kv > div { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.kv small { color: var(--muted); font-size: 12.5px; display: block; }
.kv .avatar { width: 34px; height: 34px; font-size: 12px; }
.line-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.line-item:last-of-type { border-bottom: none; }

/* tracking */
.track { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.timeline { display: flex; flex-direction: column; }
.tl-step { display: flex; gap: 14px; }
.tl-step .mk { display: flex; flex-direction: column; align-items: center; }
.tl-step .mk .circle { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tl-step .mk .circle .ic { width: 13px; height: 13px; stroke-width: 3; }
.tl-step .mk .bar { width: 1.5px; flex: 1; background: var(--line); min-height: 22px; }
.tl-step.done .circle { background: var(--ink); border-color: var(--ink); color: #fff; }
.tl-step.done .bar { background: var(--ink); }
.tl-step.active .circle { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-step .txt { padding: 1px 0 18px; }
.tl-step .txt b { font-size: 14.5px; font-weight: 600; }
.tl-step:not(.done):not(.active) .txt b { color: var(--muted); font-weight: 500; }
.tl-step .txt span { color: var(--muted); font-size: 13px; }
#map { height: 260px; border-radius: 14px; overflow: hidden; background: #f5f2ee; border: 1px solid var(--line-2); }

/* chat */
.chat { display: flex; flex-direction: column; height: 440px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.msg { max-width: 75%; padding: 9px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.msg small { display: block; opacity: .6; font-size: 11px; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; margin-top: 14px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chat-input input { flex: 1; border: none; outline: none; font: inherit; padding: 0 12px; background: transparent; }
.chat-input .btn { padding: 9px 16px; }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-tile .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.stat-tile .top .ic { width: 17px; height: 17px; color: var(--muted-2); }
.stat-tile b { font-size: 30px; display: block; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fcfcfb; }
.table th { color: var(--muted); font-weight: 500; font-size: 12.5px; background: var(--bg); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .avatar { width: 30px; height: 30px; font-size: 11.5px; }

/* footer */
#footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
#footer .f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
#footer h4 { margin: 0 0 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
#footer a { display: block; color: var(--muted); padding: 5px 0; font-size: 14px; transition: .15s; }
#footer a:hover { color: var(--ink); }
#footer a.logo { display: flex; padding: 0; color: var(--ink); font-size: 18px; }
#footer .f-about p { color: var(--muted); max-width: 300px; font-size: 14px; margin: 14px 0 20px; }
#footer .f-bot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
#footer .f-bot .links { display: flex; gap: 20px; }
#footer .f-bot .links a { padding: 0; font-size: 13px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }

/* toast */
#toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 18px 11px 14px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 500; animation: slideUp .3s var(--ease); max-width: 420px; }
.toast .ic { width: 17px; height: 17px; }
.toast.ok .ic { color: #4ade80; }
.toast.err .ic { color: #f87171; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto 16px; }
.empty .ico .ic { width: 26px; height: 26px; }
.empty h2 { color: var(--ink); font-size: 22px; margin: 0 0 6px; }
.empty p { margin: 0; }
.empty-sm { color: var(--muted); font-size: 14px; padding: 20px; text-align: center; background: var(--bg); border-radius: 12px; border: 1px dashed var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spin { display: inline-block; width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 80px; grid-column: 1 / -1; }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, #fafaf9 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); height: 230px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 24px; }
.muted { color: var(--muted); }
.preset-box { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line-2); padding: 12px 14px; border-radius: 12px; margin-bottom: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.checklist li .ic { color: var(--green); width: 17px; height: 17px; margin-top: 2px; }
#star-pick { display: flex; gap: 6px; cursor: pointer; margin-bottom: 4px; }
#star-pick .ic { width: 30px; height: 30px; color: #e7e5e4; transition: transform .1s, color .1s; }
#star-pick span.on .ic { color: var(--accent); }
#star-pick span:hover .ic { transform: scale(1.12); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 920px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .craft-grid, .steps, .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .stat-grid, .stats-strip .container { grid-template-columns: repeat(2,1fr); }
  .stats-strip .s:nth-child(3) { border-left: none; padding-left: 0; }
  .stats-strip .s:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .layout, .track { grid-template-columns: 1fr !important; }
  .sticky { position: static; }
  .hero h1 { font-size: 44px; }
  .sec-head h2 { font-size: 30px; }
  #footer .f-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .detail-head { flex-wrap: wrap; }
  .detail-price { text-align: left; border-left: none; padding-left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .nav-user .btn-text { display: none; }
  .craft-grid, .cat-grid, .steps, .grid-2, .portfolio-grid, .features, .kv { grid-template-columns: 1fr; }
  .searchbar { flex-direction: column; border-radius: 20px; align-items: stretch; padding: 8px; }
  .searchbar .divider { display: none; }
  .searchbar select { max-width: none; }
  .searchbar .seg { padding: 2px 10px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 36px; }
  section.block { padding: 64px 0; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; }
  .order-row .side { display: none; }
  .dropdown { right: 12px; left: 12px; width: auto !important; }
  #footer .f-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
