@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --brand-primary: #FF6B35;
  --brand-secondary: #F7C59F;
  --brand-accent: #E63946;
  --brand-gold: #FFB700;
  --brand-green: #2EC4B6;

  --bg-dark: #0D0D0D;
  --bg-card: #161616;
  --bg-card-2: #1E1E1E;
  --bg-elevated: #242424;
  --bg-hover: #2A2A2A;

  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #606060;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-mild: rgba(255, 255, 255, 0.12);

  --gradient-brand: linear-gradient(135deg, #FF6B35 0%, #E63946 100%);
  --gradient-gold: linear-gradient(135deg, #FFB700 0%, #FF6B35 100%);
  --gradient-cool: linear-gradient(135deg, #2EC4B6 0%, #3D5AF1 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 8px 32px rgba(255, 107, 53, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --nav-width: 300px;
  --nav-width-collapsed: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme Overrides ── */
.light-theme {
  --bg-dark: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-2: #F1F3F5;
  --bg-elevated: #E9ECEF;
  --bg-hover: #DEE2E6;

  --text-primary: #1A1A1B;
  --text-secondary: #495057;
  --text-muted: #ADB5BD;

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-mild: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Layout ── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0; /* let wide children (filter rows, tables) scroll instead of widening the page */
  margin-left: var(--nav-width);
  min-height: 100vh;
  transition: var(--transition);
}

/* ── Navigation Sidebar ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px;
  margin: 16px 0 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.nav-item.active {
  color: var(--brand-primary);
  background: rgba(255, 107, 53, 0.08);
}

.nav-item.active .nav-icon {
  color: var(--brand-primary);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.nav-label {
  position: relative;
  z-index: 1;
}

.nav-badge {
  margin-left: auto;
  background: var(--brand-accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-user:hover {
  background: var(--bg-hover);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-username {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-handle {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.display-font {
  font-family: 'Playfair Display', serif;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-mild);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--brand-primary);
}

.btn-ghost {
  background: rgba(255, 107, 53, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 107, 53, 0.2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 16px;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-mild);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Star Rating ── */
.stars {
  display: inline-flex; 
  gap: 2px;
}

.star {
  font-size: 14px;
}

.star.filled {
  color: var(--brand-gold);
}

.star.half {
  color: var(--brand-gold);
}

.star.empty {
  color: var(--text-muted);
}

/* ── Tags / Chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  cursor: pointer;
}

.tag.active {
  background: rgba(255, 107, 53, 0.15);
  color: var(--brand-primary);
  border-color: rgba(255, 107, 53, 0.3);
}

/* ── Avatar ── */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 44px;
  height: 44px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.avatar-xl {
  width: 100px;
  height: 100px;
}

/* ── Input ── */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.input {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input::placeholder {
  color: var(--text-muted);
}

.input.with-icon {
  padding-left: 44px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-mild);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

/* ── Guest Mode Enhancements ── */

.guest-banner {
  background: var(--brand-primary);
  background: var(--gradient-brand);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.guest-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.guest-banner-actions {
  display: flex;
  gap: 12px;
}

.guest-banner-actions a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}

.guest-banner-actions a.highlight {
  background: white;
  color: var(--brand-primary);
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 4px;
}

.guest-modal {
  max-width: 400px;
  padding: 32px;
  text-align: center;
}

.guest-modal-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.guest-modal h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.guest-modal p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.guest-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-text {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.btn-text:hover {
  color: var(--text-secondary);
}

/* Disabled actions for guests */
.guest-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
  pointer-events: none !important;
}

.comments-blur-container {
  position: relative;
  overflow: hidden;
}

.comments-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
  text-align: center;
}

.blur-content h3 {
  margin-bottom: 8px;
}

.blur-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ── Notification / Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mild);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
}

.toast-text {
  font-size: 14px;
  font-weight: 500;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

/* ── Skeleton loader ── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card-2) 25%, var(--bg-elevated) 50%, var(--bg-card-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.scale-in {
  animation: scaleIn 0.3s ease forwards;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    bottom: 0;
    top: auto;
    left: 0;
    flex-direction: row;
    padding: 8px 4px;
    border-right: none;
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .sidebar-guest-cta, /* guest banner already offers login on mobile */
  #headerAuthCTA,
  .sidebar-logo,
  .nav-section-label,
  .sidebar-user-info,
  .sidebar-bottom {
    display: none;
  }

  .nav-item {
    flex: 1;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
  }

  /* Instagram-style bottom bar: icons only; the label stays for screen readers. */
  .nav-item .nav-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav-item, .nav-item:hover, .nav-item.active { background: none; box-shadow: none; position: relative; padding: 10px 8px; color: var(--text-primary); }
  .nav-item .nav-icon svg { width: 26px; height: 26px; stroke-width: 1.8; transition: transform .15s ease; }
  .nav-item.active .nav-icon svg { stroke-width: 2.8; }
  .nav-item:active .nav-icon svg { transform: scale(.88); }
  .nav-item .nav-badge { position: absolute; top: 4px; inset-inline-end: calc(50% - 18px); }
  /* Activity moved to Home's top-right on phones */
  .nav-item.nav-activity { display: none; }
  /* Post: the middle button, bigger, in brand colours */
  .nav-item.nav-create .nav-icon {
    display: grid; place-items: center; width: 52px; height: 40px; border-radius: 14px;
    background: var(--gradient-brand); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 53, .45);
  }
  .nav-item.nav-create .nav-icon svg { width: 34px; height: 34px; stroke-width: 2.6; }
  .nav-item.nav-create .nav-icon svg rect { stroke: none; }
  .nav-item.nav-create, .nav-item.nav-create:hover, .nav-item.nav-create.active { color: #fff; }

  .main-content {
    margin-left: 0;
    padding-bottom: 72px;
  }
}
/* ── Theme toggle button (injected by js/theme.js) ── */
.theme-fab {
  position: fixed; right: 92px; bottom: 26px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-mild); background: var(--bg-card);
  box-shadow: var(--shadow-sm); font-size: 20px; cursor: pointer;
}
@media (max-width: 768px) {
  .theme-fab { right: 20px; bottom: 148px; }
}

/* Star rating */
.star-picker { display: inline-flex; gap: 2px; direction: ltr; }
.star-picker button { background: none; border: 0; padding: 2px; font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer; transition: transform .15s, color .15s; }
.star-picker button:hover { transform: scale(1.2); }
.star-picker button.on { color: var(--brand-gold); }
.star-picker button:focus-visible { outline: 2px solid var(--brand-gold); border-radius: 4px; }
.stars-inline { color: var(--brand-gold); font-size: 12px; letter-spacing: 1px; margin-inline-start: 6px; direction: ltr; display: inline-block; }
.stars-inline span { color: var(--text-muted); opacity: .5; }

/* ── Foodie Plus (shared: badge, nav item, upsell modal, profile themes) ── */
.plus-badge { display: inline-flex; vertical-align: -2px; margin-inline-start: 4px; color: var(--brand-gold); filter: drop-shadow(0 0 4px rgba(255, 183, 0, .45)); }
.nav-item.nav-plus .nav-icon { color: var(--brand-gold); }
.nav-item.nav-plus .nav-label { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
@media (max-width: 768px) { .nav-item.nav-plus, .nav-item.nav-plus:hover, .nav-item.nav-plus.active { color: var(--brand-gold); } }

.plus-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-full); border: 0; cursor: pointer;
  background: var(--gradient-gold); color: #1a1200; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: 0 8px 28px rgba(255, 183, 0, .3); transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.plus-btn::after { /* slow shine sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: plusShine 3.2s ease-in-out infinite;
}
.plus-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255, 183, 0, .42); }
.plus-btn:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
.plus-btn[disabled] { opacity: .6; cursor: wait; }
@keyframes plusShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.plus-upsell-card { max-width: 380px; padding: 32px 26px 22px; text-align: center; border-color: rgba(255, 183, 0, .35);
  background: radial-gradient(circle at 50% 0, rgba(255, 183, 0, .14), transparent 60%), var(--bg-card); }
.plus-upsell-crown { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: var(--gradient-gold); color: #1a1200; box-shadow: 0 10px 30px rgba(255, 183, 0, .35); }
.plus-upsell-crown svg { width: 32px; height: 32px; }
.plus-upsell-card h3 { font-size: 20px; margin-bottom: 8px; }
.plus-upsell-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.plus-upsell-card .plus-btn { width: 100%; }
.plus-upsell-later { background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 13px; margin-top: 12px; padding: 8px; cursor: pointer; }

/* Profile themes: the ring around the avatar and a glow behind the header */
.profile-header-container[data-plus-theme] { --plus-c1: #FFB700; --plus-c2: #FF6B35; position: relative; isolation: isolate; }
.profile-header-container[data-plus-theme="rose"] { --plus-c1: #FF8FAB; --plus-c2: #C9184A; }
.profile-header-container[data-plus-theme="ocean"] { --plus-c1: #4CC9F0; --plus-c2: #4361EE; }
.profile-header-container[data-plus-theme="mint"] { --plus-c1: #80ED99; --plus-c2: #2EC4B6; }
.profile-header-container[data-plus-theme]::before { content: ""; position: absolute; inset: -20px -20px auto; height: 220px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--plus-c1) 22%, transparent), transparent 70%); }
.profile-header-container[data-plus-theme] .profile-avatar { outline: 3px solid transparent; box-shadow: 0 0 0 3px var(--bg-dark), 0 0 0 6px var(--plus-c1), 0 0 24px color-mix(in srgb, var(--plus-c1) 50%, transparent); }
.profile-header-container[data-plus-theme] .plus-badge { color: var(--plus-c1); }
@media (prefers-reduced-motion: reduce) { .plus-btn::after { animation: none; } }

/* Crown resting on a Plus member's profile avatar, tinted by their theme */
.profile-avatar-wrap { position: relative; }
.plus-avatar-crown { position: absolute; top: -18px; left: 50%; z-index: 2; width: 40px; height: 40px; margin-left: -20px;
  display: grid; place-items: center; border-radius: 50%; color: #1a1200; pointer-events: none;
  background: linear-gradient(135deg, var(--plus-c1, #FFB700), var(--plus-c2, #FF6B35));
  box-shadow: 0 0 0 3px var(--bg-dark), 0 6px 18px color-mix(in srgb, var(--plus-c1, #FFB700) 55%, transparent);
  animation: plusCrownFloat 3s ease-in-out infinite; }
.plus-avatar-crown svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, .35); }
@keyframes plusCrownFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-4px) rotate(4deg); } }

.plus-member-pill { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 6px; padding: 4px 12px 4px 10px;
  border-radius: var(--radius-full); text-decoration: none; font-size: 12px; font-weight: 700;
  color: var(--plus-c1, #FFB700); border: 1px solid color-mix(in srgb, var(--plus-c1, #FFB700) 45%, transparent);
  background: color-mix(in srgb, var(--plus-c1, #FFB700) 12%, transparent); position: relative; overflow: hidden; }
.plus-member-pill svg { width: 14px; height: 14px; }
.plus-member-pill::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: plusShine 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .plus-avatar-crown, .plus-member-pill::after { animation: none; } }

/* Crown lives on the profile now, not in the phone's bottom bar */
@media (max-width: 768px) { .nav-item.nav-plus { display: none; } }

.plus-profile-card { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px;
  border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); overflow: hidden; isolation: isolate;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #1f1600, #2a1500) padding-box, linear-gradient(135deg, #FFD54F, rgba(255,107,53,.35) 50%, #FFB700) border-box;
  transition: transform .2s, box-shadow .2s; }
.light-theme .plus-profile-card { background: linear-gradient(135deg, #FFF8E1, #FFE9D6) padding-box, linear-gradient(135deg, #FFB700, rgba(255,107,53,.4) 50%, #FFB700) border-box; }
.plus-profile-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 183, 0, .22); }
.plus-profile-card:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }
.plus-profile-card::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 213, 79, .18) 50%, transparent 70%); animation: plusShine 4s ease-in-out infinite; }
.plus-profile-card-crown { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #1a1200;
  background: linear-gradient(135deg, #FFD54F, #FF8A3D); box-shadow: 0 6px 18px rgba(255, 183, 0, .4); }
.plus-profile-card-crown svg { width: 24px; height: 24px; fill: rgba(255, 255, 255, .45); animation: plusCrownFloat 3s ease-in-out infinite; }
.plus-profile-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
.plus-profile-card-text b { font-size: 14px; background: linear-gradient(135deg, #FFD54F, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plus-profile-card-text small { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.plus-profile-card-cta { flex: none; padding: 8px 14px; border-radius: var(--radius-full); font-size: 12.5px; font-weight: 800; color: #1a1200;
  background: linear-gradient(135deg, #FFD54F, #FFB700 45%, #FF8A3D); box-shadow: 0 4px 14px rgba(255, 183, 0, .35); }
.plus-profile-card.is-member .plus-profile-card-cta { background: rgba(255, 183, 0, .12); color: var(--brand-gold); box-shadow: none; border: 1px solid rgba(255, 183, 0, .4); }
@media (prefers-reduced-motion: reduce) { .plus-profile-card::after, .plus-profile-card-crown svg { animation: none; } }

/* ── Restaurant promos (js/promos.js) ── */
.promo-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 12px; scroll-snap-type: x mandatory; direction: rtl; }
.promo-card { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #ff6b35, #e8336d); box-shadow: 0 6px 20px rgba(232, 51, 109, .25); }
.promo-card.promo-ad { background: linear-gradient(135deg, #7b5cff, #2fb4ff); box-shadow: 0 6px 20px rgba(47, 180, 255, .25); }
.promo-badge { align-self: flex-start; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 99px; }
.promo-sub { font-size: 12px; opacity: .9; }
.promo-text { font-size: 12px; opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.resto-main > .promo-strip { margin: 12px 16px 0; }
