/* ============================================
   Iulia Rob Ditan's lash course site
   Palette: pink + white (Kiki Gloss style)
   ============================================ */

:root {
  --bg: #ffe6f0;
  --bg-soft: #ffd9e8;
  --bg-blush: #fce4ec;
  --bg-card: #ffffff;
  --pink-pale: #ffe1ea;
  --pink-soft: #ff9dba;
  --pink: #ff5c93;
  --pink-hot: #ff2e7e;
  --pink-deep: #d6336c;
  --pink-glow: rgba(255, 46, 126, 0.20);
  --pink-dim: rgba(255, 92, 147, 0.10);
  --text: #3a2530;
  --text-muted: #8e6d7a;
  --heading: #1c0e16;
  --border: rgba(214, 51, 108, 0.16);
  --border-soft: rgba(214, 51, 108, 0.08);
  --shadow: 0 16px 44px rgba(214, 51, 108, 0.10);
  --shadow-strong: 0 24px 60px rgba(214, 51, 108, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Decorative gradient blobs (very subtle on light bg) — slowly drifting */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 92, 147, 0.22), transparent 70%);
  top: -180px; left: -180px;
  animation: blobDriftA 22s ease-in-out infinite alternate;
}
body::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 157, 186, 0.26), transparent 70%);
  bottom: -250px; right: -200px;
  animation: blobDriftB 28s ease-in-out infinite alternate;
}

@keyframes blobDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 40px) scale(1.08); }
  100% { transform: translate(40px, 120px) scale(0.96); }
}
@keyframes blobDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, -50px) scale(1.06); }
  100% { transform: translate(-100px, 30px) scale(0.94); }
}

/* A third roaming blush in the mid layer (only behind main content, not fixed) */
.aurora {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 126, 0.12), transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate(-60%, -55%) scale(1); }
  50%  { transform: translate(-40%, -40%) scale(1.15); }
  100% { transform: translate(-55%, -65%) scale(0.92); }
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--heading);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
a { color: var(--pink-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink-hot); }

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ============ NAV ============ */
.nav {
  position: relative;
  z-index: 10;
  padding: 28px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { height: 1.5em; width: auto; display: block; }
/* Clickable logo -> home (used in nav, course page, and auth cards) */
.logo-home { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; transition: opacity 0.2s; }
.logo-home:hover { opacity: 0.75; }
.brand em { color: var(--pink-hot); font-style: italic; font-weight: 600; }
.brand span { color: var(--pink-hot); font-style: italic; }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--pink-hot); }
.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--pink-hot);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px var(--pink-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--pink-glow); }

/* ============ HERO ============ */
.hero {
  padding: 70px 0 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding: 30px 0 70px; }
}

.hero-tag {
  display: inline-block;
  padding: 8px 18px;
  background: var(--pink-pale);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--pink-deep);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
/* Highlighted, glowing bits inside the hero tag (course name + price) */
.tag-accent {
  color: var(--pink-hot);
  font-weight: 700;
  text-shadow: 0 0 10px var(--pink-glow), 0 0 4px rgba(255, 46, 126, 0.45);
}
.accent {
  background: linear-gradient(
    120deg,
    var(--pink-hot) 0%,
    var(--pink) 25%,
    #ff8fb3 45%,
    #fff 50%,
    #ff8fb3 55%,
    var(--pink) 75%,
    var(--pink-hot) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
  animation: accentShimmer 7s ease-in-out infinite;
}
@keyframes accentShimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 24px 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink));
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 14px 36px var(--pink-glow);
  animation: btnGradient 8s ease infinite, btnPulse 3.6s ease-in-out infinite;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnSheen 5s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px var(--pink-glow);
  color: #fff;
}
@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(255, 46, 126, 0.20); }
  50%      { box-shadow: 0 18px 44px rgba(255, 46, 126, 0.32); }
}
@keyframes btnSheen {
  0%   { left: -120%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}
.btn-ghost {
  background: #fff;
  color: var(--pink-deep);
  border: 1.5px solid var(--pink-soft);
}
.btn-ghost:hover { background: var(--pink-pale); color: var(--pink-hot); border-color: var(--pink); }

/* Cut-out subject on the page with an otherworldly glow */
.hero-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  margin-top: 54px; /* drop her below the nav so she/logo don't overlap the top */
}
/* Ethereal aura glowing behind her — blends her into the page */
.hero-photo::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(255, 92, 147, 0.42) 0%,
    rgba(255, 46, 126, 0.24) 34%,
    rgba(255, 157, 186, 0.12) 58%,
    transparent 72%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: auraPulse 7s ease-in-out infinite;
}
/* Faint brand monogram behind her — above the background, below the subject */
.hero-photo::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 104%;
  aspect-ratio: 987 / 1165;
  background: url('/static/img/iulia-logo.webp') center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
  /* fade out the lower part so only the top of the monogram shows above her */
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 70%);
          mask-image: linear-gradient(to bottom, #000 40%, transparent 70%);
}
.hero-photo img {
  width: 100%;
  height: auto;
  max-width: 540px;
  display: block;
  /* even rim-light around the circular vignette (softer, less pink) */
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.50))
    drop-shadow(0 0 20px rgba(255, 92, 147, 0.38))
    drop-shadow(0 0 48px rgba(255, 46, 126, 0.24));
}
@keyframes auraPulse {
  0%, 100% { opacity: 0.78; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}
.hero-photo .photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--pink-deep);
  padding: 30px; text-align: center;
  opacity: 0.6;
}
.hero-photo .photo-placeholder svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.6; }
.hero-photo .photo-placeholder small { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* ============ SECTION ============ */
.section { padding: 90px 0; position: relative; z-index: 1; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink-hot);
  margin-bottom: 16px;
  font-weight: 600;
}
.section-intro { max-width: 720px; margin-bottom: 48px; }
.section-intro p { color: var(--text-muted); font-size: 1.05rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  /* Photo below the paragraph on mobile, so it isn't stacked right under the hero photo */
  .about-photo { order: 2; }
}
.about-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink-pale);
  border: 4px solid #fff;
  position: relative;
  box-shadow: var(--shadow-strong);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-photo .photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--pink-deep); font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
  opacity: 0.55;
}
.about-photo .photo-placeholder svg { width: 48px; height: 48px; opacity: 0.75; }

/* Technique cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(214, 51, 108, 0.05);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 46, 126, 0.14),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card-icon { transition: transform 0.4s ease; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink));
  color: #fff;
  border-radius: 14px;
  margin-bottom: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--pink-glow);
}
.card h3 { margin: 0 0 10px; color: var(--heading); }
.card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* Centered section intro (used by the video teaser) */
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pink-pale);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 26px rgba(214, 51, 108, 0.08);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 14, 22, 0.28));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ============ VIDEO TEASER ============ */
.video-phone {
  position: relative;
  width: min(360px, 80%);
  margin: 8px auto 0;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  border: 5px solid #fff;
  box-shadow: var(--shadow-strong);
  animation: heroFloat 9s ease-in-out infinite;
  isolation: isolate;
}
.video-phone::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 44px;
  background: conic-gradient(
    from 0deg,
    var(--pink-hot), var(--pink), var(--pink-pale), var(--pink), var(--pink-hot)
  );
  filter: blur(24px);
  opacity: 0.32;
  z-index: -1;
  animation: ringSpin 20s linear infinite;
}
.video-phone video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 27px;
}
/* In fullscreen, keep the real 9:16 aspect ratio (letterbox) instead of
   cover-cropping the tall video to fill a 16:9 screen. */
.video-phone video:fullscreen { object-fit: contain; background: #000; border-radius: 0; }
.video-phone video:-webkit-full-screen { object-fit: contain; background: #000; border-radius: 0; }
/* Bigger player on laptops; bigger still on large monitors */
@media (min-width: 1100px) { .video-phone { width: 400px; } }
@media (min-width: 1500px) { .video-phone { width: 440px; } }

/* Course box */
.course-box {
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shadow-strong);
}
@media (max-width: 680px) { .course-box { padding: 32px 24px; } }
.course-box h2 { margin-bottom: 0.4em; }
.course-includes {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.course-includes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
}
.course-includes li::before {
  content: '✦';
  color: var(--pink-hot);
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ============ COURSE PRICE ============ */
.course-price-container {
  text-align: center;
  margin: 8px auto 34px;
  max-width: 360px;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--pink-pale), #fff);
  border: 1px solid var(--pink-soft);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--pink-glow);
}
.course-price-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-deep);
  font-weight: 700;
  margin-bottom: 6px;
}
.course-price {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 3.8rem);
  line-height: 1.05;
  background: linear-gradient(
    120deg,
    var(--pink-hot) 0%, var(--pink) 25%, #ff8fb3 45%, #fff 50%,
    #ff8fb3 55%, var(--pink) 75%, var(--pink-hot) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: accentShimmer 7s ease-in-out infinite;
}
.course-price-note {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
}
@media (max-width: 720px) { .payment { grid-template-columns: 1fr; } }

.payment-block {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(214, 51, 108, 0.04);
}
.payment-block h3 {
  color: var(--pink-deep);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.iban-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 8px !important;
}
.iban-label strong { color: var(--pink-deep); }
.iban-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--pink-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.98rem;
  color: var(--heading);
  margin-bottom: 14px;
  word-break: break-all;
}
.iban-row .copy-btn {
  margin-left: auto;
  background: var(--pink-hot);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  font-weight: 600;
}
.iban-row .copy-btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.iban-row .copy-btn.copied { background: #22c55e; color: #fff; }

.payment-block p { color: var(--text); font-size: 0.95rem; margin: 0; }
.payment-block strong { color: var(--heading); }

.alert {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--pink-pale);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--pink-hot);
  border-radius: 14px;
  color: var(--text);
}
.alert strong { color: var(--pink-deep); }

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}
.footer-socials { display: flex; justify-content: center; gap: 18px; margin-bottom: 22px; }
.footer-socials a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--pink-hot);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 0 4px 12px rgba(214, 51, 108, 0.06);
}
.footer-socials a:hover {
  background: var(--pink-pale);
  transform: translateY(-2px);
  border-color: var(--pink);
  color: var(--pink-deep);
}
.footer-socials svg { width: 20px; height: 20px; }
.footer p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============ LOGIN / AUTH ============ */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative; z-index: 1;
}
.auth-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-strong);
}
@media (max-width: 480px) { .auth-box { padding: 36px 24px; } }

.auth-box h1 { font-size: 2rem; margin-bottom: 6px; text-align: center; }
.auth-box .sub { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 0.96rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--heading);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus { outline: none; border-color: var(--pink); background: #fff; }

.auth-error {
  background: #fff2f4;
  border: 1px solid #f8b4c5;
  color: #b91c47;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 500;
}

.auth-box .btn { width: 100%; margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 26px; font-size: 0.9rem; color: var(--text-muted); }

/* ============ COURSE / VIDEO ============ */
/* Minimal protected course page: logo + video + tiny footer */
.course-min {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: max(40px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}
.course-logo { height: 70px; width: auto; display: block; }
.course-video {
  display: block;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
}
.course-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.course-min-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.course-min-foot a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.course-min-foot a:hover { color: var(--pink-hot); }
.course-min-foot .sep { opacity: 0.45; }
.course-min-foot form, .admin-head form { margin: 0; }
/* "Sign out" button (POST form) styled like a plain link */
.signout-btn {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: 0.88rem; cursor: pointer;
  color: var(--text-muted); transition: color 0.2s;
}
.signout-btn:hover { color: var(--pink-hot); }

/* Logo on the login / expired auth cards */
.auth-logo { display: block; height: 54px; width: auto; }
.auth-box .logo-home { display: flex; justify-content: center; margin-bottom: 18px; }

/* ============ ADMIN DASHBOARD ============ */
.admin-wrap {
  padding-top: calc(40px + env(safe-area-inset-top));
  padding-bottom: 60px;
  max-width: 860px;
}
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 28px; gap: 16px; flex-wrap: wrap;
}
.admin-signout { color: var(--text-muted); font-size: 0.9rem; }
.admin-signout:hover { color: var(--pink-hot); }
.admin-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.admin-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.admin-card h2 { font-size: 1.4rem; margin-bottom: 18px; }
.admin-sub { color: var(--text-muted); margin-bottom: 22px; font-size: 0.98rem; }
.generate-form { display: flex; gap: 12px; flex-wrap: wrap; }
.generate-form input {
  flex: 1; min-width: 200px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--heading); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.generate-form input:focus { outline: none; border-color: var(--pink); background: #fff; }
.generate-form .btn { white-space: nowrap; }
.new-creds {
  margin-top: 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--pink-pale), #fff);
  border: 1px solid var(--pink-soft);
  border-radius: 16px;
}
.new-creds-head { color: var(--pink-deep); font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; }
.cred-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cred-line > span { width: 84px; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.cred-line code {
  font-family: 'JetBrains Mono','Courier New',monospace;
  background: #fff; border: 1px dashed var(--pink-soft); border-radius: 10px;
  padding: 9px 14px; color: var(--heading); font-size: 1rem; flex: 1; min-width: 140px;
}
.cred-line .copy-btn {
  background: var(--pink-hot); color: #fff; border: none;
  padding: 9px 16px; border-radius: 999px; font-size: 0.76rem;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.cred-line .copy-btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.cred-line .copy-btn.copied { background: #22c55e; }
.new-creds-note { color: var(--text-muted); font-size: 0.86rem; margin: 14px 0 0; }
.client-list { display: flex; flex-direction: column; gap: 12px; }
.admin-empty { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
.client-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 14px; flex-wrap: wrap;
}
.client-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.client-info strong { color: var(--heading); }
.client-info code {
  font-family: 'JetBrains Mono','Courier New',monospace; font-size: 0.85rem;
  color: var(--pink-deep); background: #fff; border: 1px solid var(--border-soft);
  padding: 3px 8px; border-radius: 8px;
}
.client-status { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.client-status.pending { background: #eeeefb; color: #5566bb; }
.client-status.active { background: #e7f9ee; color: #1c9b54; }
.client-status.expired { background: #fde2e4; color: #b91c47; }
.client-created { font-size: 0.78rem; color: var(--text-muted); }
.client-actions { display: flex; gap: 8px; }
.client-actions form { margin: 0; }
.mini-btn {
  background: #fff; border: 1px solid var(--border); color: var(--text-muted);
  padding: 7px 12px; border-radius: 999px; font-size: 0.78rem; cursor: pointer;
  font-family: inherit; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.mini-btn:hover { border-color: var(--pink); color: var(--pink-deep); }
.mini-btn.danger:hover { border-color: #f29ba7; color: #b91c47; background: #fff2f4; }
@media (max-width: 560px) {
  .admin-card { padding: 26px 20px; }
  .client-row { flex-direction: column; align-items: flex-start; }
  .client-actions { width: 100%; }
  .generate-form .btn { width: 100%; }
}

noscript { display: block; padding: 12px; background: #fff4d9; color: #876a00; border-radius: 8px; margin: 12px 0; }

/* ============ DYNAMIC EFFECTS ============ */

/* Hero photo is a clean, static cut-out — no float/sheen (kept classy). */

/* About portrait — soft glow ring that breathes */
.about-photo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--pink-hot),
    var(--pink),
    var(--pink-pale),
    var(--pink),
    var(--pink-hot)
  );
  filter: blur(18px);
  opacity: 0.35;
  z-index: -1;
  animation: ringSpin 18s linear infinite;
}
.about-photo { isolation: isolate; }
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* Hero tag — gentle gradient sweep */
.hero-tag {
  background: linear-gradient(
    90deg,
    var(--pink-pale),
    #fff5f8,
    var(--pink-pale)
  );
  background-size: 200% 100%;
  animation: tagSweep 6s ease-in-out infinite;
}
@keyframes tagSweep {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

/* Countdown dot keeps its pulse; brand "Rob" gets a soft shimmer too */
.brand em {
  background: linear-gradient(
    100deg,
    var(--pink-hot) 0%,
    var(--pink) 40%,
    #ffd1e0 50%,
    var(--pink) 60%,
    var(--pink-hot) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShimmer 9s ease-in-out infinite;
}
@keyframes brandShimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

/* Course-box border highlight */
.course-box {
  position: relative;
  overflow: hidden;
}
.course-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(
    130deg,
    transparent 0%,
    var(--pink-soft) 30%,
    var(--pink-hot) 50%,
    var(--pink-soft) 70%,
    transparent 100%
  );
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  animation: courseBorder 9s ease-in-out infinite;
}
.course-box > * { position: relative; z-index: 1; }
@keyframes courseBorder {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Auth box (login + expired) — floating shadow + sheen on hover */
.auth-box {
  position: relative;
  overflow: hidden;
  animation: authFloat 7s ease-in-out infinite;
}
.auth-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(
    130deg,
    transparent 0%,
    var(--pink-soft) 35%,
    var(--pink-hot) 50%,
    var(--pink-soft) 65%,
    transparent 100%
  );
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  animation: courseBorder 10s ease-in-out infinite;
}
.auth-box > * { position: relative; z-index: 1; }
@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"].is-visible { transition-delay: 0.08s; }
.reveal[data-delay="2"].is-visible { transition-delay: 0.16s; }
.reveal[data-delay="3"].is-visible { transition-delay: 0.24s; }
.reveal[data-delay="4"].is-visible { transition-delay: 0.32s; }

/* Footer socials — glow trail */
.footer-socials a {
  position: relative;
}
.footer-socials a::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.footer-socials a:hover::after { opacity: 1; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   Optimized for iPhone 17 Pro Max (440×956) and
   smaller modern phones. Uses safe-area-insets
   for Dynamic Island / home-indicator devices.
   ============================================ */

/* Tap highlight in brand color */
* { -webkit-tap-highlight-color: rgba(255, 46, 126, 0.14); }

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }

/* Respect horizontal safe area on every container (landscape rotation) */
.container {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Nav: respect the top safe-area (Dynamic Island / notch) */
.nav { padding-top: calc(28px + env(safe-area-inset-top)); }

/* Course header & login centered page: also respect safe-area-top */
.course-header { padding-top: calc(22px + env(safe-area-inset-top)); }
.center-page { padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* Footer: respect bottom safe-area (home indicator) */
.footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* ---- ≤ 720px : phone layout ---- */
@media (max-width: 720px) {

  body { font-size: 15.5px; line-height: 1.6; }

  /* Tighter side gutters */
  .container { width: 100%; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

  /* Decorative blobs: smaller + cheaper blur on mobile */
  body::before { width: 360px; height: 360px; top: -140px; left: -140px; filter: blur(90px); }
  body::after  { width: 420px; height: 420px; bottom: -200px; right: -160px; filter: blur(90px); }
  .aurora      { width: 320px; height: 320px; filter: blur(80px); }

  /* Sections breathe less on phone */
  .section { padding: 60px 0; }

  /* ===== NAV ===== */
  .nav { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 14px; }
  .nav-inner { gap: 14px; }
  .nav-links { display: none; }
  .brand { font-size: 1.3rem; }
  .nav-cta { padding: 9px 18px; font-size: 0.78rem; letter-spacing: 0.05em; }

  /* ===== HERO ===== */
  .hero { padding: 18px 0 56px; gap: 36px; }
  .hero-tag {
    font-size: 0.7rem;
    padding: 6px 14px;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
  }
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 2.9rem); line-height: 1.12; }
  .hero-lead { font-size: 1rem; margin: 18px 0 28px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 0.88rem;
  }
  .hero-photo { max-width: 340px; margin: 14px auto 0; width: 100%; }
  .hero-photo::before { filter: blur(34px); }
  .hero-photo img {
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.5))
      drop-shadow(0 0 14px rgba(255, 92, 147, 0.34))
      drop-shadow(0 0 30px rgba(255, 46, 126, 0.24));
  }

  /* ===== ABOUT ===== */
  .about { gap: 28px; }
  /* Explicit square size so the circle doesn't collapse in the single-column grid */
  .about-photo { width: min(240px, 62vw); height: min(240px, 62vw); max-width: none; margin: 4px auto 0; }

  /* ===== SECTION INTRO ===== */
  .section-intro { margin-bottom: 32px; }
  .section-tag { letter-spacing: 0.2em; font-size: 0.72rem; }
  .section-intro p { font-size: 0.98rem; }

  /* ===== CARDS ===== */
  .cards { gap: 16px; }
  .card { padding: 26px 22px; border-radius: 16px; }
  .card-icon { width: 42px; height: 42px; font-size: 1.2rem; margin-bottom: 16px; border-radius: 12px; }
  .card h3 { font-size: 1.2rem; }
  .card p { font-size: 0.93rem; }

  /* ===== GALLERY ===== */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item { border-radius: 14px; }
  /* a lone 3rd image becomes a full-width banner (no orphan cell) */
  .gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  /* ===== VIDEO TEASER ===== */
  .video-phone { width: min(300px, 84%); border-radius: 28px; border-width: 4px; }
  .video-phone video { border-radius: 24px; }
  .video-phone::after { inset: -10px; border-radius: 38px; filter: blur(18px); }

  /* ===== COURSE BOX ===== */
  .course-box { padding: 32px 22px; border-radius: 22px; }
  .course-box::before { border-radius: 24px; }
  .course-includes {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0 28px;
  }
  .course-includes li { font-size: 0.96rem; }

  /* ===== PAYMENT ===== */
  .payment { gap: 18px; margin-top: 28px; }
  .payment-block { padding: 22px 20px; border-radius: 16px; }

  /* IBAN row: stack number + copy button so the long IBAN never gets clipped */
  .iban-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 0.88rem;
    padding: 14px;
  }
  .iban-row .copy-btn {
    margin-left: 0;
    align-self: flex-end;
    padding: 8px 16px;
    font-size: 0.74rem;
  }

  /* ===== ALERT ===== */
  .alert { margin-top: 24px; padding: 18px 20px; border-radius: 12px; font-size: 0.93rem; }

  /* ===== FOOTER ===== */
  .footer { padding-top: 44px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); margin-top: 24px; }
  .footer-socials a { width: 46px; height: 46px; }

  /* ===== COURSE PAGE ===== */
  .course-header {
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-bottom: 14px;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .course-header .brand { font-size: 1.3rem; }
  .countdown { font-size: 0.82rem; padding: 9px 16px; }

  .course-hero { padding: 18px 0 32px; }
  .course-hero h1 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .course-hero p { font-size: 0.98rem; padding: 0 4px; }

  .video-wrap { border-radius: 16px; margin-bottom: 32px; }
  .course-actions { padding-bottom: 40px; }

  /* ===== AUTH (login / expired) ===== */
  .auth-box {
    padding: 32px 22px;
    border-radius: 22px;
  }
  .auth-box::before { border-radius: 24px; }
  .auth-box h1 { font-size: 1.7rem; }
  .auth-box .sub { font-size: 0.94rem; margin-bottom: 26px; }
  .field input {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 13px 16px;
  }
  .field label { font-size: 0.74rem; letter-spacing: 0.16em; }

  /* Slightly smaller default button on phone */
  .btn { padding: 15px 26px; font-size: 0.9rem; }
}

/* ---- ≤ 420px : narrow phones / one-handed reach ---- */
@media (max-width: 420px) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .hero h1 { font-size: clamp(1.95rem, 8.8vw, 2.5rem); }
  .hero-lead { font-size: 0.96rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.72rem; }
  .brand { font-size: 1.2rem; }
  .section-tag { font-size: 0.68rem; letter-spacing: 0.18em; }
  .course-box { padding: 28px 18px; }
  .payment-block { padding: 20px 16px; }
  .alert { padding: 16px 18px; font-size: 0.9rem; }
  .auth-box { padding: 28px 18px; }
}

/* ---- Touch devices: tone down hover-driven scale on cards
   (the floating animations still play; we only neutralize the lift) ---- */
@media (hover: none) and (pointer: coarse) {
  .card:hover { transform: none; box-shadow: 0 6px 20px rgba(214, 51, 108, 0.05); }
  .card:hover::before { opacity: 0; }
  .card:active { transform: translateY(-2px); border-color: var(--pink-soft); }
  .card:active::before { opacity: 1; }
  .nav-cta:hover { transform: none; }
  .footer-socials a:hover { transform: none; }
}

/* ---- Landscape on short viewports: trim vertical padding ---- */
@media (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  .nav { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 10px; }
  .hero { padding: 12px 0 40px; }
  .section { padding: 40px 0; }
  .center-page { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
