
:root {
  --ring: rgba(255,255,255,0.08);
  --bg-card: rgba(17, 24, 39, 0.6);
  --accent-1: #f472b6;
  --accent-2: #8b5cf6;
  --error-1: #f43f5e;
  --glass: rgba(255,255,255,0.06);
}

* { outline-offset: 2px; }
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ring);
  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 400px at -10% -20%, rgba(236, 72, 153, 0.12), transparent 50%),
              radial-gradient(800px 300px at 120% 50%, rgba(99, 102, 241, 0.12), transparent 60%);
  pointer-events: none;
}

.success-burst {
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,0.18), rgba(34,197,94,0.08));
  color: rgb(187 247 208);
  border: 1px solid rgba(34,197,94,0.25);
  box-shadow: 0 0 0 6px rgba(34,197,94,0.08), 0 10px 30px rgba(34,197,94,0.2);
  animation: pop-in 380ms cubic-bezier(.2,.7,.2,1) both, pulse 2.4s ease-in-out infinite;
}

/* Form UI (modern, no Tailwind build needed) */
.form-field { margin-bottom: .75rem; }
.form-field .form-label {
  display:block;
  color:#e2e8f0;
  font-size:.9rem;
  font-weight:600;
  margin-bottom:.5rem;
  letter-spacing:.02em;
}

.input-wrap {
  position: relative;
  border-radius: 16px;
  padding: 1px; /* gradient border frame */
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}
.input-wrap:focus-within {
  background: linear-gradient(90deg, rgba(244,114,182,0.6), rgba(139,92,246,0.6));
  box-shadow: 0 0 0 6px rgba(168,85,247,0.14);
}

.input-wrap .icon {
  position:absolute;
  left:.75rem;
  top:50%;
  transform: translateY(-50%);
  color:#94a3b8;
  pointer-events:none;
}

.input {
  display:block;
  width:100%;
  border:0;
  outline:0;
  border-radius: 15px;
  background: rgba(2,6,23,0.65);
  color:#fff;
  padding: .85rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 1px rgba(0,0,0,.2);
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.input:hover { background: rgba(2,6,23,0.7); }
.input:focus {
  background: rgba(2,6,23,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 0 rgba(0,0,0,0);
}

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

/* Better placeholder (Text Hints) */
.input::placeholder {
  color:#a8b1c4; /* softer but readable */
  opacity:1;
  font-size:.95rem;
  letter-spacing:.01em;
}
.input:focus::placeholder { color:#93a0ba; }

/* Error styling: highlight field if error message is visible */
.form-field:has(.msg:not(.hidden)) .input-wrap {
  background: linear-gradient(90deg, rgba(244,63,94,0.55), rgba(236,72,153,0.45));
  box-shadow: 0 0 0 6px rgba(244,63,94,0.12);
}
.form-field:has(.msg:not(.hidden)) .input {
  background: rgba(15,23,42,0.7);
}

/* Helper / error text */
.msg {
  display:block;
  margin-top:.35rem;
  font-size:.8rem;
  color:#fda4af; /* rose-300-ish */
}

/* Buttons (pure CSS) */
.btn-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.625rem 1rem;
  border-radius:.75rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color:#fff;
  font-weight:600;
  box-shadow: 0 10px 20px rgba(139,92,246,.3);
  border: 1px solid var(--ring);
  transition: filter .2s ease, transform .06s ease;
  text-decoration:none;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { filter: brightness(.95); transform: translateY(1px); }

.btn-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.625rem 1rem;
  border-radius:.75rem;
  background: rgba(255,255,255,0.06);
  color:#fff;
  font-weight:600;
  border: 1px solid var(--ring);
  transition: background .2s ease, transform .06s ease;
  text-decoration:none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-secondary:active { transform: translateY(1px); }
.btn-tertiary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem; border-radius: .75rem;
  background: rgba(30,41,59,.5); color: #cbd5e1;
  border: 1px dashed rgba(71,85,105,.6);
  transition: background .2s ease, transform .15s ease;
}
.btn-tertiary:hover { background: rgba(30,41,59,.65); transform: translateY(-1px); }
/* "How it works" cards */
.how-card {
  position:relative;
  border-radius:1rem;
  padding:1.5rem;
  background: var(--bg-card);
  border:1px solid var(--ring);
  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  height:100%;
}
.how-badge {
  position:absolute;
  top:-.75rem; left:-.75rem;
  width:2.5rem; height:2.5rem;
  display:grid; place-items:center;
  border-radius:.9rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color:#fff;
  font-weight:800;
}
.how-title {
  font-size:1.125rem;
  font-weight:700;
  margin-bottom:.25rem;
}
.how-text { color:#cbd5e1; }

/* Character counter style */
#wishlistCount {
  padding:.15rem .4rem;
  border-radius:.375rem;
  background: rgba(148,163,184,.12);
  color:#cbd5e1;
}

/* Subtle animated grid background */
.animated-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 32px);
  mask: radial-gradient(circle at 50% 30%, black, transparent 65%);
  animation: gridFloat 14s ease-in-out infinite alternate;
}
@keyframes gridFloat {
  0% { transform: translateY(0) scale(1); opacity: .9; }
  100% { transform: translateY(-12px) scale(1.02); opacity: 1; }
}

/* Newsletter preview frame */
.newsletter-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ring);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  background: rgba(5,8,22,0.6);
  backdrop-filter: blur(10px);
}

/* Glass helper */
.glass {
  background: var(--glass);
  border: 1px solid var(--ring);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Props + Testimonials */
.prop-card, .testimonial-card {
  border: 1px solid var(--ring);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 16px;
}
.prop-card h4 { font-weight: 700; margin-top: 8px; }
.prop-card p { color: #cbd5e1; font-size: 0.95rem; }
.testimonial-card p { color: #e2e8f0; }

/* FAQ details */
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ring);
}
.faq[open] summary {
  background: rgba(255,255,255,0.05);
}
.faq p {
  margin: 10px 12px 2px;
  color: #cbd5e1;
}

/* Before/After range style */
.ba-range {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  outline: none;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 10px rgba(6,182,212,0.5);
}
.ba-range::-moz-range-thumb {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
}

/* Before/After visual tweaks */
.before-bad {
  filter: grayscale(1) saturate(.2) contrast(.85) brightness(1.02);
}
.after-good {
  filter: saturate(1.4) contrast(1.12) brightness(1.06);
}
/* Animations */
@keyframes pop {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#toast.show { animation: pop .2s ease-out both; }
#modal .glass { animation: pop .2s ease-out both; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .input-wrap, .btn-primary, .btn-secondary { transition: none; }
}
