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

:root {
  --font-sans: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
  --body-bg: #ffffff;
  --body-fog: radial-gradient(circle at 10% 20%, rgba(245, 149, 0, 0.3), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(248, 192, 90, 0.4), transparent 35%);
  --section-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.7);
  --text-primary: #2f1a08;
  --text-muted: rgba(41, 30, 23, 0.7);
  --accent: #f5a623;
  --accent-soft: #ffeedb;
  --shadow-soft: 0 25px 45px rgba(15, 20, 45, 0.12);
  --card-glow: 0 0 35px rgba(245, 166, 35, 0.28);
  --card-border: rgba(255, 255, 255, 0.9);
  --link-color: #ca6500;
  --hero-gradient: linear-gradient(155deg, rgba(255, 207, 152, 0.96), rgba(255, 255, 255, 0.05));
  --body-line: #ffe1b3;
  --process-ring: rgba(255, 170, 56, 0.35);
  --input-border: rgba(20, 20, 20, 0.25);
  --input-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body[data-theme='dark'] {
  --body-bg: radial-gradient(circle at 20% 10%, rgba(5, 207, 176, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(22, 133, 255, 0.25), transparent 48%),
    #020617;
  --body-fog: radial-gradient(circle at 70% 20%, rgba(50, 203, 182, 0.18), transparent 45%),
    radial-gradient(circle at 30% 40%, rgba(5, 133, 255, 0.25), transparent 45%),
    linear-gradient(135deg, rgba(4, 24, 68, 0.9), rgba(2, 6, 23, 0.9));
  --section-bg: rgba(6, 18, 44, 0.95);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f8ff;
  --text-muted: rgba(195, 217, 233, 0.74);
  --accent: #5dd8c5;
  --accent-soft: rgba(93, 216, 197, 0.2);
  --shadow-soft: 0 30px 65px rgba(3, 9, 30, 0.8);
  --card-glow: 0 0 45px rgba(93, 216, 197, 0.45);
  --card-border: rgba(255, 255, 255, 0.15);
  --link-color: #7be9d1;
  --hero-gradient: linear-gradient(135deg, rgba(2, 35, 78, 0.95), rgba(21, 97, 163, 0.6));
  --body-line: rgba(142, 226, 214, 0.25);
  --process-ring: rgba(93, 216, 197, 0.25);
  --input-border: rgba(255, 255, 255, 0.25);
  --input-shadow: 0 20px 40px rgba(3, 9, 30, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--body-fog);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4vw;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow-soft);
  z-index: 10;
  margin: 1rem auto;
  max-width: 1260px;
  height: 70px;
}

body[data-theme='dark'] .site-header {
  background: rgba(4, 10, 30, 0.82);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-family: var(--font-display);
}

.site-brand > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-eyebrow,
.nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
}

.nav-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  margin: 0;
  color: var(--text-muted);
}

.nav-title {
  font-size: 1.05rem;
  margin: 0;
  display: block;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-tools {
  display: flex;
  gap: 0.6rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(1px) saturate(10%);
  padding-top: 4.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 25;
  border-radius: 25px;
}

.mobile-nav.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__panel {
  position: relative;
  background: var(--section-bg);
  border-radius: 28px;
  padding: 2rem;
  width: min(360px, 85vw);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(10, 14, 35, 0.65);
  backdrop-filter: blur(10px) saturate(200%);
  z-index: 2;
  transform: translateY(-22px);
  opacity: 10;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav__panel::-webkit-scrollbar {
  width: 5px;
}

.mobile-nav__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}



.mobile-nav__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-nav__links {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav__links a {
  color: var(--text-primary);
  font-size: 1.1rem;
  text-decoration: none;
}



.theme-toggle--mobile {
  margin-top: 1.5rem;
  width: 100%;
}

.theme-toggle,
.cta {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.nav-menu-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
  text-indent: -9999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav-menu-button::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.nav-menu-button:hover,
.nav-menu-button:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 20, 45, 0.35);
}

.nav-menu-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 216, 197, 0.35), 0 16px 40px rgba(15, 20, 45, 0.25);
}

main {
  padding: 0 4vw 3rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 1260px;
  margin: 0 auto 3rem;
}

.hero {
  margin-top: 0.5rem;
  background: var(--hero-gradient);
  border-radius: 32px;
  padding: clamp(2.5rem, 4vw, 3.25rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.build-hero {
  max-width: 720px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  margin: 0.2rem 0 0.6rem;
  color: var(--text-primary);
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  margin: 0.3rem 0 0.6rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-cta-row {
  display: flex;
  gap: 2rem;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--shadow-soft);
}

.hero-cta-row .cta {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-cta-row .cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 195, 113, 0.95), rgba(255, 98, 0, 0.8));
  transform: translateX(-110%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.theme-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.theme-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.theme-preview-panel {
  width: min(780px, 95vw);
  background: var(--section-bg);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  padding: clamp(1.5rem, 2vw, 2.25rem);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(35px) saturate(140%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-preview-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.15), 0 15px 35px rgba(0, 0, 0, 0.55);
}

.theme-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-preview-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-primary);
}

.theme-preview-copy p {
  margin: 0;
  color: var(--text-muted);
}

.theme-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.theme-preview-close:hover,
.theme-preview-close:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

body.theme-preview-open {
  overflow: hidden;
}

.hero-cta-row .cta-primary::before {
  transform: translateX(0);
  opacity: 0.8;
}

.hero-cta-row .cta-secondary2::before {
  opacity: 0.6;
}

.hero-cta-row .cta-secondary2:hover::before {
  transform: translateX(0);
  opacity: 1;
}

.hero-cta-row .cta-secondary1::before {
  transform: translateX(110%);
  opacity: 0;
}

.hero-cta-row .cta-secondary1:hover::before {
  transform: translateX(0);
  opacity: 1;
}

.hero-cta-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-cta-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-cta-row--dashboard {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.hero-cta-row--dashboard .hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-cta-row .cta-primary {
  background: var(--accent);
  color: #0c0300;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--card-glow);
}

.hero-cta-row .cta-primary:hover {
  transform: scale(1.02);
}

.hero-cta-row .cta-secondary1,
.hero-cta-row .cta-secondary2 {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transition: transform 0.4s ease;
}

.hero-cta-row .cta-secondary1:not(:disabled):hover,
.hero-cta-row .cta-secondary2:not(:disabled):hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}


.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--section-bg);
  padding: 1.75rem;
  border-radius: 26px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(30px) saturate(150%);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.process-step::before {
  content: '';
  position: absolute;
  inset: -55% 20%;
  border-radius: 50%;
  background: var(--process-ring);
  filter: blur(8px);
  z-index: 0;
}

.process-step span {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
}

.process-step h3 {
  margin: 0.6rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
}

.process-step:hover,
.process-step:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(248, 210, 144, 0.15);
  box-shadow: 0 30px 60px rgba(15, 20, 45, 0.35);
}

.build-lab {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.build-journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.journey-step {
  background: var(--section-bg);
  border-radius: 24px;
  padding: 1.35rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.journey-step__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.build-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.form-shell {
  background: var(--section-bg);
  border-radius: 34px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field span {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 16px;
  border: 1px solid var(--input-border);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  color: var(--text-primary);
  box-shadow: var(--input-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field--story textarea {
  min-height: 160px;
}

.form-field select {
  background: rgba(255, 255, 255, 0.7);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

body[data-theme='dark'] .form-field input,
body[data-theme='dark'] .form-field textarea,
body[data-theme='dark'] .form-field select {
  background: rgba(9, 17, 34, 0.8);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px rgba(5, 13, 32, 0.7);
}

body[data-theme='dark'] .form-field input:focus,
body[data-theme='dark'] .form-field textarea:focus,
body[data-theme='dark'] .form-field select:focus {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
}

.field-note {
  font-size: 0.75rem;
  color: rgba(41, 30, 23, 0.55);
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.preview-card {
  background: var(--section-bg);
  border-radius: 26px;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.preview-card--soft {
  background: rgba(255, 255, 255, 0.15);
}

.pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
}

.pill--soft {
  background: rgba(245, 245, 245, 0.15);
}

.preview-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.preview-card p {
  margin: 0;
  color: var(--text-muted);
}

.preview-card #preview-message {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.preview-sender {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.glass-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.18);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.3rem;
  color: var(--text-muted);
}

.share-link {
  font-size: 0.9rem;
  color: var(--link-color);
  word-break: break-all;
  display: none;
}
.share-link[style*="display: block"] {
  display: block;
}

.wish-cards {
  display: none;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
}

.wish-cards::-webkit-scrollbar {
  height: 6px;
}
.wish-cards::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.wish-card {
  flex: 0 0 84%;
  min-width: 260px;
  background: var(--section-bg);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16), 0 8px 18px rgba(0,0,0,0.10);
  padding: 1.1rem;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wish-card::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--process-ring);
  filter: blur(12px);
  opacity: 0.12;
  pointer-events: none;
}

.wish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.wish-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.1;
  letter-spacing: 0.2em;
}

.wish-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.25;
}

.wish-card__badge {
  align-self: flex-start;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.wish-card__badge--active {
  background: #34d399;
}

.wish-card__badge--locked {
  background: #f87171;
}

.wish-card__badge--pending {
  background: #fbbf24;
  color: #1f2937;
}

.wish-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wish-card__actions button {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wish-card__actions button.primary {
  background: var(--accent);
  color: #0c0300;
}

.copy-card-link {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
}

.wish-card__actions button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.wish-card__actions-row {
  display: flex;
  gap: 0.5rem;
}

.wish-card__actions button:active {
  transform: translateY(1px);
}

.mobile-hint {
  display: none;
}

.theme-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.theme-intro h2 {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-family: var(--font-display);
}

.theme-intro p {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

.theme-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.theme-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.theme-row--primary {
  justify-content: space-between;
}

.theme-row--secondary {
  justify-content: center;
}

.theme-card {
  position: relative;
  padding: 1.8rem;
  border-radius: 28px;
  color: #fff;
  min-height: 220px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 28%;
  min-width: 220px;
  max-width: 320px;
}

.theme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 4, 9, 0.05), rgba(1, 4, 9, 0.65));
  opacity: 0;
  transition: opacity 0.7s ease;
  mix-blend-mode: screen;
}

.theme-card span {
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.theme-card p {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  max-width: 90%;
}

.theme-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: var(--card-glow);
  border-color: rgba(255, 255, 255, 0.6);
}

.theme-card:hover::after {
  opacity: 1;
  animation: shimmer 2.5s ease infinite;
}

.dashboard-hero {
  max-width: 960px;
}

.profile-panel {
  background: var(--section-bg);
  border-radius: 36px;
  border: 1px solid var(--glass-border);
  padding: 2rem;
  box-shadow: var(--card-glow);
}

.profile-summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.summary-details {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-actions button {
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
}

.profile-edit-panel {
  margin-top: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  background: var(--section-bg);
  box-shadow: var(--card-glow);
  display: none;
  transition: opacity 0.3s ease;
}

.profile-edit-panel.is-visible {
  display: block;
}

.profile-edit-panel form {
  display: grid;
  gap: 0.9rem;
}

.profile-edit-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-edit-panel input {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-panel input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25);
}

.profile-edit-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-edit-actions .ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .profile-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-edit-panel {
    margin-top: 1rem;
    padding: 1.25rem;
  }

  .profile-edit-actions {
    justify-content: stretch;
  }

  .profile-edit-actions .cta,
  .profile-edit-actions .ghost {
    flex: 1;
  }
}

.site-header .ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
}

.dashboard-wishes .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-wrapper {
  border-radius: 28px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);

}

.wishes-list {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.wishes-list th,
.wishes-list td {
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wishes-list tbody tr:last-child td {
  border-bottom: none;
}

.wishes-list td:last-child {
  display: flex;
  gap: 0.6rem;
}

.wishes-list button {
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.wishes-list .primary {
  background: var(--accent);
  color: #0c0300;
  box-shadow: var(--card-glow);
}

.wishes-list .ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  position: relative;
  background: var(--section-bg);
  border-radius: 32px;
  padding: clamp(1.5rem, 2vw, 2.5rem);
  width: min(520px, 90vw);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-form input,
.auth-form button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35);
}

.auth-form button {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-form button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--card-glow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.message {
  font-size: 0.9rem;
  min-height: 1.4rem;
}

.hero-note {
  max-width: 420px;
}

.footer-panel {
  margin-top: 3rem;
  padding: 3rem 4vw 2.5rem;
}
footer {
  margin-top: 4rem;
  padding: 3rem 4vw 2.5rem;
  border-radius: 36px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body[data-theme='dark'] footer {
  background: linear-gradient(160deg, rgba(4, 10, 30, 0.95), rgba(10, 22, 48, 0.78));
  border-color: rgba(255, 255, 255, 0.15);
}

footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -10%, rgba(93, 216, 197, 0.28), transparent 45%), radial-gradient(circle at 80% 110%, rgba(245, 166, 35, 0.2), transparent 40%);
  filter: blur(14px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

footer strong,
.footer-value {
  font-family: var(--font-display);
}

.footer-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  border-radius: 28px;
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body[data-theme='dark'] .footer-hero {
  background: rgba(7, 20, 48, 0.65);
}

.footer-hero__text h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.footer-hero__text p {
  margin: 0;
  color: var(--text-muted);
  max-width: 45ch;
}

.footer-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.footer-card {
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--section-bg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.footer-card::after {
  content: '';
  position: absolute;
  inset: 10% 15% auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12), transparent 65%);
  z-index: 0;
}

.footer-card > * {
  position: relative;
  z-index: 1;
}

.footer-label {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-value {
  font-size: 1.3rem;
  margin: 0;
}

.footer-card:hover,
.footer-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.4);
}

.footer-card p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
}

.footer-links .footer-made {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--link-color);
  font-weight: 500;
}

.site-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  width: 100%;
}

.footer-hero__cta .cta {
  align-self: flex-start;
  padding: 0.85rem 1.4rem;
}

.cta {
  font-weight: 500;
}

@keyframes shimmer {
  0% {
    transform: translateX(-40%);
  }
  50% {
    transform: translateX(40%);
  }
  100% {
    transform: translateX(-40%);
  }
}

@keyframes floatPulse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-tools {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 2.4rem;
  }
  .hero-cta-row {
    flex-direction: column;
  }
  .theme-row {
    justify-content: center;
  }
  footer {
    padding: 2.25rem 4vw 2rem;
  }
  .footer-hero {
    flex-direction: column;
  }
  .footer-hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .build-stage {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    order: -1;
  }
  .actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-tools {
    justify-content: flex-end;
  }

  .site-tools .theme-toggle {
    display: none;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    line-height: 1.3;
  }

  .build-hero {
    display: none;
  }

  .dashboard-hero {
    display: none;
  }

  .build-stage {
    grid-template-columns: 1fr;
  }

  .build-stage .form-shell {
    order: 1;
  }

  .build-stage .preview-panel {
    order: 2;
    margin-top: 1.25rem;
  }

  .footer-grid article {
    display: none;
  }

  .wish-table-wrapper {
    display: none;
  }

  .wish-cards {
    display: flex;
  }

  .mobile-hint {
    display: block;
  }
}

@media (max-width: 600px) {
  .site-header {
    border-radius: 20px;
  }

  .hero {
    padding: 2rem;
  }

  .hero-content,
  .demo-preview {
    padding: 1.5rem;
  }

  .theme-card {
    min-height: 200px;
  }

  .wish-card {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  }
}
