/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --color-primary:          #0b4f6c;
  --color-primary-lighten:  #1a7caa;
  --color-primary-darken:   #083a50;
  --color-primary-contrast: #ffffff;
  --color-primary-glow:     rgba(11,79,108,0.35);
  --color-primary-tint:     #edf6fb;
  --color-secondary:        #f4a935;
  --color-secondary-lighten:#f8c06a;
  --color-tertiary:         #4ecdc4;
  --color-success:          #22c55e;
  --color-success-tint:     rgba(34,197,94,0.15);
  --color-warning:          #f59e0b;
  --color-error:            #ef4444;
  --color-gray-50:          #f8fafc;
  --color-gray-100:         #f1f5f9;
  --color-gray-200:         #e2e8f0;
  --color-gray-300:         #cbd5e1;
  --color-gray-400:         #94a3b8;
  --color-gray-500:         #64748b;
  --color-gray-600:         #475569;
  --color-gray-900:         #0f172a;
  --color-bg:               #f8fafc;
  --color-surface:          #ffffff;
  --color-border:           #e2e8f0;
  --color-text-primary:     #0f172a;
  --color-text-secondary:   #64748b;
  --color-text-muted:       #94a3b8;
  --color-text-light:       #cbd5e1;
  --font-display:           'Instrument Serif', Georgia, serif;
  --font-ui:                'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --radius-sm:   10px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 9999px;
  --shadow-1: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-3: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-4: 0 6px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-7: 0 12px 28px rgba(0,0,0,0.11), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-glow: 0 4px 14px rgba(11,79,108,0.35);
  --appbar-height: 60px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Blazor loading ────────────────────────────────────────────────────────── */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}
.loading-progress circle {
    fill: none;
    stroke: var(--color-gray-200);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--color-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 700;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "Laden"); }

#blazor-error-ui {
    background: #fefce8;
    bottom: 0; left: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--color-gray-200); border-radius: 3px; }

/* ── Typography helpers ────────────────────────────────────────────────────── */
.ng-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary);
}
.ng-display {
  font-family: var(--font-display);
  font-style: italic;
}
.ng-fw-600 { font-weight: 600; }
.ng-fw-700 { font-weight: 700; }
.ng-fw-800 { font-weight: 800; }
.ng-text-secondary { color: var(--color-text-secondary); }
.ng-text-muted     { color: var(--color-text-muted); }
.ng-text-success   { color: var(--color-success); }
.ng-text-danger    { color: var(--color-error); }
.ng-text-primary-color { color: var(--color-primary); }

/* ── AppBar ────────────────────────────────────────────────────────────────── */
.ng-appbar {
  height: var(--appbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}
.ng-appbar-spacer { flex: 1; }

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.ng-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ng-logo-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: -0.3px;
}
.ng-logo-mark span { color: var(--color-secondary); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.ng-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.ng-btn:disabled { opacity: 0.45; cursor: default; }
.ng-btn:not(:disabled):hover { opacity: 0.92; }
.ng-btn:not(:disabled):active { transform: scale(0.98); }

.ng-btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.ng-btn-secondary {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.ng-btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.ng-btn-outlined {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.ng-btn-danger {
  background: var(--color-error);
  color: #fff;
}
.ng-btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.ng-btn-xs {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.ng-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  color: var(--color-text-primary);
  font-size: 18px;
  justify-content: center;
}

/* ── Back button (circular) ────────────────────────────────────────────────── */
.ng-btn-back {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-gray-100);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-text-primary);
  transition: background 0.15s;
  flex-shrink: 0;
}
.ng-btn-back:hover { background: var(--color-gray-200); }

/* ── Status chips ──────────────────────────────────────────────────────────── */
.ng-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
}
.ng-chip-confirmed {
  color: #22c55e;
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.3);
}
.ng-chip-planning {
  color: #b07820;
  background: rgba(244,169,53,0.15);
  border-color: rgba(244,169,53,0.3);
}
.ng-chip-idea {
  color: #1a7caa;
  background: rgba(26,124,170,0.12);
  border-color: rgba(26,124,170,0.3);
}

/* ── Person avatars ────────────────────────────────────────────────────────── */
.ng-avatar {
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  flex-shrink: 0;
  font-family: var(--font-ui);
}
.ng-avatar-xs  { width: 24px; height: 24px; font-size: 9px; }
.ng-avatar-sm  { width: 28px; height: 28px; font-size: 10px; }
.ng-avatar-md  { width: 36px; height: 36px; font-size: 13px; }
.ng-avatar-lg  { width: 40px; height: 40px; font-size: 14px; }
.ng-avatar-xl  { width: 44px; height: 44px; font-size: 16px; }

.ng-avatar-stack { display: flex; }
.ng-avatar-stack .ng-avatar + .ng-avatar { margin-left: -8px; }
.ng-avatar-overflow {
  background: var(--color-gray-200);
  color: var(--color-text-secondary);
  font-size: 10px;
  margin-left: -8px;
}

/* ── Icon avatar (emoji box) ───────────────────────────────────────────────── */
.ng-icon-box {
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ng-icon-box-md { width: 44px; height: 44px; font-size: 22px; }
.ng-icon-box-lg { width: 52px; height: 52px; font-size: 24px; border-radius: var(--radius-lg); }

/* ── Stat card ─────────────────────────────────────────────────────────────── */
.ng-stat-card {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ng-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
  line-height: 1.2;
}
.ng-stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ── Days-until badge ──────────────────────────────────────────────────────── */
.ng-days-badge {
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.ng-days-badge-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-ui);
  line-height: 1.2;
}
.ng-days-badge-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Holiday card ──────────────────────────────────────────────────────────── */
.ng-holiday-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  display: block;
  color: inherit;
}
.ng-holiday-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-7);
}

.ng-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.ng-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.ng-holiday-card:hover .ng-card-image img {
  transform: scale(1.06);
}
.ng-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}
.ng-card-image-status {
  position: absolute;
  top: 12px; right: 12px;
}
.ng-card-image-title {
  position: absolute;
  bottom: 14px; left: 16px;
}
.ng-card-image-title .destination {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.ng-card-image-title .country {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin-top: 2px;
}

.ng-card-body { padding: 14px 16px; }
.ng-card-dates { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; }
.ng-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.ng-card-price-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}
.ng-card-price-pp {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 3px;
}
.ng-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* "Bekijken" hover button: ghost by default, solid on card hover */
.ng-card-view-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}
.ng-holiday-card:hover .ng-card-view-btn {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ── Add card ──────────────────────────────────────────────────────────────── */
.ng-add-card {
  border-radius: var(--radius-xl);
  border: 2px dashed var(--color-gray-300);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  min-height: 320px;
  color: var(--color-text-muted);
  transition: all 0.2s;
  text-decoration: none;
}
.ng-add-card:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  color: #6366f1;
}
.ng-add-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.ng-add-card:hover .ng-add-card-icon { background: #ede9fe; }
.ng-add-card-label { font-size: 14px; font-weight: 600; font-family: var(--font-ui); }
.ng-add-card-sub   { font-size: 12px; color: var(--color-text-light); }
.ng-add-card:hover .ng-add-card-sub { color: #a78bfa; }

/* ── Card grid ─────────────────────────────────────────────────────────────── */
.ng-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Home page ─────────────────────────────────────────────────────────────── */
.ng-page { min-height: 100vh; background: var(--color-bg); }

.ng-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 32px;
  align-items: center;
}
@media (max-width: 768px) {
  .ng-hero-grid { grid-template-columns: 1fr; }
}

.ng-hero-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin: 0 0 12px;
}
.ng-hero-sub {
  color: var(--color-text-secondary);
  font-size: 15px;
  max-width: 420px;
  line-height: 1.6;
  margin: 0;
}

/* ── Coming-up card (next holiday countdown) ───────────────────────────────── */
.ng-coming-up {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 200px;
  box-shadow: 0 12px 32px rgba(11,79,108,0.18);
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.ng-coming-up img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ng-coming-up-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,79,108,0.85) 0%, rgba(11,79,108,0.5) 60%, rgba(11,79,108,0.15) 100%);
}
.ng-coming-up-content {
  position: relative;
  padding: 20px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.ng-coming-up-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.ng-coming-up-destination {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.ng-coming-up-dates {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 3px;
}
.ng-coming-up-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.ng-coming-up-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ng-coming-up-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-ui);
}
.ng-coming-up-unit {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ng-coming-up-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background 0.15s;
}
.ng-coming-up-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Stats strip ───────────────────────────────────────────────────────────── */
.ng-stats-strip {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ── Section header ────────────────────────────────────────────────────────── */
.ng-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.ng-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

/* ── Main content container ────────────────────────────────────────────────── */
.ng-container {
  padding: 32px 24px 48px;
  max-width: 960px;
  margin: 0 auto;
}
.ng-container-sm {
  padding: 32px 24px 48px;
  max-width: 740px;
  margin: 0 auto;
}
.ng-container-wizard {
  padding: 32px 24px;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Detail page hero ──────────────────────────────────────────────────────── */
.ng-hero-section {
  position: relative;
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}
.ng-hero-section img {
  width: 100%; height: 100%; object-fit: cover;
}
.ng-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.ng-hero-back {
  position: absolute;
  top: 20px; left: 20px;
}
.ng-hero-status {
  position: absolute;
  top: 20px; right: 20px;
}
.ng-hero-content {
  position: absolute;
  bottom: 28px; left: 32px;
}
.ng-hero-title {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}
.ng-hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin-top: 4px;
  font-family: var(--font-ui);
}

.ng-hero-back-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  text-decoration: none;
}
.ng-hero-back-btn:hover { background: rgba(255,255,255,0.25); }

/* ── Detail stats bar ──────────────────────────────────────────────────────── */
.ng-stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
}
.ng-stats-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .ng-stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

.ng-detail-stat {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
}
.ng-detail-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}
.ng-detail-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.ng-tabs-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ng-tab-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.ng-tab-btn:hover { color: var(--color-text-secondary); }
.ng-tab-btn.active {
  font-weight: 700;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Cards (general) ───────────────────────────────────────────────────────── */
.ng-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ng-card-md { border-radius: var(--radius-md); }

/* ── List item cards ───────────────────────────────────────────────────────── */
.ng-list-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.ng-list-item:last-child { margin-bottom: 0; }

.ng-hotel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

/* ── Person card ───────────────────────────────────────────────────────────── */
.ng-person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Balance card ──────────────────────────────────────────────────────────── */
.ng-balance-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 16px;
}

/* ── People grid ───────────────────────────────────────────────────────────── */
.ng-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ng-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.ng-empty-state {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.ng-empty-icon {
  font-size: 36px;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 8px;
}

/* ── Stars ─────────────────────────────────────────────────────────────────── */
.ng-stars { color: var(--color-warning); font-size: 12px; }

/* ── Tab content panel ─────────────────────────────────────────────────────── */
.ng-tab-panel { padding: 0; }

/* ── Wizard AppBar ─────────────────────────────────────────────────────────── */
.ng-wizard-appbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: var(--appbar-height);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ng-wizard-title {
  flex: 1;
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text-primary);
}

/* ── Step indicator ────────────────────────────────────────────────────────── */
.ng-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ng-step-circle {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all 0.3s;
  background: var(--color-gray-200);
  color: var(--color-text-muted);
  border: none;
  cursor: default;
}
.ng-step-circle.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,79,108,0.4);
}
.ng-step-circle.completed {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}
.ng-step-line {
  width: 48px; height: 2px;
  background: var(--color-gray-200);
  transition: background 0.3s;
}
.ng-step-line.completed { background: var(--color-primary); }

/* ── Wizard form fields ────────────────────────────────────────────────────── */
.ng-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ng-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.ng-input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  outline: none;
  transition: border-color 0.15s;
}
.ng-input:focus { border-color: #6366f1; }
.ng-input::placeholder { color: var(--color-text-muted); }

.ng-select {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.ng-select:focus { border-color: #6366f1; }

/* 2-col grid for form */
.ng-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ng-form-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.ng-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Status picker (step 1 wizard) ─────────────────────────────────────────── */
.ng-status-picker {
  display: flex;
  gap: 8px;
}
.ng-status-option {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s;
  font-family: var(--font-ui);
}
.ng-status-option.active-idea {
  border-color: #1a7caa;
  background: rgba(26,124,170,0.10);
  color: #1a7caa;
}
.ng-status-option.active-planning {
  border-color: #b07820;
  background: rgba(201,144,42,0.12);
  color: #b07820;
}
.ng-status-option.active-confirmed {
  border-color: #3d8a5c;
  background: rgba(74,158,107,0.12);
  color: #3d8a5c;
}

/* ── Image selector ────────────────────────────────────────────────────────── */
.ng-image-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ng-image-option {
  width: 80px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color 0.15s;
}
.ng-image-option.selected { border-color: #6366f1; }
.ng-image-option img { width: 100%; height: 100%; object-fit: cover; }

.ng-image-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 160px;
  margin-top: 4px;
}
.ng-image-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Person add row ────────────────────────────────────────────────────────── */
.ng-person-add-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 4px;
}
.ng-person-add-row .ng-input { flex: 1; }
.ng-btn-add-person {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: #6366f1;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.ng-btn-add-person:hover { opacity: 0.88; }

/* ── Person list item ──────────────────────────────────────────────────────── */
.ng-person-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.ng-person-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ng-btn-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  display: flex; align-items: center;
}
.ng-btn-remove:hover { color: var(--color-error); }

/* ── Wizard preview card ───────────────────────────────────────────────────── */
.ng-preview-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-3);
  margin-bottom: 20px;
}
.ng-preview-hero {
  position: relative;
  height: 180px;
}
.ng-preview-hero img { width: 100%; height: 100%; object-fit: cover; }
.ng-preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.ng-preview-destination {
  position: absolute; bottom: 16px; left: 20px;
}
.ng-preview-destination-title {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 800;
}
.ng-preview-destination-country {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.ng-preview-body {
  background: #f5f3ff;
  padding: 16px 20px;
}
.ng-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ng-preview-divider {
  border: none;
  border-top: 1px solid #e0d9ff;
  margin: 12px 0;
}

/* ── Wizard nav ────────────────────────────────────────────────────────────── */
.ng-wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ── Avatar ring count ─────────────────────────────────────────────────────── */
.ng-avatar-count {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-gray-200);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--color-text-secondary);
  margin-left: -8px;
}

/* ── Inline flex helpers ───────────────────────────────────────────────────── */
.ng-row         { display: flex; }
.ng-row-center  { display: flex; align-items: center; }
.ng-row-between { display: flex; justify-content: space-between; align-items: center; }
.ng-col         { display: flex; flex-direction: column; }
.ng-gap-2       { gap: 8px; }
.ng-gap-3       { gap: 12px; }
.ng-gap-4       { gap: 16px; }
.ng-gap-6       { gap: 24px; }
.ng-flex-1      { flex: 1; }
.ng-mt-2        { margin-top: 8px; }
.ng-mt-3        { margin-top: 12px; }
.ng-mt-4        { margin-top: 16px; }
.ng-mb-2        { margin-bottom: 8px; }
.ng-mb-3        { margin-bottom: 12px; }
.ng-mb-4        { margin-bottom: 16px; }
.ng-mb-6        { margin-bottom: 24px; }
.ng-mb-8        { margin-bottom: 32px; }
.ng-mb-10       { margin-bottom: 40px; }
.ng-text-right  { text-align: right; }
