/* ==========================================================================
   Jana — Baby Gift Registry · Warm Nordic ("Cálido nórdico") Design System
   Mobile-first, zero-dependency, print-ready keepsake stylesheet
   ========================================================================== */

:root {
  /* Warm Nordic Palette */
  --bg-cream: #FAF6F0;
  --bg-cream-deep: #F3ECE2;
  --surface: #FFFDF9;
  --surface-soft: #FCF8F2;
  --border: #ECE3D7;
  --border-strong: #DFD3C3;

  /* Accents */
  --terracotta: #D97E5E;
  --terracotta-hover: #C46A4B;
  --terracotta-soft: #FBECE5;
  --terracotta-border: #F2D0C1;

  --sage: #6E8F73;
  --sage-hover: #5C7B61;
  --sage-soft: #E9F1EA;
  --sage-border: #C9DCCB;

  --ochre: #C89B54;
  --ochre-soft: #FAF1DF;

  --danger: #C5584B;
  --danger-hover: #AD463A;
  --danger-soft: #FBEAE8;

  /* Ink */
  --ink: #2E2925;
  --ink-secondary: #6E635A;
  --ink-muted: #9A8E83;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii & Shadows */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 3px rgba(46, 41, 37, 0.05);
  --shadow-sm: 0 4px 14px rgba(46, 41, 37, 0.05), 0 1px 3px rgba(46, 41, 37, 0.04);
  --shadow-md: 0 12px 30px rgba(46, 41, 37, 0.08), 0 2px 6px rgba(46, 41, 37, 0.04);
  --shadow-lg: 0 22px 54px rgba(46, 41, 37, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(217, 126, 94, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 88% 8%, rgba(110, 143, 115, 0.09) 0%, transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--terracotta-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }
}

/* ==========================================================================
   Sticky Top Bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--terracotta-hover);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-subtitle {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
}

@media (min-width: 640px) {
  .brand-subtitle {
    display: inline-block;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.nav-pill:hover {
  text-decoration: none;
  background: var(--sage-soft);
  border-color: var(--sage-border);
  color: var(--sage-hover);
}

.nav-pill-label {
  display: none;
}

@media (min-width: 520px) {
  .nav-pill-label {
    display: inline;
  }
}

.nav-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  color: var(--sage-hover);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-xs);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--terracotta);
  color: #FFFDF9;
  box-shadow: 0 2px 6px rgba(217, 126, 94, 0.32);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-muted);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.icon-link:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  text-decoration: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrap {
  padding: 24px 0 18px;
}

@media (min-width: 640px) {
  .hero-wrap {
    padding: 34px 0 24px;
  }
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .hero-card {
    padding: 40px 44px 36px;
  }
}

.hero-decor-left,
.hero-decor-right {
  position: absolute;
  pointer-events: none;
  opacity: 0.48;
  color: var(--sage);
}

.hero-decor-left {
  top: -12px;
  left: -14px;
  width: 120px;
  height: 120px;
}

.hero-decor-right {
  bottom: -16px;
  right: -12px;
  width: 130px;
  height: 130px;
  color: var(--terracotta);
  opacity: 0.35;
}

.hero-motif {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--terracotta);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.due-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--ochre-soft);
  color: #846128;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-welcome {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--ink-secondary);
  font-size: 1.03rem;
  line-height: 1.65;
  white-space: pre-line;
}

.hero-progress {
  max-width: 440px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 9px;
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-cream-deep);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage), #89AB8E);
  transition: width 0.6s var(--ease);
}

.hero-wishes-cta {
  margin-top: 16px;
}

/* How-to-Buy Guide + Store Link inside Purchase Modal */
.modal-buy-guide {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ochre-soft);
  border: 1px solid #EBD7B2;
  color: #6B4D1C;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-buy-guide-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.modal-buy-guide-text .icon-inline {
  margin-top: 2px;
  flex-shrink: 0;
  color: #9A722E;
}

.modal-store-cta {
  align-self: flex-start;
  background: var(--surface);
  border-color: var(--terracotta-border);
  color: var(--terracotta-hover);
}

.modal-store-cta:hover:not(:disabled) {
  background: var(--terracotta-soft);
}

.modal-buy-guide-physical {
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.success-store-wrap {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

/* Home Shipping Address inside Purchase Modal */
.modal-shipping-box {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  padding: 10px 14px;
}

.modal-shipping-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--sage-hover);
}

.modal-shipping-summary::-webkit-details-marker {
  display: none;
}

.modal-shipping-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.modal-shipping-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.9;
  white-space: nowrap;
}

.modal-shipping-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sage-border);
}

.shipping-subtitle {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.shipping-address-text {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: pre-line;
  line-height: 1.45;
  text-align: left;
}

.success-shipping-box {
  margin: 0 auto 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  text-align: center;
}

.success-shipping-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sage-hover);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filters-section {
  padding: 8px 0 18px;
}

.filters-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  .filters-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  display: inline-flex;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--ink-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-cream-deep);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  background: var(--border-strong);
}

.status-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.status-pill {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}

.status-pill:hover {
  color: var(--ink);
}

.status-pill.active {
  background: var(--ink);
  color: #FFFDF9;
}

/* Scrollable Category Chips */
.category-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.cat-chip:hover {
  border-color: var(--terracotta-border);
  color: var(--ink);
}

.cat-chip.active {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
  color: var(--terracotta-hover);
}

.results-summary {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ==========================================================================
   Gift Grid & Cards
   ========================================================================== */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .gifts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (min-width: 980px) {
  .gifts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.gift-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s;
}

.gift-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.gift-card.is-completed {
  background: #FAF8F4;
}

.gift-card.is-completed .gift-media img {
  filter: saturate(0.75) opacity(0.84);
}

.gift-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F6EFE6 0%, #EFE6DA 100%);
  overflow: hidden;
}

.gift-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.gift-card:hover .gift-media img {
  transform: scale(1.03);
}

.gift-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--terracotta);
  opacity: 0.72;
  padding: 16px;
}

.gift-media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  backdrop-filter: blur(8px);
}

.badge-essential {
  background: rgba(217, 126, 94, 0.94);
  color: #FFFDF9;
  box-shadow: 0 2px 8px rgba(217, 126, 94, 0.35);
}

.badge-store {
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink-secondary);
  border: 1px solid rgba(236, 227, 215, 0.9);
}

.badge-available {
  background: var(--sage-soft);
  color: var(--sage-hover);
  border: 1px solid var(--sage-border);
}

.badge-partial {
  background: var(--ochre-soft);
  color: #846128;
  border: 1px solid #EBD7B2;
}

.badge-completed {
  background: var(--sage);
  color: #FFFDF9;
}

.badge-public {
  background: var(--sage-soft);
  color: var(--sage-hover);
  border: 1px solid var(--sage-border);
}

.badge-private {
  background: var(--terracotta-soft);
  color: var(--terracotta-hover);
  border: 1px solid var(--terracotta-border);
}

.gift-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.gift-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.gift-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.gift-price {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.gift-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
}

.gift-desc {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

/* Store Box inside Card */
.gift-store-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.store-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: var(--terracotta-hover);
  font-size: 0.84rem;
}

.store-link:hover {
  color: var(--terracotta);
}

.store-address {
  margin-top: 5px;
  color: var(--ink-secondary);
  font-size: 0.84rem;
  line-height: 1.4;
}

.store-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--sage-hover);
}

.gift-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gift-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--terracotta);
  color: #FFFDF9;
  box-shadow: 0 4px 12px rgba(217, 126, 94, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196, 106, 75, 0.34);
}

.btn-sage {
  background: var(--sage);
  color: #FFFDF9;
  box-shadow: 0 4px 12px rgba(110, 143, 115, 0.25);
}

.btn-sage:hover:not(:disabled) {
  background: var(--sage-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-cream-deep);
}

.btn-soft {
  background: var(--terracotta-soft);
  color: var(--terracotta-hover);
  border-color: var(--terracotta-border);
}

.btn-soft:hover:not(:disabled) {
  background: #F6DDD2;
}

.btn-danger {
  background: var(--danger);
  color: #FFFDF9;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #F2C9C4;
}

.btn-danger-soft:hover:not(:disabled) {
  background: #F6D8D4;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-cream-deep);
  color: var(--ink);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

.btn-completed-badge {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: var(--sage-hover);
  font-weight: 800;
  font-size: 0.92rem;
}

/* ==========================================================================
   Public Wishes Wall ("El mur de desitjos de la Jana")
   ========================================================================== */
.wishes-section {
  position: relative;
  background: linear-gradient(180deg, rgba(233, 241, 234, 0.55) 0%, rgba(251, 236, 229, 0.35) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 64px;
  scroll-margin-top: 72px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--sage-border);
  color: var(--sage-hover);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
}

.section-subtitle {
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.wishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .wishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .wishes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-sm);
}

.wish-quote-mark {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 0.7;
  color: var(--terracotta);
  opacity: 0.35;
  margin-bottom: 8px;
  user-select: none;
}

.wish-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.62;
  white-space: pre-line;
  flex: 1;
}

.wish-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wish-author {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.wish-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.wish-gift-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty & Loading States */
.empty-state {
  text-align: center;
  padding: 46px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 0.94rem;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 20px;
  color: var(--ink-muted);
  font-weight: 700;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  padding: 36px 0 44px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-ornament {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.footer-parents {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.footer-subtext {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.footer-admin-link {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-admin-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   Modal & Bottom-Sheet System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(46, 41, 37, 0.46);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s var(--ease);
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.26s var(--ease);
}

.modal-dialog.modal-lg {
  max-width: 660px;
}

.modal-dialog.modal-sm {
  max-width: 440px;
}

@media (min-width: 600px) {
  .modal-dialog {
    border-radius: var(--radius-lg);
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--bg-cream-deep);
  color: var(--ink);
}

.modal-body {
  padding: 20px 22px 24px;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Purchase Modal Specifics */
.purchase-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.purchase-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg-cream-deep);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}

.purchase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-preview-info h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.25;
}

.purchase-preview-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-cream-deep);
  color: var(--ink-secondary);
}

.step-dot.active {
  background: var(--terracotta);
  color: #FFFDF9;
}

.step-dot.done {
  background: var(--sage);
  color: #FFFDF9;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* Radio Visibility Cards */
.visibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .visibility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vis-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.vis-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vis-option:hover {
  border-color: var(--border-strong);
}

.vis-option.selected-private {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
}

.vis-option.selected-public {
  border-color: var(--sage);
  background: var(--sage-soft);
}

.vis-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.vis-option.selected-private .vis-icon {
  color: var(--terracotta-hover);
  border-color: var(--terracotta-border);
}

.vis-option.selected-public .vis-icon {
  color: var(--sage-hover);
  border-color: var(--sage-border);
}

.vis-title {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}

.vis-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.38;
  margin-top: 2px;
}

/* Confirmation Summary Box (Step 2) */
.confirm-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confirm-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.confirm-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  white-space: pre-line;
}

.confirm-note-quote {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink-secondary);
  white-space: pre-line;
  margin-top: 4px;
}

.confirm-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ochre-soft);
  color: #795720;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Success Celebration */
.success-panel {
  text-align: center;
  padding: 14px 8px 6px;
}

.success-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 2px solid var(--sage-border);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s var(--ease);
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  75% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.success-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
}

.success-panel p {
  margin: 0 0 20px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 92px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-error {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  background: var(--danger-soft);
  border: 1px solid #F2C9C4;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-success-inline {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  color: var(--sage-hover);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Segmented Toggle */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-cream-deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.segmented-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}

.segmented-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.admin-login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.admin-login-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-login-card h1 {
  margin: 12px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
}

.admin-login-card p {
  margin: 0 0 22px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 6px;
  display: inline-flex;
}

.admin-main {
  padding: 22px 0 64px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 700px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  box-shadow: var(--shadow-xs);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.stat-label {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  color: var(--terracotta-hover);
  border-bottom-color: var(--terracotta);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

/* Admin Gift List Row */
.admin-gift-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-gift-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 720px) {
  .admin-gift-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
  }
}

.admin-gift-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.admin-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-cream-deep);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gift-info {
  min-width: 0;
  flex: 1;
}

.admin-gift-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-gift-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.admin-gift-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  transition: all 0.15s;
}

.icon-btn:hover:not(:disabled) {
  background: var(--bg-cream-deep);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* URL Autofill Bar */
.autofill-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .autofill-row {
    flex-direction: row;
  }
}

.autofill-row .form-control {
  flex: 1;
}

/* Photo Uploader in Modal */
.photo-uploader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
}

@media (min-width: 480px) {
  .photo-uploader {
    flex-direction: row;
    align-items: center;
  }
}

.photo-preview-box {
  width: 96px;
  height: 76px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg-cream-deep);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Collapsible secondary language box */
.alt-lang-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.alt-lang-box summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alt-lang-box summary::-webkit-details-marker {
  display: none;
}

.alt-lang-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Admin Purchases / Dedications Cards */
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.purchase-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.purchase-buyer {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.purchase-gift-sub {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.purchase-note-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border-left: 3px solid var(--terracotta);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.58;
  white-space: pre-line;
}

.purchase-note-box.is-public {
  border-left-color: var(--sage);
}

.purchase-no-note {
  margin-top: 10px;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ink-muted);
}

.purchase-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Admin Settings Card */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 820px) {
  .settings-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.panel-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
}

.telegram-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.telegram-status-pill.ok {
  background: var(--sage-soft);
  color: var(--sage-hover);
}

.telegram-status-pill.off {
  background: var(--ochre-soft);
  color: #846128;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #FFFDF9;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.25s var(--ease);
}

.toast-success {
  background: var(--sage-hover);
}

.toast-error {
  background: var(--danger);
}

/* ==========================================================================
   Keepsake Print Styles (Admin Dedications PDF / Print)
   ========================================================================== */
.print-only-header {
  display: none;
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #1F1C19 !important;
    font-size: 11pt;
  }

  .topbar,
  .admin-stats,
  .admin-tabs,
  .admin-toolbar,
  .purchase-card-actions,
  .toast-container,
  .modal-backdrop,
  #tab-gifts,
  #tab-settings,
  #login-view,
  .no-print {
    display: none !important;
  }

  #dashboard-view,
  #tab-purchases {
    display: block !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .print-only-header {
    display: block !important;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #DFD3C3;
  }

  .print-only-header h1 {
    font-family: var(--font-serif);
    font-size: 24pt;
    margin: 0 0 6px;
    color: #2E2925;
  }

  .print-only-header p {
    margin: 0;
    color: #6E635A;
    font-size: 11pt;
  }

  .purchases-list {
    display: block;
  }

  .purchase-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #DFD3C3;
    box-shadow: none;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #FFFDF9 !important;
  }

  .purchase-note-box {
    background: #FAF6F0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
