/* =========================================================
   Çaykovski Lilosa Gastro Pub — site stilleri
   ========================================================= */
:root {
  --accent: #e8ac2e;
  --ember: #e0561b;
  --bg: #0e0c0a;
  --bg-2: #14110e;
  --surface: #1a1612;
  --surface-2: #231e18;
  --line: rgba(255, 236, 210, .09);
  --line-2: rgba(255, 236, 210, .16);
  --text: #f5eee4;
  --muted: #a99e90;
  --muted-2: #7a7066;
  --ok: #4ade80;
  --danger: #f87171;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  --f-display: 'Fraunces', Georgia, serif;
  --f-script: 'Kaushan Script', cursive;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 110px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* film grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #111; }
.ic { flex-shrink: 0; }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { padding-top: 0; }

/* ---------- Typography ---------- */
.display, .display-sm, .h2, .h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.display { font-size: clamp(2.8rem, 7vw, 5.8rem); }
.display span { display: block; }
.display span:nth-child(2) { color: var(--accent); font-style: italic; font-weight: 400; }
.display-sm { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 40rem; margin: 1.3rem 0 0; }
.center .lead { margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.kicker::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); }
.prose-lg { font-size: 1.1rem; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; white-space: nowrap;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #17120a; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-ic { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.link-ic:hover { color: var(--accent); }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; transition: .2s; }
.round-btn:hover { background: var(--accent); color: #111; border-color: var(--accent); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-script { font-family: var(--f-script); font-size: 1.85rem; color: var(--accent); letter-spacing: .01em; line-height: 1; }
.brand-sub { font-size: .62rem; letter-spacing: .38em; text-transform: lowercase; color: var(--muted); margin-top: .3rem; padding-left: .2rem; }
.brand-img { height: 48px; width: auto; border-radius: 10px; }
.brand-lg .brand-script { font-size: 2.6rem; }
.brand-lg .brand-img { height: 64px; }

/* ---------- Top announcement bar ---------- */
.topbar { position: relative; background: linear-gradient(90deg, var(--ember), color-mix(in srgb, var(--accent) 80%, var(--ember))); color: #1a0f05; font-weight: 700; font-size: .88rem; z-index: 60; }
.topbar-in { display: flex; justify-content: center; align-items: center; gap: .6rem; padding: .55rem 2.5rem; text-align: center; }
.topbar a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { text-decoration: underline; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a0f05; animation: pulse 1.6s infinite; flex-shrink: 0; }
.topbar-close { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; opacity: .7; display: grid; padding: 4px; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(14, 12, 10, .78); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.page-home .nav:not(.scrolled) { background: transparent; }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links > a:not(.btn) { padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: .2s; }
.nav-links > a:not(.btn):hover, .nav-links > a.on { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { margin-inline-start: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; align-items: center; padding: 40px 0 90px; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 40px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.05); animation: slowzoom 20s ease-out forwards; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,10,.95) 0%, rgba(14,12,10,.7) 50%, rgba(14,12,10,.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
@keyframes slowzoom { to { transform: scale(1); } }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 30%, color-mix(in srgb, var(--ember) 28%, transparent), transparent 70%),
    radial-gradient(500px 500px at 10% 90%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; width: min(1240px, 100% - 40px); }
.hero-photo .hero-in { grid-template-columns: 1fr; }
.hero-photo .hero-copy { max-width: 760px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.6rem; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.status.open { color: var(--ok); }
.status.closed { color: var(--danger); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 80%,100% { box-shadow: 0 0 0 8px transparent; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-actions.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-meta > div { display: flex; gap: .75rem; align-items: center; color: var(--accent); }
.hero-meta span { display: flex; flex-direction: column; color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.hero-meta small { color: var(--muted-2); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

.hero-collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.hc { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 6px solid #fff; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 14px; background: rgba(14,12,10,.82); backdrop-filter: blur(10px); font-size: .78rem; font-weight: 700; }
.hc figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc figcaption b { color: var(--accent); white-space: nowrap; }
.hc-1 figcaption { top: 10px; bottom: auto; }
.hc-1 { width: 66%; aspect-ratio: 4/3; top: 0; right: 0; transform: rotate(3deg); z-index: 2; }
.hc-2 { width: 54%; aspect-ratio: 1; bottom: 4%; left: 0; transform: rotate(-5deg); z-index: 3; }
.hc-3 { width: 44%; aspect-ratio: 1; bottom: 0; right: 4%; transform: rotate(6deg); z-index: 1; }
.hero-collage:hover .hc-1 { transform: rotate(1deg) translateY(-6px); }
.hero-collage:hover .hc-2 { transform: rotate(-2deg) translateY(-6px); }
.hero-collage:hover .hc-3 { transform: rotate(3deg) translateY(-6px); }
.hc-badge { position: absolute; z-index: 4; top: 36%; left: 6%; width: 136px; height: 136px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.hc-badge .brand-script { font-size: 1.55rem; }
.hc-badge small { font-size: .62rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: .25rem; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.25rem 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 2rem); font-style: italic; white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: .7em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 2.2rem 1.8rem; transition: background .3s; }
.feature:hover { background: var(--surface); }
.feature-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 1.3rem; }
.feature h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- About ---------- */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.about-media::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); z-index: -1; }
.about-stamp { position: absolute; right: -20px; bottom: 40px; background: var(--accent); color: #17120a; border-radius: 20px; padding: 1rem 1.4rem; text-align: center; box-shadow: var(--shadow); transform: rotate(-4deg); }
.about-stamp .brand-script { color: #17120a; font-size: 2rem; display: block; }
.about-stamp small { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .66rem; }
.about-copy .prose { margin-top: 1.4rem; font-size: 1.06rem; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }

/* ---------- Section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.sec-head-actions { display: flex; gap: .6rem; }

/* ---------- Featured rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * 1.2rem) / 4)); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.rail::-webkit-scrollbar { display: none; }
.dish-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; display: flex; flex-direction: column; }
.dish-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.dish-img { aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dish-card:hover .dish-img img { transform: scale(1.06); }
.dish-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.dish-body small { color: var(--muted-2); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dish-body h3 { margin: .3rem 0 1rem; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.dish-foot b { font-family: var(--f-display); font-size: 1.35rem; color: var(--accent); font-weight: 600; }
.dish-go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .2s; }
.dish-card:hover .dish-go { background: var(--accent); color: #111; border-color: var(--accent); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 1.2rem; }
.cat-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; isolation: isolate; }
.cat-tile.wide { grid-row: span 2; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,12,10,.05) 20%, rgba(14,12,10,.92) 100%); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile-body { padding: 1.6rem; width: 100%; }
.cat-ic { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--accent); color: #17120a; margin-bottom: .8rem; }
.cat-tile h3 { margin: 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.cat-tile.wide h3 { font-size: 2.2rem; }
.cat-tile small { color: var(--muted); font-weight: 600; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.post-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #fff; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--ember) 35%, var(--surface-2)), var(--surface-2)); }
.post-type { position: absolute; top: 14px; left: 14px; padding: .35rem .8rem; border-radius: 999px; background: rgba(14,12,10,.85); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-type.static { position: static; display: inline-block; }
.post-badge, .badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--ember); color: #fff; font-size: .75rem; font-weight: 800; }
.post-badge { position: absolute; top: 14px; right: 14px; }
.post-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; margin: 0 0 .5rem; line-height: 1.2; }
.post-body p { color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; }
.post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.post-foot small { color: var(--muted-2); display: inline-flex; align-items: center; gap: .35rem; }
.more { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips-inline { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; color: var(--muted); transition: .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #17120a; }

.post-detail .back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 600; margin-bottom: 2rem; }
.post-detail .back-link:hover { color: var(--accent); }
.post-detail-head { margin-bottom: 2rem; }
.post-detail .post-type.static { position: static; }
.post-dates { display: flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 700; margin-top: 1rem; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.4rem; background: #fff; }
.post-hero-img img { width: 100%; max-height: 520px; object-fit: cover; }
.post-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Gallery ---------- */
.gallery { columns: 4 240px; column-gap: 1rem; }
.g-item { display: block; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.g-item img { width: 100%; transition: transform .6s; }
.g-item:hover img { transform: scale(1.05); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--ember) 35%, transparent), transparent), radial-gradient(400px 300px at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--surface); }
.cta-band p { color: var(--muted); margin: 1rem 0 0; max-width: 36rem; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }

/* ---------- Visit / Info ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: stretch; }
.info-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list.compact { margin: 1rem 0 0; }
.info-list small { display: block; color: var(--muted-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.info-list a, .info-list span:not(.ii) { font-weight: 600; }
.info-list a:hover { color: var(--accent); }
.ii { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex-shrink: 0; }
.hours { list-style: none; padding: 0; margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours li { display: flex; justify-content: space-between; padding: .7rem 1.1rem; font-size: .93rem; color: var(--muted); }
.hours li + li { border-top: 1px solid var(--line); }
.hours li.today { color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hours .today-tag { font-style: normal; color: var(--accent); font-weight: 600; font-size: .8em; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }
.map-wide { margin-top: 3rem; height: 420px; }

/* ---------- Page hero (iç sayfalar) ---------- */
.page-hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero-sm .lead { margin-top: 1rem; }

/* ---------- Menu page ---------- */
.menu-search { position: relative; max-width: 560px; margin-top: 2rem; display: flex; align-items: center; }
.menu-search > .ic { position: absolute; inset-inline-start: 1.2rem; color: var(--muted); }
.menu-search input { width: 100%; padding-block: 1.05rem; padding-inline: 3.2rem 3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.menu-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.menu-search button { position: absolute; inset-inline-end: .7rem; background: var(--surface-2); border: 0; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.menu-nav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(14,12,10,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.menu-sections, .menu-cats { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.menu-sections::-webkit-scrollbar, .menu-cats::-webkit-scrollbar { display: none; }
.menu-sections { padding: .9rem 0 .5rem; }
.menu-cats { padding: .3rem 0 .9rem; }
.msec { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--muted); border: 1px solid var(--line-2); transition: .2s; }
.msec.on { background: var(--accent); border-color: var(--accent); color: #17120a; }
.mcat { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--muted-2); transition: .2s; }
.mcat:hover { color: var(--text); }
.mcat.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mcat[hidden] { display: none; }
.menu-page { padding-top: 3rem; }
.menu-section + .menu-section { margin-top: 4rem; }
.menu-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-2); }
.menu-section-head .cat-ic { margin: 0; }
.menu-section-head h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 600; margin: 0; }
.menu-cat { margin-top: 2.4rem; }
.menu-cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.menu-cat-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; }
.menu-cat-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; }
.menu-cat-head p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.menu-cat-head .count { margin-inline-start: auto; font-size: .78rem; font-weight: 700; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .2rem .65rem; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.mi { display: flex; gap: 1rem; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.mi:hover { border-color: var(--line-2); background: var(--surface-2); }
.mi.noimg { padding: 1.05rem 1.2rem; }
.mi.sold { opacity: .55; }
.mi-img { width: 104px; height: 104px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.mi-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mi:hover .mi-img img { transform: scale(1.08); }
.mi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mi-top { display: flex; align-items: baseline; gap: .6rem; }
.mi-top h4 { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.35; }
.dots { flex: 1; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); min-width: 12px; }
.mi-price { white-space: nowrap; text-align: end; }
.mi-price b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.mi-price s { color: var(--muted-2); font-size: .85rem; margin-inline-end: .35rem; }
.mi-body p { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.mi-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tag, .portion { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.portion b { color: var(--text); }
.tag-sold { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); border-color: transparent; }
.tag-star { color: var(--accent); }
.menu-note { margin-top: 3.5rem; text-align: center; color: var(--muted-2); font-size: .88rem; }
.menu-empty, .empty { text-align: center; padding: 4rem 1rem; color: var(--muted); display: grid; justify-items: center; gap: 1rem; }
.menu-empty .ic, .empty > .ic { color: var(--accent); }
.mi[hidden], .menu-cat[hidden], .menu-section[hidden] { display: none; }

/* ---------- Forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.card h3 { margin: 0 0 .4rem; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.field { display: grid; gap: .5rem; margin-bottom: 1.3rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field label small { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a99e90' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field input[type=date] { color-scheme: dark; }
.field .invalid { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-error { padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--danger) 14%, transparent); color: #fecaca; font-weight: 600; margin-bottom: 1rem; font-size: .92rem; }
.form-ok { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: #bbf7d0; font-weight: 600; margin-bottom: 1rem; }
.form-hint { color: var(--muted-2); font-size: .82rem; text-align: center; margin: 1rem 0 0; }

.res-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }
.res-aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--nav-h) + 20px); }
.res-aside .hours { margin: 1rem 0 0; }
.date-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; }
.date-chip { padding: .7rem .3rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); text-align: center; transition: .2s; line-height: 1.2; }
.date-chip small { display: block; font-size: .68rem; color: var(--muted-2); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.date-chip b { font-size: 1.15rem; font-family: var(--f-display); }
.date-chip:hover { border-color: var(--accent); }
.date-chip.on { background: var(--accent); border-color: var(--accent); color: #17120a; }
.date-chip.on small { color: #17120a; }
.date-chip[disabled] { opacity: .3; pointer-events: none; text-decoration: line-through; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; }
.time-opt { position: relative; }
.time-opt input { position: absolute; inset: 0; width: 100% !important; height: 100%; opacity: 0; pointer-events: none; margin: 0; }
.time-opt span { display: block; text-align: center; padding: .65rem 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 700; font-size: .9rem; cursor: pointer; transition: .2s; }
.time-opt span:hover { border-color: var(--accent); }
.time-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #17120a; }
.time-opt input:disabled + span { opacity: .3; text-decoration: line-through; pointer-events: none; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); overflow: hidden; }
.stepper button { width: 52px; height: 52px; background: none; border: 0; font-size: 1.4rem; color: var(--accent); }
.stepper button:hover { background: var(--surface-2); }
.stepper input { border: 0 !important; text-align: center; font-weight: 800; font-size: 1.1rem; box-shadow: none !important; -moz-appearance: textfield; background: transparent !important; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.res-success { text-align: center; padding: 2rem 0; }
.success-ic { width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.res-success h2 { font-family: var(--f-display); font-size: 2.2rem; margin: 0 0 .6rem; }
.res-success p { color: var(--muted); }
.res-code { display: inline-block; margin: 1rem 0; padding: .8rem 1.4rem; border-radius: 14px; border: 1px dashed var(--accent); color: var(--muted); }
.res-code b { color: var(--accent); font-size: 1.2rem; letter-spacing: .1em; margin-left: .4rem; }
.res-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .5rem 0 2rem; }
.res-summary span { padding: .45rem .9rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; word-break: break-word; }
a.c-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.c-card .ii { margin-bottom: .7rem; }
.c-card small { color: var(--muted-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.c-card b { font-weight: 700; }
.c-hours { grid-column: 1 / -1; }
.c-hours .hours { margin: .6rem 0 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 4.5rem 0 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 2.5rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-2); margin: .4rem 0 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); max-width: 300px; margin: 1.2rem 0; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--accent); }
.footer-contact .ic { margin-top: 4px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: .2s; }
.socials a:hover { background: var(--accent); color: #111; border-color: var(--accent); }
.hours-mini li { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; gap: 1rem; }
.hours-mini li.today { color: var(--accent); font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; margin-top: 3.5rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .82rem; }

/* ---------- Mobile dock ---------- */
.mobile-dock { display: none; }

/* ---------- Lightbox & Popup ---------- */
.lightbox, .popup { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5,4,3,.88); backdrop-filter: blur(8px); animation: fade .25s; }
.popup[hidden], .lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(900px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 16px; background: #fff; }
.lightbox figcaption { margin-top: 1rem; font-weight: 700; }
.lightbox .lb-close, .popup-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.popup-card { position: relative; width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.popup-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #fff; }
.popup-close { top: 12px; right: 12px; background: rgba(14,12,10,.7); z-index: 2; }
.popup-body { padding: 1.6rem; }
.popup-body h3 { font-family: var(--f-display); font-size: 1.8rem; margin: .7rem 0 .4rem; }
.popup-body p { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hc-badge, .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================== Responsive =================== */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: minmax(250px, 40%); }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; width: 100vw; max-width: 100%; flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(14,12,10,.97); backdrop-filter: blur(20px); padding: 1rem 20px 1.6rem; border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: .6rem 0 0; }
  body.nav-open .nav { background: rgba(14,12,10,.97); }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-in { grid-template-columns: 1fr; gap: 3rem; }
  .hero-collage { justify-self: center; max-width: 440px; }
  .about-in, .visit, .cta-band, .res-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stamp { right: 10px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .menu-items { grid-template-columns: 1fr; }
  .res-aside { position: static; }
  .mobile-dock {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    background: rgba(26,22,18,.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 20px; padding: .4rem; box-shadow: var(--shadow);
  }
  .mobile-dock a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem 0; font-size: .7rem; font-weight: 700; color: var(--muted); border-radius: 14px; }
  .mobile-dock a.dock-cta { background: var(--accent); color: #17120a; }
  .footer { padding-bottom: 90px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature { padding: 1.3rem 1.1rem; }
  .feature-ic { width: 44px; height: 44px; margin-bottom: .8rem; }
  .feature h3 { font-size: 1.05rem; }
  .feature p { font-size: .84rem; }
  .post-grid, .cat-grid { grid-template-columns: 1fr; }
  .cat-tile.wide { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .hero-meta { gap: 1.2rem; }
  .hc-badge { width: 104px; height: 104px; }
  .hc-badge .brand-script { font-size: 1.2rem; }
  .mi-img { width: 84px; height: 84px; }
  .date-chips { grid-template-columns: repeat(4, 1fr); }
  .topbar-in { font-size: .8rem; padding-inline: 2rem; }
  .brand-script { font-size: 1.6rem; }
}

/* =========================================================
   Dil seçici
   ========================================================= */
.nav-right { display: flex; align-items: center; gap: .4rem; }
.lang-dd { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-weight: 700; font-size: .85rem; color: var(--text); transition: .2s; }
.lang-btn:hover { border-color: var(--accent); }
.lang-btn .ic:first-child { color: var(--accent); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; padding: .4rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 60; animation: fade .15s; }
.lang-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; font-weight: 600; color: var(--muted); }
.lang-menu a b { width: 26px; text-align: center; font-size: .75rem; color: var(--accent); }
.lang-menu a:hover, .lang-menu a.on { background: rgba(255,255,255,.06); color: var(--text); }
.mobile-langs { display: none; }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.4rem; color: var(--accent); font-size: .88rem; }
.footer-langs a { color: var(--muted); }
.footer-langs a.on, .footer-langs a:hover { color: var(--accent); }

/* =========================================================
   Arapça (sağdan sola)
   ========================================================= */
[dir="rtl"] .flip-rtl, [dir="rtl"] .ic.flip-rtl { transform: scaleX(-1); }
body.lang-ar { --f-body: 'Tajawal', 'Manrope', system-ui, sans-serif; --f-display: 'Reem Kufi', 'Tajawal', serif; line-height: 1.8; }
body.lang-ar .display span:nth-child(2), body.lang-ar .marquee-track { font-style: normal; }
body.lang-ar .display { line-height: 1.25; letter-spacing: 0; }
body.lang-ar .display-sm, body.lang-ar .h2, body.lang-ar .h3 { line-height: 1.3; letter-spacing: 0; }
body.lang-ar .kicker, body.lang-ar .hero-meta small, body.lang-ar .dish-body small, body.lang-ar .footer h4, body.lang-ar .info-list small, body.lang-ar .c-card small, body.lang-ar .post-type { letter-spacing: 0; }
body.lang-ar .brand-sub, body.lang-ar .hc-badge small { direction: ltr; }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .field select { background-position: left 1rem center; padding-right: 1rem; padding-left: 2.5rem; }
[dir="rtl"] .about-stamp { right: auto; left: -20px; transform: rotate(4deg); }
[dir="rtl"] .about-media::before { inset: 24px 24px -24px -24px; }
[dir="rtl"] .post-type { left: auto; right: 14px; }
[dir="rtl"] .post-badge { right: auto; left: 14px; }
[dir="rtl"] .hero-bg::after { background: linear-gradient(270deg, rgba(14,12,10,.95) 0%, rgba(14,12,10,.7) 50%, rgba(14,12,10,.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
[dir="rtl"] .dots { transform: translateY(-4px); }

/* =========================================================
   Chatbot
   ========================================================= */
.ask-bot { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font-weight: 700; font-size: .9rem; transition: .2s; }
.ask-bot:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

.chat-fab { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: #17120a; display: grid; place-items: center; box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); transition: transform .25s cubic-bezier(.2,1.4,.4,1); }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: fabPulse 2.8s 3s infinite; }
.chat-fab.open::after { display: none; }
@keyframes fabPulse { 0% { opacity: .7; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.chat-fab > span:not(.chat-fab-tip) { position: absolute; display: grid; transition: transform .3s, opacity .2s; }
.chat-fab-x { opacity: 0; transform: rotate(-90deg); }
.chat-fab.open .chat-fab-ic { opacity: 0; transform: rotate(90deg); }
.chat-fab.open .chat-fab-x { opacity: 1; transform: none; }
.chat-fab-tip { position: absolute; inset-inline-end: calc(100% + 14px); white-space: nowrap; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); padding: .6rem .95rem; border-radius: 14px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); pointer-events: none; transition: .3s; }
[dir="rtl"] .chat-fab-tip { transform: translateX(-8px); }
.chat-fab.tip .chat-fab-tip, .chat-fab:not(.open):hover .chat-fab-tip { opacity: 1; transform: none; }

.chat { position: fixed; inset-inline-end: 24px; bottom: 100px; z-index: 95; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #15120f; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0,0,0,.75); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .22s, transform .25s cubic-bezier(.2,.9,.3,1.1); }
[dir="rtl"] .chat { transform-origin: bottom left; }
.chat.open { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--ember) 30%, #1d1814), #1d1814 70%); border-bottom: 1px solid var(--line); }
.chat-avatar { position: relative; width: 42px; height: 42px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.chat-avatar .brand-script { font-size: 1.5rem; }
.chat-online { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid #1d1814; }
.chat-title { flex: 1; min-width: 0; line-height: 1.25; }
.chat-title b { display: block; font-size: 1rem; }
.chat-title small { color: var(--muted); font-size: .78rem; }
.chat-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.05); color: var(--muted); display: grid; place-items: center; transition: .2s; }
.chat-icon-btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.msg { display: flex; flex-direction: column; gap: .5rem; max-width: 100%; }
.msg-user { align-items: flex-end; }
.msg-assistant { align-items: flex-start; }
.bubble { max-width: 88%; padding: .7rem .95rem; border-radius: 18px; font-size: .92rem; line-height: 1.55; word-wrap: break-word; }
.msg-user .bubble { background: var(--accent); color: #17120a; border-end-end-radius: 6px; font-weight: 600; }
.msg-assistant .bubble { background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 6px; }
.bubble p { margin: 0 0 .45em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: .3em 0 .5em; padding-inline-start: 1.2em; }
.bubble li { margin: .15em 0; }
.bubble li::marker { color: var(--accent); }
.bubble strong { color: var(--accent); font-weight: 700; }
.msg-user .bubble strong { color: inherit; }
.bubble a { color: var(--accent); text-decoration: underline; }
.typing { display: flex; gap: 4px; padding: .3rem .1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-cards { display: flex; gap: .6rem; overflow-x: auto; max-width: 100%; padding-bottom: .3rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chat-card { flex: 0 0 170px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.chat-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.chat-card.sold { opacity: .55; }
.cc-img { aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { padding: .6rem .7rem .7rem; display: grid; gap: .15rem; }
.cc-body small { font-size: .66rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-body b { font-size: .82rem; line-height: 1.3; }
.cc-price { color: var(--accent); font-weight: 800; font-family: var(--f-display); font-size: 1rem; }
.cc-price s { color: var(--muted-2); font-weight: 500; font-size: .8rem; }
.cc-port { font-size: .7rem; color: var(--muted); }
.chat-res { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 16px; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); font-size: .86rem; max-width: 92%; }
.cr-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #052e16; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.chat-res b { color: #bbf7d0; }
.chat-chips { display: flex; gap: .4rem; padding: 0 1rem .7rem; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex-shrink: 0; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--text); transition: .2s; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: #1a1612; }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; outline: none; line-height: 1.4; }
.chat-input textarea:focus { border-color: var(--accent); }
.chat-input button { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--accent); color: #17120a; display: grid; place-items: center; flex-shrink: 0; transition: .2s; }
.chat-input button:disabled { opacity: .45; }
.chat-foot { text-align: center; font-size: .68rem; color: var(--muted-2); padding: 0 1rem .55rem; background: #1a1612; }

@media (max-width: 900px) {
  .lang-btn span { display: none; }
  .lang-btn .ic:last-child { display: none; }
  .chat-fab { bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline-end: 16px; width: 56px; height: 56px; }
  .chat-fab-tip { display: none; }
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; bottom: 0; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab { display: none; }
}
