/* ============================================================
   ResepiLokal.com — Main Stylesheet
   Netflix-inspired dark theme for Malaysian recipe platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Core colours */
  --bg:          #0d0d0d;
  --bg2:         #141414;
  --bg3:         #1a1a1a;
  --card:        #1e1e1e;
  --card-hover:  #252525;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.15);

  /* Brand accent — warm saffron gold (Malaysian spice vibes) */
  --accent:      #f5a623;
  --accent2:     #e8832a;
  --accent-glow: rgba(245,166,35,0.2);
  --accent-dim:  rgba(245,166,35,0.12);

  /* Red for "hot / trending" tags */
  --hot:         #e53935;
  --hot-dim:     rgba(229,57,53,0.15);

  /* Text */
  --text:        #e8e8e8;
  --text-sub:    #a0a0a0;
  --text-muted:  #606060;
  --white:       #ffffff;

  /* Misc */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.6);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --transition:  all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-h:       64px;
  --max-w:       1400px;
  --pad:         0 5%;
}

/* ── LIGHT THEME OVERRIDES ─────────────────────────────────── */
:root[data-theme="light"] {
  --bg:          #ffffff;
  --bg2:         #f6f6f3;
  --bg3:         #efeee8;
  --card:        #ffffff;
  --card-hover:  #f7f5f0;
  --border:      rgba(0,0,0,0.08);
  --border-hover:rgba(0,0,0,0.16);

  --text:        #1c1c1c;
  --text-sub:    #5a5750;
  --text-muted:  #8a8778;
  --white:       #0d0d0d;

  --shadow:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
}

/* Light mode: anything that sits ON TOP of a photo (hero banners, card
   thumbnails with a dark bottom gradient) must keep light text — the
   generic --white flip would make it near-black on a dark image. */
:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .recipe-card-title,
:root[data-theme="light"] .chef-hero-name,
:root[data-theme="light"] .recipe-hero-content .hero-meta,
:root[data-theme="light"] .recipe-hero-content .hero-meta-item strong {
  color: #ffffff;
}
:root[data-theme="light"] .hero-meta-item { color: rgba(255,255,255,0.85); }
:root[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }

h1, h2, h3 { line-height: 1.2; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-gradient {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo-text span { color: var(--accent); }

.nav-logo-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 1rem;
  transition: var(--transition);
}

.nav-search-btn:hover {
  background: var(--bg3);
  border-color: var(--border-hover);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO BANNER (Netflix style) ───────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  /* auto height + min-height: long titles grow the banner downward
     instead of pushing the badge up underneath the fixed navbar */
  height: auto;
  min-height: max(520px, 85vh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

/* Netflix-style bottom gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.7) 40%, rgba(13,13,13,0.2) 70%, transparent 100%),
    linear-gradient(to right, rgba(13,13,13,0.8) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  /* top padding keeps the badge clear of the fixed navbar even when
     a long title makes the content column tall */
  padding: calc(var(--nav-h) + 20px) 5% 64px;
  max-width: 580px;
  animation: heroFadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Recipe pages: the category badge sits in a flex row beside the
   Kegemaran button — the standalone bottom margin would push it up
   out of alignment there. */
#recipeCatBadge { margin-bottom: 0; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* very long recipe names: cap at 2 lines on the rotating home hero only
   (a recipe's own page always shows its full name) */
.hero-banner .hero-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.hero-chef-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
}

/* ── AD BANNER ─────────────────────────────────────────────── */
.ad-banner {
  background: var(--bg2);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin: 0 5%;
  /* Hidden site-wide while pending AdSense review — empty ad placeholders
     are a common rejection reason. Remove this line once approved and the
     real <ins class="adsbygoogle"> units are filled in. */
  display: none;
}

/* ── SECTION SHELL ─────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-pad { padding: 48px 5%; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  margin-bottom: 20px;
}

.section-title-group {}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
  white-space: nowrap;
}

.section-link:hover { color: var(--white); }

/* ── HORIZONTAL SCROLL ROW (Netflix rows) ──────────────────── */
.scroll-row {
  display: flex;
  gap: 14px;
  padding: 8px 5% 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.scroll-row::-webkit-scrollbar { display: none; }

/* Mouse wheel/drag scrolling (see site.js initScrollRows) — desktop mice
   have no horizontal scroll by default, so this row is enhanced with
   wheel-to-horizontal translation and click-and-drag. */
.scroll-row.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  scroll-behavior: auto;
}
.scroll-row.dragging * { pointer-events: none; }
.scroll-row a, .scroll-row img { -webkit-user-drag: none; user-drag: none; }

/* ── NETFLIX-STYLE ROW ARROWS (desktop) ───────────────────────
   Injected by site.js initScrollRows(). Fade in on row hover; hidden
   automatically at either end of the scroll or when nothing overflows. */
.row-wrap { position: relative; }
.row-arrow {
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 52px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(to right, var(--bg) 15%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: inherit;
}
.row-arrow.next { right: 0; background: linear-gradient(to left, var(--bg) 15%, transparent); }
.row-arrow.prev { left: 0; }
.row-arrow svg { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5)); transition: transform 0.2s ease; }
.row-arrow:hover svg { transform: scale(1.25); }
.row-wrap:hover .row-arrow:not(.hidden) { opacity: 1; }
.row-arrow.hidden { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .row-arrow { display: none; } }

/* ── FAVORITE BADGE (heart toggle on cards) ───────────────────── */
[data-recipe-id], [data-chef-id] { position: relative; }
.fav-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(13,13,13,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.fav-badge:hover { background: rgba(13,13,13,0.85); border-color: rgba(255,255,255,0.4); transform: scale(1.12); }
.fav-badge.active { color: #ff4d5a; background: rgba(13,13,13,0.75); border-color: rgba(255,77,90,0.5); }
.fav-badge svg { display: block; }
.chef-big-card .fav-badge, .chef-card .fav-badge { top: 10px; right: 10px; }
#pageFavBtn { display: inline-flex; align-items: center; gap: 7px; }
#pageFavBtn.active-fav { color: #ff4d5a; border-color: #ff4d5a; }
#pageFavBtn svg { display: block; }

/* Live count bubble on the navbar heart */
#favNavLink { position: relative; }
.fav-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── RECIPE CARD ───────────────────────────────────────────── */
.recipe-card {
  flex: 0 0 220px;
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: var(--transition);
  transform-origin: center bottom;
}

.recipe-card:hover {
  transform: scale(1.08) translateY(-8px);
  z-index: 10;
}

.recipe-card-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.recipe-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-thumb img {
  transform: scale(1.08);
}

/* Gradient overlay on thumb */
.recipe-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  border-radius: var(--radius);
}

.recipe-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(13,13,13,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

.recipe-card-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 14px 12px;
}

.recipe-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.recipe-card-chef {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Hover info popup (Netflix hover effect) */
.recipe-card-hover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 240px;
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 20;
}

.recipe-card:hover .recipe-card-hover {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.recipe-card-hover-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.recipe-card-hover-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recipe-card-hover-meta span {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 3px;
}

.recipe-card-hover-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.recipe-card-hover .btn {
  width: 100%;
  justify-content: center;
  padding: 9px;
  font-size: 0.82rem;
}

/* ── CHEF CARD ─────────────────────────────────────────────── */
.chef-card {
  flex: 0 0 160px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
}

.chef-card:hover { transform: translateY(-6px); }

.chef-card-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  transition: var(--transition);
}

.chef-card:hover .chef-card-avatar {
  transform: scale(1.04);
}

.chef-card-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.chef-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.chef-card-count {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.chef-verified {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid var(--bg2);
}

/* ── CHEF DETAIL PAGE ──────────────────────────────────────── */
.chef-hero {
  position: relative;
  height: auto;
  min-height: 340px;
  overflow: hidden;
  margin-top: var(--nav-h);
  display: flex;
  align-items: flex-end;
}

.chef-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.chef-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}

.chef-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 24px 5% 36px;
  gap: 24px;
}

.chef-hero-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.chef-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-hero-info {}

.chef-hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.chef-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg3);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.tag-hot {
  background: var(--hot-dim);
  color: var(--hot);
  border-color: rgba(229,57,53,0.2);
}

.chef-hero-followers {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.chef-hero-followers strong { color: var(--accent); }

/* ── RECIPE DETAIL PAGE ────────────────────────────────────── */
.recipe-hero {
  position: relative;
  /* grows downward with long titles instead of hiding text under the navbar */
  height: auto;
  min-height: max(400px, 70vh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.recipe-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.6) 50%, transparent 100%),
    linear-gradient(to right, rgba(13,13,13,0.7) 0%, transparent 50%);
}

.recipe-hero-content {
  position: relative;
  padding: calc(var(--nav-h) + 20px) 5% 48px;
  z-index: 2;
  max-width: 600px;
}

.recipe-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 48px 5%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.recipe-video-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.tiktok-embed-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background: #000;
  min-height: 500px;
}

.tiktok-embed-wrap iframe {
  border: none;
  max-width: 380px;
  width: 100%;
  height: 740px;
}

.recipe-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.ingredient-item:hover {
  border-color: var(--border-hover);
  background: var(--bg3);
}

.ingredient-bullet {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border-hover);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  padding-top: 6px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
}

/* Sidebar card */
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.info-item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

/* Chef mini card in sidebar */
.chef-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.chef-mini:hover { border-color: var(--border-hover); background: var(--bg2); }

.chef-mini-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.chef-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-mini-name {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
  font-size: 0.92rem;
}

.chef-mini-sub { font-size: 0.78rem; color: var(--text-sub); }

/* ── SEARCH PAGE ───────────────────────────────────────────── */
.search-hero {
  padding: calc(var(--nav-h) + 48px) 5% 48px;
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
}

.search-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
}

.search-bar-wrap {
  position: relative;
  max-width: 640px;
}

.search-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border-hover);
  border-radius: 50px;
  padding: 17px 58px 17px 26px;
  font-size: 1.02rem;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:hover { border-color: var(--border-hover); }

.search-input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-card);
}

.search-icon {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg3);
  color: var(--text-sub);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  background: var(--card-hover);
  color: var(--white);
  border-color: var(--border-hover);
}

.chip.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── RESULTS GRID ──────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 32px 5%;
}

.results-grid .recipe-card {
  flex: none;
  width: 100%;
}

.results-grid .recipe-card-thumb {
  aspect-ratio: 3/4;
}

/* ── CHEFS PAGE GRID ───────────────────────────────────────── */
.chefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 32px 5%;
}

.chef-big-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.chef-big-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.chef-big-card-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.chef-big-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,1) 0%, transparent 60%);
}

.chef-big-card-body {
  padding: 0 20px 20px;
  position: relative;
}

.chef-big-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-top: -36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.chef-big-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chef-big-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.chef-big-card-followers {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.chef-big-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-sub); margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; }

/* ── TOAST NOTIFICATION ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  max-width: 300px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 5% 24px;
  margin-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--accent); }

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-sub);
  transition: var(--transition);
}

.footer-links-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── LOADING SKELETON ──────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade { animation: fadeIn 0.5s ease both; }
.animate-up { animation: slideUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .recipe-main { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    padding: 24px 5%;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-banner { min-height: 75vh; }
  .hero-content { max-width: 100%; }

  .chef-hero-content { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chef-hero-avatar { width: 70px; height: 70px; }

  .results-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .recipe-card { flex: 0 0 170px; }
  .chef-card { flex: 0 0 130px; }
  .chef-card-avatar { width: 90px; height: 90px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .recipe-main { padding: 24px 4%; }
  .section-header { padding: 0 4%; }
  .scroll-row { padding: 8px 4% 16px; }
}

/* ══════════════════════════════════════════
   STATIC PAGES (about / legal / faq / etc.)
══════════════════════════════════════════ */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 5% 60px;
}
.page-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.page-wrap .page-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.page-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-wrap p, .page-wrap li {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.page-wrap ul { padding-left: 22px; margin-bottom: 14px; }
.page-wrap li { margin-bottom: 8px; }
.page-wrap a { color: var(--accent); }
.page-wrap .callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

/* Category grid page */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.cat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.cat-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.cat-card .cat-emoji { font-size: 2rem; margin-bottom: 8px; }
.cat-card .cat-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.cat-card .cat-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Newsletter (footer) */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.newsletter-form button:hover { opacity: 0.85; }

/* Image loading skeleton + fade-in */
.recipe-card-thumb img, .related-card-thumb img, .chef-card-avatar img {
  background: linear-gradient(100deg, var(--bg2) 40%, var(--bg3) 50%, var(--bg2) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
@keyframes skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}
img.img-loaded { animation: img-fade 0.4s ease; background: none; }
@keyframes img-fade { from { opacity: 0.35; } to { opacity: 1; } }

/* Icon buttons (social / share / buy) — svg + label, brand-colour hover */
.btn svg, .share-btn svg, .ing-buy svg, .chip-icon-btn svg { vertical-align: -3px; margin-right: 6px; flex-shrink: 0; }
.btn-outline svg, .btn-ghost svg { margin-right: 6px; }
.icon-only svg { margin-right: 0; }

.chip-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.chip-icon-btn.brand-tiktok:hover    { border-color: #ff0050; color: #fff; background: #ff0050; }
.chip-icon-btn.brand-youtube:hover   { border-color: #ff0000; color: #fff; background: #ff0000; }
.chip-icon-btn.brand-instagram:hover { border-color: #e1306c; color: #fff; background: #e1306c; }
.chip-icon-btn.brand-facebook:hover  { border-color: #1877f2; color: #fff; background: #1877f2; }
.chip-icon-btn.brand-whatsapp:hover  { border-color: #25d366; color: #fff; background: #25d366; }
.chip-icon-btn.brand-telegram:hover  { border-color: #229ed9; color: #fff; background: #229ed9; }
.chip-icon-btn.brand-shopee:hover    { border-color: #ee4d2d; color: #fff; background: #ee4d2d; }
.chip-icon-btn.brand-web:hover       { border-color: var(--accent); color: #000; background: var(--accent); }

.attribution-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-sub);
  margin: 14px 0 24px;
}
.attribution-bar a { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.attribution-bar a:hover { text-decoration: underline; }

.support-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 24px 0;
}
.support-card h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.support-card p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 14px; }
.support-links { display: flex; gap: 10px; flex-wrap: wrap; }

.restaurant-card .restaurant-tagline { font-style: italic; margin-bottom: 10px; }
.restaurant-card h4 { font-size: 0.85rem; font-weight: 800; color: var(--white); margin: 16px 0 8px; }
.restaurant-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.restaurant-facts div { display: flex; flex-direction: column; gap: 3px; }
.restaurant-facts strong { font-size: 0.75rem; color: var(--white); }
.restaurant-facts span { font-size: 0.82rem; color: var(--text-sub); }
.restaurant-menu, .restaurant-tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.restaurant-menu li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--text-sub); border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.restaurant-menu li span:first-child { color: var(--white); }
.restaurant-tips li { font-size: 0.82rem; color: var(--text-sub); line-height: 1.6; padding-left: 18px; position: relative; }
.restaurant-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ── Emoji→SVG swap: contextual icon sizing & alignment ── */
.section-eyebrow svg, .recipe-section-title svg, .sidebar-card-title svg,
.footer-col-title svg, .hero-badge svg, .support-card h3 svg,
.restaurant-card h3 svg, h1 svg, h2 svg, h3 svg {
  vertical-align: -2.5px; margin-right: 7px;
}
.recipe-card-chef svg, .recipe-card-hover-meta svg, .related-card-meta svg,
.chef-mini-sub svg, .chef-hero-followers svg, .cat-count svg,
.restaurant-facts strong svg {
  width: 12px; height: 12px; vertical-align: -1.5px; margin-right: 3px;
}
.hero-meta-item svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.cat-emoji svg { width: 34px; height: 34px; }
.btn svg { vertical-align: -2.5px; }
.nav-logo-mark { display: inline-flex; margin-right: 9px; }
.nav-logo-mark svg { display: block; }

/* ── ResepiBot assistant ── */
.rb-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #000; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rb-fab:hover { transform: scale(1.06); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.rb-fab svg { width: 26px; height: 26px; }
.rb-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 901;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.rb-panel.open { display: flex; animation: rbUp 0.18s ease; }
@keyframes rbUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rb-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.rb-head-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rb-head-avatar svg { width: 18px; height: 18px; }
.rb-head-name { font-weight: 800; color: var(--white); font-size: 0.9rem; }
.rb-head-sub { font-size: 0.7rem; color: var(--text-muted); }
.rb-close { margin-left: auto; background: none; border: none; color: var(--text-sub); cursor: pointer; padding: 6px; }
.rb-close:hover { color: var(--white); }
.rb-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rb-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 0.84rem; line-height: 1.55; }
.rb-msg.bot { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.rb-msg.user { background: var(--accent); color: #000; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.rb-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.rb-card {
  display: flex; gap: 10px; align-items: center; text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; transition: border-color 0.15s ease;
}
.rb-card:hover { border-color: var(--accent); }
.rb-card img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rb-card-title { font-size: 0.8rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.rb-card-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.rb-card-meta svg { width: 10px; height: 10px; vertical-align: -1px; margin-right: 2px; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.rb-chip {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-sub);
  border-radius: 99px; padding: 6px 12px; font-size: 0.74rem; cursor: pointer;
  transition: all 0.15s ease;
}
.rb-chip:hover { border-color: var(--accent); color: var(--accent); }
.rb-inputrow { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg); }
.rb-inputrow input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 99px;
  padding: 10px 16px; color: var(--text); font-size: 0.84rem; outline: none;
}
.rb-inputrow input:focus { border-color: var(--accent); }
.rb-inputrow button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent);
  color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rb-inputrow button svg { width: 17px; height: 17px; }
@media (max-width: 520px) {
  .rb-panel { right: 8px; left: 8px; width: auto; bottom: 78px; height: 70vh; }
  .rb-fab { right: 14px; bottom: 14px; }
}

/* Accessibility: visible keyboard focus */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}