@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700;800&display=swap');

:root{
  --bg:oklch(98% 0.012 75); --bg-alt:oklch(95.5% 0.02 70); --surface:oklch(99% 0.004 75);
  --ink:oklch(23% 0.02 55); --ink-soft:oklch(48% 0.02 55); --border:oklch(89% 0.016 70);
  --accent:oklch(58% 0.11 220); --accent-dark:oklch(48% 0.11 220); --accent-soft:oklch(94% 0.02 220);
  --teal:oklch(58% 0.10 155); --teal-soft:oklch(94% 0.02 155);
  --price-bg:oklch(85% 0.09 80); --price-ink:oklch(34% 0.05 70);
  --violet:oklch(58% 0.10 350); --violet-soft:oklch(94% 0.02 350);
  --font-display:'Noto Sans Georgian', Arial, sans-serif;
  --font-body:'Noto Sans Georgian', Arial, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; font-family:var(--font-body); background:var(--bg); color:var(--ink); overflow-x:hidden;}
a{color:var(--accent); text-decoration:none;}
a:hover{color:var(--accent-dark);}
button{font-family:var(--font-body); cursor:pointer;}
img,svg{display:block;}

.wrap{width:100%; max-width:1440px; margin:0 auto; display:flex; flex-direction:column;}

/* ---------- header ---------- */
.site-header{
  display:flex; align-items:center; justify-content:space-between; padding:22px 64px;
  border-bottom:1.5px solid var(--border); position:sticky; top:0; z-index:30; background:var(--bg);
  transition:box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled{ box-shadow:0 8px 24px -18px oklch(30% 0.03 55 / 0.4); padding:14px 64px; }
.brand{ display:flex; align-items:center; gap:11px; }
.brand-mark{
  width:38px; height:38px; border-radius:11px; background:var(--accent); display:flex;
  align-items:center; justify-content:center; flex-shrink:0; transition:transform .35s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark{ transform:rotate(-12deg) scale(1.08); }
.brand-name{ font-size:21px; font-weight:800; color:var(--ink); letter-spacing:-.3px; }
.header-left{ display:flex; align-items:center; gap:52px; }
.main-nav{ display:flex; align-items:center; gap:34px; }
.nav-link{ position:relative; color:var(--ink-soft); font-size:15px; font-weight:600; transition:color .15s; padding-bottom:2px; }
.nav-link::after{
  content:''; position:absolute; left:0; right:100%; bottom:-3px; height:2px; background:var(--accent);
  transition:right .22s ease;
}
.nav-link:hover, .nav-link.active{ color:var(--ink); }
.nav-link:hover::after, .nav-link.active::after{ right:0; }

.header-right{ display:flex; align-items:center; gap:14px; position:relative; }

.btn-primary{
  background:var(--accent); color:oklch(99% 0.005 75); border:none; border-radius:10px; padding:13px 26px;
  font-weight:700; font-size:15px; transition:background .15s, transform .15s, box-shadow .2s;
}
.btn-primary:hover{ background:var(--accent-dark); transform:translateY(-1px); box-shadow:0 10px 20px -10px oklch(50% 0.11 220 / 0.45); }
.btn-primary:active{ transform:translateY(0) scale(.97); }

.btn-ghost{
  background:transparent; border:1.5px solid var(--border); color:var(--ink); border-radius:10px; padding:12.5px 22px;
  font-weight:600; font-size:15px; transition:border-color .15s, background .15s;
}
.btn-ghost:hover{ border-color:var(--ink-soft); background:var(--bg-alt); }

.lang-btn{
  display:flex; align-items:center; gap:7px; background:transparent; border:1.5px solid var(--border); border-radius:10px;
  padding:9px 14px; font-size:14px; font-weight:700; color:var(--ink); transition:border-color .15s;
}
.lang-btn:hover{ border-color:var(--ink-soft); }
.lang-btn svg{ transition:transform .2s ease; }
.lang-btn.open svg{ transform:rotate(180deg); }

.lang-menu{
  position:absolute; top:48px; right:0; background:var(--surface); border:1.5px solid var(--border); border-radius:12px;
  padding:6px; box-shadow:0 16px 32px -12px oklch(30% 0.03 55 / .35); min-width:150px; z-index:40;
  transform-origin:top right; transform:scale(.92) translateY(-6px); opacity:0; pointer-events:none;
  transition:transform .16s cubic-bezier(.34,1.56,.64,1), opacity .14s ease;
}
.lang-menu.open{ transform:scale(1) translateY(0); opacity:1; pointer-events:auto; }
.lang-item{
  display:block; width:100%; text-align:left; border:none; background:none; font-family:inherit;
  padding:10px 16px; font-size:14px; font-weight:600; color:var(--ink); border-radius:8px; cursor:pointer; transition:background .12s;
}
.lang-item:hover{ background:var(--bg-alt); }
.lang-item.active{ color:var(--accent); background:var(--accent-soft); }

.icon-btn{ padding:9px 12px; position:relative; }

/* ---------- account menu ---------- */
.account-btn{
  display:flex; align-items:center; gap:9px; background:transparent; border:1.5px solid var(--border); border-radius:999px;
  padding:6px 14px 6px 7px; transition:border-color .15s, background .15s;
}
.account-btn:hover{ border-color:var(--ink-soft); background:var(--bg-alt); }
.account-btn svg{ color:var(--ink-soft); transition:transform .2s ease; }
.account-btn.open svg{ transform:rotate(180deg); }
.account-name{ font-size:14.5px; font-weight:700; color:var(--ink); max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hidden-menu-divider{ height:1.5px; background:var(--border); margin:8px 4px; }

/* ---------- messages sidebar ---------- */
.msg-sidebar-overlay{
  position:fixed; inset:0; background:oklch(20% 0.02 55 / .35); z-index:49; opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.msg-sidebar-overlay.open{ opacity:1; pointer-events:auto; }
.msg-sidebar{
  position:fixed; top:0; right:0; bottom:0; width:480px; max-width:100vw; background:var(--surface);
  border-left:1.5px solid var(--border); box-shadow:-16px 0 40px -20px oklch(30% 0.03 55 / .4); z-index:50;
  display:flex; flex-direction:column; overflow-x:hidden; transform:translateX(100%); transition:transform .28s cubic-bezier(.34,1.1,.64,1);
}
.msg-sidebar.open{ transform:translateX(0); }
.msg-sidebar-head{ display:flex; align-items:center; gap:10px; padding:16px 18px; border-bottom:1.5px solid var(--border); flex-shrink:0; }
.msg-sidebar-title{ font-weight:700; font-size:16px; color:var(--ink); }
.msg-sidebar-icon-btn{
  width:32px; height:32px; border-radius:9px; border:none; background:transparent; color:var(--ink-soft);
  display:flex; align-items:center; justify-content:center; transition:background .12s, color .12s; flex-shrink:0;
}
.msg-sidebar-icon-btn:hover{ background:var(--bg-alt); color:var(--ink); }
.msg-sidebar-body{ flex:1; overflow-y:auto; overflow-x:hidden; min-height:0; min-width:0; }

.sidebar-inbox-list{ display:flex; flex-direction:column; gap:2px; padding:10px; min-width:0; }
.sidebar-inbox-row{
  width:100%; min-width:0; border:1.5px solid transparent; background:none; font-family:inherit; text-align:left; cursor:pointer;
}
.msg-sidebar .inbox-preview{ max-width:none; }
.msg-sidebar .inbox-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-sidebar .inbox-row > div:not(.avatar){ min-width:0; }

.msg-sidebar .chat-wrap.sidebar-chat{ max-width:none; margin:0; padding:0; height:100%; width:100%; }
.msg-sidebar .sidebar-chat .chat-head{ padding:14px 16px; }
.msg-sidebar .sidebar-chat .chat-messages{ padding:16px; }
.msg-sidebar .sidebar-chat .chat-form{ padding:12px 16px 16px 16px; }

@media (max-width: 520px){
  .msg-sidebar{ width:100%; }
}

/* ---------- hero ---------- */
.hero{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px;
  padding:64px 64px 48px 64px; max-width:760px; margin:0 auto;
}
.hero-copy{ display:flex; flex-direction:column; align-items:center; gap:20px; width:100%; }
.eyebrow{
  display:inline-flex; align-self:center; background:var(--accent-soft); color:var(--accent-dark); font-weight:700;
  font-size:13.5px; padding:7px 14px; border-radius:999px; letter-spacing:.2px;
}
.hero-title{ font-family:var(--font-display); font-size:38px; line-height:1.22; font-weight:800; color:var(--ink); margin:0; max-width:560px; }
.hero-desc{ font-size:16px; line-height:1.6; color:var(--ink-soft); margin:0; max-width:460px; }

.search-bar{
  margin-top:6px; display:flex; align-items:center; background:var(--surface); border:1.5px solid var(--border);
  border-radius:16px; padding:7px; box-shadow:0 12px 28px -16px oklch(30% 0.03 55 / .18); width:100%; max-width:620px;
  transition:border-color .18s, box-shadow .18s;
}
.search-bar:focus-within{ border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft), 0 12px 28px -16px oklch(30% 0.03 55 / .22); }
.search-bar svg{ margin:0 12px 0 12px; flex-shrink:0; }
.search-bar input{
  flex:1; border:none; outline:none; background:transparent; font-size:15.5px; color:var(--ink); font-family:var(--font-body);
}
.search-bar input::placeholder{ color:var(--ink-soft); }
.search-btn{
  background:var(--accent); color:white; border:none; border-radius:12px; padding:0 30px; font-weight:700; font-size:15px;
  height:58px; transition:background .15s, transform .12s;
}
.search-btn:hover{ background:var(--accent-dark); }
.search-btn:active{ transform:scale(.96); }

.hero-quicklinks{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.hero-quicklink{
  font-size:13.5px; color:var(--ink-soft); background:var(--surface); border:1.5px solid var(--border); border-radius:999px;
  padding:7px 15px; font-weight:600; transition:border-color .15s, color .15s;
}
.hero-quicklink:hover{ border-color:var(--accent); color:var(--accent); }

.chip{
  background:var(--surface); border:1.5px solid var(--border); border-radius:999px; padding:9px 16px; font-size:13.5px;
  font-weight:600; color:var(--ink-soft); transition:all .15s; white-space:nowrap; display:inline-flex; align-items:center; gap:6px;
}
.chip:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); transform:translateY(-2px); }
.chip.active{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
.chip-row{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:2px; }

.nav-badge{
  display:inline-flex; align-items:center; justify-content:center; min-width:17px; height:17px; padding:0 4px;
  border-radius:999px; background:var(--accent); color:white; font-size:10.5px; font-weight:700; line-height:1;
  margin-left:5px; vertical-align:2px;
}
.nav-badge[hidden]{ display:none; }
.favorite-btn{
  width:38px; height:38px; border-radius:10px; border:1.5px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:border-color .15s, background .15s;
}
.favorite-btn:hover{ border-color:var(--accent); }
.favorite-btn.active{ background:var(--accent-soft); border-color:var(--accent); }
.favorite-btn svg{ transition:fill .15s, stroke .15s; }

/* ---------- rating widget ---------- */
.rating-section{ margin-top:36px; padding-top:32px; border-top:1.5px solid var(--border); }
.star-input{ display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:3px; }
.star-input input{ position:absolute; opacity:0; width:0; height:0; }
.star-input label{ font-size:30px; line-height:1; color:var(--border); cursor:pointer; transition:color .12s; }
.star-input input:checked ~ label{ color:var(--price-ink); }
.star-input label:hover, .star-input label:hover ~ label{ color:var(--price-ink); }
.rating-stars-static{ color:var(--price-ink); font-size:14px; letter-spacing:1px; }
.review-card{ background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:18px; }
.review-card + .review-card{ margin-top:12px; }

/* ---------- stats ---------- */
.stats{
  display:flex; justify-content:center; padding:36px 64px; border-top:1.5px solid var(--border); border-bottom:1.5px solid var(--border);
  background:var(--surface);
}
.stats-inner{ display:flex; align-items:center; gap:0; max-width:900px; width:100%; justify-content:space-between; }
.stat{ text-align:center; flex:1; }
.stat-num{ font-family:var(--font-display); font-size:30px; font-weight:600; color:var(--ink); }
.stat-label{ font-size:14px; color:var(--ink-soft); margin-top:4px; }
.stat-div{ width:1.5px; height:44px; background:var(--border); }

/* ---------- sections / reveal ---------- */
.section{ padding:64px 64px 20px 64px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:28px; }
.section-title{ font-family:var(--font-display); font-size:29px; font-weight:600; color:var(--ink); margin:0; }
.section-link{ font-size:14.5px; }

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .55s ease, transform .55s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-child{ opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal.is-visible .reveal-child{ opacity:1; transform:translateY(0); }
.reveal.is-visible .reveal-child:nth-child(1){ transition-delay:.03s; }
.reveal.is-visible .reveal-child:nth-child(2){ transition-delay:.09s; }
.reveal.is-visible .reveal-child:nth-child(3){ transition-delay:.15s; }
.reveal.is-visible .reveal-child:nth-child(4){ transition-delay:.21s; }
.reveal.is-visible .reveal-child:nth-child(5){ transition-delay:.27s; }
.reveal.is-visible .reveal-child:nth-child(6){ transition-delay:.33s; }
.reveal.is-visible .reveal-child:nth-child(7){ transition-delay:.39s; }
.reveal.is-visible .reveal-child:nth-child(8){ transition-delay:.45s; }
.reveal.is-visible .reveal-child:nth-child(9){ transition-delay:.51s; }
.reveal.is-visible .reveal-child:nth-child(10){ transition-delay:.57s; }
.reveal.is-visible .reveal-child:nth-child(11){ transition-delay:.63s; }
.reveal.is-visible .reveal-child:nth-child(12){ transition-delay:.69s; }
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-child{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---------- category grid ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px; }
.cat-card{
  padding:24px 20px; display:flex; flex-direction:column; gap:14px; background:var(--surface); border:1.5px solid var(--border);
  border-radius:16px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover{ transform:translateY(-5px); box-shadow:0 16px 28px -14px oklch(30% 0.03 55 / .3); border-color:var(--accent); }
.cat-icon{ width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; transition:transform .3s cubic-bezier(.34,1.56,.64,1); }
.cat-card:hover .cat-icon{ transform:scale(1.1) rotate(-6deg); }
.cat-title{ font-size:16px; font-weight:700; color:var(--ink); }
.cat-count{ font-size:13.5px; color:var(--ink-soft); margin-top:3px; }
.cat-card-all{
  align-items:flex-start; justify-content:center; gap:8px; background:var(--bg-alt); border-style:dashed;
}

/* ---------- service cards ---------- */
.svc-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:22px; }
.svc-grid.cols-3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.svc-card{
  background:var(--surface); border:1.5px solid var(--border); border-radius:18px; overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover{ transform:translateY(-6px); box-shadow:0 20px 34px -16px oklch(30% 0.03 55 / .32); }
.job-card{ border-color:var(--teal); border-width:1.5px; box-shadow:0 0 0 1px var(--teal) inset; }

/* ---------- job listing (vacancies) ---------- */
.job-list{ display:flex; flex-direction:column; gap:18px; }
.job-card{
  position:relative; display:block; background:var(--surface); border:1.5px solid var(--border); border-radius:16px; padding:24px;
  transition:transform .15s, box-shadow .15s, border-color .15s; color:inherit; box-shadow:none;
}
.job-card:hover{ transform:translateY(-2px); box-shadow:0 14px 26px -16px oklch(30% 0.03 55 / 0.25); border-color:var(--teal); }
.job-card-link-overlay{ position:absolute; inset:0; z-index:1; border-radius:inherit; }
.job-card-title{ font-size:17px; font-weight:700; color:var(--ink); margin:0; }
.job-card-time{ font-size:12.5px; color:var(--ink-soft); white-space:nowrap; }
.job-price-badge{ background:var(--price-bg); color:var(--price-ink); font-size:12.5px; font-weight:700; padding:4px 10px; border-radius:7px; white-space:nowrap; }
.job-price-badge.hourly{ background:var(--teal-soft); color:var(--teal); }
.job-card-desc{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:12px 0; }
.job-tag{ background:var(--bg-alt); border:1.5px solid var(--border); border-radius:8px; padding:5px 11px; font-size:12.5px; font-weight:600; color:var(--ink-soft); }
.job-card-foot{ display:flex; align-items:center; gap:10px; padding-top:14px; border-top:1.5px solid var(--border); font-size:13px; color:var(--ink-soft); flex-wrap:wrap; }
.job-card-foot .seller-name{ color:var(--ink); font-weight:700; }
.job-mini{ background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:16px; display:block; color:inherit; transition:border-color .15s; }
.job-mini:hover{ border-color:var(--teal); }
.file-row{ display:flex; align-items:center; gap:10px; padding:11px 14px; border:1.5px solid var(--border); border-radius:11px; background:var(--surface); }
.field-label{ font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:8px; display:block; }
.svc-thumb{ height:150px; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.svc-thumb svg{ transition:transform .3s ease; }
.svc-card:hover .svc-thumb svg{ transform:scale(1.15) rotate(4deg); }
.svc-thumb::after{
  content:''; position:absolute; inset:0; background:linear-gradient(120deg, transparent 40%, oklch(100% 0 0 / .18) 50%, transparent 60%);
  transform:translateX(-120%); transition:transform .6s ease;
}
.svc-card:hover .svc-thumb::after{ transform:translateX(120%); }
.svc-tag{ position:absolute; top:12px; left:12px; background:oklch(99% 0.005 75 / .92); color:var(--ink); font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:7px; }
.svc-price{ position:absolute; top:12px; right:12px; background:var(--price-bg); color:var(--price-ink); font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:7px; }
.svc-body{ padding:16px; }
.svc-title{ font-size:14.5px; font-weight:600; color:var(--ink); line-height:1.4; min-height:40px; }
.svc-seller{ display:flex; align-items:center; gap:8px; margin-top:14px; }
.avatar{ width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.seller-name{ font-size:13px; color:var(--ink-soft); font-weight:600; }
.svc-rating{ margin-left:auto; font-size:12.5px; color:var(--price-ink); font-weight:700; }

.grad-accent{ background:linear-gradient(135deg, oklch(68% 0.10 220), oklch(52% 0.11 220)); }
.grad-teal{ background:linear-gradient(135deg, oklch(68% 0.09 155), oklch(52% 0.10 155)); }
.grad-price{ background:linear-gradient(135deg, oklch(82% 0.08 80), oklch(66% 0.09 70)); }
.grad-violet{ background:linear-gradient(135deg, oklch(68% 0.09 350), oklch(54% 0.09 350)); }

.icon-bg-accent{ background:var(--accent-soft); } .icon-stroke-accent{ color:var(--accent-dark); }
.icon-bg-teal{ background:var(--teal-soft); } .icon-stroke-teal{ color:var(--teal); }
.icon-bg-price{ background:var(--price-bg); } .icon-stroke-price{ color:var(--price-ink); }
.icon-bg-violet{ background:var(--violet-soft); } .icon-stroke-violet{ color:var(--violet); }

.avatar-accent{ background:var(--accent-soft); color:var(--accent-dark); }
.avatar-teal{ background:var(--teal-soft); color:var(--teal); }
.avatar-price{ background:var(--price-bg); color:var(--price-ink); }
.avatar-violet{ background:var(--violet-soft); color:var(--violet); }

/* ---------- cta ---------- */
.cta{
  margin:56px 64px 64px 64px; background:linear-gradient(120deg, oklch(30% 0.03 55), oklch(24% 0.025 55)); border-radius:24px;
  padding:52px 56px; display:flex; align-items:center; justify-content:space-between; gap:32px; position:relative; overflow:hidden;
}
.cta::before{
  content:''; position:absolute; width:340px; height:340px; border-radius:50%; background:oklch(58% 0.11 220 / .18);
  top:-140px; right:-80px; animation:blobPulse 8s ease-in-out infinite;
}
.cta-title{ font-family:var(--font-display); font-size:27px; font-weight:600; color:white; margin:0 0 10px 0; position:relative; }
.cta-text{ color:oklch(90% 0.01 75); font-size:15.5px; line-height:1.6; margin:0; max-width:520px; position:relative; }
.cta .btn-primary{ padding:15px 30px; font-size:15.5px; white-space:nowrap; position:relative; }
.cta-placeholder{
  background:var(--bg-alt); border:1.5px dashed var(--border); justify-content:flex-start; padding:36px 40px;
}
.cta-placeholder::before{ display:none; }
.cta-placeholder .cta-title{ color:var(--ink-soft); font-size:18px; font-weight:700; }
.cta-placeholder .cta-text{ color:var(--ink-soft); font-size:14px; }

/* ---------- footer ---------- */
.site-footer{ border-top:1.5px solid var(--border); padding:52px 64px 32px 64px; background:var(--surface); margin-top:auto; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; }
.footer-h{ font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:12px; }
.foot-link{ color:var(--ink-soft); font-size:14.5px; font-weight:500; display:block; padding:5px 0; width:fit-content; }
.foot-link:hover{ color:var(--accent); transform:translateX(3px); }
.foot-link{ transition:color .15s, transform .15s; }
.footer-bottom{ border-top:1.5px solid var(--border); padding-top:22px; display:flex; justify-content:space-between; align-items:center; }
.social-dot{ width:32px; height:32px; border-radius:50%; border:1.5px solid var(--border); transition:border-color .15s, transform .15s; }
.social-dot:hover{ border-color:var(--accent); transform:translateY(-2px); }

/* ---------- breadcrumb / page head ---------- */
.crumb{ font-size:13.5px; color:var(--ink-soft); margin-bottom:14px; }
.crumb .sep{ margin:0 6px; }
.crumb .current{ color:var(--ink); font-weight:600; }
.page-head{ padding:28px 64px 0 64px; }
.page-head-row{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:8px; }
.page-title{ font-family:var(--font-display); font-size:34px; font-weight:600; color:var(--ink); margin:0 0 8px 0; }
.page-sub{ font-size:15px; color:var(--ink-soft); margin:0; }

.tab{ padding:10px 20px; border-radius:999px; font-size:14.5px; font-weight:700; border:1.5px solid var(--border); color:var(--ink-soft); background:var(--surface); transition:all .15s; }
.tab.active{ background:var(--ink); color:var(--surface); border-color:var(--ink); }

/* ---------- category detail sidebar / subtiles ---------- */
.cd-body{ display:flex; gap:36px; padding:28px 64px 64px 64px; align-items:flex-start; }
.cd-sidebar{ width:264px; flex-shrink:0; background:var(--surface); border:1.5px solid var(--border); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:2px; }
.top-item{ font-size:14.5px; color:var(--ink-soft); font-weight:600; padding:11px 14px; border-radius:10px; display:flex; align-items:center; gap:10px; transition:background .15s, color .15s, padding-left .15s; }
.top-item:hover{ background:var(--bg-alt); color:var(--ink); padding-left:18px; }
.top-item.active{ background:var(--accent-soft); color:var(--accent-dark); }
.sub-grid{ flex:1; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px; }
.sub-tile{
  background:var(--surface); border:1.5px solid var(--border); border-radius:16px; padding:26px 18px; display:flex;
  flex-direction:column; align-items:center; gap:14px; text-align:center; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sub-tile:hover{ transform:translateY(-4px) scale(1.02); box-shadow:0 16px 28px -14px oklch(30% 0.03 55 / .3); border-color:var(--accent); }
.sub-tile svg{ transition:transform .3s cubic-bezier(.34,1.56,.64,1); }
.sub-tile:hover svg{ transform:scale(1.15); }
.sub-tile-label{ font-size:14.5px; font-weight:600; color:var(--ink); }

/* ---------- listing sidebar / filters ---------- */
.lst-body{ display:flex; gap:36px; padding:12px 64px 56px 64px; align-items:flex-start; }
.lst-sidebar{ width:248px; flex-shrink:0; display:flex; flex-direction:column; gap:32px; }
.side-block{ border-top:1.5px solid var(--border); padding-top:24px; }
.side-block:first-child{ border-top:none; padding-top:0; }
.side-h{ font-size:13px; font-weight:700; color:var(--ink); text-transform:uppercase; letter-spacing:.4px; margin-bottom:14px; }
.cat-item{ font-size:14.5px; color:var(--ink-soft); font-weight:500; padding:8px 10px; border-radius:8px; display:block; transition:background .15s, color .15s; }
.cat-item:hover{ background:var(--bg-alt); color:var(--ink); }
.cat-item.active{ background:var(--accent-soft); color:var(--accent-dark); font-weight:700; }
.price-range{ display:flex; align-items:center; gap:10px; min-width:0; }
.price-input{
  flex:1; min-width:0; width:0; border:1.5px solid var(--border); border-radius:9px; padding:9px 12px; font-size:14px; color:var(--ink);
  background:var(--surface); font-family:var(--font-body); transition:border-color .15s;
}
.price-input:focus{ outline:none; border-color:var(--accent); }
.chk-row{ display:flex; align-items:center; gap:9px; font-size:14px; color:var(--ink-soft); padding:5px 0; cursor:pointer; }
.chk-box{
  width:17px; height:17px; border-radius:5px; border:1.5px solid var(--border); flex-shrink:0; position:relative;
  transition:background .15s, border-color .15s;
}
.chk-box svg{ position:absolute; inset:0; margin:auto; opacity:0; transform:scale(.5); transition:opacity .12s, transform .15s; }
input:checked + .chk-row-label .chk-box, .chk-row input:checked ~ .chk-box{ background:var(--accent); border-color:var(--accent); }
.chk-input{ display:none; }
.chk-input:checked + .chk-box{ background:var(--accent); border-color:var(--accent); }
.chk-input:checked + .chk-box svg{ opacity:1; transform:scale(1); }
.apply-btn{ margin-top:6px; }

.toolbar{ display:flex; align-items:center; justify-content:space-between; padding:18px 64px; gap:16px; flex-wrap:wrap; }
.sort-select{
  appearance:none; -webkit-appearance:none; background:var(--surface); border:1.5px solid var(--border); border-radius:999px;
  padding:9px 34px 9px 16px; font-size:13.5px; font-weight:600; color:var(--ink-soft); font-family:var(--font-body);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2348443c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; cursor:pointer;
}

.pagination{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:44px; }
.pg{
  width:38px; height:38px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:14px;
  font-weight:600; color:var(--ink-soft); border:1.5px solid var(--border); background:var(--surface); transition:all .15s;
}
.pg:hover{ border-color:var(--ink-soft); transform:translateY(-2px); }
.pg.active{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
.pg.disabled{ opacity:.4; pointer-events:none; }
.pg-ellipsis{ color:var(--ink-soft); padding:0 4px; }

.empty-state{ text-align:center; padding:64px 20px; color:var(--ink-soft); font-size:15px; }

/* ---------- live (websocket) filtering ---------- */
.live-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--border); margin-left:6px; vertical-align:middle; transition:background .2s; }
.live-dot.connected{ background:var(--accent-success); box-shadow:0 0 0 0 color-mix(in oklch, var(--accent-success) 60%, transparent); animation:liveDotPulse 2s ease-out infinite; }
@keyframes liveDotPulse{
  0%{ box-shadow:0 0 0 0 oklch(58% 0.11 145 / .45); }
  70%{ box-shadow:0 0 0 6px oklch(58% 0.11 145 / 0); }
  100%{ box-shadow:0 0 0 0 oklch(58% 0.11 145 / 0); }
}
#results.swap-in{ animation:resultsSwap .32s ease; }
@keyframes resultsSwap{ 0%{ opacity:.25; transform:translateY(6px); } 100%{ opacity:1; transform:translateY(0); } }
.msg-seller-link{
  display:inline-flex; align-items:center; gap:5px; margin-top:10px; font-size:12.5px; font-weight:700; color:var(--accent);
  transition:color .15s, gap .15s;
}
.msg-seller-link:hover{ color:var(--accent-dark); gap:8px; }

/* ---------- flash messages ---------- */
.flash-wrap{ max-width:900px; margin:20px auto 0 auto; padding:0 20px; display:flex; flex-direction:column; gap:10px; }
.flash{ padding:12px 16px; border-radius:10px; font-size:14px; font-weight:600; animation:authIn .3s ease; }
.flash-success{ background:oklch(94% 0.06 145); color:oklch(30% 0.08 145); }
.flash-error{ background:var(--om-bg-error-tint, oklch(90% 0.05 25)); color:var(--accent-error, #a63244); }
.flash-info, .flash-warning{ background:var(--accent-soft); color:var(--accent-dark); }

/* ---------- profile ---------- */
.profile-wrap{ max-width:900px; margin:0 auto; padding:40px 20px 80px 20px; }
.profile-head{ display:flex; align-items:center; gap:18px; margin-bottom:36px; }
.profile-avatar{ width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; }
.profile-name{ font-family:var(--font-display); font-size:26px; font-weight:600; color:var(--ink); }
.profile-email{ font-size:14px; color:var(--ink-soft); margin-top:2px; }
.profile-badge{ display:inline-flex; margin-top:8px; background:var(--accent-soft); color:var(--accent-dark); font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; }
.profile-badge.top{ background:var(--price-bg); color:var(--price-ink); }
.profile-stat-card{ display:flex; background:var(--surface); border:1.5px solid var(--border); border-radius:16px; margin-bottom:36px; }
.profile-stat-card .stat{ padding:18px 0; }
.profile-stat-card .stat-num{ font-size:22px; }
.mode-switch{ display:flex; gap:6px; background:var(--bg-alt); border-radius:12px; padding:5px; width:fit-content; margin:0 0 32px 0; }
.mode-tab{
  border:none; background:transparent; padding:9px 20px; border-radius:9px; font-size:13.5px; font-weight:700; color:var(--ink-soft);
  cursor:pointer; transition:background .15s, color .15s;
}
.mode-tab:hover{ color:var(--ink); }
.mode-tab.active{ background:var(--surface); color:var(--ink); box-shadow:var(--om-shadow-sm, 0 1px 3px oklch(0% 0 0 / .08)); }
.mode-switch-mini{ margin:0; padding:3px; gap:3px; border-radius:9px; }
.mode-tab-mini{ padding:7px 13px; font-size:12.5px; border-radius:6px; }

/* ---------- offers / receipts ---------- */
.receipt-badge{
  display:inline-flex; align-self:center; margin:0 auto 14px auto; background:var(--accent-soft); color:var(--accent-dark);
  font-size:13px; font-weight:700; padding:6px 14px; border-radius:999px;
}
.receipt-badge.completed{ background:oklch(94% 0.06 145); color:oklch(30% 0.08 145); }
.receipt-badge.cancelled{ background:var(--om-bg-error-tint, oklch(94% 0.03 25)); color:var(--accent-error, #a63244); }
.auth-title + .receipt-badge, .receipt-badge{ display:block; width:fit-content; }
.receipt-box{ background:var(--bg); border:1.5px solid var(--border); border-radius:14px; padding:18px 20px; margin:20px 0; display:flex; flex-direction:column; gap:10px; }
.receipt-row{ display:flex; justify-content:space-between; gap:16px; font-size:14px; color:var(--ink-soft); }
.receipt-row span:last-child{ color:var(--ink); font-weight:600; text-align:right; }
.receipt-row.total{ border-top:1.5px solid var(--border); padding-top:10px; font-weight:700; }
.receipt-row.total span{ color:var(--ink); font-size:15px; }

.offer-card{
  align-self:flex-start; flex-shrink:0; max-width:min(100%, 320px); min-width:0; background:var(--surface); border:1.5px solid var(--accent); border-radius:14px;
  padding:14px 16px; animation:bubbleIn .25s ease; overflow-wrap:break-word; word-break:break-word;
}
.offer-card.own{ align-self:flex-end; }
.offer-card-label{ font-size:11.5px; font-weight:700; color:var(--accent-dark); text-transform:uppercase; letter-spacing:.4px; margin-bottom:6px; }
.offer-card-amount{ font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--ink); }
.offer-card-note{ font-size:13px; color:var(--ink-soft); margin-top:4px; }
.offer-card-status{ font-size:12px; font-weight:700; margin-top:10px; display:inline-flex; padding:3px 10px; border-radius:999px; }
.offer-card-status.pending{ background:var(--accent-soft); color:var(--accent-dark); }
.offer-card-status.completed{ background:oklch(94% 0.06 145); color:oklch(30% 0.08 145); }
.offer-card-status.cancelled{ background:var(--om-bg-error-tint, oklch(94% 0.03 25)); color:var(--accent-error, #a63244); }
.offer-card-progress{ font-size:12px; color:var(--ink-soft); margin-top:8px; line-height:1.5; }
.offer-card-pay{ display:block; margin-top:10px; text-align:center; }

/* ---------- trade escrow page ---------- */
.trade-columns, .trade-files-panel{ display:flex; gap:16px; margin:22px 0; flex-wrap:wrap; }
.trade-side{ flex:1; min-width:220px; background:var(--bg); border:1.5px solid var(--border); border-radius:14px; padding:16px 18px; }
.trade-side-title{ font-size:13px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.3px; margin-bottom:10px; }
.trade-side-status{ font-size:14.5px; font-weight:600; color:var(--ink); margin-bottom:12px; }
.trade-side-status.ok{ color:oklch(40% 0.1 145); }
.trade-hint{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; margin:0 0 10px 0; }
.trade-hint.bad{ color:var(--accent-error, #a63244); }
.trade-file-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1.5px solid var(--border); font-size:13.5px; }
.trade-file-row:last-of-type{ border-bottom:none; }
.trade-file-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.trade-file-empty{ font-size:13px; color:var(--ink-soft); padding:6px 0; }
.trade-similarity{
  font-size:13px; font-weight:600; text-align:center; padding:9px 14px; border-radius:10px; margin:0 0 18px 0;
  background:var(--bg-alt); color:var(--ink-soft);
}
.trade-similarity.ok{ background:oklch(94% 0.06 145); color:oklch(30% 0.08 145); }
.trade-similarity.bad{ background:var(--om-bg-error-tint, oklch(94% 0.03 25)); color:var(--accent-error, #a63244); }
.trade-file-drop{
  border:1.5px dashed var(--border); border-radius:10px; padding:20px 16px; text-align:center; font-size:13px;
  color:var(--ink-soft); margin-bottom:6px; cursor:pointer; transition:border-color .15s, background .15s;
}
.trade-file-drop:hover, .trade-file-drop.dragover{ border-color:var(--accent); background:var(--accent-soft); color:var(--accent-dark); }
.trade-pick-folder{
  display:block; width:100%; text-align:center; font-size:12.5px; color:var(--accent); background:none; border:none;
  cursor:pointer; padding:4px 0 12px 0; text-decoration:underline;
}
.trade-pending-list{ display:flex; flex-direction:column; gap:2px; margin-bottom:4px; }
.trade-file-row.pending{ display:flex; flex-direction:column; align-items:stretch; gap:2px; background:var(--bg-alt); border-radius:8px; padding:8px 10px; border-bottom:none; }
.trade-file-row.pending .trade-file-row-top{ display:flex; align-items:center; gap:10px; }
.trade-file-size{ font-size:12px; color:var(--ink-soft); flex-shrink:0; }
.trade-upload-error{ font-size:12.5px; color:var(--accent-error, #a63244); min-height:1em; margin-bottom:6px; }
.trade-upload-progress{ height:4px; border-radius:2px; background:var(--border); overflow:hidden; margin-top:2px; }
.trade-upload-progress-bar{ height:100%; background:var(--accent); width:0%; transition:width .15s; }
.trade-ready-btn{ width:100%; margin-top:4px; }
.trade-ready-btn[hidden]{ display:none; }
.trade-connecting [data-trade-action], .trade-connecting [data-trade-uploader]{ opacity:.5; pointer-events:none; }
.trade-cancel{ display:block; width:fit-content; margin:18px auto 0 auto; text-align:center; color:var(--ink-soft); font-size:13.5px; font-weight:600; background:none; border:none; cursor:pointer; text-decoration:underline; }
.trade-cancel:hover{ color:var(--accent-error, #a63244); }

.send-offer-toggle{
  display:flex; align-items:center; gap:7px; font-size:13px; font-weight:700; color:var(--accent); cursor:pointer; padding:8px 4px;
}
.send-offer-panel{ display:none; gap:10px; padding:12px 4px 4px 4px; flex-wrap:wrap; }
.send-offer-panel.open{ display:flex; }
.send-offer-panel input[type="number"]{ width:110px; flex-shrink:0; }
.send-offer-panel input[type="text"]{ flex:1; }
.extra-chips{ display:flex; flex-wrap:wrap; gap:8px; width:100%; }
.extra-chip{ padding:7px 14px; font-size:12.5px; }
.extra-chip.active{ background:var(--accent); color:var(--surface); border-color:var(--accent); }
.profile-section{ margin-top:8px; }
.profile-section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.profile-section-title{ font-family:var(--font-display); font-size:20px; font-weight:600; color:var(--ink); margin:0; }
.become-seller-card{
  background:var(--surface); border:1.5px dashed var(--border); border-radius:16px; padding:32px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.my-service-row{
  display:flex; align-items:center; gap:14px; padding:14px; border:1.5px solid var(--border); border-radius:14px; background:var(--surface);
  margin-bottom:10px; transition:box-shadow .15s, transform .15s;
}
.my-service-row:hover{ box-shadow:var(--om-shadow-sm, 0 1px 3px oklch(0% 0 0 / .08)); transform:translateY(-2px); }
.my-service-thumb{ width:56px; height:56px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; overflow:hidden; }
.my-service-info{ flex:1; min-width:0; }
.my-service-title{ font-size:14.5px; font-weight:700; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.my-service-meta{ font-size:12.5px; color:var(--ink-soft); margin-top:3px; }
.my-service-actions{ display:flex; gap:8px; flex-shrink:0; }
.icon-btn{
  width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--border);
  color:var(--ink-soft); transition:border-color .15s, color .15s, background .15s;
}
.icon-btn:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.icon-btn.danger:hover{ border-color:var(--accent-error, #a63244); color:var(--accent-error, #a63244); background:var(--om-bg-error-tint, oklch(94% 0.03 25)); }
.icon-btn.lg{ width:44px; height:44px; border-radius:12px; background:var(--surface); }
.icon-btn.on{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }

/* ---------- service detail ---------- */
.sd-body{ display:flex; gap:40px; padding:22px 64px 64px 64px; align-items:flex-start; }
.sd-main{ flex:1.65; min-width:0; }
.sd-gallery-main{
  height:380px; border-radius:18px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.sd-gallery-thumbs{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:32px; }
.sd-gallery-thumb{ height:78px; border-radius:12px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .15s, box-shadow .15s; border:2px solid transparent; }
.sd-gallery-thumb:hover{ transform:translateY(-2px); }
.sd-gallery-thumb.active{ border-color:var(--accent); }
.sd-title{ font-family:var(--font-display); font-size:28px; font-weight:600; color:var(--ink); margin:0 0 16px 0; line-height:1.35; }
.sd-seller-row{ display:flex; align-items:center; gap:14px; padding-bottom:24px; border-bottom:1.5px solid var(--border); margin-bottom:28px; }
.sd-seller-rating{ font-size:12.5px; color:var(--price-ink); font-weight:700; }
.section-h{ font-family:var(--font-display); font-size:21px; font-weight:600; color:var(--ink); margin:0 0 16px 0; }
.sd-section{ margin-bottom:36px; }
.check-row{ display:flex; align-items:flex-start; gap:10px; padding:7px 0; font-size:14.5px; color:var(--ink-soft); line-height:1.5; }
.check-row svg{ flex-shrink:0; margin-top:1px; color:var(--accent-dark); }
.num-row{ display:flex; align-items:flex-start; gap:12px; padding:8px 0; }
.num-badge{ width:24px; height:24px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); font-size:12.5px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.faq-row{ border-bottom:1.5px solid var(--border); padding:16px 0; }
.faq-row:last-child{ border-bottom:none; }
.faq-q{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:15px; font-weight:600; color:var(--ink); cursor:pointer; }
.faq-q svg{ flex-shrink:0; transition:transform .2s ease; }
.faq-row.open .faq-q svg{ transform:rotate(180deg); }
.faq-a{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0; overflow:hidden; max-height:0; transition:max-height .25s ease, margin-top .25s ease; }
.faq-row.open .faq-a{ max-height:200px; margin-top:12px; }
.svc-card-sm{ background:var(--surface); border:1.5px solid var(--border); border-radius:14px; overflow:hidden; transition:transform .15s, box-shadow .15s; }
.svc-card-sm:hover{ transform:translateY(-3px); box-shadow:0 14px 26px -16px oklch(30% 0.03 55 / .3); }
.svc-card-sm .thumb{ height:96px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.svc-card-sm.small .thumb{ height:90px; }
.svc-card-sm .body{ padding:12px; }
.svc-card-sm.small .body{ padding:11px; }
.svc-card-sm-title{ font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.4; }
.svc-card-sm.small .svc-card-sm-title{ font-size:12.5px; }
.svc-card-sm-price{ font-size:12.5px; color:var(--price-ink); font-weight:700; margin-top:8px; }
.svc-card-sm.small .svc-card-sm-price{ font-size:11.5px; margin-top:6px; }
.review-card{ background:var(--surface); border:1.5px solid var(--border); border-radius:16px; padding:20px; }
.sd-crumb{ padding:24px 64px 0 64px; font-size:13.5px; color:var(--ink-soft); }

.sd-aside{ width:360px; flex-shrink:0; position:sticky; top:24px; }
.sd-order-card{ background:var(--surface); border:1.5px solid var(--border); border-radius:18px; padding:26px; box-shadow:var(--om-shadow-card, 0 20px 40px -24px oklch(30% 0.03 55 / .25)); }
.info-pill{ display:flex; align-items:center; gap:7px; font-size:13px; color:var(--ink-soft); font-weight:600; }
.guarantee-row{ display:flex; align-items:flex-start; gap:10px; margin-top:20px; padding-top:20px; border-top:1.5px solid var(--border); }

/* ---------- auth forms ---------- */
.auth-wrap{ display:flex; justify-content:center; padding:64px 20px 96px 20px; }
.auth-card{
  width:100%; max-width:420px; background:var(--surface); border:1.5px solid var(--border); border-radius:20px;
  padding:40px 36px; box-shadow:var(--om-shadow-card, 0 18px 44px oklch(0% 0 0 / .08)); animation:authIn .4s ease;
}
@keyframes authIn{ 0%{ opacity:0; transform:translateY(14px) scale(.98); } 100%{ opacity:1; transform:none; } }
.auth-title{ font-family:var(--font-display); font-size:26px; font-weight:600; color:var(--ink); margin:0 0 6px 0; text-align:center; }
.auth-sub{ font-size:14px; color:var(--ink-soft); text-align:center; margin:0 0 28px 0; }
.auth-field{ margin-bottom:16px; }
.auth-field label{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:7px; }
.auth-input{
  width:100%; border:1.5px solid var(--border); border-radius:10px; padding:12px 14px; font-size:14.5px; color:var(--ink);
  background:var(--bg); font-family:var(--font-body); transition:border-color .15s, box-shadow .15s;
}
.auth-input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
.auth-check{ display:flex; align-items:center; gap:9px; font-size:14px; color:var(--ink-soft); margin-bottom:20px; cursor:pointer; }
.auth-errors{ background:var(--om-bg-error-tint, oklch(90% 0.05 25)); color:var(--accent-error, #a63244); border-radius:8px; padding:9px 12px; font-size:13px; margin-bottom:14px; }
.auth-submit{ width:100%; }
.auth-card-wide{ max-width:560px; }
.field-hint{ font-size:12px; color:var(--ink-soft); margin-top:5px; }
textarea.auth-input{ resize:vertical; }
.gallery-edit-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin:10px 0; }
.gallery-edit-item{ position:relative; display:block; border-radius:10px; overflow:hidden; cursor:pointer; border:1.5px solid var(--border); }
.gallery-edit-item img{ display:block; width:100%; height:76px; object-fit:cover; }
.gallery-edit-delete{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:5px; font-size:11.5px; font-weight:700; color:white;
  background:oklch(20% 0.02 30 / 0); opacity:0; transition:opacity .15s, background .15s;
}
.gallery-edit-item:hover .gallery-edit-delete{ opacity:1; background:oklch(20% 0.02 30 / .55); }
.gallery-edit-item:has(input:checked) .gallery-edit-delete{ opacity:1; background:oklch(45% 0.16 25 / .75); }
.gallery-edit-item:has(input:checked){ border-color:var(--accent-error, #a63244); }
.extra-row{ display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.extra-row .auth-input{ margin-bottom:0; }
.extra-row input[type="text"]{ flex:2; }
.extra-row input[type="number"]{ flex:1; }
.auth-switch{ text-align:center; font-size:14px; color:var(--ink-soft); margin-top:22px; }

/* ---------- chat ---------- */
.inbox-list{ display:flex; flex-direction:column; gap:2px; max-width:760px; margin:0 auto; padding:0 20px; }
.inbox-row{
  display:flex; align-items:center; gap:14px; padding:16px; border-radius:14px; border:1.5px solid transparent; transition:background .15s, border-color .15s;
}
.inbox-row:hover{ background:var(--bg-alt); border-color:var(--border); }
.inbox-name{ font-weight:700; font-size:15px; color:var(--ink); }
.inbox-preview{ font-size:13.5px; color:var(--ink-soft); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:420px; }
.inbox-time{ margin-left:auto; font-size:12px; color:var(--ink-soft); flex-shrink:0; }

.chat-wrap{ display:flex; flex-direction:column; max-width:1400px; margin:0 auto; padding:24px 20px 0 20px; height:calc(100vh - 92px); min-height:0; min-width:0; }
.chat-head{ display:flex; align-items:center; gap:12px; padding-bottom:16px; border-bottom:1.5px solid var(--border); min-width:0; }
.chat-messages{ flex:1; overflow-y:auto; overflow-x:hidden; padding:20px 4px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.bubble{
  max-width:min(70%, 640px); flex-shrink:0; padding:8px 14px 9px 14px; border-radius:16px; font-size:14.5px; line-height:1.5; animation:bubbleIn .25s ease;
  overflow-wrap:break-word; word-break:break-word; min-width:0; overflow:hidden;
}
@keyframes bubbleIn{ 0%{ opacity:0; transform:translateY(8px) scale(.96); } 100%{ opacity:1; transform:none; } }
.bubble.own{ align-self:flex-end; background:var(--accent); color:white; border-bottom-right-radius:4px; }
.bubble.other{ align-self:flex-start; background:var(--bg-alt); color:var(--ink); border-bottom-left-radius:4px; }
/* Trails at the end of the last line (float, not its own block) so a
   short message's bubble hugs the text instead of being forced as wide
   as the timestamp on a second line. */
.bubble-time{ display:inline-block; float:right; clear:both; font-size:10.5px; opacity:.65; margin:5px 0 0 12px; }
.chat-form{ display:flex; gap:10px; padding:16px 4px 20px 4px; border-top:1.5px solid var(--border); min-width:0; }
.chat-input{
  flex:1; min-width:0; max-width:100%; border:1.5px solid var(--border); border-radius:999px; padding:12px 18px; font-size:14.5px; font-family:var(--font-body);
  background:var(--surface); transition:border-color .15s;
}
.chat-input:focus{ outline:none; border-color:var(--accent); }
.chat-send{ width:44px; height:44px; border-radius:50%; background:var(--accent); color:white; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .15s, transform .12s; }
.chat-send:hover{ background:var(--accent-dark); }
.chat-send:active{ transform:scale(.92); }
.chat-status{ font-size:12.5px; color:var(--ink-soft); }
.typing-dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--ink-soft); margin-right:2px; animation:typingBounce 1.2s infinite; }
.typing-dot:nth-child(2){ animation-delay:.15s; }
.typing-dot:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

@media (max-width: 1180px){
  .cat-grid, .svc-grid, .sub-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .svc-grid.cols-3{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .lst-body, .cd-body{ flex-direction:column; }
  .lst-sidebar, .cd-sidebar{ width:100%; }
}
@media (max-width: 680px){
  .site-header, .hero, .section, .page-head, .toolbar, .lst-body, .cd-body, .footer-grid{ padding-left:20px; padding-right:20px; }
  .cat-grid, .svc-grid, .sub-grid{ grid-template-columns:1fr; }
  .svc-grid.cols-3{ grid-template-columns:1fr; }
  .header-left{ gap:20px; }
  .main-nav{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
