/*
 * Birthdaze — Design System
 * Aesthetic: Warm stationery / celebration
 * Fonts: DM Serif Display (display) + Nunito (body)
 *
 * Hotwire Native compatible:
 *   - html.turbo-native hides the web nav bar (native provides its own)
 *   - Mobile-first layout, no desktop-only patterns
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Nunito:wght@400;500;600;700&display=swap');

/* SVG icon sizing — icons are now <img> tags served from app/assets/images/ */
.icon-cake { width: 4rem; height: 4rem; }
.icon-party { width: 1.4em; height: 1.4em; vertical-align: middle; }

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --cream:        #FFF8F2;
  --white:        #FFFFFF;
  --coral:        #E05C3A;
  --coral-hover:  #C94E2F;
  --coral-light:  #FDEEE9;
  --amber:        #F0A832;
  --amber-light:  #FEF5E4;
  --sage:         #4BAF87;
  --sage-light:   #E7F6EF;
  --navy:         #1A1614;
  --brown:        #3F2D20;
  --muted:        #746357;
  --border:       #EDE0D4;
  --shadow-sm:    0 1px 4px rgba(63,45,32,0.07);
  --shadow-md:    0 4px 16px rgba(63,45,32,0.09), 0 1px 4px rgba(63,45,32,0.05);
  --shadow-lg:    0 8px 32px rgba(63,45,32,0.13), 0 2px 8px rgba(63,45,32,0.07);
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --nav-height:   60px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
h3 { font-size: 1.1rem; }

p { color: var(--muted); line-height: 1.7; }

a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 600;
}
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */

.site-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1rem 5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--coral) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.site-nav__logo:hover { text-decoration: none !important; }

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted) !important;
  text-decoration: none !important;
}

.site-nav__link:hover { color: var(--brown) !important; }
.site-nav__link--active { color: var(--brown) !important; text-decoration: underline; text-underline-offset: 4px; }

/* Hotwire Native: hide the web nav bar — the native shell provides its own */
.bridge-element { display: none; }
html.turbo-native .site-nav { display: none; }
html.turbo-native .page-container { padding-top: 1.25rem; }
html.turbo-native .back-link { display: none; }
html.turbo-native .site-footer { display: none; }
html.turbo-native .native-hidden { display: none; }

/* Hide page-level h1 titles — the native nav bar already shows the page title */
html.turbo-native .page-container h1 { display: none; }

/* In the native app there is no web nav, so auth pages don't need to offset for it */
html.turbo-native .signin-page,
html.turbo-native .signup-page {
  min-height: auto;
  padding-top: 1rem;
  justify-content: flex-start;
}

/* Tighten headline spacing on native — there's a native nav bar above already */
html.turbo-native .signin-page__headline,
html.turbo-native .signup-page__headline {
  margin-top: 0.5rem;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--notice {
  background: var(--sage-light);
  color: #27745C;
  border: 1px solid #B5E2CE;
}

.toast--alert {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

@media (max-width: 480px) {
  .toast-container {
    right: 0.5rem;
    left: 0.5rem;
  }
  .toast {
    max-width: none;
  }
}

/* Inline alert — stays in page flow (e.g. gift finder error) */
.inline-alert,
#error_explanation {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

#error_explanation h2 { font-family: var(--font-body); font-size: 0.9rem; margin: 0 0 0.5rem; }
#error_explanation ul { margin: 0; padding-left: 1.25rem; font-weight: 400; }
#error_explanation li { margin-bottom: 0.25rem; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--coral);
  color: #fff !important;
  border-color: var(--coral);
}

.btn--primary:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224,92,58,0.35);
  text-decoration: none !important;
}

.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--secondary {
  background: var(--white);
  color: var(--brown) !important;
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--coral);
  color: var(--coral) !important;
  text-decoration: none !important;
}

/* Legacy button classes — keep for existing views */

.btn-destructive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  background: #DC2626;
  color: #fff;
  border: 2px solid #DC2626;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-destructive:hover { background: #B91C1C; border-color: #B91C1C; }

.btn-destructive-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  background: transparent;
  color: #DC2626;
  border: 2px solid #DC2626;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-destructive-outline:hover { background: #FEF2F2; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover { border-color: var(--brown); color: var(--brown); }

/* ============================================================
   FORMS
   ============================================================ */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
}

.form-card + .form-card {
  margin-top: 1.25rem;
}

/* Account page footer — sign out + delete links */
.account-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.account-footer__sign-out {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.account-footer__sign-out:hover {
  color: var(--brown);
  text-decoration: underline;
}

.account-footer__delete {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #B91C1C;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.account-footer__delete:hover {
  text-decoration: underline;
}

.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent iOS zoom on focus (font-size must be >= 16px or use 16px) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
  }
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224,92,58,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7B70' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

input[type="submit"] { width: auto; }

/* Devise field wrappers */
.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.3rem;
}

.field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.field--checkbox label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--coral);
  cursor: pointer;
}

.actions { margin-top: 1.75rem; }

/* Error messages */
.error-summary {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.error-summary p {
  color: #B91C1C;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.error-summary ul {
  padding-left: 1.25rem;
  list-style: disc;
  color: #991B1B;
  font-size: 0.875rem;
}

/* Interest checkboxes — pill-style grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.interest-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-transform: none;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

.interest-checkbox:has(input:checked) {
  border-color: var(--amber);
  background: var(--amber-light);
  color: #7A5200;
}

.interest-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

/* Fieldset */
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

legend {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--brown);
  padding: 0 0.5rem;
}

fieldset > p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

.form-group--inline {
  display: flex;
  gap: 1rem;
}

.form-group--inline .form-group {
  flex: 1;
}

/* ASIN feedback */
.asin-feedback--success {
  color: #15803D;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.asin-feedback--error {
  color: #B91C1C;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Image upload */
.image-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.image-input-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown);
}

.image-input-divider {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.image-upload-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.image-upload-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.image-preview-container {
  margin-top: 0.75rem;
}

.image-preview-thumb {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
}

.asin-feedback--warning {
  color: #92400E;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.asin-feedback--warning a {
  color: #92400E;
  text-decoration: underline;
}

/* ============================================================
   ADMIN CATALOG
   ============================================================ */

.page-container--wide {
  max-width: 900px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Search */
.catalog-search {
  margin-bottom: 1rem;
}
.catalog-search__input {
  width: 100%;
  max-width: 400px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.25rem;
}

.catalog-filters {
  display: flex;
  gap: 0.5rem;
}

.catalog-sync-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.catalog-sync-link:hover {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted) !important;
  background: var(--white);
  border: 2px solid var(--border);
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.catalog-filter-pill:hover {
  border-color: var(--coral);
  color: var(--coral) !important;
  text-decoration: none !important;
}

.catalog-filter-pill--active {
  background: var(--amber-light);
  border-color: var(--amber);
  color: #7A5200 !important;
}

/* Desktop table */
.catalog-table-wrapper {
  display: none;
}

@media (min-width: 768px) {
  .catalog-table-wrapper { display: block; }
  .catalog-cards { display: none !important; }
}

.catalog-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.catalog-table thead {
  background: var(--cream);
  border-bottom: 2px solid var(--border);
}

.catalog-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.catalog-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.catalog-table tbody tr:last-child td {
  border-bottom: none;
}

.catalog-row--hidden {
  opacity: 0.65;
}

.catalog-cell--product {
  font-weight: 700;
  color: var(--brown);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-cell--actions {
  white-space: nowrap;
}
.catalog-cell--actions form {
  display: inline;
}
.catalog-cell--actions > * + *,
.catalog-cell--actions > * + form,
.catalog-cell--actions > form + * {
  margin-left: 0.75rem;
}

.catalog-sort-link {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.catalog-sort-link:hover {
  color: var(--brown) !important;
  text-decoration: none !important;
}

.catalog-sort-link--active {
  color: var(--brown) !important;
}

/* Badges */
.catalog-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.catalog-badge--active {
  background: var(--sage-light);
  color: #27745C;
}

.catalog-badge--hidden {
  background: #FEF2F2;
  color: #B91C1C;
}

.catalog-hidden-reason {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Action links */
.catalog-action-link {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--coral) !important;
  text-decoration: none !important;
  vertical-align: middle;
}
.catalog-action-link:hover {
  text-decoration: underline !important;
}
.catalog-action-link--edit {
  color: var(--brown) !important;
}
.catalog-action-link--hide {
  color: var(--muted) !important;
}
.catalog-action-link--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Mobile cards */
.catalog-cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .catalog-cards { display: none !important; }
}

.catalog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
}

.catalog-card--hidden {
  opacity: 0.65;
}

.catalog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.catalog-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
}

.catalog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.catalog-card__reason {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.catalog-card__actions {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

/* Pagination */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.catalog-pagination__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral) !important;
  text-decoration: none !important;
}

.catalog-pagination__link:hover {
  text-decoration: underline !important;
}

.catalog-pagination__info {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.catalog-empty-filter {
  text-align: center;
  padding: 2rem 0;
}

/* ============================================================
   BACK LINK
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted) !important;
  text-decoration: none !important;
  margin-bottom: 1.25rem;
  -webkit-tap-highlight-color: transparent;
}

.back-link:hover { color: var(--brown) !important; }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.signin-page,
.signup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 5rem;
  min-height: calc(100vh - var(--nav-height));
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .form-card {
  margin-top: 1.5rem;
}

.signin-page__headline,
.signup-page__headline {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  text-align: center;
  max-width: 400px;
}

.signup-page__subheadline {
  font-size: 1rem;
  text-align: center;
  color: var(--muted);
  max-width: 360px;
  margin-top: 0.5rem;
  line-height: 1.65;
}

.signin-page__forgot-link,
.signin-page__signup-link,
.signup-page__signin-link,
.signup-page__privacy-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  margin-top: 1.5rem;
}

.dashboard-empty__icon {
  margin-bottom: 1.25rem;
}

.dashboard-empty h2 {
  font-size: 1.3rem;
  max-width: 320px;
  margin-bottom: 0.75rem;
}

.dashboard-empty p {
  max-width: 320px;
  margin-bottom: 1.75rem;
}

.dashboard-section { margin-top: 2rem; }

.dashboard-section__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.month-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: var(--nav-height);
  background: var(--cream);
  padding: 0.35rem 0;
  z-index: 10;
}

html.turbo-native .month-heading {
  top: 0;
}

.month-heading:first-of-type {
  margin-top: 0.5rem;
}

.birthday-list,
.children-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.birthday-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: stretch;
}

.birthday-card:has(a:hover) {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Suppress card lift when hovering the gift icon — it's a distinct action */
.birthday-card:has(.birthday-card__gift-btn:hover) {
  box-shadow: var(--shadow-sm);
  transform: none;
}

.birthday-card > a:first-child {
  flex: 1;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 0.875rem 1rem;
  gap: 0.1rem 0.75rem;
  text-decoration: none !important;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}

.child-date {
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1;
  text-align: center;
  align-self: center;
}

.birthday-card--today .child-date {
  font-size: 1.1rem;
  color: var(--coral);
}

.birthday-card--soon .child-date {
  color: var(--brown);
}

.child-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown);
  grid-column: 2;
  grid-row: 1;
}

.child-meta {
  font-size: 0.8rem;
  color: var(--muted);
  grid-column: 2;
  grid-row: 2;
}

.countdown-pill {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  line-height: 1;
  white-space: nowrap;
}

.birthday-card--soon .countdown-pill {
  color: #8B6914;
  background: var(--amber-light);
}

.birthday-card--soon  { border-left: 4px solid var(--amber); }
.birthday-card--today { border-left: 4px solid var(--coral); background: var(--coral-light); }

.birthday-today-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--coral);
  color: white;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.35rem;
  letter-spacing: 0.02em;
}

.birthday-card__gift-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 1.1rem;
  border-left: 1px solid var(--border);
  background: var(--cream);
  min-width: 3.5rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.birthday-card__gift-btn:hover {
  background: var(--coral-light);
}
.birthday-card__gift-icon {
  width: 1.5rem;
  height: 1.5rem;
}
.birthday-card__gift-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.birthday-card__gift-btn:hover .birthday-card__gift-label {
  color: var(--coral);
}

/* Remaining birthdays — collapsible section */

.remaining-birthdays {
  margin-top: 0.25rem;
}

.remaining-birthdays__toggle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.remaining-birthdays__toggle::-webkit-details-marker { display: none; }
.remaining-birthdays__toggle::marker { display: none; content: ""; }

.remaining-birthdays__toggle::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.remaining-birthdays[open] > .remaining-birthdays__toggle::before {
  transform: rotate(45deg);
}

.remaining-birthdays__count {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

/* Compact birthday rows for remaining section */

.birthday-list-compact {
  display: flex;
  flex-direction: column;
}

.birthday-row {
  border-bottom: 1px solid var(--border);
}

.birthday-row:last-child {
  border-bottom: none;
}

.birthday-row a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  text-decoration: none !important;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.birthday-row a::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: auto;
}

.birthday-row a:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.birthday-row a:hover::after {
  border-color: var(--muted);
}

.birthday-row a:active {
  background: var(--coral-light);
}

.birthday-row__date {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
  min-width: 1.5rem;
  text-align: right;
}

.birthday-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown);
}

.birthday-row__meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.add-child-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral) !important;
  margin-top: 0.75rem;
  text-decoration: none !important;
}

.add-child-link:hover { text-decoration: underline !important; }

/* ============================================================
   CHILD PROFILE
   ============================================================ */

.child-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.child-details { display: grid; gap: 0; }

.child-details dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  padding-top: 1rem;
}

.child-details dt:first-child { padding-top: 0; }

.child-details dd {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0.3rem 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.child-details dd:last-child { border-bottom: none; padding-bottom: 0; }

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.interest-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--amber-light);
  color: #7A5200;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.reminder-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}

.reminder-status--on  { background: var(--sage-light); color: #27745C; }
.reminder-status--off { background: #F3F4F6; color: var(--muted); }

.info-icon-btn {
  background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: help;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em; height: 1.1em;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  font-size: 0.75em;
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--muted);
  vertical-align: middle;
  line-height: 1;
}

.grade-tooltip {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--amber-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.4;
}

.grade-tooltip[hidden] {
  display: none;
}

.child-actions { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.5rem; }

.child-actions-row { display: flex; gap: 0.625rem; flex-wrap: wrap; }

/* ============================================================
   DELETE DIALOG
   ============================================================ */

dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  max-width: 380px;
  width: calc(100% - 2rem);
  background: var(--white);
  margin: auto;
}

dialog::backdrop {
  background: rgba(30,20,10,0.45);
  backdrop-filter: blur(4px);
}

dialog h2 { margin-bottom: 0.75rem; font-size: 1.25rem; }
dialog p  { margin-bottom: 1.5rem; font-size: 0.9rem; }

.dialog-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.dialog-actions > *, .dialog-actions > form { width: 100%; }
.dialog-actions > form button,
.dialog-actions > form input[type="submit"] { width: 100%; }

/* ============================================================
   GIFT FINDER
   ============================================================ */

.gift-form .loading-state { display: none; }
.gift-form[data-turbo-submitting] .loading-state { display: block; }
.gift-form[data-turbo-submitting] .form-fields { display: none; }

.loading-state {
  text-align: center;
  padding: 4rem 1rem;
}

.loading-state p:first-child {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.gift-ideas {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.gift-idea-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.gift-idea-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.gift-idea-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.35rem;
}

.gift-idea-card p {
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.amazon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--coral) !important;
  text-decoration: none !important;
  padding: 0.35rem 0.875rem;
  border: 2px solid var(--coral);
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.amazon-link:hover { background: var(--coral); color: #fff !important; }

/* ============================================================
   GIFT LIST (user-facing)
   ============================================================ */

/* Budget filter pills */
.budget-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 1.25rem;
  padding-bottom: 2px; /* prevent clipping focus ring */
}

.budget-filters::-webkit-scrollbar { display: none; }

.budget-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 44px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--brown);
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.budget-filter-pill:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.budget-filter-pill--active {
  background: var(--amber-light);
  border-color: var(--amber);
  color: #7A5200;
}

.budget-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.gift-list-header { margin-bottom: 1.5rem; }

.gift-list-subheading {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.gift-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gift-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.gift-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.gift-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gift-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.gift-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gift-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.gift-card__placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.5;
}

.gift-card__content {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gift-card__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
}

.gift-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.gift-card__price-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--brown);
}

.gift-card__note {
  font-size: 0.875rem;
  color: var(--brown);
  line-height: 1.5;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.25rem;
}

.btn--amazon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--coral) !important;
  text-decoration: none !important;
  padding: 0.5rem 1rem;
  border: 2px solid var(--coral);
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.btn--amazon:hover {
  background: var(--coral);
  color: #fff !important;
}

.gift-card__curator-edit {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}
.gift-card__curator-edit:hover {
  color: var(--brown);
  text-decoration: underline;
}

/* — Catalog card save/saved buttons */
.gift-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.save-gift-inline { display: inline; }

.btn--save {
  display: inline-flex;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--sage) !important;
  background: transparent;
  padding: 0.5rem 1rem;
  border: 2px solid var(--sage);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn--save:hover {
  background: var(--sage);
  color: #fff !important;
}

.btn--saved {
  display: inline-flex;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  cursor: default;
}

.btn--remove {
  display: inline-flex;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn--remove:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn--small {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

/* — "Our recommendations" label */
.gift-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   YOUR PICKS / SAVED GIFTS
   ============================================================ */

.your-picks {
  margin-bottom: 1.5rem;
}

.your-picks__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.saved-gifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.saved-gift-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.saved-gift-card__image {
  width: 100px;
  min-height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--cream);
}

.saved-gift-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-gift-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saved-gift-card__placeholder-icon {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.4;
}

.saved-gift-card__content {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.saved-gift-card__content--full {
  padding: 0.75rem 1rem;
}

.saved-gift-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown);
  display: block;
}

.saved-gift-card__price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.saved-gift-card__url {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-gift-card__note {
  font-size: 0.8rem;
  color: var(--brown);
  line-height: 1.4;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  padding: 0.35rem 0.6rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.15rem;
}

.saved-gift-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.saved-gift-card__actions .btn--amazon {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  margin-top: 0;
}

/* — Add your own collapsible */
.add-your-own {
  margin-top: 0.5rem;
}

.add-your-own__toggle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral);
  cursor: pointer;
  list-style: none;
  padding: 0.5rem 0;
}

.add-your-own__toggle::before {
  content: "▸ ";
}

.add-your-own[open] > .add-your-own__toggle::before {
  content: "▾ ";
}

.add-your-own__toggle::-webkit-details-marker { display: none; }

.add-your-own__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.saved-gift-form .form-group { margin-bottom: 1rem; }
.saved-gift-form .form-group:last-of-type { margin-bottom: 0; }
.saved-gift-form .form-actions { margin-top: 1rem; }

/* — Dashboard saved count badge */
.birthday-card__saved-count {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--sage);
}

/* ============================================================
   CURATOR INSIGHTS
   ============================================================ */

.insights-section {
  margin-bottom: 2rem;
}

.insights-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.insights-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.insights-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.insights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.insights-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.insights-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.insights-url {
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.insights-no-promote {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.insights-description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.insights-empty {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.insights-footer {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.gift-list-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  font-style: italic;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--cream);
  border-radius: 12px;
  margin-top: 1.5rem;
}

.empty-state__headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  max-width: 320px;
  margin-bottom: 0.75rem;
}

.empty-state__body {
  color: var(--muted);
  max-width: 340px;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ============================================================
   ONBOARDING
   ============================================================ */

.onboarding-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 5rem;
}

.onboarding-page h1 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  max-width: 460px;
  margin-bottom: 0.75rem;
}

.onboarding-page p {
  max-width: 360px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.onboarding-skip {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.onboarding-skip:hover { color: var(--brown) !important; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

.privacy-page h1 { margin-bottom: 1rem; }
.privacy-page__intro { font-size: 1.05rem; margin-bottom: 2rem; }
.privacy-page__section { margin-bottom: 2rem; }
.privacy-page__section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.privacy-page__section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.site-footer a { color: var(--muted); font-weight: 600; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .page-container > *,
  .signin-page > *,
  .signup-page > *,
  .onboarding-page > * { animation: none; }
}

.page-container > *,
.signin-page > *,
.signup-page > *,
.onboarding-page > * {
  animation: fadeUp 0.4s ease both;
}

.page-container > *:nth-child(2),
.signin-page > *:nth-child(2),
.signup-page > *:nth-child(2) { animation-delay: 0.06s; }

.page-container > *:nth-child(3),
.signin-page > *:nth-child(3),
.signup-page > *:nth-child(3) { animation-delay: 0.12s; }

.page-container > *:nth-child(4) { animation-delay: 0.18s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 400px) {
  .page-container { padding: 1.25rem 0.75rem 4rem; }
  .form-card { padding: 1.5rem 1rem; }
  .child-actions-row { flex-direction: column; }
}
