:root {
    --ftd-green: #0B3D2E;
    --ftd-green-dark: #06281F;
    --ftd-green-light: rgba(255, 255, 255, 0.055);
    --ftd-gold: #F4C430;
    --ftd-gold-light: rgba(244, 196, 48, 0.13);
    --ftd-cream: #F7F1E3;
    --ftd-charcoal: #F7F1E3;
    --ftd-slate: rgba(247, 241, 227, 0.76);
    --ftd-muted: rgba(247, 241, 227, 0.54);
    --ftd-border: rgba(255, 255, 255, 0.10);
    --ftd-white: rgba(255, 255, 255, 0.045);
    --success: #4ADE80;
    --warning: #FBBF24;
    --danger: #FB7185;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius: 16px;
    --radius-sm: 10px;
    --gold-gradient: linear-gradient(135deg, #F4C430, #FFE680, #D6A441);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 50% -10%, #0B3D2E 0, #06281F 42%, #041D17 100%);
    color: var(--ftd-cream);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: rgba(244, 196, 48, 0.28); color: #fff; }
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--ftd-green-dark); }
  ::-webkit-scrollbar-thumb { background: var(--ftd-gold); border-radius: 4px; }
  button, input, select, textarea { font: inherit; }
  button { color: inherit; }
  .font-display { font-family: 'Playfair Display', Georgia, serif; }

  .login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-y: auto;

  padding: 32px 24px 40px;

  background: radial-gradient(
    circle at top,
    #0B3D2E,
    #06281F 62%
  );

  transition: opacity .6s ease, visibility .6s;
}

.login-screen.hidden {
  display: none !important;
}

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

  margin: auto 0;

  padding: 32px 48px 40px;

  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(244, 196, 48, .18);
  border-radius: var(--radius);

  box-shadow: var(--shadow-lg);

  text-align: center;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
  .login-logo { margin-bottom: 22px; }
  .login-logo i { display: block; margin-bottom: 16px; font-size: 52px; color: var(--ftd-gold); }
  .login-logo h1, .brand-text, .wedding-hero h2, .selected-song .song-title {
    font-family: 'Playfair Display', serif; background: var(--gold-gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .login-logo h1 { font-size: 28px; font-weight: 700; }
  .login-logo p { margin-top: 6px; color: var(--ftd-muted); font-size: 15px; }
  .login-error { display: none; margin: 0 0 18px; padding: 11px 14px; color: #fecdd3; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .3); border-radius: var(--radius-sm); font-size: 13px; }
  .login-error.show { display: block; }
  .forgot-link { display: inline-block; margin-top: 18px; color: var(--ftd-gold); font-size: 13px; text-decoration: none; }
  .forgot-link:hover { color: #FFE680; text-decoration: underline; }

  .form-group { margin-bottom: 20px; text-align: left; }
  .form-group label { display: block; margin-bottom: 6px; color: var(--ftd-cream); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
  .form-group input, .form-group select, .form-group textarea, .song-input-row input {
    width: 100%; padding: 14px 16px; color: var(--ftd-cream); caret-color: var(--ftd-gold);
    background: rgba(1, 18, 14, .55); border: 1px solid var(--ftd-border); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .form-group textarea { min-height: 110px; resize: vertical; }
  .form-group input::placeholder, .form-group textarea::placeholder, .song-input-row input::placeholder { color: rgba(247, 241, 227, .34); }
  .form-group select { color-scheme: dark; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .song-input-row input:focus {
    outline: none; border-color: var(--ftd-gold); background: rgba(1, 18, 14, .72);
    box-shadow: 0 0 0 4px rgba(244, 196, 48, .11);
  }
  input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: #F7F1E3; -webkit-box-shadow: 0 0 0 1000px #092c22 inset; }

  .btn, .cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px;
    border: 0; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  }
  .btn-primary, .btn-gold, .cta-btn { background: var(--gold-gradient); color: #06281F; box-shadow: 0 8px 24px rgba(244, 196, 48, .14); }
  .btn-primary { width: 100%; }
  .btn-primary:hover, .btn-gold:hover, .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 196, 48, .24); }
  .btn-outline { color: var(--ftd-cream); background: rgba(255, 255, 255, .03); border: 1px solid var(--ftd-border); }
  .btn-outline:hover { color: var(--ftd-gold); border-color: rgba(244, 196, 48, .55); background: var(--ftd-gold-light); }
  .btn-sm { padding: 10px 18px; font-size: 13px; }

  /* =========================================================
   PORTAL APP
   ========================================================= */

.app {
  display: none !important;
}

.app.active {
  display: flex !important;
  flex-direction: column;

  position: fixed !important;
  inset: 0 !important;

  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;

  z-index: 999999 !important;

  background: radial-gradient(
    circle at 50% -10%,
    #0B3D2E 0,
    #06281F 42%,
    #041D17 100%
  );

  overflow: hidden !important;
}

  .app-header {
    height: 82px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100; background: rgba(6, 40, 31, .88);
    border-bottom: 1px solid rgba(244, 196, 48, .14); box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .brand, .header-actions, .user-menu { display: flex; align-items: center; }
  .brand { position: absolute; left: 50%; gap: 12px; transform: translateX(-50%); }
  .header-logo-wrap { width: 240px; height: 68px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .header-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
  .brand-logo { display: block; width: auto; height: 44px; object-fit: contain; }
  .brand-text { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .brand-text small { display: block; color: var(--ftd-muted); -webkit-text-fill-color: var(--ftd-muted); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .5px; }
  .header-actions { position: relative; gap: 16px; margin-left: auto; }
  .header-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--ftd-slate); background: rgba(255,255,255,.04); border: 1px solid var(--ftd-border); border-radius: 50%; cursor: pointer; transition: .2s; }
  .header-btn:hover, .user-menu:hover { color: var(--ftd-gold); border-color: rgba(244,196,48,.5); background: var(--ftd-gold-light); }
  .header-btn .badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--danger); border: 2px solid var(--ftd-green-dark); border-radius: 50%; font-size: 10px; font-weight: 700; }
  .notification-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--danger); border: 2px solid var(--ftd-green-dark); border-radius: 10px; font-size: 10px; font-weight: 700; }
  .notification-panel { position: absolute; top: calc(100% + 14px); right: 0; width: min(360px, calc(100vw - 32px)); color: var(--ftd-cream); -webkit-text-fill-color: currentColor; background: rgba(6,40,31,.98); border: 1px solid rgba(244,196,48,.25); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; }
  .notification-panel[hidden] { display: none; }
  .notification-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--ftd-border); }
  .notification-panel-header button { width: 30px; height: 30px; padding: 0; color: var(--ftd-muted); -webkit-text-fill-color: currentColor; background: transparent !important; border: 0; border-radius: 50%; cursor: pointer; }
  .notification-panel-header button:hover { color: var(--ftd-gold); }
  .notification-list { max-height: 360px; overflow-y: auto; }
  .notification-item { padding: 15px 18px; border-bottom: 1px solid var(--ftd-border); }
  .notification-item:last-child { border-bottom: 0; }
  .notification-item-title { margin-bottom: 4px; color: var(--ftd-cream); font-size: 14px; font-weight: 700; }
  .notification-item-message, .notification-item-date { color: var(--ftd-muted); font-size: 12px; line-height: 1.5; }
  .notification-item-date { margin-top: 6px; color: var(--ftd-gold); }
  .notification-empty { padding: 28px 18px; color: var(--ftd-muted); text-align: center; font-size: 13px; }
  .user-menu { gap: 10px; padding: 6px 12px 6px 6px; color: var(--ftd-cream); -webkit-text-fill-color: currentColor; background: transparent !important; border: 1px solid var(--ftd-border); border-radius: 50px; appearance: none; -webkit-appearance: none; cursor: pointer; transition: .2s; }
  .user-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #06281F; background: var(--gold-gradient); border-radius: 50%; font-size: 13px; font-weight: 700; }
  .logout-label { font-size: 13px; font-weight: 600; }

  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; justify-content: space-around; padding: 8px 0 max(20px, env(safe-area-inset-bottom)); background: rgba(6, 40, 31, .92); border-top: 1px solid rgba(244,196,48,.14); box-shadow: 0 -10px 35px rgba(0,0,0,.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; padding: 6px 16px; color: var(--ftd-muted); background: none; border: 0; font-size: 11px; font-weight: 500; cursor: pointer; transition: .2s; }
  .nav-item i { font-size: 22px; }
  .nav-item:hover, .nav-item.active { color: var(--ftd-gold); }
  .nav-item.active::after { content: ''; position: absolute; top: -8px; width: 40px; height: 3px; background: var(--gold-gradient); border-radius: 2px; box-shadow: 0 0 14px rgba(244,196,48,.5); }

  #app .content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;

  flex: 1;
  min-height: 0;

  padding: 24px 32px 105px;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
  .page { display: none; }
  .page.active { display: block; animation: fadeIn .3s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .wedding-hero { padding: 32px 0 24px; text-align: center; }
  .wedding-hero h2 { margin-bottom: 8px; font-size: 32px; }
  .wedding-hero p { color: var(--ftd-muted); font-size: 15px; }
  .countdown-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 20px; color: var(--ftd-gold); background: var(--ftd-gold-light); border: 1px solid rgba(244,196,48,.3); border-radius: 50px; font-size: 14px; font-weight: 700; }

  .card { margin-bottom: 20px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--ftd-border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .3s, border-color .3s, box-shadow .3s; }
  .card:hover { transform: translateY(-3px); border-color: rgba(244,196,48,.30); box-shadow: 0 16px 50px rgba(244,196,48,.08); }
  .card-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ftd-border); }
  .card-header h3 { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--ftd-cream); }
  .card-header h3 i { color: var(--ftd-gold); }
  .card-body { padding: 20px 24px; }

  .booking-list, .progress-list, .style-grid, .song-input-list, .package-grid { display: flex; flex-direction: column; }
  .booking-list { gap: 12px; }
  .booking-item, .song-card, .package-card { background: rgba(255,255,255,.025); border: 1px solid var(--ftd-border); transition: .2s; }
  .booking-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); }
  .booking-item:hover, .song-card:hover, .song-card.selected, .package-card:hover, .package-card.booked { background: var(--ftd-gold-light); border-color: rgba(244,196,48,.48); }
  .booking-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-sm); font-size: 20px; }
  .booking-icon.green { color: #86EFAC; background: rgba(74,222,128,.12); }
  .booking-icon.gold { color: var(--ftd-gold); background: var(--ftd-gold-light); }
  .booking-icon.gray { color: var(--ftd-muted); background: rgba(255,255,255,.05); }
  .booking-info { flex: 1; }
  .booking-info .name, .progress-text .title { color: var(--ftd-cream); font-size: 15px; font-weight: 600; }
  .booking-info .desc, .progress-text .desc { color: var(--ftd-muted); font-size: 13px; }
  .booking-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
  .booking-status .check { color: var(--success); }
  .booking-status .cross { color: var(--ftd-muted); }

  .progress-list { gap: 14px; }
  .progress-item, .style-item { display: flex; align-items: center; gap: 14px; }
  .progress-dot { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; font-size: 12px; }
  .progress-dot.done { color: #06281F; background: var(--success); }
  .progress-dot.pending { color: var(--ftd-gold); background: var(--ftd-gold-light); border: 2px solid var(--ftd-gold); }
  .progress-text, .style-info, .package-info { flex: 1; }
  .cta-section { padding: 24px; text-align: center; }
  .cta-btn { width: 100%; padding: 16px 32px; font-size: 16px; }

  .form-section { margin-bottom: 32px; }
  .form-section h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--ftd-gold); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-hint { margin-top: 6px; color: var(--ftd-muted); font-size: 13px; font-style: italic; }
  .song-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
  .song-card { position: relative; padding: 16px; border-radius: var(--radius-sm); cursor: pointer; }
  .song-card.selected::after { content: '\f00c'; position: absolute; top: 8px; right: 8px; color: var(--ftd-gold); font-family: 'Font Awesome 6 Free'; font-size: 14px; font-weight: 900; }
  .song-card .title { color: var(--ftd-cream); font-size: 14px; font-weight: 600; }
  .song-card .artist { margin-top: 2px; color: var(--ftd-muted); font-size: 13px; }
  .song-actions { display: flex; gap: 8px; margin-top: 10px; }
  .song-btn { flex: 1; padding: 8px; color: var(--ftd-slate); background: rgba(255,255,255,.035); border: 1px solid var(--ftd-border); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; }
  .song-btn:hover { color: var(--ftd-gold); border-color: rgba(244,196,48,.5); }
  .selected-song { margin-bottom: 24px; padding: 20px 24px; color: var(--ftd-cream); background: linear-gradient(135deg, rgba(11,61,46,.95), rgba(6,40,31,.95)); border: 1px solid rgba(244,196,48,.28); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
  .selected-song .label { margin-bottom: 4px; color: var(--ftd-muted); font-size: 13px; }
  .selected-song .song-title { font-size: 24px; font-weight: 600; }
  .selected-song .song-artist { margin-top: 4px; color: var(--ftd-slate); font-size: 15px; }

  .style-grid { gap: 16px; }
  .style-item { gap: 16px; }
  .style-info .name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
  .style-info .desc { color: var(--ftd-muted); font-size: 13px; }
  .fire-rating { display: flex; gap: 6px; }
  .fire-btn { padding: 2px; background: none; border: 0; font-size: 22px; opacity: .3; cursor: pointer; transition: .2s; filter: grayscale(1); }
  .fire-btn.active { opacity: 1; filter: none; }
  .fire-btn:hover { transform: scale(1.2); opacity: 1; }
  .song-input-list { gap: 10px; }
  .song-input-row { display: flex; align-items: center; gap: 10px; }
  .song-input-row input { flex: 1; padding: 12px 16px; }
  .song-input-row button { width: 44px; height: 44px; color: var(--danger); background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.22); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; }
  .song-input-row button:hover { background: rgba(251,113,133,.16); border-color: var(--danger); }
  .add-song-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 20px; color: var(--ftd-gold); background: none; border: 1px dashed rgba(244,196,48,.38); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
  .add-song-btn:hover { background: var(--ftd-gold-light); border-color: var(--ftd-gold); }

  .timeline { position: relative; padding-left: 36px; }
  .timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 10px; width: 2px; background: linear-gradient(var(--ftd-gold), rgba(244,196,48,.12)); }
  .timeline-item { position: relative; padding-bottom: 24px; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-dot { position: absolute; top: 2px; left: -36px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; font-size: 10px; }
  .timeline-dot.ceremony { color: var(--ftd-gold); background: var(--ftd-gold-light); }
  .timeline-dot.food { color: #93C5FD; background: rgba(59,130,246,.14); }
  .timeline-dot.band { color: #86EFAC; background: rgba(74,222,128,.14); }
  .timeline-dot.party { color: #F9A8D4; background: rgba(236,72,153,.14); }
  .timeline-dot.finish { color: var(--ftd-muted); background: rgba(255,255,255,.06); }
  .timeline-content h4 { margin-bottom: 2px; font-size: 15px; font-weight: 600; }
  .timeline-content p { color: var(--ftd-muted); font-size: 13px; }
  .timeline-time { margin-bottom: 4px; color: var(--ftd-gold); font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700; }

  .package-grid { gap: 16px; }
  .package-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--radius); }
  .package-img { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ftd-gold); background: linear-gradient(135deg, #0B3D2E, #06281F); border: 1px solid rgba(244,196,48,.22); border-radius: var(--radius-sm); font-size: 28px; }
  .package-info h4 { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
  .package-info p { margin-bottom: 10px; color: var(--ftd-muted); font-size: 14px; }
  .package-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; }
  .package-badge.booked { color: #86EFAC; background: rgba(74,222,128,.13); border: 1px solid rgba(74,222,128,.2); }
  .package-badge.available { color: var(--ftd-gold); background: var(--ftd-gold-light); border: 1px solid rgba(244,196,48,.2); }
  .package-action { margin-top: 12px; }

  .faq-item { border-bottom: 1px solid var(--ftd-border); }
  .faq-item:last-child { border-bottom: 0; }
  .faq-question { width: 100%; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ftd-cream); background: none; border: 0; text-align: left; font-weight: 600; cursor: pointer; }
  .faq-question i { color: var(--ftd-gold); transition: transform .25s; }
  .faq-item.open .faq-question i { transform: rotate(180deg); }
  .faq-answer { display: none; padding: 0 0 18px; color: var(--ftd-muted); font-size: 14px; }
  .faq-item.open .faq-answer { display: block; }

  .payment-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ftd-border); }
  .payment-row:last-child { border-bottom: 0; }
  .payment-row.paid { opacity: .68; }
  .payment-row.paid .payment-amount, .payment-row.paid .payment-status { color: var(--success); }
  .payment-info { flex: 1; }
  .payment-info h4 { font-size: 15px; font-weight: 600; }
  .payment-info p { color: var(--ftd-muted); font-size: 13px; }
  .payment-amount { color: var(--ftd-gold); font-family: 'Playfair Display', serif; font-weight: 700; }
  .payment-status { color: var(--warning); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

  .contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-card { padding: 20px; color: var(--ftd-cream); background: rgba(255,255,255,.03); border: 1px solid var(--ftd-border); border-radius: var(--radius-sm); text-align: center; text-decoration: none; transition: .2s; }
  .contact-card:hover { color: var(--ftd-gold); background: var(--ftd-gold-light); border-color: rgba(244,196,48,.4); transform: translateY(-2px); }
  .contact-card i { display: block; margin-bottom: 8px; color: var(--ftd-gold); font-size: 24px; }

  .toast { position: fixed; right: 24px; bottom: 104px; z-index: 2000; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 48px); padding: 14px 18px; color: var(--ftd-cream); background: rgba(6,40,31,.96); border: 1px solid rgba(244,196,48,.28); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(16px); transition: .3s; }
  .toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .toast i { color: var(--success); }

  @media (max-width: 700px) {
    .app-header { height: 70px; padding: 0 16px; }
    .header-logo-wrap { width: 180px; height: 54px; }
    .brand-logo { height: 38px; }
    .brand-text { font-size: 17px; }
    .brand-text small, .user-menu span { display: none; }
    .header-actions { gap: 8px; }
    .user-menu { padding: 4px; border: 0; }
    .content { padding: 18px 16px 108px; }
    .wedding-hero { padding: 24px 0 20px; }
    .wedding-hero h2 { font-size: 28px; }
    .form-row, .song-grid, .contact-grid { grid-template-columns: 1fr; }
    .package-card { flex-direction: column; }
    .package-img { width: 100%; height: 100px; }
    .nav-item { padding: 6px 9px; }
    .login-card { padding: 32px 24px 36px; }
    .card-header, .card-body { padding-left: 18px; padding-right: 18px; }
    .booking-item { align-items: flex-start; }
    .booking-status { margin-left: auto; }
    .style-item { align-items: flex-start; flex-direction: column; }
  }

  @media (max-width: 420px) {
    .nav-item { font-size: 10px; }
    .nav-item i { font-size: 20px; }
    .song-input-row { align-items: stretch; }
    .payment-row { align-items: flex-start; flex-wrap: wrap; }
    .toast { right: 16px; bottom: 98px; max-width: calc(100% - 32px); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }
/* =========================================================
   HIDE SQUARESPACE DEFAULT HEADER
   ========================================================= */

.Header,
#header,
.squarespace-header,
.site-header,
header.Header,
.header-announcement-bar,
.sqs-announcement-bar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}


/* =========================================================
   HIDE SQUARESPACE DEFAULT FOOTER
   ========================================================= */

.Footer,
#footer,
footer.Footer,
.squarespace-footer,
.site-footer,
#siteFooter,
#footer-sections,
.footer-sections,
.footer,
.sqs-footer,
.sqs-footer-block,
.sqs-layout-footer,
[data-section-id*="footer"],
[data-test="footer"],
[data-controller="Footer"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
   REMOVE EXTRA SQUARESPACE PAGE HEIGHT / SCROLL SPACE
   ========================================================= */

html,
body {
  min-height: 0 !important;
  height: auto !important;
}

.app {
  min-height: 0 !important;
  height: auto !important;
}

.content {
  min-height: 0 !important;
  height: auto !important;
}

/* =========================================================
   FIX SQUARESPACE EXTRA SCROLL SPACE AROUND PORTAL
   ========================================================= */

/* Portal itself should only be as tall as its active content */
#app,
#app.active,
#app .content,
#app .page.active {
  min-height: 0 !important;
  height: auto !important;
}

/* Squarespace section containing the portal */
.page-section:has(#app),
section[data-section-id]:has(#app),
[data-section-id]:has(#app) {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Squarespace content wrappers */
.page-section:has(#app) > .content-wrapper,
section[data-section-id]:has(#app) > .content-wrapper,
[data-section-id]:has(#app) .content-wrapper {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Fluid Engine is usually the part creating the excess height */
.page-section:has(#app) .fluid-engine,
section[data-section-id]:has(#app) .fluid-engine,
[data-section-id]:has(#app) .fluid-engine {
 display: block !important;
 min-height: 0 !important;
  height: auto !important;
  grid-template-rows: auto !important;
}

/* Code block wrappers */
.sqs-block:has(#app),
.sqs-block-code:has(#app),
.sqs-block-content:has(#app),
.code-block:has(#app) {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove inherited Squarespace block positioning where possible */
.sqs-block:has(#app) {
  align-self: start !important;
}
@media (max-height: 800px) {
  .login-screen {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .login-card {
    margin: 0;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .login-logo {
    margin-bottom: 18px;
  }

  .login-logo img {
    height: 78px !important;
  }

  .form-group {
    margin-bottom: 16px;
  }
}
/* Login text colours for dark theme */
.login-logo > p {
  color: var(--ftd-gold) !important;
}

#loginStep1 a,
#loginStepForgot a,
#loginStepError a {
  color: var(--ftd-gold) !important;
}

#loginStep1 a:hover,
#loginStepForgot a:hover,
#loginStepError a:hover {
  color: #FFE680 !important;
}
/* =========================================================
   HARD FIX: SQUARESPACE FLUID ENGINE EXCESS HEIGHT
   ========================================================= */

/* Section containing the portal */
.page-section:has(#app),
section:has(#app),
[data-section-id]:has(#app) {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Squarespace section content */
.page-section:has(#app) .content-wrapper,
section:has(#app) .content-wrapper,
[data-section-id]:has(#app) .content-wrapper {
  min-height: 0 !important;
  height: auto !important;
}

/* Fluid Engine grid */
.page-section:has(#app) .fluid-engine,
section:has(#app) .fluid-engine,
[data-section-id]:has(#app) .fluid-engine {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
}

/* The actual Squarespace grid item / block */
.page-section:has(#app) .fe-block,
section:has(#app) .fe-block,
[data-section-id]:has(#app) .fe-block {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  grid-area: auto !important;
  transform: none !important;
}

/* Code block wrappers */
.page-section:has(#app) .sqs-block,
.page-section:has(#app) .sqs-block-content,
.page-section:has(#app) .code-block,
.page-section:has(#app) .sqs-block-code {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Portal sizing */
#app,
#app.active,
#app .content,
#app .page,
#app .page.active {
  min-height: 0 !important;
  height: auto !important;
}

/* Hidden app pages must contribute absolutely no height */
#app .page:not(.active) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
/* =========================================================
   FIX SQUARESPACE FLUID ENGINE HEIGHT AROUND PORTAL
   ========================================================= */

.page-section:has(#app),
.page-section:has(#loginScreen),
section[data-section-id]:has(#app),
section[data-section-id]:has(#loginScreen) {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.page-section:has(#app) .content-wrapper,
.page-section:has(#loginScreen) .content-wrapper,
section[data-section-id]:has(#app) .content-wrapper,
section[data-section-id]:has(#loginScreen) .content-wrapper {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.page-section:has(#app) .fluid-engine,
.page-section:has(#loginScreen) .fluid-engine,
section[data-section-id]:has(#app) .fluid-engine,
section[data-section-id]:has(#loginScreen) .fluid-engine {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-rows: none !important;
}

/* Remove Squarespace Fluid Engine positioning from the portal block */
.page-section:has(#app) .fe-block,
.page-section:has(#loginScreen) .fe-block,
section[data-section-id]:has(#app) .fe-block,
section[data-section-id]:has(#loginScreen) .fe-block {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Code block itself */
.sqs-block:has(#app),
.sqs-block:has(#loginScreen),
.sqs-block-code:has(#app),
.sqs-block-code:has(#loginScreen),
.sqs-block-content:has(#app),
.sqs-block-content:has(#loginScreen) {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
