/* =====================================================================
   Culin Cloud — base stylesheet (multi-tenant)
   ---------------------------------------------------------------------
   Everything colour/font related is a CSS variable. The values below are
   only FALLBACKS: each tenant's palette is injected after this file by
   base.html (SiteSettings.theme_css), including computed contrast colours.
   ===================================================================== */

:root {
  /* palette fallbacks = "Tomate & basilic" */
  --color-primary: #d6452b;
  --color-primary-rgb: 214, 69, 43;
  --color-primary-dark: #b53a24;
  --color-primary-dark-50: #b53a2480;
  --color-primary-ink: #c03e26;      /* primary as TEXT on white (AA contrast) */
  --color-on-primary: #ffffff;       /* text colour placed ON primary */
  --color-primary-soft: #fbe9e5;     /* very light tint of primary */
  --color-accent: #2f5d3a;
  --color-on-accent: #ffffff;
  --color-secondary: #fbeee0;
  --color-text: #2a2420;
  --color-light-bg: #fffcf7;

  --font-heading: Georgia, serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;

  /* design tokens */
  --radius: 1rem;
  --radius-sm: .75rem;
  --radius-pill: 50rem;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .10);
  --navbar-h: 76px;
}

/* ------------------------------------------------------------ base */
html { scroll-padding-top: calc(var(--navbar-h) + 1rem); }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light-bg);
  padding-top: var(--navbar-h);                 /* room for the fixed navbar */
  --bs-body-color: var(--color-text);
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
img { max-width: 100%; }
.text-primary { color: var(--color-primary-ink) !important; }
.text-primary-50 { color: var(--color-primary-dark-50) !important; }
.bg-primary { background-color: var(--color-primary) !important; color: var(--color-on-primary); }
.badge.bg-primary { color: var(--color-on-primary); }
.border-primary { border-color: var(--color-primary) !important; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-accent);
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary);
  margin: .6rem auto 0;
}
.section-title.text-start::after { margin-inline: 0 auto; }

/* ------------------------------------------------------------ buttons
   One system: size comes ONLY from .btn / .btn-sm / .btn-lg, colour ONLY
   from the variant. Nothing forces padding on a specific colour any more. */
.btn {
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .5rem;
  --bs-btn-font-size: .95rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  line-height: 1.25;
  text-decoration: none;
}
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .35rem; --bs-btn-font-size: .85rem; gap: .35rem; }
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: .7rem; --bs-btn-font-size: 1.05rem; }
.btn i { line-height: 1; }
.btn.rounded-circle { padding: 0; }            /* round icon-only buttons keep their own size */
.btn.w-100 { display: flex; }

.btn-primary {
  --bs-btn-color: var(--color-on-primary);
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-on-primary);
  --bs-btn-hover-bg: var(--color-primary-dark);
  --bs-btn-hover-border-color: var(--color-primary-dark);
  --bs-btn-active-color: var(--color-on-primary);
  --bs-btn-active-bg: var(--color-primary-dark);
  --bs-btn-active-border-color: var(--color-primary-dark);
  --bs-btn-focus-shadow-rgb: var(--color-primary-rgb);
  --bs-btn-disabled-color: var(--color-on-primary);
  --bs-btn-disabled-bg: var(--color-primary);
  --bs-btn-disabled-border-color: var(--color-primary);
}
.btn-outline-primary {
  --bs-btn-color: var(--color-primary-ink);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-on-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-color: var(--color-on-primary);
  --bs-btn-active-bg: var(--color-primary-dark);
  --bs-btn-active-border-color: var(--color-primary-dark);
  --bs-btn-focus-shadow-rgb: var(--color-primary-rgb);
  --bs-btn-disabled-color: var(--color-primary-ink);
  --bs-btn-disabled-border-color: var(--color-primary);
}
.btn-link { --bs-btn-color: var(--color-primary-ink); --bs-btn-hover-color: var(--color-primary-dark); }

/* ------------------------------------------------------------ forms */
.form-control, .form-select { border-radius: var(--radius-sm); padding: .55rem .85rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .22);
}
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .22); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control-color { width: 100%; height: 2.6rem; padding: .25rem; }
.input-group-text { border-radius: var(--radius-sm); }
.errorlist { list-style: none; padding: 0; margin: 0; }

/* ------------------------------------------------------------ navbar */
.custom-navbar {
  background-color: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  min-height: var(--navbar-h);
}
.navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.4rem;
}
.navbar-logo { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.custom-navbar .navbar-nav { gap: .25rem; }
.custom-navbar .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius-pill);
  transition: color .2s, background-color .2s;
}
.custom-navbar .nav-link:hover { color: var(--color-primary-ink); background: var(--color-primary-soft); }
.custom-navbar .nav-link.active { color: var(--color-primary-ink); background: var(--color-primary-soft); }
@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse { padding: .75rem 0 1rem; }
  .custom-navbar .nav-link { padding: .6rem .85rem; }
}

/* ------------------------------------------------------------ hero */
.hero-section { min-height: 80vh; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero-section .display-3 { font-size: clamp(2.1rem, 6vw, 3.75rem); }
.hero-section .btn { text-shadow: none; }

/* ------------------------------------------------------------ cards */
.card { border-radius: var(--radius); }
.card-hover, .workshop-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
a:hover > .workshop-card, .workshop-card:hover, .card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.workshop-card .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease;
}
.workshop-card:hover .card-img-top { transform: scale(1.04); }
.card-img-placeholder {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary-ink);
  font-size: 2.5rem;
}

.testimonial-card { transition: transform .25s, box-shadow .25s; border: 1px solid rgba(0, 0, 0, .04); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }
.testimonial-card .bi-quote { font-size: 2.5rem; line-height: 1; color: var(--color-primary); }

/* ------------------------------------------------------------ accordion / pagination / breadcrumb */
.accordion-button { font-weight: 600; color: var(--color-text); background-color: #fff; padding: 1.1rem 1.4rem; }
.accordion-button:not(.collapsed) { color: var(--color-primary-ink); background-color: var(--color-primary-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(var(--color-primary-rgb), .25); }
.accordion-item { background: transparent; overflow: hidden; }

.page-link { color: var(--color-primary-ink); }
.page-item.active .page-link { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }

.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item a { color: var(--color-primary-ink); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ footer */
.custom-footer { background-color: var(--color-accent); color: var(--color-on-accent); }
.custom-footer a { color: inherit; opacity: .85; text-decoration: none; transition: opacity .2s; }
.custom-footer a:hover { opacity: 1; text-decoration: underline; }

/* ------------------------------------------------------------ WhatsApp float */
.whatsapp-float {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  background-color: #25d366;
  border-radius: 50%;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  z-index: 1000;
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ------------------------------------------------------------ rich content */
.workshop-content { font-size: 1.05rem; line-height: 1.8; }
.workshop-content p { margin-bottom: 1.25rem; }
.workshop-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.workshop-content table { width: 100%; margin-bottom: 1.25rem; }
.workshop-content td, .workshop-content th { border: 1px solid rgba(0, 0, 0, .12); padding: .4rem .6rem; }

/* ------------------------------------------------------------ chef portfolio */
.stats-counter { font-size: 2.5rem; font-weight: 700; color: var(--color-primary-ink); }
.timeline-item { position: relative; padding-inline-start: 40px; padding-bottom: 2rem; border-inline-start: 2px solid var(--color-secondary); }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: -8px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--color-primary); }
.specialization-icon { font-size: 2.5rem; color: var(--color-primary-ink); margin-bottom: 1rem; }
.certification-card { transition: transform .25s; }
.certification-card:hover { transform: translateY(-4px); }
.media-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.badge-tv { background: #ff6b6b; color: #fff; }
.badge-magazine { background: #4ecdc4; color: #fff; }
.badge-podcast { background: #9b59b6; color: #fff; }
.badge-book { background: #34495e; color: #fff; }
.badge-online { background: #3498db; color: #fff; }
.badge-newspaper { background: #95a5a6; color: #fff; }
.badge-radio { background: #e67e22; color: #fff; }

/* ------------------------------------------------------------ gallery (masonry) */
.masonry-grid { column-count: 4; column-gap: 1rem; }
.masonry-grid-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; transition: transform .3s ease; }
.masonry-grid-item:hover { transform: scale(1.02); }
.masonry-grid-item img { width: 100%; display: block; }
.masonry-grid-item .overlay { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; padding: 20px 15px 15px; opacity: 0; transition: opacity .3s ease; }
.masonry-grid-item:hover .overlay { opacity: 1; }
@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px)  { .masonry-grid { column-count: 2; } }
@media (max-width: 480px)  { .masonry-grid { column-count: 1; } }

/* ------------------------------------------------------------ dashboard */
.dash-sidebar { position: sticky; top: calc(var(--navbar-h) + 1rem); }
.dash-link { display: flex; align-items: center; gap: .65rem; padding: .5rem .8rem; margin: 1px 0; border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; font-size: .95rem; transition: background-color .15s; }
.dash-link:hover { background: var(--color-primary-soft); color: var(--color-text); }
.dash-link.active { background: var(--color-primary); color: var(--color-on-primary); }
.dash-link i { width: 1.2rem; text-align: center; }
.stat-card { transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.table > :not(caption) > * > * { vertical-align: middle; }

/* palette picker (Paramètres du site) */
.palette-chip { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .75rem; background: #fff; border: 2px solid transparent; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s, transform .15s; }
.palette-chip:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.palette-chip .swatches { display: flex; }
.palette-chip .swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.palette-chip .swatch:first-child { margin-inline-start: 0; }

/* ------------------------------------------------------------ anti-spam honeypot */
/* Honeypot: clipped to nothing IN PLACE. (The old `left:-9999px` trick created a huge scrollable
   area in right-to-left pages, where overflowing to the left is scrollable.) */
.hp-wrap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
           overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Safety net: a stray wide element can never create a sideways scroll again */
html, body { overflow-x: clip; }

/* ===================================================================== 
   Added in v3: radius tokens, row actions, theme picker, account, landing
   ===================================================================== */

/* Theme-driven corners. Buttons follow --radius-btn, even those carrying .rounded-pill */
.btn { --bs-btn-border-radius: var(--radius-btn, 50rem); }
.btn.rounded-pill, .rounded-pill.btn { border-radius: var(--radius-btn, 50rem) !important; }
.form-control, .form-select, .input-group-text { border-radius: var(--radius-sm); }

/* ---- table rows: one clear primary link + a tidy "more" menu */
.row-title { color: var(--color-text); font-weight: 600; text-decoration: none; }
.row-title:hover { color: var(--color-primary-ink); text-decoration: underline; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #6c757d;
  transition: background-color .15s, color .15s;
}
.btn-icon:hover, .btn-icon[aria-expanded="true"] { background: var(--color-primary-soft); color: var(--color-primary-ink); }
.action-menu { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: .4rem; min-width: 12rem; }
.action-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: calc(var(--radius-sm) - .2rem); padding: .5rem .7rem; font-size: .92rem; }
.action-menu .dropdown-item i { width: 1.1rem; text-align: center; }
.action-menu .dropdown-item:hover { background: var(--color-primary-soft); }
.action-menu .dropdown-item.text-danger:hover { background: #fdecea; }

/* ---- avatars + sidebar user card */
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.5rem; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }
.dash-user { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem; color: var(--color-text); }
.dash-user:hover { color: var(--color-text); background: var(--color-primary-soft); border-radius: var(--radius-sm); }
.min-w-0 { min-width: 0; }

/* ---- theme picker (Paramètres du site) */
.theme-card { cursor: pointer; display: block; }
.theme-card-body {
  position: relative; display: block; height: 100%;
  border: 2px solid rgba(0, 0, 0, .08); border-radius: var(--t-radius, 1rem);
  background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.theme-card:hover .theme-card-body { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-card input:checked + .theme-card-body { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .25); }
.theme-card input:focus-visible + .theme-card-body { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.theme-preview { display: block; padding: .8rem; background: var(--t-bg); color: var(--t-text); font-family: var(--t-body); }
.theme-preview-bar { display: flex; gap: 4px; background: var(--t-accent); padding: 6px 8px; border-radius: 6px; margin-bottom: .6rem; }
.theme-preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-on-accent); opacity: .7; }
.theme-preview-title { display: block; font-family: var(--t-heading); font-weight: 700; font-size: 1.05rem; color: var(--t-accent); }
.theme-preview-text { display: block; font-size: .75rem; opacity: .8; margin: .2rem 0 .6rem; }
.theme-preview-actions { display: flex; align-items: center; gap: .5rem; }
.theme-preview-btn { background: var(--t-primary); color: var(--t-on-primary); font-size: .72rem; font-weight: 600; padding: .3rem .8rem; border-radius: var(--t-btn); }
.theme-preview-chip { width: 36px; height: 16px; border-radius: var(--t-btn); background: var(--t-secondary); }
.theme-card-meta { display: block; padding: .75rem .9rem .9rem; }
.theme-card-meta strong { display: block; }
.theme-card-meta small { display: block; color: #6c757d; line-height: 1.35; margin-top: .15rem; }
.theme-card-check {
  position: absolute; top: .6rem; inset-inline-end: .6rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: none; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-on-primary);
}
.theme-card input:checked + .theme-card-body .theme-card-check { display: flex; }

/* ---- platform landing page */
.landing-hero { background: radial-gradient(circle at 15% 10%, var(--color-primary-soft), transparent 45%), radial-gradient(circle at 90% 30%, var(--color-secondary), transparent 40%), var(--color-light-bg); }
.landing-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.1; color: var(--color-accent); }
.landing-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 50rem; background: #fff; box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--color-primary-ink); }
.landing-section { padding: 5rem 0; }
.landing-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--color-primary-ink); }
.feature-card { height: 100%; padding: 1.6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-primary-ink); font-size: 1.4rem; margin-bottom: 1rem; }
.step-number { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; padding: .35rem 0; }
.check-list i { color: var(--color-primary-ink); margin-top: .2rem; }

/* browser mock-up (pure CSS) */
.mock-browser { background: #fff; border-radius: 1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #f1f3f5; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ced4da; }
.mock-url { margin-inline-start: .6rem; flex: 1; background: #fff; border-radius: 50rem; font-size: .72rem; color: #868e96; padding: .15rem .8rem; }
.mock-site { padding: 1.2rem; background: var(--mk-bg); color: var(--mk-text); font-family: var(--mk-body); }
.mock-nav { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; margin-bottom: 1rem; }
.mock-nav b { font-family: var(--mk-heading); font-size: .95rem; color: var(--mk-accent); }
.mock-hero { border-radius: .8rem; padding: 1.4rem 1.1rem; background: linear-gradient(135deg, var(--mk-accent), var(--mk-primary)); color: #fff; margin-bottom: .9rem; }
.mock-hero h4 { font-family: var(--mk-heading); font-size: 1.15rem; margin: 0 0 .3rem; }
.mock-hero span { display: inline-block; margin-top: .6rem; background: #fff; color: var(--mk-accent); font-size: .7rem; font-weight: 700; padding: .25rem .8rem; border-radius: 50rem; }
.mock-dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mock-dish { background: var(--mk-secondary); border-radius: .6rem; padding: .5rem; font-size: .65rem; }
.mock-dish i { display: block; height: 38px; border-radius: .4rem; background: var(--mk-primary); opacity: .75; margin-bottom: .35rem; }
.mock-dish b { display: block; }

.theme-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.theme-pill { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem 1.1rem; min-width: 11rem; text-align: center; }
.theme-pill .swatches { display: flex; justify-content: center; margin-bottom: .5rem; }
.theme-pill .swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.theme-pill .swatch:first-child { margin-inline-start: 0; }
.cta-band { background: var(--color-accent); color: var(--color-on-accent); border-radius: calc(var(--radius) * 1.5); }

/* ===================================================================== v4 */
/* dashboard: roomier sidebar */
.dash-link { font-size: 1rem; padding: .6rem .9rem; gap: .75rem; }
.dash-link .badge { font-size: .72rem; }
.dash-user { padding: .65rem 1rem; }

/* reservations agenda */
.resa-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; background: #fff; padding: .3rem; border-radius: 50rem; box-shadow: var(--shadow-sm); }
.resa-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 50rem; color: var(--color-text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.resa-tab:hover { background: var(--color-primary-soft); color: var(--color-text); }
.resa-tab.active { background: var(--color-primary); color: var(--color-on-primary); }
.resa-count { min-width: 1.4rem; padding: 0 .4rem; text-align: center; border-radius: 50rem; background: rgba(0, 0, 0, .08); font-size: .75rem; line-height: 1.4rem; }
.resa-tab.active .resa-count { background: rgba(255, 255, 255, .25); }
.resa-count-alert { background: #dc3545; color: #fff; }
.resa-day-title { font-size: 1rem; text-transform: capitalize; margin-bottom: .6rem; }
.resa { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0, 0, 0, .06); border-inline-start: 4px solid transparent; }
.resa:last-child { border-bottom: 0; }
.resa.status-pending { border-inline-start-color: #ffc107; background: rgba(255, 193, 7, .06); }
.resa.status-confirmed { border-inline-start-color: #198754; }
.resa.status-cancelled, .resa.status-no_show { border-inline-start-color: #adb5bd; opacity: .75; }
.resa.status-completed { border-inline-start-color: #0dcaf0; }
.resa-time { font-size: 1.25rem; font-weight: 700; min-width: 3.6rem; font-variant-numeric: tabular-nums; }
.resa-main { flex: 1 1 18rem; min-width: 0; }
.resa-notes { margin-top: .4rem; padding: .35rem .6rem; font-size: .85rem; color: #6c757d; background: rgba(0, 0, 0, .04); border-radius: var(--radius-sm); }
.resa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-inline-start: auto; }
.resa-badge { padding: .2rem .65rem; border-radius: 50rem; font-size: .75rem; font-weight: 600; }
.resa-badge-pending { background: #fff3cd; color: #856404; }
.resa-badge-confirmed { background: #d1e7dd; color: #0f5132; }
.resa-badge-completed { background: #cff4fc; color: #055160; }
.resa-badge-cancelled { background: #e9ecef; color: #495057; }
.resa-badge-no_show { background: #f8d7da; color: #842029; }

/* ===================================================================== v5 */
.error-code { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; color: var(--color-primary); opacity: .9; }
.dash-link-button { width: 100%; background: none; border: 0; text-align: start; }
.dash-link-button:hover { background: #fdecea; }
.preview-banner { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffecb5; padding: .55rem 1rem; text-align: center; font-size: .9rem; }
.preview-banner a { color: inherit; font-weight: 600; }

/* Arabic (RTL) */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .btn, html[lang="ar"] .form-control, html[lang="ar"] .form-select { font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .bi-arrow-left, [dir="rtl"] .bi-arrow-right { transform: scaleX(-1); }
.lang-switch { display: flex; gap: .25rem; padding: .35rem .9rem .5rem; }
.lang-switch .btn { --bs-btn-padding-x: .6rem; --bs-btn-padding-y: .2rem; --bs-btn-font-size: .78rem; }
