/* ═══════════════════════════════════════════════════════════════════
   Wedding Shoots — Quiet Luxury Botanical Design System
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  /* Brand — sage botanical */
  --color-brand:        #5C7A6B;
  --color-brand-dark:   #3A5246;
  --color-brand-light:  #EAF0EC;
  --color-brand-hover:  #4E6B5C;

  /* Accent — champagne gold */
  --color-accent:       #C4A882;
  --color-accent-light: #F5EFE6;
  --color-accent-dark:  #8B6914;

  /* Surfaces */
  --color-bg:           #FAF7F2;
  --color-bg-deep:      #F2EDE4;
  --color-surface:      #FFFFFF;
  --color-surface-raised: #FFFFFF;

  /* Text */
  --color-text:         #1C1917;
  --color-text-muted:   #78716C;
  --color-text-faint:   #A8A29E;

  /* Borders */
  --color-border:       #E5DDD4;
  --color-border-focus: #5C7A6B;

  /* Feedback */
  --color-error:        #DC2626;
  --color-error-bg:     #FEF2F2;
  --color-success:      #16A34A;
  --color-success-bg:   #F0FDF4;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.06);

  /* Legacy aliases — keeps existing templates working automatically */
  --brown-dark:  #3A5246;
  --brown:       #5C7A6B;
  --brown-light: #C4A882;
  --beige:       #FAF7F2;
  --beige-mid:   #E5DDD4;
  --white:       #FFFFFF;
  --text:        #1C1917;
  --muted:       #78716C;
}

/* ── Grain texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
}

/* ── Base reset & typography ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-brand-dark);
  letter-spacing: 0.01em;
}

p { color: var(--color-text); }

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--color-brand-dark);
  text-decoration: none;
}

img, video { max-width: 100%; display: block; }

/* ── Navbar ──
   Height also exposed as --navbar-h (root + scrolled variants below) so
   sticky descendants like .dlv-toolbar can anchor to `top: var(--navbar-h)`
   without leaving a sub-pixel gap when the navbar shrinks on scroll. */
:root { --navbar-h: 72px; }
:root.is-scrolled { --navbar-h: 58px; }
@media (max-width: 768px) {
  :root { --navbar-h: 62px; }
  :root.is-scrolled { --navbar-h: 52px; }
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 72px;
  padding: 0;
  display: flex;
  align-items: stretch;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    height .35s cubic-bezier(.22,.61,.36,1),
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    backdrop-filter .25s ease;
  will-change: height, background-color;
}
.navbar-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 640px) { .navbar-inner { padding: 0 1rem; } }
/* Scrolled state: tighter, more opaque, with subtle shadow */
.navbar.is-scrolled {
  height: 58px;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom-color: rgba(58, 82, 70, .1);
  box-shadow: 0 4px 24px -10px rgba(58,82,70,.16);
}

/* Brand: mark + text combo */
.navbar .brand,
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-brand-dark);
  letter-spacing: 0.025em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: opacity .2s ease, font-size .35s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.navbar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand,#5C7A6B) 0%, var(--color-brand-dark,#3A5246) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  font-family: var(--font-display);
  box-shadow: 0 2px 10px -2px rgba(58,82,70,.4), inset 0 1px 0 rgba(255,255,255,.18);
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, width .35s, height .35s, font-size .35s;
}
.navbar.is-scrolled .brand,
.navbar.is-scrolled .navbar-logo { font-size: 1.2rem; }
.navbar.is-scrolled .navbar-mark { width: 30px; height: 30px; font-size: 13px; }

.navbar .brand:hover,
.navbar-logo:hover {
  text-decoration: none;
  opacity: .92;
}
.navbar .brand:hover .navbar-mark,
.navbar-logo:hover .navbar-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 4px 16px -3px rgba(58,82,70,.5), inset 0 1px 0 rgba(255,255,255,.22);
}
/* Brand subtle reveal animation on first paint */
@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar .brand,
.navbar-logo { animation: brandFadeIn .55s cubic-bezier(.22,.61,.36,1) both; }

.navbar .nav-links,
.navbar-links {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.navbar .nav-links a,
.navbar-links a {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.015em;
  text-decoration: none;
  position: relative;
  padding: .45rem .85rem;
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
/* Refined hover: soft pill background + color shift */
.navbar .nav-links a:not(.button):not(.button-outline):not(.nav-user-link):not(.nav-admin-pill):hover,
.navbar-links a:not(.button):not(.button-outline):not(.nav-user-link):not(.nav-admin-pill):hover {
  color: var(--color-brand-dark);
  background: rgba(92, 122, 107, .08);
  text-decoration: none;
}

/* Body padding-top to compensate for transitioned navbar */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar .brand,
  .navbar-logo,
  .navbar .nav-links a,
  .navbar-links a,
  .navbar .nav-links a::after,
  .navbar-links a::after { transition: none !important; animation: none !important; }
}

/* ── Navbar admin pill — compound selector matches specificity of .navbar .nav-links a ── */
.navbar .nav-links a.nav-admin-pill,
.navbar-links a.nav-admin-pill,
.nav-admin-pill {
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border: 1.5px solid var(--color-accent, #C4A882);
  border-radius: 999px;
  color: var(--color-accent, #C4A882);
  background: var(--color-accent-light, #F5EFE6);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.navbar .nav-links a.nav-admin-pill:hover,
.navbar-links a.nav-admin-pill:hover,
.nav-admin-pill:hover {
  transform: translateY(-1px);
  background: var(--color-accent, #C4A882);
  color: #fff;
  border-color: var(--color-accent, #C4A882);
  text-decoration: none;
}
.navbar .nav-links a.nav-admin-pill:active,
.navbar-links a.nav-admin-pill:active,
.nav-admin-pill:active { transform: translateY(0); }

/* ── Navbar language switcher: pill toggle group ── */
.nav-lang-switch {
  font-size: .7rem;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  gap: 0;
}
.nav-lang-link {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: none;
  padding: .25rem .55rem;
  border-radius: 999px;
  letter-spacing: .05em;
  transition: color .15s ease, background .15s ease;
  line-height: 1.2;
}
.nav-lang-link:hover {
  color: var(--color-brand-dark);
  text-decoration: none;
}
.nav-lang-link.active {
  color: var(--color-brand-dark);
  background: var(--color-surface);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.nav-lang-sep { display: none; }

/* ── Hamburger / mobile theme button: hidden on desktop ── */
.nav-burger,
.nav-mobile-theme { display: none; }
/* Wrapper is also hidden on desktop so it doesn't shift nav-links leftward */
.nav-mob-controls { display: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--color-brand-dark); text-decoration: none; }
.bc-sep { margin: 0 0.25rem; color: var(--color-text-faint); }
.bc-current { color: var(--color-brand-dark); font-weight: 500; }

/* ── Navbar user link & avatar ── */
.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.nav-user-link:hover { text-decoration: none; }
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border), 0 1px 3px rgba(0,0,0,.08);
  display: inline-block;
  flex-shrink: 0;
  transition: box-shadow .2s ease;
}
.nav-avatar-init {
  background: linear-gradient(135deg, var(--color-brand-light), var(--color-accent-light, #F5EFE6));
  color: var(--color-brand-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Navbar user dropdown: button is a pill with hover affordance ── */
.nav-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-user-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  padding: .25rem .7rem .25rem .3rem;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-user-btn:hover {
  background: rgba(92,122,107,.08);
  border-color: rgba(92,122,107,.18);
}
.nav-user-dropdown.open .nav-user-btn {
  background: var(--color-brand-light);
  border-color: rgba(92,122,107,.25);
  box-shadow: 0 2px 6px -2px rgba(58,82,70,.18);
}
.nav-user-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.nav-user-caret {
  font-size: .65rem;
  color: var(--color-text-muted);
  margin-left: 0;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
  display: inline-block;
  line-height: 1;
}
.nav-user-dropdown.open .nav-user-caret {
  transform: rotate(180deg);
  color: var(--color-brand-dark);
}
.nav-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  min-width: 250px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 14px 42px -10px rgba(58,82,70,.22), 0 4px 12px rgba(0,0,0,.06);
  z-index: 200;
  padding: .4rem 0;
  animation: navMenuIn .22s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-user-dropdown.open .nav-user-menu { display: block; }
.nav-user-menu-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .52rem 1rem;
  font-size: .875rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s;
}
.nav-user-menu-item:hover {
  background: var(--color-bg-deep);
  text-decoration: none;
  color: var(--color-brand-dark);
}
.nav-user-menu-item--danger { color: var(--color-text-muted); }
.nav-user-menu-item--danger:hover { color: #dc2626; background: #fef2f2; }
.nav-user-menu-sep {
  height: 1px;
  background: var(--color-border);
  margin: .3rem 0;
}
.numi-icon {
  font-size: .85rem;
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}
.nav-user-menu-section {
  padding: .3rem 1rem .15rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: .7;
}

/* ── Content wrapper ──
   Full screen width: pages stretch edge-to-edge. Pages that need narrow
   text (form-container, hero, footer, legal) keep their own inner wrappers. */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-width: 0;
}
@media (max-width: 640px) {
  .content { padding: 1.5rem 1rem; }
}

/* ── Flash messages ── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.flash-error   { background: var(--color-error-bg); border-left: 3px solid var(--color-error); color: #991B1B; }
.flash-success { background: var(--color-success-bg); border-left: 3px solid var(--color-success); color: #166534; }
.flash-debug   { background: #FEF9C3; border-left: 3px solid #CA8A04; color: #713F12; font-family: monospace; font-size: .85rem; word-break: break-all; }

/* ── Buttons ── */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 0.6rem 1.4rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .2s ease,
              box-shadow .35s cubic-bezier(.22,.61,.36,1),
              transform .25s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
  background: var(--color-brand);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
/* Subtle glossy sweep on primary button hover */
.btn::before,
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .8s ease;
  pointer-events: none;
}
.btn:hover::before,
.button:hover::before { background-position: 200% 0; }
.btn:hover,
.button:hover {
  background: var(--color-brand-dark);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(58,82,70,.4), var(--shadow-md);
}
.btn:active,
.button:active {
  transform: translateY(0);
  transition-duration: .1s;
}
.btn:disabled,
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-brand);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--color-brand-dark);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  padding: 0.6rem 1.4rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-brand);
  background: transparent;
  color: var(--color-brand);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-secondary:hover,
.button-outline:hover {
  background: var(--color-brand);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  padding: 0.6rem 1.4rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover {
  background: var(--color-bg-deep);
  color: var(--color-text);
  text-decoration: none;
}

/* ── Forms ── */
.form-container {
  max-width: 440px;
  margin: 3rem auto;
  background: var(--color-surface);
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.form-container h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.form-container label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
  margin-top: 1.1rem;
}
.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(92, 122, 107, 0.18);
}
.form-container .button,
.form-container .btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 0.95rem;
}
.form-container p {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Legal consents block (registration / re-acceptance) ─────────────────── */
.form-container .legal-consents {
  margin: 1.5rem 0 .5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-deep);
}
.form-container .legal-consents legend {
  padding: 0 .45rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-text);
  text-transform: none;
}
.form-container .legal-consents .consent-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 0 0 .8rem;
  padding: 0;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
  text-transform: none;
  line-height: 1.45;
}
.form-container .legal-consents .consent-row:last-child { margin-bottom: 0; }
.form-container .legal-consents .consent-row > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 4px;
  border: 1.5px solid var(--color-border);
  accent-color: var(--color-brand);
  cursor: pointer;
}
.form-container .legal-consents .consent-row > input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(92, 122, 107, 0.22);
  outline: none;
}
.form-container .legal-consents .consent-text { flex: 1 1 auto; }
.form-container .legal-consents .consent-text a {
  color: var(--color-brand-dark);
  text-decoration: underline;
}
.form-container .legal-consents .consent-hint {
  display: block;
  margin-top: .2rem;
  font-size: .72rem;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}
.form-container .legal-consents .consent-divider {
  border: 0;
  border-top: 1px dashed var(--color-border);
  margin: .85rem 0;
}
.form-container .legal-consents .consent-intro {
  margin: 0 0 .65rem;
  font-size: .76rem;
  color: var(--color-text-muted);
  text-align: left;
  line-height: 1.45;
}
.form-container .legal-consents code {
  font-size: .72rem;
  padding: .05rem .3rem;
  background: var(--color-surface);
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

/* Standalone reusable form primitives (use outside .form-container) */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.form-input {
  display: block;
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(92, 122, 107, 0.18);
}
.form-input.input-error {
  border-color: var(--color-error, #e74c3c);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.form-error-hint {
  font-size: 0.78rem;
  color: var(--color-error, #e74c3c);
  margin-top: 0.3rem;
}

/* Generic inputs outside form-container */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  color: var(--color-text);
}

/* ── Plan badges ── */
.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.plan-base { background: var(--color-brand-light); color: var(--color-brand-dark); }
.plan-pro  { background: var(--color-accent-light); color: var(--color-accent-dark); }
.plan-max  { background: #2A1F0A; color: #D4B892; }
.plan-b2b           { background: var(--color-brand-dark); color: #FFFFFF; }
.plan-photographer  { background: #1A3A2E; color: #A8D5BB; }
html[data-theme="dark"] .plan-max { background: #3A2E14; color: #D4B892; }

.badge-pro {
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-brand-dark);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* Semantic badges */
.badge-sage    { background: var(--color-brand-light); color: var(--color-brand-dark); border: 1px solid #C8DDD2; }
.badge-champ   { background: var(--color-accent-light); color: var(--color-accent-dark); border: 1px solid #DDD0B8; }
.badge-neutral { background: var(--color-bg-deep); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.card-sage {
  background: var(--color-brand-light);
  border-color: #C8DDD2;
}
.card-featured {
  background: var(--color-surface);
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-lg);
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ── Feature cards ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card h2 {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-brand-dark);
  margin-bottom: 0.4rem;
}
.feature-card p { font-size: 0.875rem; color: var(--color-text-muted); }

/* ── Events grid ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.event-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.event-card h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-brand-dark);
}
.event-meta    { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.2rem; }
.event-expiry  { font-size: 0.8rem; color: var(--color-brand); margin-bottom: 0.2rem; }
.event-expiry.expired { color: var(--color-error); }
.event-storage { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--color-text-muted);
}
.empty-state p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ── Event info ── */
.event-info { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.archived-notice { color: var(--color-brand); font-weight: 500; }

/* ── Upload zone ── */
.upload-zone,
.upload-area {
  display: block;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
}
.upload-zone:hover,
.upload-area:hover,
.upload-zone.drag-over,
.upload-area.drag-over {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

/* ── Photo masonry grid ── */
.photo-grid {
  columns: 4 180px;
  gap: 10px;
  margin-top: 1.5rem;
}
.photo-grid-item,
.photo-wrap {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Legacy grid-based gallery (overridden by masonry above when both present) */
.photo-thumb {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--color-bg-deep);
}
.photo-thumb:hover { transform: scale(1.02); }

/* ── Gallery toolbar ── */
.gallery-toolbar {
  position: sticky;
  /* Flush below the main navbar (variable height — see --navbar-h above).
     -1px overlap hides sub-pixel gap during navbar shrink animation. */
  top: calc(var(--navbar-h, 72px) - 1px);
  z-index: 20;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
html[data-theme="dark"] .gallery-toolbar {
  background: rgba(17, 18, 16, 0.92);
}

/* ── Metric / stat cards ── */
.metric-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  line-height: 1.1;
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ── Plan pricing cards ── */
.plan-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-xl);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── Eyebrow labels ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-brand-light);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* ── Decorative section numbers ── */
.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-brand-light);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

/* ── Dividers ── */
.divider {
  width: 40px;
  height: 1.5px;
  background: var(--color-accent);
  margin: 1rem 0;
}
.divider-center { margin: 1rem auto; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.lightbox-close:hover { color: #fff; }

/* ── Staggered animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  .animate-1 { animation: fade-up 0.7s cubic-bezier(.22,.61,.36,1) both; animation-delay: 0ms;   }
  .animate-2 { animation: fade-up 0.7s cubic-bezier(.22,.61,.36,1) both; animation-delay: 90ms;  }
  .animate-3 { animation: fade-up 0.7s cubic-bezier(.22,.61,.36,1) both; animation-delay: 180ms; }
  .animate-4 { animation: fade-up 0.7s cubic-bezier(.22,.61,.36,1) both; animation-delay: 270ms; }
  .animate-5 { animation: fade-up 0.7s cubic-bezier(.22,.61,.36,1) both; animation-delay: 360ms; }
}

/* ── Scroll-reveal helper (used with IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children when their parent enters view */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal-stagger.in-view > *           { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .44s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .52s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ── Landing page ── */
.landing-hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 480px);
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 4rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 10%, rgba(196,168,130,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 10% 90%, rgba(92,122,107,0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-deep) 60%, var(--color-brand-light) 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: gradient-pan 18s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
/* Mesh-gradient floating orbs */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 8%; left: 6%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(196,168,130,0.32), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: float-y 9s ease-in-out infinite;
}
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(92,122,107,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: float-y 11s ease-in-out infinite reverse;
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero { animation: none; }
  .landing-hero::before, .landing-hero::after { animation: none; }
}
.hero-text { position: relative; z-index: 1; }
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-placeholder {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--color-brand-light), var(--color-accent-light));
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-brand);
  overflow: hidden;
}
.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}
.hero-visual-img {
  border-radius: var(--radius-md);
  background: var(--color-brand-light);
  aspect-ratio: 1;
  overflow: hidden;
}
.hero-visual-img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.social-proof-bar {
  background: var(--color-brand-light);
  border-top: 1px solid #C8DDD2;
  border-bottom: 1px solid #C8DDD2;
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-brand-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 -1.5rem;
}

.landing-section {
  padding: 5rem 0;
}
.landing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--color-brand-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  text-align: center;
  margin-bottom: 0.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.step { text-align: center; }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-brand-light);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.step:hover .step-num { color: var(--color-brand); }
.step h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.875rem; color: var(--color-text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.feat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              box-shadow .35s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease;
  position: relative;
  overflow: hidden;
}
/* Glossy sweep on hover */
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(196,168,130,.12) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position .9s ease;
  pointer-events: none;
  opacity: 0;
}
.feat-card:hover::before {
  background-position: 200% 0;
  opacity: 1;
}
.feat-card:hover .feat-icon {
  transform: scale(1.08) rotate(-3deg);
}
.feat-icon { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-light);
  box-shadow: var(--shadow-md);
}
.feat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.feat-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 0.35rem;
}
.feat-card p { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.6; }
.feat-badge {
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 0.25rem;
  letter-spacing: 0.05em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
/* Fixed column counts to avoid orphan cards filling full width */
.pricing-grid-strict {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .pricing-grid-strict { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pricing-grid-strict { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              box-shadow .4s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease;
  display: flex;
  flex-direction: column;
}
/* Subtle gold edge on hover */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent, var(--color-accent), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.pricing-card:hover::after { opacity: 1; }
.pricing-card ul {
  flex: 1;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
/* Animated halo on featured plan */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(92,122,107,.12) 90deg, transparent 180deg);
  animation: spin-slow 8s linear infinite;
  pointer-events: none;
  opacity: .55;
  z-index: 0;
}
.pricing-card.featured > * { position: relative; z-index: 1; }
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-card.featured::before { animation: none; }
  .pricing-card { transition: none; }
}
.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-period {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.pricing-card li {
  font-size: 0.875rem;
  color: var(--color-text);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.8rem;
}
.pricing-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  background: var(--color-brand);
  color: #fff;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}
.pricing-btn:hover {
  background: var(--color-brand-dark);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}
.pricing-card.featured .pricing-btn {
  background: var(--color-brand-dark);
}

.b2b-section {
  background: var(--color-brand-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.b2b-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(196,168,130,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.b2b-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-accent-light);
  text-align: left;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.b2b-section > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 640px;
}
.b2b-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.b2b-feat { display: flex; gap: 0.75rem; align-items: flex-start; }
.b2b-feat .icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.b2b-feat p { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin: 0; }
.b2b-feat strong { color: var(--color-accent-light); display: block; font-size: 0.875rem; margin-bottom: 0.15rem; }

.landing-footer-cta {
  background: #1C1917;
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
  margin: 0 -1.5rem;
}
.landing-footer-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--color-accent-light);
  margin-bottom: 0.75rem;
}
.landing-footer-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin: 2rem 0;
}
.landing-cta h2 { color: var(--color-brand-dark); margin-bottom: 0.6rem; }
.landing-cta p  { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ── Dark mode (activated via data-theme="dark" attribute on <html>) ── */
html[data-theme="dark"] {
    --color-bg:           #111210;
    --color-bg-deep:      #181B18;
    --color-surface:      #1E211E;
    --color-surface-raised: #242724;
    --color-text:         #ECE9E3;
    --color-text-muted:   #A3A89E;
    --color-text-faint:   #6B7068;
    --color-border:       #2E3530;
    --color-border-focus: #7BA090;
    --color-brand:        #7BA090;
    --color-brand-dark:   #3a5246;
    --color-brand-light:  #1E2E28;
    --color-brand-hover:  #8DB2A3;
    --color-accent:       #C4A882;
    --color-accent-light: #F5EFE6;
    --color-accent-dark:  #D4B892;

    /* Legacy aliases */
    --brown-dark:  #A3C4B5;
    --brown:       #7BA090;
    --brown-light: #C4A882;
    --beige:       #111210;
    --beige-mid:   #2E3530;
    --white:       #1E211E;
    --text:        #ECE9E3;
    --muted:       #A3A89E;
}

html[data-theme="dark"] .navbar {
  background: rgba(17, 18, 16, 0.9);
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .form-container {
  border-color: var(--color-border);
}

/* ── Responsive ── */

/* Tablet: 768–900px */
@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }
  .hero-visual { display: none; }
  .hero-text { text-align: center; }
  .hero-text .eyebrow { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .b2b-section h2 { text-align: center; }
  .b2b-section > p { max-width: 100%; }
}

/* ── Hamburger / mobile nav burger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color .2s, background .2s, transform .2s;
}
.nav-burger:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}
.nav-burger[aria-expanded="true"] {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
}
.nav-burger-line {
  width: 16px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  display: block;
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              opacity   .2s ease,
              width     .2s ease;
}
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav panel (full-screen drawer beneath navbar) ── */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 48;                 /* below navbar at z-index 50 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 72px 0 3rem;       /* top = desktop navbar height; overridden on mobile */
  flex-direction: column;
  animation: navPanelIn .22s cubic-bezier(.22,.61,.36,1) both;
}
.nav-mobile-panel.open { display: flex; }
@keyframes navPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 1.1rem 1.25rem .35rem;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.25rem;
  font-size: .97rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  transition: background .15s, color .12s;
}
.nav-mobile-link:hover,
.nav-mobile-link:focus-visible {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  text-decoration: none;
}
.nav-mobile-link--danger { color: #dc2626; }
.nav-mobile-link--danger:hover { background: #fef2f2; color: #b91c1c; }
.nav-mobile-link .numi-icon { font-size: .9rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.nav-mobile-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.25rem .25rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.nav-mobile-footer .plan-badge { font-size: .7rem; }
[data-theme="dark"] .nav-mobile-panel { background: var(--color-bg); }

/* Tablet: ≤768px – switch to hamburger, fix scrolled height */
@media (max-width: 768px) {
  /* Layout tweaks unrelated to navbar */
  .content { padding: 1.5rem 1rem; }
  .photo-grid { columns: 2 140px; }
  .b2b-section { padding: 2.5rem 1.5rem; }
  .landing-footer-cta { padding: 3.5rem 1rem; }
  .events-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  /* Gallery toolbar no longer needs to sit below a tall wrapped navbar */
  .gallery-toolbar { top: 58px; }

  /* ── Navbar: fixed single-line height; hide desktop links ── */
  .navbar {
    height: 62px !important;
    flex-wrap: nowrap !important;
    padding: 0 1rem !important;
  }
  /* Prevent is-scrolled from colliding with our forced height */
  .navbar.is-scrolled { height: 52px !important; }
  /* Never auto-hide on mobile — too disorienting on short pages */

  /* Hide desktop nav links */
  .navbar .nav-links,
  .navbar-links { display: none !important; }

  /* Show hamburger wrapper + mobile theme toggle */
  .nav-mob-controls { display: flex; }
  .nav-burger       { display: flex; }
  .nav-mobile-theme { display: flex; }

  /* Panel sits directly below navbar */
  .nav-mobile-panel       { padding-top: 62px; }
  .navbar.is-scrolled ~ .nav-mobile-panel,
  body.nav-panel-open .nav-mobile-panel { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-burger-line, .nav-mobile-panel { transition: none !important; animation: none !important; }
}

/* Mobile: ≤600px */
@media (max-width: 600px) {
  .content { padding: 1.25rem .875rem; }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.25rem;
  }
  .page-header h1 { font-size: 1.6rem; }

  .events-grid { grid-template-columns: 1fr; }

  .event-card { padding: 1.1rem; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 1.5rem; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .b2b-features { grid-template-columns: 1fr; }

  /* Gallery toolbar pills: horizontal scroll */
  .gallery-toolbar {
    padding: .5rem 0;
    gap: .5rem;
  }
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-pill { flex-shrink: 0; }

  /* Copy modal full width */
  .copy-modal-box { width: 96%; padding: 1.1rem; }
  .qr-panel { right: -1rem; min-width: 200px; }

  /* Social proof bar: allow wrapping */
  .social-proof-bar { font-size: .78rem; letter-spacing: 0; padding: .75rem 1rem; }

  /* Landing section padding */
  .landing-section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

  /* Features: show 2-col grid for feat-detail on mobile */
  .feat-detail-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Pricing table: sticky first column for readability */
  .pricing-compare-table td:first-child,
  .pricing-compare-table th:first-child { position: sticky; left: 0; background: inherit; z-index: 1; }
}

/* Mobile small: ≤480px */
@media (max-width: 480px) {
  .hero h1,
  .landing-hero h1 { font-size: 1.85rem; }
  .photo-grid { columns: 2 120px; }

  .form-container {
    margin: 1.25rem .75rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }

  .upload-zone,
  .upload-area { padding: 2rem 1rem; }

  /* Pricing on very small screens */
  .price-amount { font-size: 2.75rem; }

  /* Event card actions: stack buttons */
  .event-card .card-actions {
    flex-direction: column;
    gap: .5rem;
  }

  /* Landing footer */
  .landing-footer-cta { padding: 3rem .875rem; }

  /* b2b section padding */
  .b2b-section { padding: 2rem 1.25rem; }
  .b2b-section h2 { font-size: 1.5rem; }

  /* Feat detail card */
  .feat-detail-card { padding: 1.1rem; }

  /* Navbar: hide less important links, keep key actions */
  .navbar .nav-links a[data-hide-mobile],
  .navbar-links a[data-hide-mobile] {
    display: none;
  }
}

/* Touch-friendly: increase tap targets */
@media (pointer: coarse) {
  .btn, .button, .button-outline, .btn-ghost, .pricing-btn {
    min-height: 44px;
    box-sizing: border-box;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }
  .filter-pill { min-height: 40px; }
  .navbar .nav-links a,
  .navbar-links a { padding: .35rem 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Dark mode
   ══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg:              #171D1A;
  --color-bg-deep:         #111512;
  --color-surface:         #202826;
  --color-surface-raised:  #283230;
  --color-surface-glass:   rgba(32, 40, 38, 0.88);
  --color-border:          #2C3830;
  --color-border-focus:    #7FA692;
  --color-text:            #E5E0D8;
  --color-text-muted:      #96A89C;
  --color-text-faint:      #536359;
  --color-brand-light:     #1A2B22;
  --color-accent-light:    #F5EFE6;
  --color-error-bg:        #2A1414;
  --color-success-bg:      #142A1A;

  /* Legacy aliases */
  --beige:    #171D1A;
  --beige-mid:#2C3830;
  --white:    #202826;
  --text:     #E5E0D8;
  --muted:    #96A89C;
}

[data-theme="dark"] body::before { opacity: 0.02; }

[data-theme="dark"] .navbar {
  background: rgba(23, 29, 26, 0.85);
}
[data-theme="dark"] .navbar.is-scrolled {
  background: rgba(23, 29, 26, 0.96);
  border-bottom-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .nav-lang-switch {
  background: rgba(255,255,255,.04);
}
[data-theme="dark"] .nav-lang-link.active {
  background: var(--color-surface);
}
[data-theme="dark"] .theme-toggle {
  background: var(--color-surface);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(92,122,107,.18);
}
[data-theme="dark"] .nav-burger {
  background: var(--color-surface);
}
[data-theme="dark"] .nav-user-btn:hover {
  background: rgba(92,122,107,.15);
}
[data-theme="dark"] .nav-user-dropdown.open .nav-user-btn {
  background: rgba(92,122,107,.22);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .event-card,
[data-theme="dark"] .modal-box {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* ── Theme toggle button: circular, single icon ── */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .35s cubic-bezier(.22,.61,.36,1);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
  transform: rotate(-15deg);
}
[data-theme="dark"]  .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: none; }
[data-theme="dark"]  .theme-icon-dark  { display: inline; }
[data-theme="light"] .theme-icon-light { display: inline; }

/* ── Filter pills (gallery toolbar) ── */
.filter-pills {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
}
.filter-pill {
  padding: .32rem .9rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: .8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}
.filter-pill:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}
.filter-pill.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* ── Copy modal ── */
.copy-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 999; display: none; align-items: center; justify-content: center;
}
.copy-modal-overlay.open { display: flex; }
.copy-modal-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 440px;
  width: 92%;
  box-shadow: var(--shadow-xl);
}

/* ── QR panel dropdown ── */
.qr-panel {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-width: 220px;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

/* ── Accessibility: focus-visible ── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
.filter-pill:focus-visible,
.theme-toggle:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Form inputs: keep box-shadow AND restore outline */
.form-container input:focus-visible,
.form-container select:focus-visible,
.form-container textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

/* Show hover-only photo action buttons on keyboard focus */
.photo-wrap:focus-within .delete-btn,
.photo-wrap:focus-within .cover-btn {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE OVERRIDES
   These force inline-styled grids / flex layouts (added across many templates
   via inline style="…") to collapse cleanly on small viewports.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Universal: prevent any block from forcing horizontal scroll ── */
html { max-width: 100%; }
body { overflow-x: hidden; max-width: 100%; }

/* ── ≤ 640px: collapse all 2/3/4-column inline grids to a single column ── */
@media (max-width: 640px) {
  /* 2 equal cols (most common: profile / checkout / index dashboards) */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  /* 3 equal cols */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  /* 4-col mixed (checkout CAP/Provincia row, profile address rows) */
  [style*="grid-template-columns:1fr 2fr 70px 70px"],
  [style*="grid-template-columns:1fr 2fr 1fr 1fr"],
  /* asymmetric 2-col */
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns:160px 1fr"],
  [style*="grid-template-columns: 160px 1fr"],
  [style*="grid-template-columns:minmax(0,1fr) 320px"],
  [style*="grid-template-columns: minmax(0, 1fr) 320px"],
  /* form rows like 1fr auto auto (admin plan_config, costs) */
  [style*="grid-template-columns:1fr auto auto"],
  [style*="grid-template-columns: 1fr auto auto"],
  /* 1fr auto */
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── ≤ 600px: shrink inline min-width inputs/wrappers to full width ── */
@media (max-width: 600px) {
  [style*="min-width:200px"],
  [style*="min-width: 200px"],
  [style*="min-width:240px"],
  [style*="min-width: 240px"],
  [style*="min-width:220px"],
  [style*="min-width: 220px"],
  [style*="min-width:180px"],
  [style*="min-width: 180px"],
  [style*="min-width:185px"],
  [style*="min-width:130px"] {
    min-width: 0 !important;
    width: 100% !important;
    flex-basis: 100% !important;
  }
  /* but keep small badge / numeric min-widths intact (≤80px) by not listing them */
}

/* ── Admin layout: mobile drawer sidebar + scrollable tables ── */
.adm-mobile-toggle { display: none; }
.adm-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 99;
  opacity: 0;
  transition: opacity .25s ease;
}
.adm-mobile-overlay.open { display: block; opacity: 1; }

@media (max-width: 768px) {
  /* Force shell to single column earlier than 900px */
  .adm-shell { grid-template-columns: 1fr !important; }

  /* Sidebar becomes a slide-in drawer */
  .adm-side {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 320px;
    max-height: 100vh !important;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
    box-shadow: 6px 0 24px rgba(0,0,0,.18);
    padding: 4rem 1rem 2rem !important;
    overflow-y: auto;
  }
  .adm-side.open { transform: translateX(0); }

  /* Show the hamburger toggle */
  .adm-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    margin-right: .5rem;
    flex-shrink: 0;
  }
  .adm-mobile-toggle:hover {
    background: var(--color-bg-deep);
    border-color: var(--color-text-faint);
  }

  /* Tables: enable horizontal scroll inside the wrapper */
  .adm-table-wrap {
    overflow: hidden;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .adm-table { min-width: 560px; }
  .adm-table thead th,
  .adm-table tbody td {
    padding: .55rem .7rem !important;
    font-size: .78rem;
  }

  /* Header: stack title + actions, full-width buttons */
  .adm-header { flex-direction: column; align-items: stretch; gap: .75rem; }
  .adm-header > div:first-child { display: flex; align-items: center; }
  .adm-actions { width: 100%; flex-wrap: wrap; }
  .adm-actions .adm-btn,
  .adm-actions .button,
  .adm-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Main padding tightens (already at 600px in _layout, but reaffirm) */
  .adm-main { padding: 1rem .85rem 3rem !important; }
}

/* ── Admin KPI grid: collapse to single column on tiny screens ── */
@media (max-width: 480px) {
  .adm-kpi-grid { grid-template-columns: 1fr !important; }
  .adm-kpi { padding: .9rem 1rem; }
  .adm-kpi .kpi-value { font-size: 1.7rem; }
}

/* ── Generic <table> overflow guard for any plain table on mobile ── */
@media (max-width: 768px) {
  .adm-card > table,
  .card > table,
  table.adm-table,
  table.data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* ── Page-header (used outside admin too) ── */
@media (max-width: 600px) {
  .page-header .page-actions,
  .page-header .actions { width: 100%; flex-wrap: wrap; }
}

/* ── Navbar dropdown: prevent right-edge overflow on very small screens ── */
@media (max-width: 380px) {
  .nav-user-menu {
    min-width: 0 !important;
    width: calc(100vw - 1.5rem);
    right: -.6rem !important;
  }
  .nav-user-name { max-width: 70px; }
}

/* ── Filter pills: drop the 100px min-width on narrow screens ── */
@media (max-width: 600px) {
  .filter-pill { min-width: 0 !important; padding: .35rem .8rem; }
}

/* ── Profile B2B metrics grid (auto-fill 140px) becomes 2-up then 1-up ── */
@media (max-width: 480px) {
  [style*="minmax(140px"],
  [style*="minmax(130px"],
  [style*="minmax(120px"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Generic gallery / card grids with auto-fill larger min sizes ── */
@media (max-width: 480px) {
  [style*="minmax(280px"],
  [style*="minmax(260px"],
  [style*="minmax(300px"],
  [style*="minmax(240px"],
  [style*="minmax(220px"],
  [style*="minmax(210px"],
  [style*="minmax(200px"],
  [style*="minmax(180px"],
  [style*="minmax(170px"],
  [style*="minmax(160px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Modal / dialog: full-width on mobile ── */
@media (max-width: 600px) {
  .modal-box,
  .copy-modal-box,
  .qr-panel {
    width: 94% !important;
    max-width: 94% !important;
    min-width: 0 !important;
    padding: 1.1rem !important;
  }
  .qr-panel { right: 0 !important; }
}

/* ── Forms: never let inputs blow out container width ── */
input, select, textarea { max-width: 100%; }

/* ── Photo masonry: fewer columns on the smallest screens ── */
@media (max-width: 380px) {
  .photo-grid { columns: 2 100px; }
}

/* ── Long word-break for emails/links in tight cards on mobile ── */
@media (max-width: 600px) {
  .adm-card,
  .event-card,
  .card { overflow-wrap: anywhere; }
}

/* ── Reduced-motion respect for new transitions ── */
@media (prefers-reduced-motion: reduce) {
  .adm-side, .adm-mobile-overlay { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   Settings / Profile section — shared primitives
   Used by:  templates/auth/profile.html
             templates/auth/collaborators.html
             templates/auth/privacy_dashboard.html
   ═══════════════════════════════════════════════════════════════════ */

.settings-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* ── Identity hero ── */
.settings-hero {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-deep) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.settings-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(196,168,130,.18) 0%, transparent 65%);
  pointer-events: none;
}
.settings-hero-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface);
  box-shadow: 0 2px 12px -4px rgba(58,82,70,.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.settings-hero-avatar.is-init {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  background: var(--color-brand-light);
  text-transform: uppercase;
}
.settings-hero-body {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.settings-hero-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-brand-dark);
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.settings-hero-email {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-top: .15rem;
  word-break: break-all;
}
.settings-hero-meta {
  font-size: .75rem;
  color: var(--color-text-faint);
  margin-top: .35rem;
  letter-spacing: .03em;
}
.settings-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* ── Sub-navigation tabs ── */
.settings-nav {
  display: flex;
  gap: .25rem;
  padding: .35rem;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.settings-nav a:hover {
  background: var(--color-bg-deep);
  color: var(--color-text);
}
.settings-nav a.is-active {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 2px 6px -2px rgba(58,82,70,.4);
}
.settings-nav a.is-active:hover {
  background: var(--color-brand-dark);
  color: #fff;
}
.settings-nav .sn-icon {
  font-size: .9rem;
  opacity: .85;
}

/* ── Section card ── */
.settings-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--navbar-h, 72px) + 1rem);
}
.settings-section.is-accent { border-color: var(--color-brand); }
.settings-section.is-danger {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff8f8 0%, var(--color-surface) 60%);
}
.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .9rem;
}
.settings-section-head.is-tight { margin-bottom: .35rem; }
.settings-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-brand-dark);
  letter-spacing: .01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  line-height: 1.2;
}
.settings-section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .25rem;
}
.settings-section-sub {
  font-size: .87rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
  max-width: 60ch;
}

/* ── 2-column grid (collapses on mobile) ── */
.settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 720px) {
  .settings-grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Action row (title left + button right) ── */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
}
.settings-row > .settings-row-body { flex: 1 1 260px; min-width: 0; }
.settings-row-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--color-brand-dark);
  margin: 0 0 .15rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.2;
}
.settings-row-sub {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Form fields ── */
.field { margin-bottom: .9rem; }
.field-label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--color-text);
  margin-bottom: .35rem;
}
.field-label .req { color: var(--color-error); margin-left: .15rem; }
.field-label .hint {
  font-weight: 400;
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-left: .35rem;
  letter-spacing: 0;
  text-transform: none;
}
.field-input,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(92,122,107,.18);
}
.field-input:disabled,
.field input:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: var(--color-bg-deep);
}
.field-input.is-mono,
.field input.is-mono {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field-input.is-center { text-align: center; }
.field-hint {
  font-size: .73rem;
  color: var(--color-text-muted);
  margin-top: .3rem;
  line-height: 1.45;
}
.field-error {
  font-size: .76rem;
  color: var(--color-error);
  margin-top: .3rem;
  display: none;
}
.field-error.is-visible { display: block; }
.field-row {
  display: grid;
  gap: .75rem;
  margin-bottom: .9rem;
}
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-row.cols-2-1 { grid-template-columns: 2fr 1fr; }
.field-row.cols-1-2-1-1 { grid-template-columns: 1fr 2fr 1fr 1fr; }
@media (max-width: 600px) {
  .field-row.cols-2,
  .field-row.cols-3,
  .field-row.cols-2-1,
  .field-row.cols-1-2-1-1 {
    grid-template-columns: 1fr;
  }
}

/* ── Option cards (radio selector) ── */
.option-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 600px) {
  .option-card-row { grid-template-columns: 1fr; }
}
.option-card {
  display: block;
  cursor: pointer;
  padding: .8rem 1rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  transition: border-color .15s, background .15s, box-shadow .15s;
  position: relative;
}
.option-card:hover {
  border-color: var(--color-text-faint);
  background: var(--color-bg-deep);
}
.option-card input[type="radio"] {
  accent-color: var(--color-brand);
  margin-right: .45rem;
  vertical-align: middle;
}
.option-card-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-text);
}
.option-card-sub {
  display: block;
  margin-top: .15rem;
  font-size: .76rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.option-card.is-selected,
.option-card:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}

/* ── Stat tiles ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.stat-tile {
  text-align: center;
  padding: 1rem .75rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.stat-tile-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-brand-dark);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.stat-tile-value.is-warn { color: var(--color-accent-dark); }
.stat-tile-value.is-error { color: var(--color-error); }
.stat-tile-label {
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin-top: .35rem;
}
.stat-tile-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  margin-top: .55rem;
  overflow: hidden;
}
.stat-tile-bar > span {
  display: block;
  height: 100%;
  background: var(--color-brand);
  transition: width .35s ease;
}
.stat-tile-bar > span.is-warn  { background: var(--color-accent); }
.stat-tile-bar > span.is-error { background: var(--color-error); }

/* ── Status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.status-pill.is-success { background: var(--color-success-bg); color: var(--color-success); }
.status-pill.is-warn    { background: #fef3c7; color: #92400e; }
.status-pill.is-danger  { background: #fee2e2; color: #991b1b; }
.status-pill.is-neutral { background: var(--color-bg-deep); color: var(--color-text-muted); }
.status-pill.is-info    { background: var(--color-brand-light); color: var(--color-brand-dark); }

/* ── Inline notice (info strip) ── */
.settings-notice {
  font-size: .82rem;
  color: var(--color-text-muted);
  background: var(--color-bg-deep);
  padding: .65rem .9rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-brand);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.settings-notice.is-warn {
  background: #fffbeb;
  color: #78350f;
  border-left-color: #d97706;
}

/* ── Generic line list (events extend, billing rows) ── */
.line-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.line-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .65rem .9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background .15s, border-color .15s;
}
.line-list-item:hover {
  background: var(--color-bg-deep);
  border-color: var(--color-text-faint);
}
.line-list-item-title {
  font-weight: 500;
  font-size: .9rem;
  color: var(--color-text);
}
.line-list-item-meta {
  font-size: .76rem;
  color: var(--color-text-muted);
  margin-left: .5rem;
}

/* ── Section divider (inside a card) ── */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
  border: 0;
}

/* ── Disclosure (accordion summary) ── */
.disclosure {
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--color-brand-dark);
  letter-spacing: .01em;
  user-select: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .ds-caret {
  font-size: .85rem;
  color: var(--color-text-muted);
  transition: transform .2s;
}
.disclosure[open] > summary .ds-caret { transform: rotate(180deg); }
.disclosure[open] > summary {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}
.disclosure-body { padding: 1.25rem 1.5rem; }

/* ── Avatar uploader pill ── */
.avatar-uploader {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-brand);
  background: transparent;
  border: 1.5px solid var(--color-brand);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.avatar-uploader:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Mobile tweaks ── */
@media (max-width: 600px) {
  .settings-shell { padding: 0 0 2rem; }
  .settings-hero {
    padding: 1.1rem 1.1rem;
    gap: .9rem;
    flex-wrap: wrap;
  }
  .settings-hero-avatar { width: 64px; height: 64px; }
  .settings-hero-avatar.is-init { font-size: 1.85rem; }
  .settings-hero-name { font-size: 1.3rem; }
  .settings-section { padding: 1.1rem 1.1rem; }
  .settings-section-title { font-size: 1.18rem; }
  .disclosure > summary { padding: .85rem 1.1rem; font-size: 1.05rem; }
  .disclosure-body { padding: 1rem 1.1rem; }
  .stat-tile-value { font-size: 1.65rem; }
}

/* ── Dark theme adjustments ── */
[data-theme="dark"] .settings-hero {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(58,82,70,.18) 100%);
}
[data-theme="dark"] .settings-hero::after {
  background: radial-gradient(circle at center, rgba(196,168,130,.14) 0%, transparent 65%);
}
[data-theme="dark"] .settings-section {
  background: var(--color-surface);
}
[data-theme="dark"] .settings-section.is-danger {
  background: linear-gradient(180deg, rgba(220,38,38,.08) 0%, var(--color-surface) 60%);
}
[data-theme="dark"] .stat-tile {
  background: rgba(255,255,255,.025);
}
[data-theme="dark"] .option-card.is-selected,
[data-theme="dark"] .option-card:has(input:checked) {
  background: rgba(92,122,107,.18);
}
[data-theme="dark"] .status-pill.is-success { background: rgba(22,163,74,.15); }
[data-theme="dark"] .status-pill.is-warn    { background: rgba(217,119,6,.15); color: #fbbf24; }
[data-theme="dark"] .status-pill.is-danger  { background: rgba(220,38,38,.15); color: #f87171; }

/* ══════════════════════════════════════════════════════════════════════════
   Admin notifications (navbar bell + dropdown)
   ══════════════════════════════════════════════════════════════════════════ */
.nav-admin-notif {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-admin-notif-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: .4rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-text-muted);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  line-height: 1;
}
.nav-admin-notif-btn:hover {
  background: var(--color-brand-light);
  border-color: rgba(92,122,107,.18);
  color: var(--color-brand-dark);
}
.nav-admin-notif.open .nav-admin-notif-btn {
  background: var(--color-brand-light);
  border-color: rgba(92,122,107,.25);
  color: var(--color-brand-dark);
  box-shadow: 0 2px 6px -2px rgba(58,82,70,.18);
}
.nav-admin-notif-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.nav-admin-notif-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.nav-admin-notif-btn:hover .nav-admin-notif-icon {
  transform: rotate(-12deg);
  transform-origin: 50% 20%;
}
.nav-admin-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-accent, #C4A882);
  color: #fff;
  font-family: var(--font-sans, inherit);
  font-size: .6rem;
  font-weight: 600;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface, #fff);
  letter-spacing: .02em;
}
.nav-admin-notif-badge--inline {
  position: static;
  margin-left: .4rem;
  border: none;
  font-size: .62rem;
  padding: 1px 7px;
  height: auto;
  vertical-align: middle;
}
.nav-admin-notif-menu {
  display: none;
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 300px;
  max-width: calc(100vw - 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 14px 42px -10px rgba(58,82,70,.22), 0 4px 12px rgba(0,0,0,.06);
  z-index: 200;
  padding: .25rem 0 .4rem;
  animation: navMenuIn .22s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
.nav-admin-notif.open .nav-admin-notif-menu { display: block; }
.nav-admin-notif-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem 1rem .55rem;
  margin-bottom: .25rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.nav-admin-notif-link {
  font-family: var(--font-display, inherit);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--color-brand);
  text-decoration: none;
  font-style: italic;
}
.nav-admin-notif-link:hover { color: var(--color-brand-dark); text-decoration: underline; }
.nav-admin-notif-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-admin-notif-item:hover {
  background: var(--color-bg-deep);
  color: var(--color-brand-dark);
  text-decoration: none;
}
.nav-admin-notif-item-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  opacity: .85;
}
.nav-admin-notif-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-admin-notif-item-count {
  flex-shrink: 0;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .02em;
  border: 1px solid rgba(92,122,107,.2);
}
.nav-admin-notif-item:hover .nav-admin-notif-item-count {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.nav-admin-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.4rem 1rem 1.1rem;
  font-family: var(--font-display, inherit);
  font-size: .92rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}
.nav-admin-notif-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-size: .9rem;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0;
  font-family: var(--font-sans, inherit);
}
.nav-admin-notif.is-empty .nav-admin-notif-icon { opacity: .55; }
.nav-admin-notif.is-empty .nav-admin-notif-btn { color: var(--color-text-faint, var(--color-text-muted)); }
@media (max-width: 640px) {
  /* Mobile: show bell in the mobile controls area, hide dropdown menu (use mobile panel instead) */
  .nav-admin-notif-menu { right: -.5rem; min-width: 240px; }
}
[data-theme="dark"] .nav-admin-notif-badge { border-color: var(--color-surface); }
