/* ===== დიზაინის საფუძველი: ფერები, ჩრდილები, რადიუსები ===== */
:root {
  --bg: #fafafb;
  --bg-alt: #f2f3f7;
  --surface: #ffffff;
  --text: #0f1222;
  --muted: #646b80;
  --border: #e6e8ef;
  --accent: #5b4cf0;
  --accent-2: #3d8bff;
  --accent-soft: #eeecff;
  --accent-text: #ffffff;
  --error: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
  --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 4px 16px rgba(15, 18, 34, .05);
  --shadow-lg: 0 24px 60px -12px rgba(15, 18, 34, .18);
  --glow: rgba(91, 76, 240, .16);
  --dots: rgba(15, 18, 34, .07);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c12;
    --bg-alt: #10121a;
    --surface: #151824;
    --text: #eceef6;
    --muted: #9298ad;
    --border: #232738;
    --accent: #8b7dff;
    --accent-2: #5aa2ff;
    --accent-soft: #1e1c3d;
    --accent-text: #0b0c12;
    --error: #f87171;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .2);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .6);
    --glow: rgba(139, 125, 255, .18);
    --dots: rgba(255, 255, 255, .06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Georgian", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* კონტენტი დაბალანსებულ სვეტშია (1280px), ფონები და დეკორაცია კი — ეკრანის მთელ სიგანეზე */
.container { max-width: calc(var(--max) + 2 * clamp(20px, 4vw, 48px)); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }

.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-text); font-size: .78rem; font-family: ui-monospace, monospace;
}
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-link { text-decoration: none; font-size: .94rem; font-weight: 500; }
.lang-toggle {
  font: inherit; font-size: .8rem; font-weight: 600;
  background: none; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-text);
  border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn-small { padding: 7px 14px; font-size: .88rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn-danger { background: transparent; color: var(--error); border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.btn-danger:hover { background: var(--error); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: #1e1b4b; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vh, 72px) 0 clamp(48px, 7vh, 80px);
  min-height: calc(100vh - 68px); display: flex; align-items: center;
  background: radial-gradient(1200px 520px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg);
}
.hero > .container { width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 4rem); }
.hero .lead { font-size: clamp(1.05rem, 1.15vw, 1.3rem); max-width: 640px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 40px; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 0; padding-top: 28px; border-top: 1px solid var(--border); }
.stats dt { font-size: 1.5rem; font-weight: 700; }
.stats dd { margin: 0; color: var(--muted); font-size: .88rem; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; max-height: calc(100vh - 220px); object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.float-card strong { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.check-icon {
  flex: none;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-head { max-width: 760px; }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.services { grid-template-columns: repeat(3, 1fr); }
.svc { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-img { aspect-ratio: 16 / 9; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.svc-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .92rem; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700;
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps .num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); opacity: .35; margin-bottom: 10px; line-height: 1; }
.steps p { color: var(--muted); margin: 0; font-size: .94rem; }

.work { grid-template-columns: repeat(3, 1fr); }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.work-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .5s; }
.work-card:hover img { transform: scale(1.05); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent 55%); }
.work-info { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; }
.work-info h3 { margin-bottom: 2px; }
.work-info p { margin: 0; font-size: .88rem; opacity: .8; }
.tag {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: rgba(255,255,255,.92); color: #111; font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}

.team { grid-template-columns: repeat(4, 1fr); }
.member { text-align: center; padding: 28px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.member img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--accent-soft); }
.member h3 { margin-bottom: 2px; }
.member p { color: var(--muted); font-size: .9rem; margin: 0; }

.reviews { grid-template-columns: repeat(3, 1fr); }
.review { margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; color: var(--muted); font-style: italic; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem;
}

.discord-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 48px; border-radius: 22px; color: #fff;
  background:
    linear-gradient(120deg, rgba(49,46,129,.92), rgba(88,101,242,.88)),
    url("https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=1400&q=60&auto=format&fit=crop") center / cover;
  box-shadow: var(--shadow-lg);
}
.discord-band h2 { margin-bottom: 6px; }
.discord-band p { margin: 0; opacity: .85; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Forms ---------- */
.order-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.order-aside img { border-radius: 18px; margin-top: 26px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.auth-hint { font-size: .92rem; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); margin: 0; }
.auth-hint:empty { display: none; }
.auth-hint a { color: var(--accent); font-weight: 600; }

form { display: grid; gap: 18px; }
.form-card { padding: 30px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-budget { grid-template-columns: 1fr auto; align-items: end; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
input, select, textarea {
  font: inherit; font-weight: 400; font-size: .95rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { resize: vertical; }
.invalid { border-color: var(--error) !important; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }

.tiles { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.tile {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--muted); }
.tile input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.tile-ico { font-size: 1.15rem; line-height: 1; }
.tiles.invalid .tile { border-color: var(--error); }

.currency { border: 0; padding: 0; margin: 0; min-width: 0; }
.currency legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.currency-opts { display: flex; gap: 6px; }
.currency-opts label {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--bg);
}
.currency-opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.currency-opts input { width: auto; margin: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check span { flex: 1; min-width: 0; }
.check.invalid { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.4em; font-size: .94rem; }
.form-status:empty { min-height: 0; }
.form-status.error { color: var(--error); }
.form-status.ok { color: var(--ok); font-weight: 500; }

.success-card { text-align: center; padding: 48px 30px; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 700;
  background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok);
}
.success-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.success-num { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Account ---------- */
.page { padding: 48px 0 88px; min-height: calc(100vh - 68px); }
.auth-card { max-width: 440px; margin: 0 auto; padding: 32px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg-alt); border-radius: var(--radius-sm); margin-bottom: 24px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .92rem; border: 0; border-radius: 8px; padding: 9px; cursor: pointer;
  background: transparent; color: var(--muted);
}
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs-inline { display: inline-grid; grid-template-columns: auto auto; margin-bottom: 22px; }
.tabs-inline button { padding: 8px 18px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.orders { display: grid; gap: 14px; }
.order-item { padding: 20px 22px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.order-top h3 { margin: 0; }
.order-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.order-details { white-space: pre-wrap; word-break: break-word; font-size: .94rem; margin: 0; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .92rem; white-space: pre-wrap; }
.note b { display: block; font-size: .8rem; color: var(--accent); margin-bottom: 2px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .btn { margin-top: 6px; }

.progress { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { font-size: .78rem; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--border); border-radius: 2px; overflow-wrap: anywhere; }
.progress li.done { border-color: var(--accent); color: var(--text); }
.progress li.current { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.progress.cancelled li { border-color: var(--border); color: var(--muted); font-weight: 400; text-decoration: line-through; }

.panel { padding: 26px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
.panel > .muted { font-size: .88rem; margin-bottom: 18px; }
.panel form { gap: 14px; }
.panel .btn { justify-self: start; }

/* პროფილი — მთელ სიგანეზე: მარცხნივ ბარათი, მარჯვნივ პარამეტრები */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-card { --rc: var(--accent); position: sticky; top: 88px; overflow: hidden; padding: 0 24px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.admin-main .profile-card { top: 24px; }
.profile-cover {
  height: 96px; margin: 0 -24px; justify-self: stretch;
  background: linear-gradient(120deg, var(--rc), color-mix(in srgb, var(--rc) 40%, var(--accent)));
}
.avatar-xl { width: 112px; height: 112px; font-size: 2.6rem; margin-top: -56px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-who { display: grid; justify-items: center; gap: 4px; }
.profile-who h2 { margin: 0; font-size: 1.35rem; }
.profile-who p { margin: 0; word-break: break-all; }
.profile-card .photo-actions { justify-content: center; margin: 6px 0 0; }
.photo-hint { margin: 0; }
.profile-facts { margin: 8px 0 0; width: 100%; display: grid; gap: 0; border-top: 1px solid var(--border); text-align: left; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 600; text-align: right; }
.profile-main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profile-main .span-2 { grid-column: 1 / -1; }

.status, .role-badge { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-reviewing { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #ede9fe; color: #5b21b6; }
.status-done { background: #dcfce7; color: #166534; }
.status-cancelled { background: #f3f4f6; color: #4b5563; }
/* როლის ფერი მოდის როლიდან (--rc), საიტზე არჩეული ფერით */
.role-badge { --rc: #6b7280; background: color-mix(in srgb, var(--rc) 16%, transparent); color: color-mix(in srgb, var(--rc) 80%, var(--text)); display: inline-block; }
.role-badge.state-blocked { --rc: #dc2626; }

/* ---------- Admin layout ---------- */
.admin-body { background: var(--bg-alt); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar .logo { padding: 4px 8px 18px; }
.side-nav { display: grid; gap: 2px; }
.side-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: inherit; font-size: .93rem; font-weight: 500; text-align: left; cursor: pointer;
  padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
}
.side-nav button:hover { background: var(--bg-alt); color: var(--text); }
.side-nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav .ico { width: 20px; text-align: center; }
.side-nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--error); color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: .88rem; }
.side-user .avatar { width: 32px; height: 32px; font-size: .85rem; }
.side-user b { display: block; line-height: 1.2; }
.side-links { display: flex; gap: 8px; }
.side-links a, .side-links button { flex: 1; font-size: .82rem; }

.admin-main { padding: 32px 36px 64px; min-width: 0; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.view-head h1 { font-size: 1.6rem; margin: 0; }
.view-head p { margin: 4px 0 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi b { display: block; font-size: 1.9rem; line-height: 1.2; margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.dash-grid .panel h2 { margin-bottom: 14px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: .88rem; }
.bar-track { height: 10px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); min-width: 2px; }
.bar b { text-align: right; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed li { font-size: .88rem; display: grid; gap: 1px; }
.feed li span { color: var(--muted); font-size: .8rem; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { flex: 1 1 240px; width: auto; }
.toolbar select { width: auto; flex: 0 0 auto; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.filter-tab:hover { border-color: var(--muted); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.filter-tab .count { font-size: .72rem; font-weight: 600; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); text-align: center; }
.filter-tab.active .count { background: rgba(255,255,255,.25); color: inherit; }
.filter-tab .count.hot { background: var(--error); color: #fff; }

.admin-item { border-left: 4px solid var(--border); }
.status-border-new { border-left-color: #3b82f6; }
.status-border-reviewing { border-left-color: #f59e0b; }
.status-border-in_progress { border-left-color: #8b5cf6; }
.status-border-done { border-left-color: var(--ok); }
.order-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.contact { color: var(--muted); word-break: break-all; }
.icon-btn {
  font: inherit; font-size: .78rem; cursor: pointer; padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 16px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.segmented button {
  flex: 1 1 auto; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--muted);
}
.segmented button:hover:not(:disabled) { background: var(--surface); color: var(--text); }
.segmented button.active { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: var(--shadow); cursor: default; }
.order-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.order-tools label { font-size: .82rem; color: var(--muted); }
.note-edit { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.note-edit textarea { min-height: 44px; }
.internal textarea { background: color-mix(in srgb, var(--warn) 7%, var(--bg)); }

/* ცხრილი */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; 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: var(--bg-alt); }
.user-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.user-cell b { display: block; line-height: 1.3; }
.user-cell span { color: var(--muted); font-size: .84rem; word-break: break-all; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.you { font-size: .72rem; color: var(--accent); font-weight: 600; margin-left: 6px; }

/* როლები */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.role-card { --rc: #6b7280; padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--rc); }
.role-card > .btn, .role-card > span:last-child { align-self: flex-start; margin-top: auto; }
.role-head { display: flex; align-items: center; gap: 12px; }
.role-head h3 { margin: 0; }
.role-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 20%, transparent); }
.perm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.perm-list li { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); }
.perm-list li.muted { background: none; border: 0; padding: 0; }

.dialog-wide { width: min(640px, calc(100vw - 32px)); }
.role-row { grid-template-columns: 1fr 90px; }
.role-row input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.perm-groups { display: grid; gap: 12px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.perm-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px 10px; margin: 0; min-width: 0; }
.perm-group legend { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 6px; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-weight: 400; }
.perm + .perm { border-top: 1px solid var(--border); }
.perm input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.perm span { display: grid; min-width: 0; }
.perm b { font-weight: 600; font-size: .92rem; }
.perm small { color: var(--muted); font-size: .8rem; }
.perm:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* ფანჯარა (dialog) */
dialog {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(10, 12, 20, .55); backdrop-filter: blur(2px); }
.dialog-body { padding: 26px; display: grid; gap: 14px; }
.dialog-body h2 { font-size: 1.2rem; margin: 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.dialog-danger { border-top: 1px solid var(--border); padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.pw-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); text-align: center;
}
.toast.error { background: var(--error); color: #fff; }

/* ---------- ავატარები ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 30px; height: 30px; font-size: .78rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }
.photo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.user-photo { display: flex; align-items: center; gap: 14px; }
.user-photo .photo-actions { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- შეკვეთის ფორმა ნაბიჯებად ---------- */
.wizard-wrap { max-width: 1100px; }
@media (min-width: 1100px) { .tiles-big { grid-template-columns: repeat(3, 1fr); } }
.auth-hint.center { text-align: center; margin: -18px auto 22px; max-width: 520px; }
.wizard { padding: 0; overflow: hidden; gap: 0; }
.wiz-steps {
  list-style: none; margin: 0; padding: 18px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-bottom: 1px solid var(--border); background: var(--bg-alt);
}
.wiz-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; min-width: 0; }
.wiz-steps li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--surface); font-weight: 700; font-size: .85rem;
}
.wiz-steps li.active { color: var(--text); }
.wiz-steps li.active b { font-weight: 600; }
.wiz-steps li.active span { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.wiz-steps li.done span { border-color: var(--accent); color: var(--accent); }
.wiz-steps li.done span::before { content: "✓"; }
.wiz-steps li.done span { font-size: 0; }
.wiz-steps li.done span::before { font-size: .85rem; }
.wiz-pane { display: grid; gap: 18px; padding: 28px 28px 8px; animation: wiz-in .25s ease; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wiz-title { font-size: 1.25rem; margin: 0; }
.wizard .form-status { padding: 0 28px; }
.wiz-nav { display: flex; gap: 10px; justify-content: space-between; padding: 18px 28px 26px; }
.wiz-nav #wiz-next, .wiz-nav #wiz-submit { margin-left: auto; min-width: 150px; }
.tiles-big { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tiles-big .tile { align-items: flex-start; padding: 16px; gap: 14px; }
.tiles-big .tile-ico { font-size: 1.6rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--bg-alt); }
.tiles-big .tile:has(input:checked) .tile-ico { background: var(--surface); }
.tile-txt { display: grid; gap: 2px; min-width: 0; }
.tile-txt b { font-size: .98rem; }
.tile-txt small { color: var(--muted); font-weight: 400; font-size: .82rem; line-height: 1.45; }
.wiz-summary { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); }
.sum-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; font-size: .9rem; }
.sum-row + .sum-row { border-top: 1px solid var(--border); }
.link-btn { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }

/* ---------- შეფასებები ---------- */
.reviews-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.reviews-head > div:first-child { margin-right: auto; }
.reviews-head h2 { margin: 0; }
.rating-summary { display: flex; align-items: center; gap: 12px; }
.rating-summary > b { font-size: 2.4rem; line-height: 1; }
.rating-summary .stars { display: block; margin: 0; }
.review { display: flex; flex-direction: column; }
.review .stars { margin-bottom: 10px; }
.review blockquote { flex: 1; font-style: normal; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.review figcaption div { display: grid; line-height: 1.3; min-width: 0; }
.review figcaption .small { font-weight: 400; }
.verified { color: var(--ok) !important; }
.reviews-empty { grid-column: 1 / -1; }
.star-input { display: flex; align-items: center; gap: 4px; }
.star-input button {
  font-size: 2rem; line-height: 1; padding: 2px; border: 0; background: none; cursor: pointer;
  color: var(--border); transition: transform .1s, color .1s;
}
.star-input button.on { color: #f59e0b; }
.star-input button:hover { transform: scale(1.15); }
.star-label { margin-left: 10px; font-weight: 600; color: var(--muted); }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social:empty { display: none; }
.social a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted); }
.social a:hover { color: var(--accent); }

/* ---------- ქმედებები შეკვეთაზე ---------- */
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.badge-dot { margin-left: 6px; font-size: .72rem; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--error); color: #fff; }

/* ---------- ჩატი ---------- */
.chat { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.chat-list { max-height: 360px; min-height: 140px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; color: var(--muted); font-size: .9rem; text-align: center; }
.chat-day { align-self: center; font-size: .75rem; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 82%; }
.msg.mine { align-self: flex-end; }
.bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.msg.mine .bubble { border-radius: 16px 16px 4px 16px; background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.msg-meta { font-size: .7rem; opacity: .7; margin-top: 3px; }
.msg.mine .msg-meta { text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { resize: none; min-height: 42px; padding: 10px 12px; }
.chat-form textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-form .btn { flex: none; }

/* ---------- კონტენტის რედაქტორი ---------- */
.tabs-3 { grid-template-columns: auto auto auto; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.edit-card { padding: 16px; display: grid; gap: 12px; align-content: start; }
.edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-fields label { font-size: .8rem; }
.edit-fields input, .edit-fields textarea { padding: 8px 10px; font-size: .88rem; }
.span-2 { grid-column: 1 / -1; }
.img-pick { position: relative; }
.img-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-alt); }
.img-pick .btn { position: absolute; left: 10px; bottom: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.img-pick.round { display: flex; align-items: center; gap: 14px; }
.img-pick.round img { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 50%; }
.img-pick.round .btn { position: static; }
.item-tools { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.add-card {
  min-height: 160px; display: grid; place-items: center; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--accent); border-style: dashed; background: transparent; box-shadow: none;
}
.add-card:hover { background: var(--accent-soft); }
.links-panel { max-width: 760px; }
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- სურათის მორგება ---------- */
.crop-dialog { width: auto; max-width: calc(100vw - 24px); }
.crop-stage {
  position: relative; margin: 0 auto; overflow: hidden; border-radius: var(--radius-sm);
  cursor: grab; touch-action: none; user-select: none; background: var(--bg-alt);
}
.crop-stage.dragging { cursor: grabbing; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-frame { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(255,255,255,.9); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.crop-frame.round { border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.crop-tools { display: flex; align-items: center; gap: 10px; }
.crop-tools input[type=range] { flex: 1; padding: 0; accent-color: var(--accent); border: 0; box-shadow: none; }
.crop-tools .icon-btn { font-size: 1rem; width: 34px; height: 34px; padding: 0; }

/* ---------- მიმოწერის გვერდი ---------- */
.inbox {
  display: grid; grid-template-columns: 340px 1fr; overflow: hidden; padding: 0;
  height: calc(100vh - 230px); min-height: 520px;
}
.admin-main .inbox { height: calc(100vh - 150px); }
.inbox-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.inbox-side-head { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--border); }
.inbox-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
}
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-n { font-size: .7rem; font-weight: 700; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); text-align: center; }
.chip.active .chip-n { background: var(--surface); color: var(--accent); }
.chip.hot .chip-n { background: var(--error); color: #fff; }

/* სტატუსის ფერადი ზოლი საუბრის მარცხნივ */
.conv { border-left: 3px solid transparent; }
.status-edge-new { border-left-color: #3b82f6; }
.status-edge-reviewing { border-left-color: #f59e0b; }
.status-edge-in_progress { border-left-color: #8b5cf6; }
.status-edge-done { border-left-color: var(--ok); }
.status-edge-cancelled { border-left-color: var(--border); }
.conv.archived { opacity: .75; }

/* საუბრის თავი: სტატუსის არჩევა და „⋯“ მენიუ */
.thread-status { width: auto; flex: none; padding: 6px 28px 6px 10px; font-size: .82rem; font-weight: 600; border-radius: 999px; }
.status-select-new { color: #1e40af; background-color: #dbeafe; border-color: #bfdbfe; }
.status-select-reviewing { color: #92400e; background-color: #fef3c7; border-color: #fde68a; }
.status-select-in_progress { color: #5b21b6; background-color: #ede9fe; border-color: #ddd6fe; }
.status-select-done { color: #166534; background-color: #dcfce7; border-color: #bbf7d0; }
.status-select-cancelled { color: #4b5563; background-color: #f3f4f6; border-color: #e5e7eb; }
.thread-menu { position: relative; flex: none; }
.thread-menu > .icon-btn { width: 34px; height: 34px; font-size: 1.1rem; padding: 0; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
  display: grid; padding: 6px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.menu-item { font: inherit; font-size: .9rem; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.menu-item:hover { background: var(--bg-alt); }
.menu-item.danger { color: var(--error); }
.thread-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; font-size: .85rem; background: var(--accent-soft); border-bottom: 1px solid var(--border);
}
.inbox-list { flex: 1; overflow-y: auto; padding: 6px; }
.inbox-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 30px 16px; }
.conv {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  font: inherit; color: inherit; padding: 12px; border: 0; border-radius: 12px; background: transparent;
}
.conv:hover { background: var(--bg-alt); }
.conv.active { background: var(--accent-soft); }
.conv .avatar { width: 42px; height: 42px; flex: none; }
.conv-ico { font-weight: 700; }
.conv-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.inbox-list { overflow-x: hidden; }
.conv-top b { min-width: 0; font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { flex: none; font-size: .75rem; color: var(--muted); }
.conv-sub { display: flex; gap: 8px; align-items: center; }
.conv-preview { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-preview { color: var(--text); font-weight: 600; }
.conv.unread .conv-time { color: var(--accent); font-weight: 600; }
.conv-badge { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .72rem; font-weight: 700; text-align: center; }
.conv-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .75rem; }
.conv-meta .status { font-size: .7rem; padding: 2px 8px; }

.inbox-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-alt); }
.inbox-placeholder { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
.inbox-ph-ico { font-size: 3rem; margin-bottom: 6px; opacity: .6; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.thread-head .avatar { width: 40px; height: 40px; flex: none; }
.thread-info { flex: 1; min-width: 0; display: grid; }
.thread-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-back { display: none; }
.thread-context {
  padding: 8px 16px; font-size: .82rem; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat.chat-full { flex: 1; display: flex; flex-direction: column; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.chat.chat-full .chat-list { flex: 1; max-height: none; min-height: 0; }

/* ---------- ნავიგაციის ბილიკი ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- წესები / პოლიტიკა ---------- */
.legal { padding: 36px 40px; }
.legal h1 { font-size: clamp(1.35rem, 6vw, 1.9rem); margin-bottom: 4px; overflow-wrap: break-word; hyphens: auto; }
.legal, .thanks-card, .nf-card { overflow-wrap: break-word; }
.thanks-card h1, .nf-card h1 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal b { color: var(--text); }
.legal code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg-alt); }

/* ---------- მადლობის და 404 გვერდები ---------- */
.thanks-card, .nf-card { padding: 44px 40px; text-align: center; }
.thanks-card h1, .nf-card h1 { font-size: 1.8rem; }
.thanks-num { font-size: 1.05rem; }
.thanks-num b { color: var(--accent); }
.thanks-sub { font-size: 1.05rem; margin: 26px 0 12px; }
.thanks-steps { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 460px; display: grid; gap: 10px; text-align: left; }
.thanks-steps li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.thanks-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: .85rem; }
.thanks-steps p { margin: 0; }
.thanks-card .auth-hint { margin: 0 auto 6px; max-width: 460px; }
.nf-code { font-size: 5rem; font-weight: 800; line-height: 1; margin: 0 0 8px; color: var(--accent); opacity: .85; }
.nf-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.nf-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nf-links a:hover { color: var(--accent); }

/* ---------- ტელეფონის მიმაგრებული ღილაკი ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    animation: sticky-in .25s ease;
  }
  .sticky-cta span { display: grid; min-width: 0; line-height: 1.3; }
  .sticky-cta b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-cta small { color: var(--muted); font-size: .78rem; }
  .sticky-cta .btn { flex: none; }
  .site-footer { padding-bottom: 96px; }
}
@keyframes sticky-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- ატვირთვის პროგრესი ---------- */
.progress-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; width: min(320px, calc(100vw - 32px));
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.progress-pop b { font-size: .92rem; }
.progress-pop span { font-size: .8rem; color: var(--muted); }
.progress-pop span:empty { display: none; }
.pp-track { height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; margin-top: 6px; }
.pp-bar { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.progress-pop.busy .pp-bar { width: 40% !important; animation: pp-busy 1.1s ease-in-out infinite; }
@keyframes pp-busy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.progress-pop.ok .pp-bar { background: var(--ok); }
.progress-pop.ok b { color: var(--ok); }
.progress-pop.error b { color: var(--error); }
.progress-pop.error .pp-track { display: none; }
@media (prefers-reduced-motion: reduce) { .progress-pop.busy .pp-bar { animation: none; width: 100% !important; opacity: .5; } }

/* =====================================================================
   ვიზუალის განახლება — დაბალანსებული, მარტივი, ერთიანი სტილი
   (ეს ფენა ზემოთ მოცემულ საბაზო სტილებს აზუსტებს)
   ===================================================================== */

body { font-size: 16px; line-height: 1.7; }
h1 { letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.02em; }
h3 { letter-spacing: -.01em; }

/* სექციის სათაური — ცენტრში, ერთნაირი რიტმით */
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin-bottom: 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; letter-spacing: .1em;
}

/* ჰედერი */
.site-header { background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent); }
.header-inner { height: 72px; }
.nav { gap: 6px; margin-left: 24px; }
.nav a { padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-alt); }
.logo-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ღილაკები */
.btn { border-radius: 12px; }
.btn:not(.btn-ghost):not(.btn-light):not(.btn-danger) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px -8px var(--accent);
}
.btn:not(.btn-ghost):not(.btn-light):not(.btn-danger):hover { box-shadow: 0 12px 28px -8px var(--accent); }
.btn-ghost { background: var(--surface); }

/* მთავარი ბლოკი: ნაზი ნათება + წერტილოვანი ბადე მთელ სიგანეზე */
.hero {
  position: relative; overflow: hidden;
  min-height: min(860px, calc(100vh - 72px));
  padding: clamp(48px, 8vh, 96px) 0;
  background:
    radial-gradient(700px 420px at 12% 18%, var(--glow), transparent 70%),
    radial-gradient(800px 500px at 88% 70%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero > .container { position: relative; }
.hero-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 80px); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.08; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.25vw, 1.2rem); max-width: 560px; }
.badge { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); }
.stats { gap: 0; border-top: 0; padding-top: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.stats > div { padding: 0 28px; border-left: 1px solid var(--border); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: 1.6rem; letter-spacing: -.02em; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 0 0 10%; z-index: 0; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: .22; filter: blur(40px);
}
.hero-visual img { position: relative; z-index: 1; height: auto; aspect-ratio: 4 / 3; max-height: none; border-radius: 24px; border: 1px solid var(--border); }
.float-card { z-index: 2; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--surface) 88%, transparent); }

/* სექციები */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ბარათები: მსუბუქი, ჩარჩოთი, ნაზი გადაადგილებით */
.card { box-shadow: none; }
.svc, .work-card, .member, .review, .steps li { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.svc:hover, .member:hover, .review:hover, .steps li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.services { gap: 20px; }
.svc-img { aspect-ratio: 16 / 10; }
.svc-body { padding: 22px 24px 24px; }
.svc-body h3 { font-size: 1.15rem; }
.svc-link { display: inline-flex; gap: 6px; }

/* „რატომ ჩვენ“ */
.why { gap: clamp(40px, 6vw, 88px); }
.why .kicker + h2 { margin-bottom: 8px; }
.why-img img { aspect-ratio: 5 / 4; border-radius: 24px; border: 1px solid var(--border); }
.ticks li { padding: 14px 16px 14px 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ticks li::before { left: 16px; top: 50%; transform: translateY(-50%); }

/* პროცესი */
.steps { gap: 20px; }
.steps li { padding: 28px 24px; background: var(--surface); }
.steps .num {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 12px; font-size: 1rem; opacity: 1; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* პორტფოლიო, გუნდი, შეფასებები */
.work-card { border-radius: 20px; border: 1px solid var(--border); }
.work-card img { filter: none; }
.member { padding: 32px 20px; }
.member img { width: 120px; height: 120px; border: 0; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-soft); }
.reviews-head { max-width: none; margin-bottom: 40px; }

/* Discord ზოლი */
.discord-band { border-radius: 28px; padding: clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }

/* კითხვები */
#faq .narrow { max-width: 820px; }
details { border-radius: 14px; padding: 6px 22px; transition: border-color .15s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* შეკვეთის ფორმა */
.wizard-wrap { max-width: 1000px; }
.wizard { border-radius: 24px; box-shadow: var(--shadow-lg); }
.wiz-steps { background: transparent; }

/* ფუტერი */
.site-footer { background: var(--bg-alt); padding: 44px 0; }

/* =====================================================================
   3D ეფექტები (ჩართულია მხოლოდ მაუსიან მოწყობილობაზე — html.has-3d)
   ===================================================================== */

/* ღილაკები: მსუბუქი „ჩაჭერა“ */
.btn:active { transform: translateY(1px) scale(.98); }

/* ბარათები იხრება კურსორის მიმართულებით + ბრწყინვა */
.has-3d :is(.svc, .steps li, .member, .review, .work-card, .ticks li, .kpi, .role-card, .tilt) {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s;
  will-change: transform;
}
.has-3d :is(.svc, .steps li, .member, .review, .work-card, .ticks li, .kpi, .role-card, .tilt).tilting {
  transition: transform .08s linear, border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-lg);
}
.has-3d :is(.svc, .steps li, .member, .review, .kpi, .role-card) { position: relative; }
.has-3d :is(.svc, .steps li, .member, .review, .kpi, .role-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.has-3d .tilting::after { opacity: 1; }
/* შიგთავსი ოდნავ „ამოდის“ ბარათიდან */
.has-3d .tilting :is(.svc-body, h3, .num, img) { transform: translateZ(24px); }
.has-3d :is(.svc-body, .steps h3, .steps .num, .member img, .member h3) { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* მთავარი სურათი: სიღრმე ფენებით */
.hero-grid { position: relative; }
.hero-visual { transform-style: preserve-3d; }
.has-3d .hero-visual {
  transform: perspective(1400px) rotateX(calc(3deg + var(--rx, 0deg))) rotateY(calc(-7deg + var(--ry, 0deg)));
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.has-3d .hero-visual.tilting { transition: transform .1s linear; }
.has-3d .hero-visual img { transform: translateZ(0); }
.has-3d .hero-visual::before { transform: translateZ(-60px); }
.has-3d .hero-visual .float-card { transform: translateZ(80px); }
.has-3d .hero-visual .float-chip { transform: translateZ(120px); }

.float-chip {
  position: absolute; top: 28px; right: -18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; font-size: .88rem; font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.float-chip span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: .72rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.float-card, .float-chip { animation: bob 6s ease-in-out infinite; }
.float-chip { animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* დეკორატიული 3D მინის კუბი */
.cube-wrap {
  position: absolute; left: 47%; top: -2%; width: 92px; height: 92px;
  perspective: 700px; pointer-events: none; z-index: 0;
}
.cube {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  animation: spin 22s linear infinite;
}
.cube span {
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--accent-2) 25%, transparent);
  backdrop-filter: blur(2px);
}
.cube .f1 { transform: translateZ(46px); }
.cube .f2 { transform: rotateY(180deg) translateZ(46px); }
.cube .f3 { transform: rotateY(90deg) translateZ(46px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(46px); }
.cube .f5 { transform: rotateX(90deg) translateZ(46px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(46px); }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }

/* ნაბიჯების ნომრები — მოცულობითი */
.steps .num { box-shadow: 0 10px 20px -8px var(--accent), inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25); }

@media (prefers-reduced-motion: reduce) {
  .cube, .float-card, .float-chip { animation: none; }
}

/* =====================================================================
   ჩამოსქროლვის 3D ანიმაციები (js/scroll.js)
   ===================================================================== */

/* 3D გამოჩენა: ელემენტი ქვემოდან, წინ გადახრილი „ამოდის“ */
.reveal-on :is(.grid, .steps, .ticks, .why, .container) { perspective: 1400px; }
.reveal-on .reveal:not(.in) { opacity: 0; }
.reveal-on .reveal.in { animation: rise3d .75s cubic-bezier(.2, .75, .2, 1) var(--d, 0ms) both; }
@keyframes rise3d {
  from { opacity: 0; translate: 0 56px -80px; rotate: x 18deg; }
  60%  { opacity: 1; }
  to   { opacity: 1; translate: 0 0 0; rotate: x 0deg; }
}
/* სურათები და ფართო ბლოკები — უფრო რბილად */
.reveal-on :is(.why-img, .discord-band, .wizard).reveal.in { animation-name: rise3d-soft; animation-duration: 1.1s; }
@keyframes rise3d-soft {
  from { opacity: 0; translate: 0 40px -40px; rotate: x 8deg; scale: .97; }
  to   { opacity: 1; translate: 0 0 0; rotate: x 0deg; scale: 1; }
}
/* „რატომ ჩვენ“ სიის პუნქტები — გვერდიდან */
.reveal-on .ticks li.reveal.in { animation-name: slide3d; }
@keyframes slide3d {
  from { opacity: 0; translate: 40px 0 -60px; rotate: y -16deg; }
  to   { opacity: 1; translate: 0 0 0; rotate: y 0deg; }
}

/* მთავარი ბლოკის პარალაქსი: --sp = 0…1 სქროლისას */
.hero-text { opacity: calc(1 - var(--sp, 0) * .7); translate: 0 calc(var(--sp, 0) * -40px); }
.hero-visual { translate: 0 calc(var(--sp, 0) * 50px); }
.has-3d .hero-visual {
  transform: perspective(1400px)
    rotateX(calc(3deg + var(--rx, 0deg) + var(--sp, 0) * 16deg))
    rotateY(calc(-7deg + var(--ry, 0deg) + var(--sp, 0) * 6deg))
    scale(calc(1 - var(--sp, 0) * .06));
}
.cube-wrap { translate: 0 calc(var(--sp, 0) * -120px); }

/* ზედა პროგრესის ზოლი */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

/* მენიუს აქტიური პუნქტი */
.nav a.active { color: var(--text); background: var(--accent-soft); }

/* ღილაკი „↑ ზემოთ“ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 1.2rem; font-weight: 700; color: #fff; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -8px var(--accent);
  animation: pop-in .3s ease;
  transition: transform .15s;
}
.to-top:hover { transform: translateY(-3px) rotateX(12deg); }
@keyframes pop-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (max-width: 860px) {
  .to-top { bottom: 92px; right: 14px; width: 42px; height: 42px; } /* მიმაგრებული ღილაკის ზემოთ */
}
@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-visual, .cube-wrap { translate: none; opacity: 1; }
  .to-top { animation: none; }
}
@media (max-width: 980px) {
  .cube-wrap { display: none; }
  .float-chip { right: 12px; top: 12px; }
}

/* =====================================================================
   თემა: „კინემატოგრაფიული“ — მუქი ფონი, წითელი აქცენტი, მთავრული სათაურები
   (ბოლო ფენა — ზემოთ მოცემულ ფერებსა და კომპონენტებს აზუსტებს)
   ===================================================================== */
:root {
  --radius: 22px;
  --radius-sm: 12px;
  --display: "Noto Sans Georgian", "Inter", system-ui, sans-serif;
}

/* დიდი, ვიწრო, მთავრული სათაურები */
.display, .section-head h2, .reviews-head h2, .discord-band h2, .svc h3, .work-info h3, .why h2 {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.02;
}
.section-head h2, .reviews-head h2, .why h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.kicker { background: var(--accent-soft); color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }

/* ჰედერი: მთავარი ბლოკის თავზე გამჭვირვალე, სქროლისას — მუქი */
.site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled, body:not(:has(.hero)) .site-header {
  background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom-color: var(--border); backdrop-filter: blur(14px);
}
.header-link { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .88rem; }
.header-link:hover { border-color: var(--accent); }
/* ფოტოს თავზე (ჯერ არ ჩამოსქროლილა) — თეთრი ტექსტი */
body:has(.hero) .site-header:not(.scrolled) :is(.nav a, .header-link, .logo, .lang-toggle) { color: #fff; }
body:has(.hero) .site-header:not(.scrolled) :is(.header-link, .lang-toggle) { border-color: rgba(255, 255, 255, .3); }
body:has(.hero) .site-header:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, .1); }
body:has(.hero) .site-header:not(.scrolled) .menu-toggle span { background: #fff; }
.logo-mark { background: var(--accent); }

/* ღილაკები: მომრგვალებული, მუქი წითელი */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .01em; }
.btn:not(.btn-ghost):not(.btn-light):not(.btn-danger) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn:not(.btn-ghost):not(.btn-light):not(.btn-danger):hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.hero .btn-ghost, .band .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; }
.btn-arrow::after { content: "→"; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- მთავარი ბლოკი: სრული ეკრანი, ფონური ფოტო, ცენტრში სათაური ---- */
.hero {
  margin-top: -72px; /* ჰედერის ქვეშ იწყება */
  min-height: 100vh; padding: 140px 0 110px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg);
}
.hero::before { z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.06 + var(--sp, 0) * .18));
  filter: saturate(1.05) contrast(1.05) brightness(.8);
  will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(12, 12, 14, .65) 0%, color-mix(in srgb, var(--accent) 22%, rgba(12, 12, 14, .55)) 45%, var(--bg) 100%);
}
.hero-center {
  position: relative; z-index: 2; display: grid; justify-items: center; max-width: 1040px;
  opacity: calc(1 - var(--sp, 0) * .9); translate: 0 calc(var(--sp, 0) * -60px);
}
.hero h1.display { font-size: clamp(2.7rem, 7.4vw, 6.4rem); margin: 6px 0 22px; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 660px; margin: 0 auto; }
.hero-actions { justify-content: center; margin: 34px 0 44px; }
.badge { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .14); color: #fff; }
.stats { justify-content: center; }
.stats > div { border-left-color: rgba(255, 255, 255, .16); text-align: center; }
.stats dt { font-family: var(--display); font-stretch: 75%; font-size: 2rem; font-weight: 800; }
.stats dd { color: rgba(255, 255, 255, .6); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .45);
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---- სერვისები: დიდი სურათიანი ბარათები, ტექსტი ქვემოთ ---- */
.services { gap: 22px; }
.svc {
  position: relative; min-height: 440px; border-radius: 26px; overflow: hidden;
  justify-content: flex-end; text-align: center; background: var(--surface);
}
.svc-img { position: absolute; inset: 0; aspect-ratio: auto; }
.svc-img img { height: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0) 25%, color-mix(in srgb, var(--accent) 22%, rgba(12, 12, 14, .55)) 55%, rgba(12, 12, 14, .96) 100%);
}
.svc-body { position: relative; z-index: 2; flex: none; padding: 28px 26px 30px; align-items: center; }
.svc-body h3 { font-size: 1.9rem; margin-bottom: 8px; }
.svc-body p { color: rgba(255, 255, 255, .72); flex: none; margin-bottom: 18px; }
.svc-link {
  display: inline-flex; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .85rem; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.svc:hover .svc-img img { transform: scale(1.07); }

/* ---- „რატომ ჩვენ“ ---- */
.why-img img { border-radius: 26px; }
.ticks li { border-radius: 16px; }
.ticks li::before { background: var(--accent); color: #fff; }

/* ---- პროცესი: ფართო ჰორიზონტალური ბარათები, დიდი წითელი ნომრით ---- */
.steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; padding: 28px 30px; border-radius: 22px; }
.steps .num {
  grid-row: span 2; width: auto; height: auto; margin: 0; padding: 0; background: none; box-shadow: none;
  font-family: var(--display); font-stretch: 70%; font-size: 4.2rem; font-weight: 800; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.steps li:hover .num { color: var(--accent); }
.steps h3 { margin: 0 0 4px; font-family: var(--display); font-stretch: 75%; font-size: 1.5rem; text-transform: uppercase; }

/* ---- კინემატოგრაფიული ფოტო-ზოლი ---- */
.band { position: relative; overflow: hidden; min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.band-bg { position: absolute; inset: -12% 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; translate: 0 calc(var(--bp, 0) * 1px); filter: brightness(.75); }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 12, 14, .35) 30%, color-mix(in srgb, var(--accent) 25%, rgba(12, 12, 14, .45)) 70%, var(--bg) 100%);
}
.band-inner { position: relative; z-index: 2; max-width: 860px; display: grid; justify-items: center; }
.band h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); margin: 0 0 16px; text-shadow: 0 8px 40px rgba(0, 0, 0, .6); }
.band p { color: rgba(255, 255, 255, .82); font-size: 1.12rem; max-width: 620px; margin: 0 0 30px; }

/* ---- პორტფოლიო, გუნდი, შეფასებები, Discord ---- */
.work-card { border-radius: 26px; }
.work-card::after { background: linear-gradient(to top, rgba(12, 12, 14, .95), color-mix(in srgb, var(--accent) 22%, rgba(12, 12, 14, .3)) 55%, transparent); }
.work-info { text-align: center; }
.work-info h3 { font-size: 1.7rem; }
.tag { background: var(--accent); color: #fff; }
.member, .review { border-radius: 22px; }
.member img { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }
.discord-band {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--accent) 82%, transparent)),
    url("https://images.unsplash.com/photo-1531297484001-80022131f5a1?w=1400&q=60&auto=format&fit=crop") center / cover;
}



/* ---- გვერდის გადასახვევი ზოლი დამალულია (სქროლი მუშაობს; პოზიციას ზედა ზოლი აჩვენებს) ---- */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
/* შიდა სიებში (ჩატი, საუბრები, ფანჯრები) — თხელი, ნაზი ზოლი */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; }

/* ---- „გვერდ-გვერდ“ სქროლი (js/scroll.js რთავს html.stack-on-ს) ---- */
.page-shade { display: none; }
.stack-on { scroll-padding-top: 0; }
.stack-on main > section {
  position: sticky;
  top: 0;
  /* ერთი გვერდი = ზუსტად ერთი ეკრანი; თუ შიგთავსი არ ეტევა — გვერდის შიგნით იშლება */
  height: 100vh; min-height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;   /* შიდა სქროლი გვერდზე არ „გადადის“ */
  scrollbar-width: none;
  display: flex; flex-direction: column; justify-content: safe center;
  padding-top: 92px; padding-bottom: 40px;
  background-color: var(--bg);
  transform-origin: 50% 30%;
  scale: calc(1 - var(--cover, 0) * .05);
}
.stack-on main > section.section-alt { background-color: var(--bg-alt); }
/* ახალი სექცია „ფურცელივით“ ეშვება: მომრგვალებული ზედა კიდე, ჩრდილი ზემოთ
   და 3D დახრა, რომელიც ჩამოსვლისას სწორდება (--enter: 0 → 1) */
.stack-on main > section + section {
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -24px 60px -18px rgba(0, 0, 0, .45);
  border-top: 1px solid var(--border);
  transform: perspective(1800px) rotateX(calc((1 - var(--enter, 1)) * 10deg));
  transform-origin: 50% 0%;
}
/* შიგთავსი ოდნავ დაგვიანებით ამოდის — სიღრმის შეგრძნება */
.stack-on main > section > .container {
  translate: 0 calc((1 - var(--enter, 1)) * 90px);
  opacity: calc(.35 + var(--enter, 1) * .65);
}
.stack-on main > section.hero > .container { translate: 0 calc(var(--sp, 0) * -60px); opacity: calc(1 - var(--sp, 0) * .9); }
/* დაფარული სექცია მუქდება */
.stack-on .page-shade {
  display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit; background: #000; opacity: calc(var(--cover, 0) * .55);
}
.stack-on main > section.hero { border-radius: 0; padding-top: 72px; padding-bottom: 72px; }
.stack-on main > section::-webkit-scrollbar { display: none; }
.stack-on main > section > .container { width: 100%; }
/* ერთ ეკრანზე დასატევად — კომპაქტური ზომები */
.stack-on .section-head { margin-bottom: clamp(18px, 3.5vh, 40px); }
.stack-on .section-head h2, .stack-on .reviews-head h2, .stack-on .why h2 { font-size: clamp(1.9rem, min(4vw, 6vh), 3.2rem); }
.stack-on .hero h1.display { font-size: clamp(2.4rem, min(7vw, 10vh), 6rem); margin-bottom: 16px; }
.stack-on .hero-actions { margin: 26px 0 30px; }
.stack-on .svc { min-height: 0; height: max(185px, calc((100vh - 400px) / 2)); }
.stack-on .services { gap: 16px; }
/* შეკვეთა: ორ სვეტად — მარცხნივ სათაური, მარჯვნივ ფორმა (ერთ ეკრანზე ეტევა) */
.stack-on #order .wizard-wrap {
  max-width: var(--max); display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px 56px; align-items: center;
}
.stack-on #order .section-head { grid-column: 1; grid-row: 1; text-align: left; margin: 0; }
.stack-on #order .auth-hint.center { grid-column: 1; grid-row: 2; align-self: start; text-align: left; margin: 0; }
.stack-on #order .wizard-wrap > div:last-child { grid-column: 2; grid-row: 1 / span 2; }
.stack-on .wiz-steps { padding: 12px 22px; }
.stack-on .wiz-pane { padding: 18px 22px 4px; gap: 12px; }
.stack-on .wiz-nav { padding: 12px 22px 18px; }
.stack-on .wiz-title { font-size: 1.1rem; }
.stack-on .tiles-big { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stack-on .tiles-big .tile { padding: 10px 12px; align-items: center; }
.stack-on .tiles-big .tile-ico { width: 34px; height: 34px; font-size: 1.2rem; }
.stack-on .tile-txt small { display: none; }
.stack-on #order textarea[name=details] { min-height: 0; height: clamp(80px, 16vh, 150px); }
.stack-on .sum-row { padding: 7px 12px; }
.stack-on details { padding: 2px 20px; margin-bottom: 8px; }
.stack-on summary { padding: 11px 0; }
.stack-on #services .section-head p { display: none; }
.stack-on .svc-body { padding: 18px 20px 20px; }
.stack-on .svc-body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.stack-on .svc-body p { margin-bottom: 12px; font-size: .9rem; }
.stack-on .why-img img { max-height: calc(100vh - 220px); }
.stack-on .band { min-height: 0; padding-top: 72px; }
/* ფოტო გვერდის საზღვრებში რჩება; შემოსვლისას ნაზად „მოიწევს“ (zoom) */
.stack-on .band-bg { inset: 0; overflow: hidden; }
.stack-on .band-bg img { translate: none; transform: scale(calc(1.06 + (1 - var(--enter, 1)) * .14)); transition: transform .2s linear; }
.stack-on .hero-bg { overflow: hidden; }

/* დაბალ ეკრანზე (ლეპტოპი 720–760px) — კიდევ უფრო კომპაქტურად, რომ ყველაფერი დაეტიოს */
@media (max-height: 780px) {
  .stack-on main > section { padding-top: 80px; padding-bottom: 18px; }
  .stack-on .section-head { margin-bottom: 16px; }
  .stack-on .section-head h2, .stack-on .reviews-head h2, .stack-on .why h2 { font-size: clamp(1.7rem, 5.4vh, 2.6rem); }
  .stack-on .svc { height: max(165px, calc((100vh - 372px) / 2)); }
  .stack-on .ticks { gap: 8px; margin-top: 14px; }
  .stack-on .ticks li { padding-top: 10px; padding-bottom: 10px; }
  .stack-on #order textarea[name=details] { height: 70px; }
  .stack-on .wiz-pane { gap: 10px; }
  .stack-on details { margin-bottom: 6px; }
  .stack-on summary { padding: 9px 0; }
  .stack-on details p { margin-bottom: 10px; }
}
.stack-on .work-card { max-height: calc(100vh - 300px); }
/* ფოტო-ზოლი და მთავარი ბლოკი — ფონი ფოტოა, ფერი არ სჭირდება */
.stack-on main > section.band { background-color: #0c0c0e; }

/* ---- გვერდების წერტილები (მარჯვნივ) ---- */
.page-dots {
  position: fixed; right: 22px; top: 50%; translate: 0 -50%; z-index: 40;
  display: grid; gap: 10px; padding: 10px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.page-dots { padding: 12px 8px; animation: dots-in .6s cubic-bezier(.2, .7, .2, 1) .9s both; }
@keyframes dots-in { from { opacity: 0; translate: 16px -50%; } to { opacity: 1; translate: 0 -50%; } }
.dots-track { position: relative; display: grid; gap: 12px; justify-items: center; }
/* წერტილები */
.page-dots .dot {
  position: relative; z-index: 1; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s, opacity .3s;
}
.page-dots .dot::before { content: ""; position: absolute; inset: -6px; } /* დაჭერის უფრო დიდი არე */
.page-dots .dot.passed { background: color-mix(in srgb, var(--accent) 55%, var(--muted)); }
.page-dots .dot:hover { transform: scale(1.6); background: var(--text); }
.page-dots .dot.active { background: transparent; }
/* „თხევადი“ მაჩვენებელი — სქროლს მიჰყვება */
.dots-pill {
  position: absolute; left: 50%; top: 0; z-index: 0; width: 8px; margin-left: -4px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  will-change: transform, height;
}
/* გვერდის სახელი */
.dot-label {
  position: absolute; right: calc(100% + 18px); top: 50%; translate: 8px -50%;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: .78rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s, translate .35s cubic-bezier(.2, .7, .2, 1);
}
.page-dots .dot:hover .dot-label, .page-dots .dot.show-label .dot-label { opacity: 1; translate: 0 -50%; }
.page-dots .dot:hover .dot-label { transform: scale(.625); transform-origin: right center; } /* წერტილის scale-ის კომპენსაცია */
@media (max-width: 860px) { .page-dots { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-dots { animation: none; } }

/* ---- ჩატვირთვის ანიმაცია ---- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 18%, var(--bg)), var(--bg) 60%);
  animation: pl-out .45s ease 2.4s forwards; /* JS-ის გარეშეც ქრება */
}
.preloader.done { animation: pl-out .45s ease forwards; }
.pl-mark { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.pl-mark span { font-family: ui-monospace, monospace; font-weight: 800; font-size: 1.6rem; color: #fff; }
.pl-mark svg { position: absolute; inset: 0; rotate: -90deg; }
.pl-mark circle { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 277; animation: pl-draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent)); }
.pl-name { font-family: var(--display); font-stretch: 75%; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .svc { min-height: 380px; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 90px; }
  .steps li { padding: 22px; column-gap: 16px; }
  .steps .num { font-size: 3.2rem; }
  .svc-body h3 { font-size: 1.6rem; }
  .band { min-height: 64vh; }
  .header-link { padding: 6px 12px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .why, .order-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { aspect-ratio: 16 / 9; max-height: none; }
  .hero { min-height: 92vh; }
  .float-card { left: 16px; bottom: 16px; }
  .why-img { order: 1; }
  .services, .work, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps, .team { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto;
  }
  .sidebar .logo { padding: 0 8px 0 0; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav button { width: auto; white-space: nowrap; padding: 8px 10px; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; }
  .side-user { display: none; }
  .admin-main { padding: 24px 20px 56px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  /* ტელეფონი/პლანშეტი: ერთ ჯერზე — ან სია, ან საუბარი */
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .admin-main .inbox { height: calc(100vh - 210px); }
  .inbox .inbox-main { display: none; }
  .inbox.thread-open .inbox-side { display: none; }
  .inbox.thread-open .inbox-main { display: flex; }
  .thread-back { display: inline-grid; place-items: center; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 48px; }
  .services, .work, .reviews, .steps, .team, .row { grid-template-columns: 1fr; }
  .row-budget { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 22px; }
  .discord-band { padding: 32px 24px; }
  .form-card { padding: 22px; }
  .header-actions .btn-small { display: none; }
  .note-edit, .order-tools { grid-template-columns: 1fr; }
  .progress li { font-size: 0; }
  .progress li.current, .progress li.done:last-child { font-size: .75rem; white-space: nowrap; overflow-wrap: normal; }
  .progress li.done:last-child { text-align: right; }
  .progress.cancelled li:first-child { font-size: .75rem; white-space: nowrap; }
  .bar { grid-template-columns: 100px 1fr 28px; }
  .side-nav .lbl, .lbl-logo { display: none; }
  .tiles-big { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .stats > div { padding: 0 10px; }
  .stats dt { font-size: 1.25rem; }
  .section-head { margin-bottom: 32px; }
  .profile-main { grid-template-columns: 1fr; }
  .legal, .thanks-card, .nf-card { padding: 26px 20px; }
  .thread-head { gap: 8px; padding: 10px 12px; }
  .thread-head > .btn { display: none; }
  .thread-status { max-width: 112px; padding: 5px 22px 5px 8px; font-size: .74rem; flex: 0 1 auto; }
  .thread-info { min-width: 70px; }
  .thread-head .avatar { display: none; }
  .thread-head .status { font-size: .7rem; padding: 3px 8px; }
  .thread-head .avatar { width: 34px; height: 34px; }
  .admin-main [data-section="messages"] .view-head p { display: none; }
  .tabs-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tabs-3 button { padding: 8px 6px; font-size: .85rem; }
  .wiz-steps { padding: 14px 16px; }
  .wiz-steps li b { display: none; }
  .wiz-steps li.active b { display: inline; }
  .wiz-pane { padding: 22px 18px 6px; }
  .wizard .form-status { padding: 0 18px; }
  .wiz-nav { padding: 14px 18px 20px; }
  .wiz-nav #wiz-next, .wiz-nav #wiz-submit { min-width: 0; flex: 1; }
  .sum-row { grid-template-columns: 1fr auto; }
  .sum-row span { grid-column: 1 / -1; font-size: .8rem; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-fields, .links-grid { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .reviews-head { align-items: flex-start; }
  .side-nav .ico { width: auto; font-size: 1.1rem; }
  .view-head h1 { font-size: 1.35rem; }
}
