/* ── Skip to main content (keyboard / screen reader) ── */
.skip-link { position: absolute; top: -100%; left: 0; padding: 8px 16px; background: var(--color-primary); color: #fff; font-weight: 600; font-size: 0.875rem; border-radius: 0 0 8px 0; z-index: 9999; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ── Theme Variables (set by JS from config) ─────────────────────────── */
:root {
  --color-primary: #0D9488;
  --color-accent: #7C3AED;
  --color-bg: #FAFAFA;
  --color-text: #111827;
  /* Derived by JS applyTheme() based on text luminance */
  --color-surface: rgba(17,24,39,0.05);
  --color-border: rgba(17,24,39,0.1);
  --color-text-muted: rgba(17,24,39,0.6);
  --color-nav-bg: rgba(250,250,250,0.9);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 400ms;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-speed), color var(--transition-speed);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }

/* ── Page Transition Overlay ─────────────────────────────────────────── */
#page-transition {
  position: fixed; inset: 0;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: top;
  z-index: 9999;
  pointer-events: none;
  transition: transform var(--transition-speed) ease-in-out;
}
#page-transition.active { transform: scaleY(1); pointer-events: all; }

/* ── Hero background canvas ──────────────────────────────────────────── */
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ── Container ───────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section spacing ─────────────────────────────────────────────────── */
section { padding: 5rem 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-primary); color: var(--color-on-primary, #fff);
  padding: 0.85rem 1.75rem; border-radius: 0.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.2s, background 0.25s;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--color-primary) 35%, transparent);
  min-height: 48px; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary) 50%, transparent);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--color-text);
  padding: 0.85rem 1.75rem; border-radius: 0.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: 1.5px solid var(--color-border); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  min-height: 48px; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: scale(0.97); }

/* ── Reveal animation ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ── Badges / Section Labels (webtest1-style line decoration) ─────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.badge::before {
  content: '';
  display: block; width: 2rem; height: 1.5px;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding: 6rem 0 4rem;
  position: relative; overflow: hidden;
}
/* Radial gradient glow behind content */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--color-primary) 14%, transparent) 0%,
    transparent 70%);
  pointer-events: none; z-index: 0;
  transition: background var(--transition-speed);
}
/* Dot grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--color-text) 18%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-content h1 { margin: 0.75rem 0 1.25rem; }
.highlight { color: var(--color-primary); }
.hero-content p {
  font-size: 1.15rem; color: var(--color-text-muted);
  max-width: 560px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Marquee strip ───────────────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
  background: var(--color-surface);
  user-select: none;
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.marquee-track .dot {
  color: var(--color-primary); flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section Header ──────────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--color-text-muted); margin-top: 0.75rem; font-size: 1.05rem; }

/* ── Card grid (1px separator style) ────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}
.card {
  background: var(--color-bg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.25s;
  overflow: hidden;
}
/* Accent bar that grows from left on hover */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg)); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.6rem; color: var(--color-text); }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Floating card style (for standalone cards outside the separator grid) */
.card-float {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem; padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card-float:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* ── Section alt bg ──────────────────────────────────────────────────── */
.section-alt { background: var(--color-surface); }
.about-inner, .contact-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-inner h2, .contact-inner h2 { margin: 0.5rem 0 1rem; }
.about-inner p, .contact-inner p { color: var(--color-text-muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.contact-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border-radius: 2rem; border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-size: 0.9rem; transition: background 0.2s, border-color 0.2s; }
.contact-link svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.contact-link:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }
/* ── Contact form ─────────────────────────────────────────────────────── */
.contact-form { margin-top: 2rem; text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.cf-group { display: flex; flex-direction: column; gap: 0.35rem; }
.cf-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.cf-group input, .cf-group textarea { width: 100%; padding: 0.7rem 1rem; border-radius: 0.5rem; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.cf-group input:focus, .cf-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.cf-submit { align-self: flex-start; margin-top: 0.5rem; }
.cf-group input.cf-error, .cf-group textarea.cf-error { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.2); }
.cf-error-msg { font-size: 0.78rem; color: #f87171; margin-top: 0.2rem; min-height: 1em; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }.about-img { width: 100%; border-radius: 1rem; object-fit: cover; aspect-ratio: 3/2; }.about-split .about-inner { text-align: left; margin: 0; max-width: none; }@media (max-width: 768px) { .about-split { grid-template-columns: 1fr; } }

/* ── Mode sections (hidden by default except active) ─────────────────── */
.mode-sections { display: none; }
.mode-sections.active { display: block; }

/* Sub-page entry animation (fade in — no drop, keeps it distinct from mode switch) */
@keyframes subPageFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes subPageFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(12px); }
}
.sub-page.active {
  animation: subPageFadeIn 0.28s ease forwards;
}
.sub-page.exiting {
  display: block;
  animation: subPageFadeOut 0.22s ease forwards;
  pointer-events: none;
}
.mode-sections.sub-page-returning > section {
  animation: subPageFadeIn 0.28s ease forwards;
}

/* Dropdown slide-in animation when switching modes in the demo */
@keyframes modeDrop {
  0%   { opacity: 0; transform: translateY(-28px) scaleY(0.97); }
  60%  { opacity: 1; transform: translateY(4px) scaleY(1.005); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
.mode-sections.dropping-in {
  animation: modeDrop 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: top center;
}

/* ── Demo preview wrapper (subtle frame to show it's a preview) ───────── */
#demo-preview {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding-top: var(--outer-nav-h, 62px);
  overflow: clip;
  margin: 0.75rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: border-color 0.3s, padding-top 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Inner demo site nav (themed — uses demo CSS variables) ──────────── */
#demo-site-nav {
  position: sticky; top: var(--outer-nav-h, 62px); z-index: 100;
  background: var(--color-nav-bg, rgba(250,250,250,0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-speed), border-color var(--transition-speed),
              transform 0.3s ease, opacity 0.3s ease,
              top 0.35s cubic-bezier(0.4,0,0.2,1);
}
#demo-site-nav.demo-nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.demo-nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.demo-nav-logo {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: var(--color-text); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.demo-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0;
}
.demo-nav-links {
  display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0;
}
.demo-nav-links a {
  color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.demo-nav-links a:hover { color: var(--color-text); }
.demo-nav-cta {
  background: var(--color-primary); color: var(--color-on-primary, #fff);
  padding: 0.5rem 1.25rem; border-radius: 0.4rem;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.demo-nav-cta:hover { opacity: 0.85; color: #fff; }

/* Hamburger button in inner demo nav */
#demo-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#demo-menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--color-primary); border-radius: 2px; transition: all 0.3s;
}

/* Inner demo mobile menu (slide-in from right) */
#demo-mobile-menu {
  position: fixed;
  top: var(--outer-nav-h, 62px); right: 0;
  width: min(280px, 85%);
  height: calc(100dvh - var(--outer-nav-h, 62px));
  background: var(--color-nav-bg, rgba(250,250,250,0.98));
  border-left: 1px solid var(--color-border);
  font-family: var(--font-body);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background var(--transition-speed);
  display: flex; flex-direction: column;
  padding: 1.5rem 0;
  overflow-y: auto;
}
#demo-mobile-menu.open { transform: translateX(0); }
#demo-mobile-menu a {
  display: block; padding: 14px 24px;
  color: var(--color-text); font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}
#demo-mobile-menu a:hover { background: var(--color-surface); }
#demo-mobile-overlay {
  position: fixed; top: var(--outer-nav-h, 62px); left: 0;
  right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 499;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#demo-mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* Inner demo nav lang toggle */
.demo-nav-lang {
  display: flex; gap: 0.2rem;
}
.demo-nav-lang .lang-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.demo-nav-lang .lang-btn.active,
.demo-nav-lang .lang-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary, #fff);
}

/* Inner demo mobile menu lang toggle */
.demo-mobile-lang {
  display: flex; gap: 0.5rem;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
}
.demo-mobile-lang .lang-btn {
  flex: 1;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
  text-align: center;
}
.demo-mobile-lang .lang-btn.active,
.demo-mobile-lang .lang-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary, #fff);
}

@media (max-width: 768px) {
  #demo-menu-toggle { display: flex; }
  .demo-nav-lang { display: none; }
}

/* ── Sub-pages (Full Menu / All Products) ────────────────────────────── */
.sub-page { display: none; }
.sub-page.active { display: block; min-height: 60vh; }
.mode-sections.sub-page-open > section { display: none; }

.sub-page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
}
.sub-page-header .container {
  display: flex; align-items: center; gap: 1rem;
}
.sub-page-back {
  background: none; border: 1px solid var(--color-border);
  color: var(--color-text); padding: 0.4rem 0.9rem;
  border-radius: 0.4rem; cursor: pointer;
  font-size: 0.875rem; font-family: var(--font-body);
  transition: background 0.2s; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sub-page-back:hover { background: var(--color-surface); }
.sub-page-header h1 {
  font-family: var(--font-heading); font-size: 1.4rem;
  font-weight: 700; color: var(--color-text); margin: 0;
}

/* Catalog controls */
.catalog-controls { padding: 1.25rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.catalog-search {
  width: 100%; padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.catalog-search:focus { border-color: var(--color-primary); }
.filter-tabs, .sub-category-tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.sub-category-tabs {
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-primary);
  display: none;
}
.sub-category-tabs.visible { display: flex; }
.filter-tab {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border); border-radius: 2rem;
  background: none; color: var(--color-text-muted);
  -webkit-tap-highlight-color: transparent;
  font-size: 0.82rem; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s;
  touch-action: manipulation;
}
.filter-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary, #fff); }
.filter-tab:hover:not(.active) { border-color: var(--color-primary); color: var(--color-primary); }
.catalog-sort-row { display: flex; justify-content: flex-end; align-items: center; }
.catalog-sort-select { padding: 0.4rem 0.75rem; border: 1px solid var(--color-border); border-radius: 0.4rem; background: var(--color-surface); color: var(--color-text); font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; outline: none; }
.catalog-sort {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border); border-radius: 0.4rem;
  background: var(--color-surface); color: var(--color-text);
  font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; outline: none;
}
.results-count { font-size: 0.82rem; color: var(--color-text-muted); padding-bottom: 0.25rem; }

/* Menu catalog items (restaurant) */
#menu-grid { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 2rem; }
.menu-catalog-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; padding: 1rem 1.25rem;
  border: 1px solid var(--color-border); border-radius: 0.75rem;
  background: var(--color-surface); transition: transform 0.2s;
}
.menu-catalog-item:hover { transform: translateX(4px); }
.catalog-item-name {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: var(--color-text); margin: 0 0 0.25rem;
}
.item-name-en {
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 400; color: var(--color-text-muted); margin-left: 0.4rem;
}
.catalog-item-desc { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.catalog-item-price {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--color-primary); white-space: nowrap; flex-shrink: 0;
}

/* Product catalog items (store) */
#products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: 1rem; padding-bottom: 2rem;
}
.product-catalog-item {
  border: 1px solid var(--color-border); border-radius: 0.75rem;
  overflow: hidden; background: var(--color-surface);
  display: flex; flex-direction: column; transition: transform 0.2s;
}
.product-catalog-item:hover { transform: translateY(-4px); }
.catalog-item-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.catalog-item-body { padding: 0.9rem 1rem; flex: 1; display: flex; flex-direction: column; }
.catalog-item-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 0.75rem; gap: 0.5rem; flex-wrap: wrap;
}

/* View all CTA wrapper */
.view-all-wrap { text-align: center; padding: 1.5rem 0 0.5rem; }

/* ── Lang toggle (inside config drawer) ──────────────────────────────── */
.lang-toggle { display: flex; gap: 0.25rem; }
.lang-btn {
  background: none; border: 1px solid #e5e7eb;
  color: #6b7280; padding: 0.3rem 0.75rem; border-radius: 4px;
  cursor: pointer; font-size: 0.82rem; transition: all 0.2s;
  min-height: 34px; min-width: 40px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.lang-btn.active, .lang-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary, #fff); }

/* Demo indicator bar */
/* Demo page: shared nav always solid (not transparent at top) */
#shared-nav.demo-nav-solid {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 #e2e8f0 !important;
  padding: 12px 0 !important;
}

/* Demo controls in shared nav */
.demo-nav-controls {
  display: flex; align-items: center; gap: 0.6rem;
  padding-right: 0.5rem;
  border-right: 1px solid #e2e8f0;
  margin-right: 0.25rem;
}
.demo-nav-controls .demo-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  background: #0D9488; color: #fff;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; flex-shrink: 0;
  white-space: nowrap;
}

#demo-bar {
  position: sticky; top: 70px; z-index: 190;
  background: #f9fafb; border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem 0;
}
.demo-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.demo-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  background: #0D9488; color: #fff;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; flex-shrink: 0;
}
/* Mode switcher dropdown */
.mode-switcher-wrap { position: relative; }
.mode-switcher-current {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem; border-radius: 8px; min-height: 36px;
  background: #fff; border: 1px solid #d1d5db;
  color: #374151; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mode-switcher-current:hover { border-color: #0D9488; }
.mode-switcher-icon { font-size: 1rem; line-height: 1; }
.mode-switcher-chevron {
  width: 16px; height: 16px; color: #9ca3af;
  transition: transform 0.25s; flex-shrink: 0;
}
.mode-switcher-current[aria-expanded="true"] .mode-switcher-chevron { transform: rotate(180deg); }
.mode-switcher-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 170px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none; padding: 0.4rem; margin: 0;
  z-index: 300;
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.mode-switcher-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.mode-switcher-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem; border-radius: 7px;
  cursor: pointer; font-size: 0.875rem; font-weight: 500; color: #374151;
  transition: background 0.15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mode-switcher-option:hover { background: #f3f4f6; }
.mode-switcher-option.active { background: #f0fdfa; color: #0D9488; font-weight: 700; }
.mode-option-icon { font-size: 1.1rem; line-height: 1; }

/* Legacy hidden mode-btns (used by configurator.js via AppState) */
#demo-bar .mode-btns { display: none !important; }

.demo-hint { font-size: 0.75rem; color: #9ca3af; flex-shrink: 0; }

/* Custom sort dropdown */
.custom-sort { position: relative; }
.custom-sort-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); font-size: 0.85rem; font-family: var(--font-body);
  cursor: pointer; transition: border-color 0.2s;
  white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.custom-sort-btn:hover { border-color: var(--color-primary); }
.custom-sort-arrow {
  width: 16px; height: 16px; color: var(--color-text-muted);
  transition: transform 0.2s; flex-shrink: 0;
}
.custom-sort[aria-expanded="true"] .custom-sort-arrow,
.custom-sort.open .custom-sort-arrow { transform: rotate(180deg); }
.custom-sort-menu {
  position: absolute; right: 0; top: calc(100% + 4px);
  min-width: 180px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  list-style: none; padding: 0.35rem; margin: 0;
  z-index: 300;
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.custom-sort.open .custom-sort-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.custom-sort-option {
  padding: 0.5rem 0.75rem; border-radius: 6px;
  font-size: 0.85rem; color: var(--color-text); cursor: pointer;
  transition: background 0.15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.custom-sort-option:hover { background: var(--color-surface); }
.custom-sort-option.active { color: var(--color-primary); font-weight: 600; }

@media (max-width: 768px) {
  .demo-nav-links { display: none; }
  .demo-nav-cta { display: none; }
  .demo-hint { display: none; }

  /* Outer nav: hide lang-toggle (redundant — it's in the mobile menu) */
  #shared-nav .lang-toggle { display: none; }

  /* Demo bar: hide badge, center mode switcher */
  #demo-bar .demo-badge { display: none; }
  .demo-bar-inner { justify-content: center; }

  /* Slide demo-bar up when outer nav hides — reclaims 70px of screen space */
  #demo-bar {
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #shared-nav.hidden-nav ~ #demo-bar {
    top: 0;
  }

  /* "DEMO PREVIEW" fixed edge tab — above outer nav so always visible */
  #demo-bar::after {
    content: 'DEMO PREVIEW';
    position: fixed;
    top: 0; right: 0;
    background: #0D9488; color: #fff;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 0.13em;
    padding: 4px 9px;
    border-radius: 0 0 0 6px;
    text-transform: uppercase;
    z-index: 920;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
}

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.view-counter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  font-size: 0.9rem; color: var(--color-text-muted);
}
.view-counter strong { color: var(--color-primary); font-size: 1.05rem; }
.footer-copy { color: var(--color-text-muted); font-size: 0.85rem; opacity: 0.6; }

/* ── Menu items ───────────────────────────────────────────────────────── */
.menu-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.menu-tab {
  padding: 0.45rem 1.1rem; border-radius: 999px; min-height: 40px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.menu-tab.active, .menu-tab:hover {
  background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary, #fff);
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.25rem; }
.menu-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.menu-item.hidden { display: none; }
.menu-item-info h3 { margin-bottom: 0.3rem; }
.menu-price { color: var(--color-primary); font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.25rem; }

/* ── Products ─────────────────────────────────────────────────────────── */
.product-card { display: flex; flex-direction: column; gap: 0.6rem; }
.product-img {
  width: 100%; aspect-ratio: 4/3; border-radius: 0.5rem;
  object-fit: cover; display: block;
  background: var(--color-surface);
}
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-weight: 700; color: var(--color-primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; min-height: 40px; }
.restaurant-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }.restaurant-img { width: 100%; border-radius: 1rem; object-fit: cover; aspect-ratio: 16/9; }.restaurant-feature-text { text-align: left; }.restaurant-feature-text h2 { margin: 0.5rem 0 1rem; }.restaurant-feature-text p { color: var(--color-text-muted); }@media (max-width: 768px) { .restaurant-feature { grid-template-columns: 1fr; } }

/* ── Categories ───────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 1rem; }
.cat-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 0.75rem; padding: 2rem 1rem;
  text-align: center; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  min-height: 80px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cat-card:hover { background: color-mix(in srgb, var(--color-primary) 12%, transparent); border-color: var(--color-primary); }
.cat-card:active { transform: scale(0.96); }

/* ── Catalog filter tab press feel ───────────────────────────────────── */
.filter-tab { transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s; }
.filter-tab:active { transform: scale(0.94); }

/* ── Catalog / grid entrance animation ───────────────────────────────── */
@keyframes gridItemIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.grid-item-in { animation: gridItemIn 0.3s ease both; }

/* ── Config Toggle Button ────────────────────────────────────────────── */
#config-toggle {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: 2rem; padding: 0.85rem 1.5rem;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--color-primary) 45%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
  min-height: 50px; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#config-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
#config-toggle:active { transform: scale(0.97); }

/* ── Backdrop ─────────────────────────────────────────────────────────── */
#config-backdrop {
  display: none; position: fixed; inset: 0; z-index: 990;
  background: rgba(0,0,0,0.5);
}
#config-backdrop.open { display: block; }

/* ── Drawer (stays dark — it's UI, not preview) ───────────────────────── */
#config-drawer {
  position: fixed; top: 0; right: 0; z-index: 1000;
  width: min(440px, 100vw); height: 100vh; height: 100dvh;
  background: #111827; color: #F9FAFB;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#config-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.drawer-header h2 { flex: 1; text-align: center; font-size: 1.1rem; margin: 0; color: #F9FAFB; font-family: var(--font-body); }
#config-close {
  background: none; border: none; color: #F9FAFB;
  font-size: 1.25rem; cursor: pointer; opacity: 0.6; padding: 8px;
  min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center;
  gap: 0.3rem; transition: opacity 0.2s;
}
#config-close:hover { opacity: 1; }
.drawer-body {
  flex: 1; overflow-y: auto; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.drawer-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,24,39,0.98);
}
.btn-drawer-back-top {
  background: none; border: none; color: rgba(249,250,251,0.7);
  font-size: 0.85rem; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.btn-drawer-back-top:hover { color: #F9FAFB; background: rgba(255,255,255,0.08); }
.drawer-section {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drawer-section:last-child { border-bottom: none; }
.drawer-section > label {
  font-weight: 700; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(249,250,251,0.4);
  display: flex; align-items: center; gap: 0.5rem;
}
.drawer-section > label::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06);
}

/* Preset themes grid */
.preset-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem;
}
.preset-swatch-wrap { display: flex; flex-direction: column; align-items: center; }
.preset-swatch {
  aspect-ratio: 1; border-radius: 0.5rem; width: 100%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
  position: relative; overflow: hidden;
  touch-action: manipulation; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.preset-swatch:hover { transform: scale(1.08); }
.preset-swatch.active { border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
.preset-swatch-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.preset-swatch-bg { flex: 1; }
.preset-swatch-bar { height: 8px; }
.preset-name {
  font-size: 0.7rem; color: rgba(249,250,251,0.6);
  text-align: center; margin-top: 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Background style selector */
.bg-style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.bg-style-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  cursor: pointer; color: rgba(249,250,251,0.7);
  font-size: 0.7rem; font-family: var(--font-body);
  transition: all 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bg-style-tile:hover { background: rgba(255,255,255,0.12); color: #F9FAFB; }
.bg-style-tile.active {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
  color: #F9FAFB;
}
.bg-tile-preview {
  width: 36px; height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  display: block; overflow: hidden; position: relative;
}
/* Particle dots preview */
.bg-prev-particles::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(99,202,183,0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(99,202,183,0.5) 1px, transparent 1px);
  background-size: 8px 8px, 14px 14px;
  background-position: 2px 3px, 6px 8px;
}
/* Waves preview */
.bg-prev-waves::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    transparent 0px, transparent 5px,
    rgba(99,202,183,0.25) 5px, rgba(99,202,183,0.25) 7px,
    transparent 7px, transparent 12px
  );
}
/* Grid dots preview */
.bg-prev-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(99,202,183,0.7) 1px, transparent 1px);
  background-size: 7px 7px;
}
/* Blobs preview */
.bg-prev-blobs::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(99,202,183,0.4) 30%, transparent 65%),
    radial-gradient(circle at 70% 60%, rgba(99,202,183,0.3) 25%, transparent 55%);
}
/* None preview */
.bg-prev-none::after {
  content: '✕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.3);
}
/* Stars preview */
.bg-prev-stars::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(99,202,183,0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(99,202,183,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(99,202,183,0.7) 1px, transparent 1px);
  background-size: 6px 6px, 10px 10px, 15px 15px;
  background-position: 1px 2px, 5px 7px, 3px 11px;
}
/* Geometric preview */
.bg-prev-geometric::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 40%, rgba(99,202,183,0.3) 40%, rgba(99,202,183,0.3) 42%, transparent 42%),
    linear-gradient(-45deg, transparent 40%, rgba(99,202,183,0.2) 40%, rgba(99,202,183,0.2) 42%, transparent 42%),
    linear-gradient(0deg, transparent 30%, rgba(99,202,183,0.2) 30%, rgba(99,202,183,0.2) 33%, transparent 33%);
}
/* Ripple preview */
.bg-prev-ripple::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 40% 50%, transparent 20%, rgba(99,202,183,0.3) 21%, transparent 25%),
    radial-gradient(circle at 40% 50%, transparent 30%, rgba(99,202,183,0.2) 31%, transparent 35%),
    radial-gradient(circle at 70% 30%, transparent 10%, rgba(99,202,183,0.25) 11%, transparent 15%);
}
/* Fireflies preview */
.bg-prev-fireflies::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99,202,183,0.8) 2px, transparent 6px),
    radial-gradient(circle at 55% 65%, rgba(99,202,183,0.6) 2px, transparent 8px),
    radial-gradient(circle at 75% 25%, rgba(99,202,183,0.7) 2px, transparent 7px),
    radial-gradient(circle at 35% 80%, rgba(99,202,183,0.5) 1px, transparent 5px);
  background-size: 100% 100%;
}
/* Aurora preview */
.bg-prev-aurora::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 10%, rgba(99,202,183,0.15) 25%, rgba(99,202,183,0.25) 35%, rgba(99,202,183,0.1) 45%, transparent 55%),
    linear-gradient(180deg, transparent 35%, rgba(99,202,183,0.1) 50%, rgba(99,202,183,0.2) 60%, transparent 70%);
}

/* Mode buttons */
.mode-btns { display: flex; gap: 0.4rem; }
.mode-btn {
  flex: 1; padding: 0.6rem 0.5rem; border-radius: 0.5rem; min-height: 42px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(249,250,251,0.7); cursor: pointer; font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mode-btn:hover { background: rgba(255,255,255,0.09); color: #F9FAFB; }
.mode-btn.active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* Color pickers */
.color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.color-item { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: rgba(249,250,251,0.6); }
.color-input-wrap {
  display: flex; gap: 0.35rem; align-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 4px 6px;
}
input[type="color"] {
  width: 32px; height: 32px; border: none; border-radius: 6px;
  cursor: pointer; padding: 2px; background: none; flex-shrink: 0;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hex-input {
  flex: 1; background: transparent; border: none;
  color: #F9FAFB; padding: 0.2rem 0.3rem;
  font-size: 0.8rem; font-family: monospace; min-width: 0;
}
.hex-input:focus { outline: none; }
.color-input-wrap:focus-within { border-color: var(--color-primary); }
.btn-auto-theme {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(249,250,251,0.8); border-radius: 0.5rem; padding: 0.6rem 1rem; min-height: 44px;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; margin-top: 0.25rem;
}
.btn-auto-theme::before { content: '✦'; font-size: 0.75rem; opacity: 0.7; }
.btn-auto-theme:hover { background: rgba(13,148,136,0.2); border-color: var(--color-primary); color: #F9FAFB; }

/* Font selectors */
.font-row { display: flex; flex-direction: column; gap: 0.7rem; }
.font-item { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: rgba(249,250,251,0.6); }
/* Custom font dropdown */
.custom-font-select { position: relative; }
.custom-font-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #F9FAFB; border-radius: 6px; padding: 0.6rem 0.75rem;
  font-size: 0.9rem; min-height: 44px; cursor: pointer; text-align: left;
  transition: border-color 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.custom-font-btn:hover, .custom-font-select.open .custom-font-btn { border-color: var(--color-primary); }
.custom-font-arrow { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; transition: transform 0.2s; }
.custom-font-select.open .custom-font-arrow { transform: rotate(180deg); }
.custom-font-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  background: #1F2937; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  max-height: 200px; overflow-y: auto; list-style: none; padding: 0.25rem 0;
  display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.custom-font-select.open .custom-font-list { display: block; }
.custom-font-option {
  padding: 0.5rem 0.75rem; font-size: 0.9rem; color: #F9FAFB; cursor: pointer;
  transition: background 0.15s; -webkit-tap-highlight-color: transparent;
}
.custom-font-option:hover { background: rgba(255,255,255,0.08); }
.custom-font-option.active { color: var(--color-primary); background: rgba(255,255,255,0.05); }

/* Inputs in drawer */
.drawer-section input[type="text"],
.drawer-section input[type="email"],
.drawer-section input[type="tel"] {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #F9FAFB; border-radius: 8px; padding: 0.7rem 0.85rem;
  font-size: 0.9rem; width: 100%; min-height: 46px; transition: border-color 0.2s;
}
.drawer-section input:focus { outline: none; border-color: var(--color-primary); background: rgba(255,255,255,0.07); }
.drawer-section input::placeholder { color: rgba(249,250,251,0.3); }
.form-errors { font-size: 0.82rem; color: #f87171; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.1rem 0; }
.codename-label { display: block; margin-top: 16px; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: #555; }

/* Lang toggle inside drawer */
.drawer-section .lang-toggle .lang-btn {
  border-color: rgba(255,255,255,0.2); color: #F9FAFB;
}

.btn-send { width: 100%; justify-content: center; padding: 0.9rem; min-height: 52px; }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Floating chat bubbles (left side — clearly part of the demo site) ── */
.chat-bubbles {
  position: fixed; bottom: calc(2rem + 50px + 0.75rem); left: 2rem; z-index: 490;
  display: flex; flex-direction: column; gap: 0.6rem;
  align-items: center;
}
.chat-bubble {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.chat-bubble svg { width: 26px; height: 26px; }
.chat-bubble:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.chat-bubble-wa  { background: #25D366; color: #fff; }
.chat-bubble-line { background: #06C755; color: #fff; }

/* ── Customize button: hide while scrolling ────────────────────────────── */
#config-toggle { transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s; }
#config-toggle.scroll-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e2433; border: 1px solid rgba(255,255,255,0.15);
  color: #F9FAFB; padding: 0.85rem 1.5rem; border-radius: 0.6rem;
  font-size: 0.9rem; opacity: 0; pointer-events: none; z-index: 1050;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--color-primary); }
.toast.error { border-color: #f87171; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: 80vh; padding: 5rem 0 3rem; }
  .color-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .preset-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
  #config-toggle { bottom: 1rem; right: 1rem; padding: 0.75rem 1.1rem; font-size: 0.9rem; }
  .chat-bubbles { bottom: calc(1rem + 50px + 0.6rem); left: 1rem; }
  .chat-bubble { width: 46px; height: 46px; }
  .chat-bubble svg { width: 22px; height: 22px; }
  .preset-grid { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
}
