/* ============================================================
   NEBULAFORGE — Futuristic 3D Interactive Stylesheet
   ============================================================ */

:root {
  /* Royal luxury palette — midnight plum, gold, champagne, royal amethyst */
  --bg: #08060f;
  --bg-soft: #161129;
  --panel: rgba(26, 19, 42, 0.55);
  --panel-border: rgba(212, 175, 55, 0.55);
  --royal: #7b5fc0;
  --gold: #d4af37;
  --champagne: #f0dfaf;
  --text: #f3edde;
  --text-dim: #a99e86;
  --font-display: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19.5px;
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

::selection { background: var(--royal); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--royal), var(--gold));
  border-radius: 5px;
}

/* ============ LOADER ============ */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }

.loader-core { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.loader-logo-img {
  width: 56px; height: 56px;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.7));
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--royal);
  animation: spin 1.2s linear infinite;
}
.loader-ring.r2 { inset: 14px; border-top-color: var(--gold); animation-duration: 1.8s; animation-direction: reverse; }
.loader-ring.r3 { inset: 28px; border-top-color: var(--champagne); animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-display); letter-spacing: 4px; font-size: 0.8rem; color: var(--text-dim);
}
.loader-bar {
  width: 220px; height: 3px; background: rgba(123, 95, 192, 0.2); border-radius: 3px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--royal), var(--gold));
  transition: width 0.3s ease;
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--gold);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(123, 95, 192, 0.7); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.hovering { width: 64px; height: 64px; border-color: var(--gold); }
.cursor-ring.constellation-hover {
  width: 74px; height: 74px;
  border-color: var(--champagne);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.55), inset 0 0 14px rgba(212, 175, 55, 0.25);
}

/* ============ 3D BACKGROUND ============ */
#bg3d {
  position: fixed; inset: 0; z-index: -1; display: block;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--royal), var(--gold), var(--champagne));
  z-index: 1001;
  box-shadow: 0 0 10px var(--royal);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(8, 6, 15, 0.75);
  backdrop-filter: blur(16px);
  padding: 12px 5vw;
  box-shadow: 0 4px 30px rgba(123, 95, 192, 0.15);
  border-bottom: 1px solid var(--panel-border);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; display: block;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55));
  animation: logo-glow 3.5s ease-in-out infinite;
  transition: transform 0.5s ease;
}
.nav-logo:hover .logo-mark { transform: rotate(90deg) scale(1.08); }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.45)); }
  50% { filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.85)); }
}
.logo-icon {
  font-size: 1.6rem; color: var(--gold);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px var(--gold); }
  50% { text-shadow: 0 0 24px var(--gold), 0 0 40px var(--royal); }
}
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 2px; color: var(--text);
}
.logo-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--royal), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Gap tightens as the viewport narrows so the eight items (seven links + the
   CTA) still clear the logo at the 1200px drawer breakpoint, and stays at a
   roomy 30px on large screens. */
.nav-links { display: flex; align-items: center; gap: clamp(18px, 1.6vw, 30px); list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  /* Never let a link (especially the CTA) wrap mid-label — wrapping silently
     inflates the navbar height instead of showing that space has run out. */
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--royal), var(--gold));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px; border: 1px solid var(--royal); border-radius: 30px;
  color: var(--text) !important;
  background: rgba(123, 95, 192, 0.12);
  transition: background 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { background: rgba(123, 95, 192, 0.3); box-shadow: 0 0 20px rgba(123, 95, 192, 0.5); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s; }

/* The inline nav needs ~1160px before the links collide with the logo, so the
   drawer has to take over well above the usual tablet breakpoint — below this
   the CTA used to wrap to two or three lines and, under ~960px, get pushed off
   the right edge entirely with no scrollbar to reveal it. */
@media (max-width: 1199px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 80vw);
    background: rgba(15, 11, 26, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 28px; /* vertical rhythm in the drawer, independent of the inline clamp */
    transition: right 0.4s ease;
    border-left: 1px solid var(--panel-border);
  }
  .nav-links.open { right: 0; }
}

/* ============ SHARED SECTION LAYOUT ============ */
.section { position: relative; padding: 120px 5vw; max-width: 1400px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 70px; }
.section-eyebrow {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 5px;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: 2px;
}
.section-sub { max-width: 640px; margin: 18px auto 0; color: var(--text-dim); font-size: 1.1rem; }

/* Calligraphy accent words — gold gradient script */
.grad-text, .glow-text {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.3em;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  padding: 0 0.12em;
  background: linear-gradient(100deg, var(--gold), var(--champagne) 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glow-text { filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.65)); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 16px 38px; border-radius: 40px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  cursor: none; border: none; transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
@media (hover: none), (max-width: 768px) { .btn { cursor: pointer; } }

.btn-primary {
  background: linear-gradient(135deg, var(--royal), var(--gold));
  color: #1a1206;
  box-shadow: 0 0 25px rgba(123, 95, 192, 0.45);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 45px rgba(212, 175, 55, 0.6); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--panel-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
  transform: translateY(-3px);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-top: 140px;
}
.hero-eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 5px;
  color: var(--gold); margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6.5rem); line-height: 1.05; letter-spacing: 4px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; }
.hero-title .grad { line-height: 1.3; }
.hero-title .grad span {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0 0.18em 0.1em;
  background: linear-gradient(90deg, var(--gold) 0%, var(--champagne) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub { max-width: 680px; margin: 28px auto 0; color: var(--text-dim); font-size: 1.2rem; }

.hero-cta { display: flex; gap: 22px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }

.hero-stats { display: flex; gap: 60px; margin-top: 70px; flex-wrap: wrap; justify-content: center; }
.hstat {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold);
  display: flex; flex-direction: column; align-items: center;
}
.hstat small {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px;
}

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 0.7rem; letter-spacing: 3px; font-family: var(--font-display);
}
.mouse {
  width: 26px; height: 42px; border: 2px solid var(--text-dim); border-radius: 16px;
  display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
  width: 4px; height: 8px; border-radius: 3px; background: var(--gold);
  animation: wheel-drop 1.8s ease-in-out infinite;
}
@keyframes wheel-drop {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ============ STORY CHAPTERS ============ */
.story { position: relative; }
.story-chapter {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 100px 6vw;
  position: relative;
}
.story-chapter::before {
  content: attr(data-chapter);
  position: absolute; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(10rem, 30vw, 24rem); color: rgba(123, 95, 192, 0.05);
  z-index: -1; pointer-events: none;
}
.chapter-tag {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 6px;
  color: var(--champagne); margin-bottom: 22px;
  border: 1px solid rgba(240, 223, 175, 0.3); border-radius: 30px; padding: 8px 22px;
}
.chapter-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.6rem); max-width: 900px; line-height: 1.2;
}
.chapter-text {
  max-width: 620px; margin-top: 26px; color: var(--text-dim); font-size: 1.2rem;
}
.story-chapter .btn { margin-top: 40px; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
/* ---- .tilt: shared pointer-tilt + cursor-spotlight, used by every
   interactive card across the site (services, showreel, testimonials,
   contact) so hover behavior reads as one consistent system ---- */
.tilt {
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
}
.tilt::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 95, 192, 0.18), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
}
.tilt:hover::before { opacity: 1; }
.tilt:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 60px rgba(123, 95, 192, 0.25);
}

.service-card {
  padding: 40px 32px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
}
.service-icon { font-size: 2.6rem; margin-bottom: 20px; display: inline-block; }

/* ---- Animated service icons: each gets a small looping motion matching
   its theme, and speeds up on hover for a reactive feel ---- */
@keyframes icon-orbit {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes icon-flicker {
  0%, 18%, 22%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 200, 80, 0)); }
  20% { transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.85)); }
}
@keyframes icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes icon-roll {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-8deg); }
  75% { transform: translateX(3px) rotate(8deg); }
}
@keyframes icon-scan {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(16deg); }
}
@keyframes icon-tighten {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-14deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(14deg); }
}
@keyframes icon-think {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.65)); }
}
.services-grid .service-card:nth-child(1) .service-icon { animation: icon-orbit 4s ease-in-out infinite; }
.services-grid .service-card:nth-child(2) .service-icon { animation: icon-flicker 3.4s ease-in-out infinite; }
.services-grid .service-card:nth-child(3) .service-icon { animation: icon-spin 9s linear infinite; }
.services-grid .service-card:nth-child(4) .service-icon { animation: icon-roll 2.6s ease-in-out infinite; }
.services-grid .service-card:nth-child(5) .service-icon { animation: icon-scan 3s ease-in-out infinite; transform-origin: 65% 70%; }
.services-grid .service-card:nth-child(6) .service-icon { animation: icon-tighten 3.2s ease-in-out infinite; }
.services-grid .service-card:nth-child(7) .service-icon { animation: icon-think 2.8s ease-in-out infinite; }
.services-grid .service-card:hover .service-icon { animation-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .service-icon { animation: none !important; }
}

.service-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 1px; margin-bottom: 14px;
}
.service-card p { color: var(--text-dim); font-size: 1rem; }
.service-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem;
  background-image: linear-gradient(160deg, var(--champagne) 0%, var(--gold) 55%, #a97e1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}

/* ============ SHOWREEL ============ */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px;
}
.video-tile {
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--panel-border);
  background: var(--bg-soft);
}
.video-tile:hover {
  box-shadow: 0 25px 70px rgba(123, 95, 192, 0.35);
}
.video-tile video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.2) brightness(0.85);
  transition: filter 0.5s, transform 0.8s;
}
.video-tile:hover video { filter: saturate(1.4) brightness(1); transform: scale(1.06); }
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(8, 6, 15, 0.9);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 26px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.video-tile:hover .video-overlay, .video-tile:focus-visible .video-overlay { opacity: 1; }
.video-tag {
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 8px;
}
.video-overlay h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 1px; }
.video-overlay p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
.play-badge {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(123, 95, 192, 0.25); backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  display: grid; place-items: center; color: var(--gold); font-size: 0.85rem;
  transition: background 0.3s, transform 0.3s;
}
.video-tile:hover .play-badge { background: var(--royal); color: #fff; transform: scale(1.1); }
.showreel-note { text-align: center; margin-top: 34px; color: var(--text-dim); font-size: 0.85rem; }
.showreel-note code { color: var(--gold); }

/* ---- reel-tile: live particle case-study reel (RedChief) ---- */
.reel-tile {
  background: #0a0607; border-color: rgba(212, 175, 55, 0.55); cursor: pointer;
  display: block; color: inherit; text-decoration: none;
}
.reel-tile:hover { border-color: rgba(212, 175, 55, 0.85); }
.reel-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.reel-canvas { width: 100%; height: 100%; display: block; }
#reelCaption, #reelCaptionEstates, #reelCaptionLumina, #reelCaptionSupra { transition: opacity 0.4s ease; }
.reel-tile .play-badge { color: var(--champagne); }
.visit-hint {
  flex: none; margin-top: 14px;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 1.5px;
  color: #08060f; background: var(--gold);
  padding: 8px 20px; border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
}
.reel-tile:hover .visit-hint, .reel-tile:focus-visible .visit-hint { transform: scale(1.05); }

/* ============ PRICING — 3D CAROUSEL ============ */
.pricing { overflow: visible; }

.carousel-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 9000px;
  min-height: 850px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.carousel-3d {
  position: relative;
  width: 400px; height: 700px;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.25, 0.9, 0.3, 1);
  will-change: transform;
}

.price-card {
  position: absolute; inset: 0;
  border-radius: 26px;
  padding: 40px 34px;
  background: linear-gradient(160deg, rgba(30, 22, 50, 0.92), rgba(12, 8, 24, 0.95));
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  backface-visibility: hidden;
  transition: box-shadow 0.6s, border-color 0.6s, opacity 0.6s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.price-card.front {
  box-shadow: 0 0 60px rgba(123, 95, 192, 0.35), 0 30px 90px rgba(0, 0, 0, 0.7);
}
.price-card:not(.front) { opacity: 0.55; }

/* ---- Basic: understated & cool — royal violet accent, no flourish ---- */
.price-card[data-package="Basic"] {
  border-color: rgba(123, 95, 192, 0.4);
  background: linear-gradient(160deg, rgba(26, 22, 42, 0.92), rgba(11, 9, 20, 0.96));
}
.price-card[data-package="Basic"].front { border-color: rgba(123, 95, 192, 0.65); }
.price-card[data-package="Basic"] .price-badge {
  background: rgba(123, 95, 192, 0.14); color: #b8a4e8; border-color: rgba(123, 95, 192, 0.4);
}
.price-card[data-package="Basic"] .price-amount {
  background: linear-gradient(90deg, #9b87c4, #cbb8f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Premium: warm & inviting — champagne glow, gently pulsing ---- */
.price-card.featured {
  border-color: rgba(240, 223, 175, 0.45);
  background: linear-gradient(160deg, rgba(40, 27, 22, 0.93), rgba(14, 10, 22, 0.96));
}
.price-card.featured.front {
  border-color: rgba(240, 223, 175, 0.75);
  animation: premium-pulse 3.4s ease-in-out infinite;
}
@keyframes premium-pulse {
  0%, 100% { box-shadow: 0 0 55px rgba(240, 223, 175, 0.28), 0 30px 90px rgba(0, 0, 0, 0.7); }
  50% { box-shadow: 0 0 85px rgba(240, 223, 175, 0.45), 0 30px 90px rgba(0, 0, 0, 0.7); }
}
.price-card.featured::before {
  content: ''; position: absolute; top: 0; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  opacity: 0.8;
}

/* ---- Luxury: opulent — animated gold-shimmer border + corner sparkle ---- */
.price-card[data-package="Luxury"] {
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, rgba(32, 24, 12, 0.95), rgba(10, 8, 16, 0.97)) padding-box,
    linear-gradient(120deg, var(--gold), var(--champagne), var(--gold), var(--champagne)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: lux-shimmer 6s linear infinite;
}
.price-card[data-package="Luxury"].front {
  box-shadow: 0 0 75px rgba(212, 175, 55, 0.35), 0 30px 90px rgba(0, 0, 0, 0.75);
}
@keyframes lux-shimmer {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 300% 50%; }
}
.price-card[data-package="Luxury"]::after {
  content: '✦'; position: absolute; top: 18px; right: 26px;
  color: var(--champagne); font-size: 1rem; opacity: 0.8;
  animation: lux-twinkle 2.6s ease-in-out infinite;
}
@keyframes lux-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
.price-card[data-package="Luxury"] .price-badge.lux {
  background: rgba(212, 175, 55, 0.2); color: var(--gold); border-color: rgba(212, 175, 55, 0.55);
}
.price-card[data-package="Luxury"] .price-amount {
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Custom: open & flexible — cool steel-blue, no fixed price ---- */
.price-card[data-package="Custom"] {
  border-color: rgba(148, 178, 200, 0.4);
  background: linear-gradient(160deg, rgba(20, 26, 32, 0.93), rgba(9, 12, 18, 0.96));
}
.price-card[data-package="Custom"].front { border-color: rgba(148, 178, 200, 0.65); }
.price-card[data-package="Custom"] .custom-badge {
  background: rgba(148, 178, 200, 0.14); color: #9fc2d9; border-color: rgba(148, 178, 200, 0.4);
}
.price-amount-quote {
  font-size: 1.7rem !important; letter-spacing: 1px;
  background-image: linear-gradient(90deg, #9fc2d9, #dce8f0) !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}

.price-badge {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 3px;
  padding: 7px 16px; border-radius: 20px;
  background: rgba(212, 175, 55, 0.12); color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
}
.price-badge.hot { background: rgba(240, 223, 175, 0.14); color: var(--champagne); border-color: rgba(240, 223, 175, 0.4); }

.price-name {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; letter-spacing: 4px;
}
.price-amount {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; margin: 14px 0 8px;
  background: linear-gradient(90deg, var(--royal), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-amount sup { font-size: 1.2rem; }
.price-amount small { font-size: 0.85rem; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); font-family: var(--font-body); font-weight: 500; margin-left: 6px; }
.price-tagline { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 20px; }

.price-features { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.97rem; }
.price-features li.dim { color: var(--text-dim); opacity: 0.5; }
.feat-ico { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }
.feat-ico path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feat-ico.check path { stroke: #4ade80; }
.feat-ico.cross path { stroke: #f87171; }

.price-card .btn { margin-top: 24px; text-align: center; }

.carousel-arrow {
  position: relative; z-index: 5;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(123, 95, 192, 0.12);
  border: 1px solid var(--panel-border);
  color: var(--gold); font-size: 2rem; line-height: 1;
  cursor: none;
  backdrop-filter: blur(8px);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
  margin: 0 3vw;
}
@media (hover: none), (max-width: 768px) { .carousel-arrow { cursor: pointer; } }
.carousel-arrow:hover {
  background: var(--royal); color: #fff;
  box-shadow: 0 0 30px rgba(123, 95, 192, 0.6);
  transform: scale(1.1);
}

.carousel-dots { position: relative; z-index: 6; display: flex; justify-content: center; gap: 14px; margin-top: 56px; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--royal); background: transparent;
  cursor: none; transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
@media (hover: none), (max-width: 768px) { .dot { cursor: pointer; } }
.dot.active {
  background: linear-gradient(135deg, var(--royal), var(--gold));
  transform: scale(1.35);
  box-shadow: 0 0 12px var(--gold);
}

@media (max-width: 640px) {
  .carousel-3d { width: min(320px, 86vw); height: 760px; }
  .carousel-stage { min-height: 900px; }
  .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }
  .carousel-arrow.prev { left: 0; }
  .carousel-arrow.next { right: 0; }
  .carousel-arrow:hover { transform: translateY(-50%) scale(1.1); }
}

/* ============ PROCESS TIMELINE ============ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline-line {
  position: absolute; left: 20px; top: 0; width: 3px; height: 100%;
  background: rgba(123, 95, 192, 0.15);
  overflow: hidden;
}
.timeline-line::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--royal), var(--gold));
  box-shadow: 0 0 12px var(--royal);
  transition: height 0.2s linear;
}
.timeline-item { position: relative; display: flex; gap: 30px; padding: 30px 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 34px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  background: var(--bg-soft); border: 2px solid var(--royal);
  color: var(--gold);
  transform: translateX(1px);
  z-index: 2;
}
.timeline-card {
  flex: 1; padding: 26px 30px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  margin-left: 26px;
}
.timeline-card h3 { font-family: var(--font-display); letter-spacing: 1px; margin-bottom: 8px; font-size: 1.05rem; }
.timeline-card p { color: var(--text-dim); font-size: 0.98rem; }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.testi-card {
  padding: 36px 30px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  font-size: 1.05rem;
}
.testi-card p::before { content: '“'; color: var(--gold); font-size: 1.6rem; }
.testi-card p::after { content: '”'; color: var(--gold); font-size: 1.6rem; }
.testi-card footer {
  margin-top: 20px; font-family: var(--font-display); font-size: 0.85rem; color: var(--gold);
}
.testi-card footer span { display: block; font-family: var(--font-body); color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.faq-item {
  border-radius: 18px;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.faq-item.active { border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 16px 50px rgba(212, 175, 55, 0.12); }

.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px;
  background: none; border: none; cursor: none;
  text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px;
  color: var(--text);
}
@media (hover: none), (max-width: 768px) { .faq-question { cursor: pointer; } }

.faq-icon {
  flex-shrink: 0; color: var(--gold); font-size: 1.1rem;
  transition: transform 0.4s ease;
}
.faq-item.active .faq-icon { transform: rotate(135deg); }

.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer > p {
  overflow: hidden;
  padding: 0 30px;
  color: var(--text-dim); font-size: 1.05rem;
}
.faq-item.active .faq-answer > p { padding: 0 30px 26px; }

.faq-cta { text-align: center; margin-top: 44px; color: var(--text-dim); font-size: 1.05rem; }
.faq-cta a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(212, 175, 55, 0.4); transition: border-color 0.3s; }
.faq-cta a:hover { border-color: var(--gold); }

/* ============ ENQUIRY FORM ============ */
.enquiry-form {
  max-width: 860px; margin: 0 auto;
  padding: 50px clamp(24px, 5vw, 60px);
  border-radius: 26px;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; margin-bottom: 24px; }
.form-field label {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 10px; text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(8, 6, 15, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-family: var(--font-body); font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-field select option { background: var(--bg-soft); color: var(--text); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(169, 158, 134, 0.5); }

/* ---- dual-handle price range slider ---- */
.price-range { position: relative; height: 36px; display: flex; align-items: center; margin-top: 6px; }
.price-range-track {
  position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px;
  background: rgba(169, 158, 134, 0.25);
}
.price-range-fill {
  position: absolute; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--royal), var(--gold));
}
.form-field input.price-range-thumb {
  position: absolute; left: 0; right: 0; width: 100%;
  margin: 0; padding: 0; background: none; border: none;
  -webkit-appearance: none; appearance: none;
  pointer-events: none;
  outline: none;
}
.price-range-thumb::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--champagne);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-range-thumb::-webkit-slider-thumb:hover,
.price-range-thumb::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}
.price-range-thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--champagne);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.price-range-thumb::-webkit-slider-runnable-track { background: transparent; }
.price-range-thumb::-moz-range-track { background: transparent; }
.price-range-value {
  margin-top: 14px; text-align: center;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 1px;
  color: var(--gold);
}

.btn-launch { width: 100%; font-size: 1rem; padding: 20px; }
.btn-launch:disabled { opacity: 0.6; pointer-events: none; }

.form-status {
  margin-top: 20px; text-align: center; font-weight: 600; min-height: 1.4em;
  letter-spacing: 0.5px;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }
.form-status.fade-out { opacity: 0; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card {
  display: block; padding: 36px 28px; border-radius: 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px); text-decoration: none; color: var(--text);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.contact-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 18px 50px rgba(123, 95, 192, 0.25);
}
.contact-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.contact-card h3 { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); word-break: break-word; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--panel-border);
  background: rgba(8, 6, 15, 0.8);
  backdrop-filter: blur(14px);
  padding: 70px 5vw 0;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-dim); margin-top: 16px; max-width: 320px; font-size: 0.98rem; }
.footer-brand .logo-mark {
  display: inline-block; vertical-align: middle;
  width: 36px; height: 36px; margin-right: 10px;
  animation: none;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--text-dim); text-decoration: none;
  margin-bottom: 10px; transition: color 0.3s; font-size: 0.98rem;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1300px; margin: 50px auto 0; padding: 24px 0;
  border-top: 1px solid rgba(123, 95, 192, 0.12);
  text-align: center; color: var(--text-dim); font-size: 0.85rem;
}

/* ============ PARALLAX SPARKLE LAYER ============ */
.sparkle-layer {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.sparkle {
  position: absolute; top: 0; left: 0;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  animation: twinkle var(--tw, 3s) ease-in-out infinite;
  will-change: transform, opacity;
  line-height: 1;
}
.sparkle.spark-dot {
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne) 0%, var(--gold) 70%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

/* ============ SCROLL REVEAL DEFAULTS ============ */
.reveal { opacity: 0; }

/* ============ CHAT WIDGET ============ */
.nf-chat { position: fixed; right: 24px; bottom: 24px; z-index: 1200; font-family: var(--font-body); }

/* The UA's [hidden] rule is a bare attribute selector, so any class rule that
   sets display beats it. Without this the phone row and chip tray stayed
   visible at every step and crowded the message box. */
.nf-chat [hidden] { display: none !important; }

/* Lyra herself is the launcher — no label, no icon. The button is a dark well
   for her to glow out of, so the light comes from the creature rather than
   from a gradient behind her. */
.nf-chat-launcher {
  display: grid; place-items: center; padding: 0; cursor: pointer;
  width: 82px; height: 82px; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 50% 45%, rgba(123, 95, 192, 0.38), rgba(8, 6, 15, 0.92) 72%);
  box-shadow: 0 10px 34px rgba(123, 95, 192, 0.45);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.nf-chat-launcher:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(212, 175, 55, 0.42);
}
.nf-chat-launcher:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* The launcher stays put while the panel is open — it is the collapse control,
   so hiding it left the × as the only way to close. The panel sits above it. */
.nf-chat.nf-open .nf-chat-launcher { box-shadow: 0 8px 26px rgba(212, 175, 55, 0.34); }

.nf-lyra { display: grid; place-items: center; width: 100%; height: 100%; }
.nf-lyra-canvas { width: 100%; height: 100%; display: block; }
/* Shown only until the WebGL canvas takes over — if Three.js is missing or the
   context fails, this is what the button keeps. */
.nf-lyra-fallback {
  font-style: normal; font-size: 1.7rem; color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.65));
  animation: nf-lyra-breathe 3.4s ease-in-out infinite;
}
.nf-lyra-live .nf-lyra-fallback { display: none; }
@keyframes nf-lyra-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* First-visit nudge. Without the old text label, nothing says she is clickable. */
.nf-lyra-hint {
  position: absolute; right: 6px; bottom: 96px; width: 232px; cursor: pointer;
  padding: 13px 30px 13px 15px; border-radius: 14px 14px 4px 14px;
  background: rgba(15, 11, 26, 0.97); border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
  animation: nf-hint-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nf-lyra-hint-name {
  font-family: var(--font-display); font-weight: 700; color: var(--champagne);
  font-size: 0.92rem; letter-spacing: 0.5px; margin-bottom: 3px;
}
.nf-lyra-hint-sub { color: var(--text-dim); font-size: 0.82rem; line-height: 1.45; }
.nf-lyra-hint-x {
  position: absolute; top: 5px; right: 7px; background: none; border: none;
  color: var(--text-dim); font-size: 1.15rem; line-height: 1; cursor: pointer;
  padding: 3px 6px; border-radius: 6px; transition: color 0.25s, background 0.25s;
}
.nf-lyra-hint-x:hover { color: var(--gold); background: rgba(212, 175, 55, 0.14); }
@keyframes nf-hint-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Clears the 82px launcher plus a gap. Tied to it by hand: at the old 60px the
   panel's bottom corner sat over Lyra's head. */
.nf-chat-panel {
  position: absolute; right: 0; bottom: 98px;
  display: flex; flex-direction: column;
  width: min(420px, calc(100vw - 32px)); height: min(600px, calc(100vh - 146px));
  background: rgba(15, 11, 26, 0.97); backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
/* Dragging a file anywhere over the panel. */
.nf-chat-panel.nf-drag { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3), 0 24px 60px rgba(0, 0, 0, 0.6); }
.nf-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(120deg, rgba(123, 95, 192, 0.25), rgba(212, 175, 55, 0.12));
}
.nf-chat-ident { flex: 1; min-width: 0; }

/* Lyra's portrait in the header — the flat twin of the creature on the
   launcher. Both eye shapes ship in the markup; the data-mood attribute picks
   one, which keeps mood changes to a single attribute write. */
.nf-mark { flex: none; display: block; line-height: 0; filter: drop-shadow(0 0 7px rgba(212, 175, 55, 0.35)); }
.nf-mark svg { display: block; }
.nf-mark .nf-mark-happy { display: none; }
.nf-mark[data-mood="happy"] .nf-mark-open { display: none; }
.nf-mark[data-mood="happy"] .nf-mark-happy { display: block; }
/* Thinking narrows her; alert widens her. Transform-origin is the eye line, so
   they close toward the middle rather than sliding upward. */
.nf-mark .nf-mark-open ellipse { transition: transform 0.25s ease; transform-origin: 20px 19.5px; }
.nf-mark[data-mood="thinking"] .nf-mark-open ellipse { transform: scaleY(0.45); }
.nf-mark[data-mood="concerned"] .nf-mark-open ellipse { transform: scaleY(0.72); }
.nf-mark[data-mood="alert"] .nf-mark-open ellipse,
.nf-mark[data-mood="curious"] .nf-mark-open ellipse { transform: scaleY(1.15); }
.nf-mark[data-mood="thinking"] .nf-mark-open circle { opacity: 0; }
.nf-mark-mote { animation: nf-mote 4.5s ease-in-out infinite; }
.nf-mark-mote:nth-of-type(2) { animation-delay: 1.6s; }
@keyframes nf-mote {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Live-connection dot beside "Signed in as …". Never colour alone — each state
   carries a title, and the shapes differ by animation, not just hue. */
.nf-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: baseline; flex: none;
}
.nf-dot-online { background: #4ade80; box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.22); }
.nf-dot-connecting { background: #fbbf24; animation: nf-dot-pulse 1.1s ease-in-out infinite; }
.nf-dot-offline { background: #6b6455; box-shadow: 0 0 0 2px rgba(107, 100, 85, 0.2); }
@keyframes nf-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Options menu, anchored to the kebab at the head's left edge. */
.nf-menu-wrap { position: relative; flex: none; }
.nf-chat-kebab {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  font-size: 1.35rem; line-height: 1; padding: 2px 6px; border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}
.nf-chat-kebab:hover { color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.nf-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
  display: flex; flex-direction: column; min-width: 190px; overflow: hidden;
  background: rgba(15, 11, 26, 0.99); border: 1px solid var(--panel-border);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.nf-menu button {
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 11px 14px; color: var(--text); font-family: var(--font-body);
  font-size: 0.9rem; transition: background 0.2s;
}
.nf-menu button:hover:not(:disabled) { background: rgba(212, 175, 55, 0.14); color: var(--champagne); }
.nf-menu button:disabled { opacity: 0.38; cursor: default; }
.nf-menu button + button { border-top: 1px solid rgba(212, 175, 55, 0.18); }
.nf-chat-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; color: var(--text); font-size: 0.95rem; }
.nf-chat-sub { color: var(--text-dim); font-size: 0.8rem; }
/* A downward chevron rather than a cross: this collapses the panel, it does
   not discard the conversation, and the arrow says so. */
.nf-chat-close {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  padding: 0; transition: color 0.3s, background 0.3s;
}
.nf-chat-close svg { display: block; }
.nf-chat-close:hover { color: var(--gold); background: rgba(212, 175, 55, 0.12); }

/* Links the assistant sends. */
.nf-link {
  color: var(--gold); text-decoration: underline;
  text-underline-offset: 2px; word-break: break-all;
}
.nf-link:hover { color: var(--champagne); }

.nf-chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }

/* Cloud bubbles.
   ----------------------------------------------------------------------------
   Lyra is made of nebula, so her speech should be too. Three things do the
   work: a very large asymmetric radius so no corner reads as a corner, a soft
   radial fill that is brighter where the light would fall, and a diffuse glow
   instead of a hard border. The result is closer to a lit cloud than a box.
   The `nf-cloud-*` pseudo-elements add two smaller puffs at the tail so the
   silhouette is lumpy rather than a perfect pill. */
.nf-bubble {
  position: relative;
  max-width: 84%; padding: 12px 17px;
  font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  border: none;
  animation: nf-cloud-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.nf-bubble::before, .nf-bubble::after {
  content: ''; position: absolute; bottom: 1px; border-radius: 50%;
}

.nf-bubble-bot {
  align-self: flex-start; color: var(--text);
  border-radius: 22px 22px 22px 7px;
  background:
    radial-gradient(120% 140% at 22% 8%, rgba(151, 122, 224, 0.34), rgba(123, 95, 192, 0.16) 62%, rgba(76, 58, 122, 0.14) 100%);
  box-shadow:
    0 0 0 1px rgba(151, 122, 224, 0.22),
    0 6px 22px rgba(76, 45, 138, 0.34),
    inset 0 1px 0 rgba(220, 205, 255, 0.16);
}
/* Two puffs trailing off the tail corner. */
.nf-bubble-bot::before {
  left: -5px; width: 13px; height: 13px;
  background: rgba(129, 101, 198, 0.3); box-shadow: 0 0 0 1px rgba(151, 122, 224, 0.18);
}
.nf-bubble-bot::after {
  left: -12px; bottom: -3px; width: 7px; height: 7px;
  background: rgba(129, 101, 198, 0.24);
}

.nf-bubble-visitor {
  align-self: flex-end; color: var(--champagne);
  border-radius: 22px 22px 7px 22px;
  background:
    radial-gradient(120% 140% at 78% 8%, rgba(240, 210, 130, 0.32), rgba(212, 175, 55, 0.15) 62%, rgba(150, 118, 30, 0.12) 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 6px 22px rgba(140, 105, 20, 0.28),
    inset 0 1px 0 rgba(255, 240, 200, 0.18);
}
.nf-bubble-visitor::before {
  right: -5px; width: 13px; height: 13px;
  background: rgba(212, 175, 55, 0.24); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.24);
}
.nf-bubble-visitor::after {
  right: -12px; bottom: -3px; width: 7px; height: 7px;
  background: rgba(212, 175, 55, 0.2);
}

/* Drifts up and settles, like something condensing out of the nebula. */
@keyframes nf-cloud-in {
  from { opacity: 0; transform: translateY(9px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.nf-bubble-pending { opacity: 0.6; font-style: italic; }
.nf-bubble-text { display: block; }

/* ---- Replies ---- */

/* The reply control sits inside the bubble rather than appearing on hover:
   hover does not exist on a phone, and a long-press would fight the browser's
   own text selection. Faint until the bubble is hovered or focused. */
.nf-reply-btn {
  position: absolute; top: 6px; padding: 0; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; opacity: 0.28;
  background: rgba(8, 6, 15, 0.55); border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--champagne); transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.nf-bubble-bot .nf-reply-btn { right: -9px; }
.nf-bubble-visitor .nf-reply-btn { left: -9px; }
.nf-bubble:hover .nf-reply-btn, .nf-reply-btn:focus-visible { opacity: 1; }
.nf-reply-btn:hover { background: rgba(212, 175, 55, 0.22); border-color: var(--gold); }
/* No hover on touch, so the control is always legible there. */
@media (hover: none) { .nf-reply-btn { opacity: 0.6; } }

/* The quoted original, at the top of a reply. */
.nf-quote {
  display: block; margin: -2px 0 8px; padding: 6px 10px; cursor: pointer;
  border-left: 3px solid var(--gold); border-radius: 8px;
  background: rgba(8, 6, 15, 0.4);
}
.nf-quote-bot { border-left-color: rgba(151, 122, 224, 0.85); }
.nf-quote:hover { background: rgba(8, 6, 15, 0.62); }
.nf-quote-who {
  display: block; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 2px;
}
.nf-quote-text {
  display: block; font-size: 0.85rem; color: var(--text-dim); line-height: 1.4;
  white-space: normal;
}

/* Brief highlight when you jump to a quoted original. */
.nf-flash { animation: nf-flash 1.2s ease-out; }
@keyframes nf-flash {
  0%, 40% { box-shadow: 0 0 0 2px var(--gold), 0 6px 22px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: none; }
}

/* The strip above the composer while a reply is pending. */
.nf-reply-strip {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px 0; border-top: 1px solid var(--panel-border);
}
.nf-reply-bar { flex: none; width: 3px; align-self: stretch; min-height: 30px; border-radius: 2px; background: var(--gold); }
.nf-reply-bot .nf-reply-bar { background: rgba(151, 122, 224, 0.9); }
.nf-reply-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nf-reply-who { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.nf-reply-text {
  font-size: 0.85rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nf-reply-x {
  flex: none; background: none; border: none; cursor: pointer; color: var(--text-dim);
  font-size: 1.1rem; line-height: 1; padding: 3px 7px; border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.nf-reply-x:hover { color: var(--gold); background: rgba(212, 175, 55, 0.16); }
/* Whichever of these is showing draws the divider; the others stack under it. */
.nf-reply-strip:not([hidden]) + .nf-attach-tray:not([hidden]),
.nf-reply-strip:not([hidden]) + .nf-attach-tray[hidden] + .nf-chat-form,
.nf-reply-strip:not([hidden]) + .nf-chat-form { border-top: none; }

/* "Lyra is typing" — three dots in a bot bubble, shown between her lines. */
.nf-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px; }
.nf-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--champagne);
  opacity: 0.4; animation: nf-blink 1.2s infinite ease-in-out;
}
.nf-typing span:nth-child(2) { animation-delay: 0.18s; }
.nf-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes nf-blink {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* The verification card. Six boxes rather than one field: it is the only point
   in the flow where something has to be copied exactly, and separate boxes
   make a transposed digit visible at a glance. */
.nf-otp-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 14px;
  background: rgba(123, 95, 192, 0.12); border: 1px solid rgba(212, 175, 55, 0.4);
}
.nf-otp-label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--champagne);
}
.nf-otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.nf-otp-boxes input {
  width: 100%; aspect-ratio: 3 / 4; min-width: 0; padding: 0; text-align: center;
  border-radius: 10px; background: rgba(8, 6, 15, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.4); color: var(--champagne);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.nf-otp-boxes input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.nf-otp-boxes input:disabled { opacity: 0.55; }
.nf-otp-error { color: #f87171; font-size: 0.85rem; }
.nf-otp-actions { display: flex; flex-direction: column; gap: 8px; }
.nf-otp-submit {
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--panel-border); color: var(--bg);
  background: linear-gradient(120deg, var(--royal), var(--gold));
  font-family: var(--font-display); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; font-size: 0.85rem; transition: transform 0.2s;
}
.nf-otp-submit:hover:not(:disabled) { transform: translateY(-1px); }
.nf-otp-submit:disabled { opacity: 0.55; cursor: default; }
.nf-otp-resend {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--text-dim); font-family: var(--font-body); font-size: 0.88rem;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.25s;
}
.nf-otp-resend:hover:not(:disabled) { color: var(--gold); }
.nf-otp-resend:disabled { opacity: 0.45; cursor: default; text-decoration: none; }

/* Inside the conversation, pulled up against the question bubble above it.
   As a separate tray under the log, the two containers' padding stacked into
   a gap that made the options look unrelated to the question. */
.nf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.nf-chip {
  padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 0.85rem;
  background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--champagne); font-family: var(--font-body); transition: background 0.3s;
}
.nf-chip:hover { background: rgba(212, 175, 55, 0.22); }

/* ---- Attachments ---- */

/* Files chosen but not yet sent, sitting just above the composer. */
.nf-attach-tray {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 16px 0; border-top: 1px solid var(--panel-border);
}
.nf-attach-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 5px 6px 5px 11px; border-radius: 18px;
  background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.82rem; color: var(--champagne);
}
.nf-attach-busy { opacity: 0.6; }
.nf-attach-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-attach-size { color: var(--text-dim); font-size: 0.76rem; flex: none; }
.nf-attach-x {
  flex: none; background: none; border: none; cursor: pointer; color: var(--text-dim);
  font-size: 1rem; line-height: 1; padding: 2px 5px; border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.nf-attach-x:hover { color: var(--gold); background: rgba(212, 175, 55, 0.2); }

/* Files inside a sent message. */
.nf-file-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nf-file {
  display: flex; align-items: center; gap: 9px; max-width: 100%;
  padding: 7px 11px 7px 7px; border-radius: 14px; text-decoration: none;
  background: rgba(8, 6, 15, 0.42); border: 1px solid rgba(212, 175, 55, 0.28);
  transition: border-color 0.25s, background 0.25s;
}
a.nf-file:hover { border-color: var(--gold); background: rgba(8, 6, 15, 0.62); }
.nf-file-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; display: block; flex: none; }
.nf-file-badge {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(123, 95, 192, 0.5), rgba(212, 175, 55, 0.35));
  color: var(--champagne); font-family: var(--font-display); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.5px;
}
.nf-file-meta { display: flex; flex-direction: column; min-width: 0; }
.nf-file-name {
  color: var(--text); font-size: 0.85rem; max-width: 168px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nf-file-size { color: var(--text-dim); font-size: 0.75rem; }

.nf-chat-attach {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: none; border: 1px solid rgba(212, 175, 55, 0.3); color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.nf-chat-attach:hover { color: var(--gold); border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.nf-chat-attach svg { display: block; }

.nf-chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--panel-border); align-items: flex-end; }
/* The tray already draws the divider when it is showing. */
.nf-attach-tray:not([hidden]) + .nf-chat-form { border-top: none; }
.nf-chat-input {
  flex: 1 1 auto; min-width: 0; padding: 11px 14px; border-radius: 12px;
  background: rgba(8, 6, 15, 0.85); border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem; line-height: 1.45;
}
.nf-chat-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); }
.nf-chat-input::placeholder { color: rgba(169, 158, 134, 0.6); }
/* Grows with its content up to 120px (set in JS). The panel is a fixed width,
   so there is no horizontal room to give — height is the only axis. */
/* overflow-y is managed in JS: hidden while it can still grow, auto once it
   has hit max-height. Left on `auto` here it shows a scrollbar at every size. */
.nf-chat-textarea { resize: none; overflow-y: hidden; max-height: 120px; }
.nf-chat-send {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--panel-border); color: var(--bg);
  background: linear-gradient(120deg, var(--royal), var(--gold));
  transition: transform 0.2s, opacity 0.2s;
}
.nf-chat-send svg { display: block; }
.nf-chat-send:hover { transform: scale(1.06); }
.nf-chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }
.nf-chat-error { color: #f87171; font-size: 0.85rem; padding: 0 16px 12px; }

@media (max-width: 480px) {
  .nf-chat { right: 12px; bottom: 12px; }
  .nf-chat-launcher { width: 66px; height: 66px; }
  .nf-lyra-hint { bottom: 80px; width: min(232px, calc(100vw - 40px)); }
  /* 66px launcher + a 12px gap. */
  .nf-chat-panel { bottom: 78px; width: calc(100vw - 24px); height: min(74vh, calc(100vh - 104px)); }
  /* The panel is nearly full-screen on a phone; Lyra behind it is just glare. */
  .nf-chat.nf-open .nf-chat-launcher { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-chat-launcher, .nf-chat-send, .nf-otp-submit { transition: none; }
  .nf-chat-launcher:hover, .nf-chat-send:hover, .nf-otp-submit:hover { transform: none; }
  .nf-typing span, .nf-lyra-fallback { animation: none; }
  .nf-lyra-hint, .nf-bubble { animation: none; }
  .nf-ping { animation: none !important; }
}

/* ---- Signed-in profile ---- */

/* Initials button in the head. Doubles as the way into the tickets sheet, so
   "am I signed in" and "where are my tickets" are the same control. */
.nf-chat-profile {
  flex: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--bg);
  background: linear-gradient(120deg, var(--royal), var(--gold));
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.5px; padding: 0;
}
.nf-chat-profile:hover { filter: brightness(1.12); }

/* Pulses once when a status arrives while the sheet is closed, so a live
   update is noticeable without stealing focus from whatever is being typed. */
.nf-ping { animation: nf-ping 1.4s ease-out 2; }
@keyframes nf-ping {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ---- Tickets sheet: takes the log's place, keeps the head and the launcher ----
   A flex child rather than an absolutely positioned overlay. Positioned, it had
   to be offset by the head's height as a hard-coded number, and the head is not
   a fixed height — it grows with the "Signed in as …" line and with the user's
   font size, so the sheet sat over the bottom of it. As a flex sibling it
   cannot be wrong. */
.nf-sheet {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  background: rgba(15, 11, 26, 0.99);
}
.nf-sheet-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--panel-border);
}
.nf-sheet-back {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; padding: 0;
  transition: color 0.25s, background 0.25s;
}
.nf-sheet-back:hover { color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.nf-sheet-title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--champagne);
}
.nf-sheet-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.nf-sheet-empty { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }
.nf-sheet-alllink {
  align-self: flex-start; background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--text-dim); font-family: var(--font-body); font-size: 0.88rem;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.25s;
}
.nf-sheet-alllink:hover { color: var(--gold); }

.nf-profile-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px; border-radius: 12px;
  background: rgba(123, 95, 192, 0.14); border: 1px solid rgba(212, 175, 55, 0.3);
}
.nf-profile-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--royal), var(--gold)); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.nf-profile-name { color: var(--text); font-size: 0.98rem; }
.nf-profile-mail { color: var(--text-dim); font-size: 0.82rem; word-break: break-all; }

/* ---- Ticket list & detail ---- */
.nf-ticket-list { display: flex; flex-direction: column; gap: 9px; }
.nf-ticket {
  display: flex; flex-direction: column; gap: 5px; width: 100%;
  padding: 12px 13px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(123, 95, 192, 0.14); border: 1px solid rgba(212, 175, 55, 0.3);
  font-family: var(--font-body); transition: background 0.25s, border-color 0.25s;
}
.nf-ticket:hover { background: rgba(212, 175, 55, 0.14); border-color: var(--gold); }
.nf-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nf-ticket-ref {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 1.5px; color: var(--gold);
}
.nf-ticket-service { color: var(--text); font-size: 0.94rem; }
.nf-ticket-meta { color: var(--text-dim); font-size: 0.8rem; }

.nf-ticket-detail-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* Without this the pill is a stretched flex child and spans the whole sheet. */
.nf-ticket-detail-head .nf-pill { align-self: flex-start; }
.nf-ticket-blurb { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.nf-ticket-field { display: flex; flex-direction: column; gap: 3px; }
.nf-ticket-field-label {
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim);
}
.nf-ticket-field-value { color: var(--text); font-size: 0.93rem; line-height: 1.55; white-space: pre-wrap; }

/* Status pill. Colour carries meaning here, so each one also reads as words —
   never colour alone. */
.nf-pill {
  flex: none; padding: 3px 10px; border-radius: 20px; font-size: 0.74rem;
  letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-display);
  font-weight: 700; border: 1px solid currentColor;
}
.nf-pill-new { color: #d4af37; background: rgba(212, 175, 55, 0.12); }
.nf-pill-contacted { color: #7dd3fc; background: rgba(125, 211, 252, 0.12); }
.nf-pill-progress { color: #a78bfa; background: rgba(167, 139, 250, 0.14); }
.nf-pill-closed { color: #86efac; background: rgba(134, 239, 172, 0.12); }

/* Progress timeline, newest first — what someone opens a ticket to see is
   what happened last. */
.nf-timeline { display: flex; flex-direction: column; gap: 0; list-style: none; padding-left: 16px; }
.nf-timeline-item {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 14px 14px; border-left: 1px solid rgba(212, 175, 55, 0.28);
}
.nf-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.nf-timeline-item::before {
  content: ''; position: absolute; left: -4.5px; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(169, 158, 134, 0.6);
}
.nf-timeline-now::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }
.nf-timeline-status { color: var(--text); font-size: 0.9rem; font-weight: 600; }
.nf-timeline-when { color: var(--text-dim); font-size: 0.78rem; }
.nf-timeline-note { color: var(--text-dim); font-size: 0.85rem; line-height: 1.5; margin-top: 3px; white-space: pre-wrap; }
