/* ==========================================================================
   Tempo · Modern UI qatı (2026-12)
   app.css-dən SONRA yüklənir; strukturu dəyişmir, yalnız görünüşü yeniləyir:
   oxunaqlı tipoqrafiya, yumşaq kölgələr, pill düymələr, şüşə header,
   aydın fokus halqaları, yenilənmiş AI çat.
   ========================================================================== */
:root {
  --ink: #0f2233;
  --ink-soft: #2f4a5e;
  --muted: #5f717c;
  --teal: #12b39d;
  --teal-dark: #0a8f7e;
  --teal-50: #e9f8f5;
  --coral: #f07462;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #e3eae7;
  --ring: 0 0 0 3px rgba(18,179,157,.28);
  --shadow-xs: 0 1px 2px rgba(15,34,51,.06);
  --shadow-soft: 0 6px 24px -8px rgba(15,34,51,.12);
  --shadow: 0 18px 48px -18px rgba(15,34,51,.22);
  --radius: 18px;
  --radius-sm: 12px;
  --grad-brand: linear-gradient(135deg,#12b39d 0%,#0e8fa8 100%);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
}

/* ---------- Base ---------- */
body { font-size: 16px; line-height: 1.6; background: var(--paper); text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { transition: color .18s ease; }
::selection { background: rgba(18,179,157,.22); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.container { width: min(1200px, calc(100% - 48px)); }

/* ---------- Topline + header ---------- */
.topline { height: 34px; font-size: 11px; letter-spacing: .14em; background: linear-gradient(90deg,#0f2233,#123246 50%,#0f2233); }
.site-header { background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(227,234,231,.9); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.header-inner { height: 72px; }
.nav-link { padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav-link:after { display: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: rgba(18,179,157,.09); }
.main-nav { gap: 4px; }
.icon-link, .login-link { font-size: 14px; }
.icon-link { padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-xs); color: var(--ink); }
.icon-link:hover { border-color: rgba(18,179,157,.45); }

/* ---------- Buttons ---------- */
.button { min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 650; gap: 10px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-large { min-height: 54px; padding: 0 28px; font-size: 15px; }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(15,34,51,.6); }
.button-dark:hover { background: #18354b; box-shadow: 0 12px 26px -12px rgba(15,34,51,.7); }
.button-outline { border-color: #cfdcd7; background: #fff; color: var(--ink); }
.button-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.button-white, .button-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
button:disabled, .button[disabled] { cursor: not-allowed; opacity: .55; transform: none !important; }

/* ---------- Eyebrows + headings ---------- */
.eyebrow, .section-label { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--teal-dark); }
.hero h1, .auth-side h1, .assistant-intro h1 { letter-spacing: -.045em; line-height: 1.04; }
.hero-lead, .catalog-hero p, .ai-feature-copy > p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.ai-feature-copy > p { color: #b9c8cd; }
.section-heading h2, .detail-heading h2, .dash-section-heading h2 { letter-spacing: -.035em; }

/* ---------- Forms ---------- */
:where(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="hidden"]), select, textarea) {
  border-radius: var(--radius-sm); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
:where(.form-stack, .form-two, .subform, .filter-bar, .auth-step, .slot-book-form, .roadside-form) :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="hidden"]), select, textarea):focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.hero-search :is(input, select):focus, .assistant-compose textarea:focus { outline: none; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #93a3a8; }
.filter-field span { font-size: 12px; }
.filter-field span { letter-spacing: .06em; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal-dark); width: 18px; height: 18px; }

/* ---------- Search ---------- */
.hero-search { min-height: 72px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.hero-search select, .hero-search input { font-size: 15px; }
.hero-meta, .hero-bottom-label, .catalog-badges { font-size: 12px; }
.hero-pill { padding: 10px 16px; font-size: 13px; border-radius: 999px; box-shadow: var(--shadow-xs); }
.filter-bar { padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-soft); gap: 14px; }

/* ---------- Cards ---------- */
.aside-card, .review-card, .staff-card, .admin-box, .admin-review-card, .dash-side-card, .tempo-notice-card, .empty-state, .service-row {
  border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-xs);
}
.staff-card, .review-card, .admin-review-card { transition: transform .2s ease, box-shadow .2s ease; }
.staff-card:hover, .review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
[class*="sector-card"], [class*="result-card"], [class*="listing-card"], [class*="catalog-card"] { border-radius: var(--radius); }
.sector-grid > *, .catalog-grid > *, .result-grid > * { transition: transform .22s ease, box-shadow .22s ease; }
.sector-grid > *:hover, .catalog-grid > *:hover, .result-grid > *:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.verified-badge { border-radius: 999px; font-size: 12px; }

/* ---------- Readability: lift the tiny 8–11px text ---------- */
.muted-copy, .results-count, .hero-meta, .art-time, .sector-count, .review-notice, .search-section-label { font-size: 13px; }

/* ---------- AI feature + assistant page ---------- */
.ai-feature { background: radial-gradient(ellipse at 85% 20%, rgba(18,179,157,.22), transparent 45%), linear-gradient(160deg,#0f2233,#0b1a28); }
.ai-points li { font-size: 14px; }
.assistant-page { background: radial-gradient(ellipse at 85% 30%, rgba(18,179,157,.12), transparent 40%), radial-gradient(ellipse at 10% 90%, rgba(14,143,168,.08), transparent 40%), var(--paper); }
.assistant-intro p { font-size: 17px; color: var(--muted); }
.assistant-console { border-radius: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); padding: 20px; }
.assistant-console-head b { font-size: 16px; }
.assistant-console-head .assistant-messages, .ai-messages { display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.ai-bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.6; box-shadow: var(--shadow-xs); animation: tempoBubbleIn .22s ease both; }
.ai-bubble p { margin: 0 0 6px; } .ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul, .ai-bubble ol { margin: 4px 0 8px; padding-left: 20px; } .ai-bubble li { margin: 2px 0; }
.ai-bubble strong { font-weight: 700; }
.ai-bubble-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.ai-bubble-user { align-self: flex-end; background: var(--grad-brand); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.ai-bubble.ai-error { background: #fff4f2; border-color: #f6c9c1; color: #8f2f22; }
.ai-thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.ai-thinking-label:after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: tempoDots 1.2s steps(4,end) infinite; }
.ai-result-list { display: grid; gap: 8px; align-self: stretch; }
.ai-result-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ai-result-card:hover { transform: translateY(-1px); border-color: rgba(18,179,157,.5); box-shadow: var(--shadow-soft); }
.ai-result-card b { font-size: 15px; } .ai-result-card small { font-size: 13px; color: var(--muted); }
.ai-result-monogram { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal-dark); font-weight: 800; }
.assistant-compose { border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); padding: 10px 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.assistant-compose:focus-within { border-color: var(--teal); box-shadow: var(--ring); }
.assistant-compose textarea { border: 0 !important; box-shadow: none !important; resize: none; min-height: 52px; max-height: 180px; font-size: 16px; background: transparent; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.assistant-suggestions span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.assistant-suggestions button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 13px; transition: all .18s ease; }
.assistant-suggestions button:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-50); }
.voice-button { border-radius: 999px; }
.voice-button[data-voice-state="recording"] { background: var(--coral); color: #fff; box-shadow: 0 0 0 0 rgba(240,116,98,.5); animation: tempoPulse 1.4s ease-out infinite; }
.voice-status { font-size: 13px; }
.assistant-powered, .ai-panel-foot, .ai-privacy { font-size: 12px; color: var(--muted); }

/* ---------- Floating AI widget ---------- */
.ai-launcher { border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 14px 32px -12px rgba(15,34,51,.6); transition: transform .2s ease, box-shadow .2s ease; }
.ai-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(15,34,51,.7); }
.ai-panel { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(15,34,51,.35); overflow: hidden; }
.ai-form input[name="message"] { border-radius: 999px; }
.ai-send { border-radius: 999px; background: var(--grad-brand); color: #fff; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg,#0f2233,#0b1a28); }
.footer-bottom { font-size: 13px; }

/* ---------- Mobile dock ---------- */
.mobile-dock { backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: rgba(255,255,255,.86); border-top: 1px solid var(--line); }

/* ---------- Motion ---------- */
@keyframes tempoBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tempoDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes tempoPulse { 0% { box-shadow: 0 0 0 0 rgba(240,116,98,.45); } 100% { box-shadow: 0 0 0 14px rgba(240,116,98,0); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .hero-search { border-radius: 22px; }
  .ai-bubble { max-width: 94%; font-size: 15px; }
  .assistant-console { border-radius: 20px; padding: 14px; }
  .button { min-height: 48px; }
}

/* Assistant page already is the chat: hide the duplicate floating launcher there. */
body:has(.assistant-page) .ai-widget { display: none; }
.assistant-online { font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.assistant-messages { padding-right: 4px; }
