@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700;800;900&display=swap");

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Colors */
  --bg-dark: #070a1a;
  --bg-navy: #0e1433;
  --bg-deep: #161c47;

  --gold-1: #f3d489;
  --gold-2: #f1c96a;
  --gold-3: #dca83b;
  --gold-soft: rgba(241, 201, 106, 0.15);
  --gold-glow: rgba(241, 201, 106, 0.4);

  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.85);
  --white-60: rgba(255, 255, 255, 0.65);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(16px);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 8px 24px rgba(241, 201, 106, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --time: 0.4s;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Tajawal",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--white);
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background: radial-gradient(
    circle at 0% 0%,
    var(--bg-navy) 0%,
    var(--bg-dark) 100%
  );
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(116, 58, 213, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(241, 201, 106, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 1;
}

body {
  position: relative;
}

.hidden {
  display: none !important;
}

.material-symbols-outlined {
  font-size: 22px;
  vertical-align: middle;
}

/* ========= Home Background with Simple Stars ========= */
.page-home {
  background:
    radial-gradient(
      circle at top right,
      rgba(116, 58, 213, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(245, 158, 11, 0.1),
      transparent 22%
    ),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
}

.page-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-word {
  position: absolute;
  color: var(--gold-2);
  font-family: "Tajawal", "Outfit", sans-serif;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: floatWord linear infinite forwards;
  text-shadow: 0 4px 12px rgba(241, 201, 106, 0.2);
}

@keyframes floatWord {
  0% {
    transform: translateY(110vh) scale(0.8) rotate(-5deg);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) scale(1.1) rotate(5deg);
    opacity: 0;
  }
}


/* ========= Splash ========= */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 255, 255, 0.06),
      transparent 16%
    ),
    linear-gradient(135deg, #090d1d, #171c45 55%, #2f1d63);
}

.splash-screen.hide {
  animation: splashHide 0.9s ease forwards;
}

@keyframes splashHide {
  to {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
  }
}

.splash-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes splashStarsMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-60px);
  }
}

.sparkles,
.sparkles::before,
.sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkles::before {
  animation-duration: 24s;
  opacity: 0.28;
  transform: scale(1.08);
}

.sparkles::after {
  animation-duration: 30s;
  opacity: 0.18;
  transform: scale(0.92);
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-80px);
  }
}

.splash-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(241, 201, 106, 0.2),
    transparent 60%
  );
  filter: blur(8px);
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.floating-star {
  position: absolute;
  color: var(--soft-gold);
  text-shadow: 0 0 20px rgba(241, 201, 106, 0.55);
  font-size: 1.5rem;
  z-index: 2;
  opacity: 0.8;
}

.star-1 {
  top: 18%;
  right: 20%;
  animation: floatStar 4s ease-in-out infinite;
}

.star-2 {
  top: 26%;
  left: 18%;
  font-size: 1.2rem;
  animation: floatStar 5s ease-in-out infinite reverse;
}

.star-3 {
  bottom: 22%;
  right: 24%;
  font-size: 1.8rem;
  animation: floatStar 4.8s ease-in-out infinite;
}

@keyframes floatStar {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
    opacity: 1;
  }
}

.splash-inner {
  position: relative;
  width: min(90vw, 700px);
  text-align: center;
  padding: 32px 18px;
  z-index: 2;
  animation: splashContentIn 1.2s ease;
}

@keyframes splashContentIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  animation: badgeFloat 3s ease-in-out infinite;
  min-width: 250px;
}

#greetingLang {
  transition: opacity 0.3s var(--ease);
  font-weight: 500;
  text-align: center;
}

.second-badge {
  animation-delay: 0.4s;
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.splash-title {
  margin: 12px auto 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-2) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: titleGlow 2.5s ease-in-out infinite alternate;
  will-change: transform, opacity, filter;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 4px 10px rgba(241, 201, 106, 0.2));
  }
  to {
    filter: drop-shadow(0 8px 25px rgba(241, 201, 106, 0.5));
  }
}

.splash-note {
  color: var(--white-80);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
  letter-spacing: 0.2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

/* ========= Home Layout ========= */
.home-shell,
.page-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 40px 24px 120px;
  position: relative;
  z-index: 5;
}

.hero-card,
.cards-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  padding: 60px 40px;
  overflow: hidden;
  animation: revealUp 1s var(--ease);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-40), transparent);
}

.hero-card {
  margin-top: 60px;
  text-align: center;
}

.club-logo {
  display: block;
  width: min(500px, 92vw);
  max-width: 100%;
  margin: 0 auto 28px;
   filter: brightness(0) invert(1) drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  transition: transform 0.6s var(--ease);
}

.club-logo:hover {
  transform: scale(1.02) translateY(-5px);
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.9;
}

.special-greeting-title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.special-greeting {
  margin: 0 auto 32px;
  max-width: 620px;
  color: var(--white-80);
  line-height: 2;
  font-size: 1.08rem;
  font-weight: 500;
  text-align: center;
}

.home-actions,
.camera-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.action-btn {
  appearance: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 18px 32px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  min-width: 180px;
  transition: all 0.4s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  color: #070a1a;
  box-shadow: var(--shadow-gold);
}

.action-btn.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(241, 201, 106, 0.4);
}

.action-btn.ghost {
  background: var(--white-05);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.action-btn.ghost:hover {
  background: var(--white-10);
  border-color: var(--white-40);
  transform: translateY(-4px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 20px 0 40px;
  padding: 0 10px;
}

.back-link {
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}

.back-link:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: translateX(5px);
}

.cards-card {
  padding: 60px 50px;
}

.section-heading {
  text-align: right;
  margin-bottom: 48px;
  border-right: 4px solid var(--gold-2);
  padding-right: 24px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 24px;
  color: var(--gold-2);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-indicator:first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  .step-indicator {
    font-size: 0.8rem;
    gap: 10px;
  }
}

.step-indicator span {
  width: 28px;
  height: 28px;
  background: var(--gold-2);
  color: var(--bg-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .template-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 4px 20px;
    gap: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .template-grid::-webkit-scrollbar {
    display: none;
  }
  .template-tile {
    flex: 0 0 calc(50% - 10px);
    max-width: 160px;
    scroll-snap-align: center;
  }
}

.template-tile {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.template-visual {
  width: 100%;
  aspect-ratio: 3.5 / 4.5;
  border-radius: 24px;
  background: var(--white-05);
  border: 2px solid var(--white-10);
  transition: all 0.4s var(--ease);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.template-tile:hover .template-visual {
  transform: translateY(-8px);
  border-color: var(--white-40);
  box-shadow: var(--shadow-md);
}

.template-tile.selected .template-visual {
  border-color: var(--gold-2);
  box-shadow: 0 0 25px rgba(241, 201, 106, 0.3);
  transform: scale(1.02);
}

.template-tile.selected .template-visual::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--gold-2);
  color: var(--bg-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.template-tile span {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-60);
  transition: color 0.3s ease;
}

.template-tile.selected span {
  color: var(--gold-2);
}

.eid-camera-frame {
  position: relative;
  width: min(92vw, 420px);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.eid-camera-frame video {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.frame-logo {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 68px;
  height: 68px;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.eid-filter-text {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 800;
  color: white;
}

.frame-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.frame-glow-a {
  background: rgba(168, 85, 247, 0.22);
}

.frame-glow-b {
  background: rgba(245, 158, 11, 0.22);
  top: auto;
  bottom: -28%;
}

.frame-glow-c {
  background: rgba(34, 197, 94, 0.18);
  left: auto;
  right: -28%;
}

.frame-corners span {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.96);
  border-style: solid;
  z-index: 3;
}

.frame-corners span:nth-child(1) {
  top: 18px;
  left: 18px;
  border-width: 3px 0 0 3px;
  border-radius: 18px 0 0 0;
}

.frame-corners span:nth-child(2) {
  top: 18px;
  right: 18px;
  border-width: 3px 3px 0 0;
  border-radius: 0 18px 0 0;
}

.frame-corners span:nth-child(3) {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 18px;
}

.frame-corners span:nth-child(4) {
  bottom: 18px;
  right: 18px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 18px 0;
}

/* Main Grid Layout for Cards Page */
.cards-content-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  align-items: start;
}

@media (max-width: 992px) {
  .cards-content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.editor-section {
  display: flex;
  flex-direction: column;
}

.preview-section {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 40px 20px;
  border-radius: 32px;
  border: 1px solid var(--white-05);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.template-tile {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
}

.template-visual {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.14);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.template-tile:hover .template-visual,
.template-tile.selected .template-visual {
  transform: translateY(-2px);
  border-color: var(--soft-gold);
  box-shadow: 0 12px 30px rgba(241, 201, 106, 0.18);
}

.template-tile span {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
}

.name-field {
  display: grid;
  gap: 12px;
  max-width: 100%;
}

.name-field span {
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.name-field input {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 20px 24px;
  outline: none;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s var(--ease);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.name-field input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(241, 201, 106, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.name-field input::placeholder {
  color: var(--white-40);
}

.card-preview-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.card-preview {
  position: relative;
  width: min(90vw, 420px);
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 32px;
  border: 1px solid var(--white-10);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.03);
  transition: transform 0.8s var(--ease);
}

.card-preview:hover {
  transform: rotate3d(1, 1, 0, 8deg);
}

.preview-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.preview-greeting,
.preview-name {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  font-family: "Tajawal", sans-serif;
}

.preview-greeting {
  bottom: 110px;
  color: #1a2245;
  font-weight: 800;
  font-size: 1.2rem;
}

.preview-name {
  bottom: 15%;
  color: #a67c27;
  font-size: clamp(1rem, 3.5vw, 1.8rem);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  padding: 0 20px;
}

/* Template Specific Overrides */
.card-preview.t1 .preview-name {
  bottom: 15.5%;
  color: #ffffff;
}

.card-preview.t2 .preview-name {
  bottom: 26%;
  color: #1a4d2e;
}

.card-preview.t3 .preview-name {
  bottom: 12.5%;
  color: #1a2245;
}

.hidden-canvas {
  display: none;
}

/* ========= Help Button ========= */
.help-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 30;
  background: linear-gradient(135deg, #f1c96a, #e5ab2f);
  color: #161b38;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(229, 171, 47, 0.35);
  animation: bob 2s ease-in-out infinite;
}

.help-fab .material-symbols-outlined {
  font-size: 30px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ========= Bot ========= */
.bot-panel {
  position: fixed;
  right: 14px;
  bottom: 88px;
  width: min(92vw, 370px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(14, 18, 41, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  z-index: 31;
  transition: 0.25s ease;
}

.bot-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bot-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-panel-header h3 {
  margin: 0 0 4px;
}

.bot-panel-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.bot-close {
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
}

.bot-close .material-symbols-outlined {
  font-size: 28px;
}

.bot-messages {
  padding: 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 280px;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up {
  opacity: 0;
  animation: revealUp 1s var(--ease) forwards;
}

/* ========= Bot Styles ========= */
.quick-q {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: all 0.3s var(--ease);
  font-size: 0.9rem;
}

.quick-q:hover {
  background: var(--gold-soft);
  border-color: var(--gold-2);
  transform: translateX(-4px);
}

.message.bot {
  background: var(--bg-navy);
  border: 1px solid var(--glass-border);
  color: var(--white);
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.message.user {
  background: var(--gold-2);
  color: #0d122b;
  align-self: flex-end;
  border-bottom-left-radius: 4px;
  font-weight: 600;
}

.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  
  .cards-shell, .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cards-card {
    padding: 32px 20px 140px; /* added large bottom padding to scroll past fixed button */
    border-radius: 30px;
  }
  
  .section-heading {
    border-right: none;
    border-bottom: 2px solid var(--gold-2);
    padding-right: 0;
    padding-bottom: 12px;
    margin-bottom: 28px;
    text-align: center;
  }

  .section-heading h1 {
    font-size: 2.2rem;
  }

  .preview-section {
    position: static;
    padding: 0;
    margin-top: 32px;
    background: transparent;
    border: none;
  }

  .card-preview-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .card-preview {
    width: min(85vw, 340px);
  }

  .camera-controls.mobile-only {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--bg-dark) 40%, transparent);
    padding: 40px 20px 24px;
    z-index: 40;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through background */
  }

  .action-btn.primary {
    width: 100%;
    max-width: 320px;
    pointer-events: auto; /* Enable clicks on button */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), var(--shadow-gold);
  }

  .help-fab {
    bottom: 100px;
    width: 56px;
    height: 56px;
  }
}

.message.bot {
  background: rgba(255, 255, 255, 0.08);
  border-top-right-radius: 8px;
  align-self: flex-start;
}

.message.user {
  background: linear-gradient(135deg, #f5d689, #eebd53);
  color: #172039;
  border-top-left-radius: 8px;
  align-self: flex-end;
}

.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline: 2px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  animation: blink 1s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.quick-questions {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.quick-q {
  text-align: right;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
}

.quick-q:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ========= Entrance ========= */
.reveal-up {
  animation: revealUp 0.8s ease both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= Mobile ========= */
@media (max-width: 640px) {
 .hero-card {
  margin-top: 60px;
  text-align: center;
  padding: 72px 40px 56px;
}

  .action-btn {
    min-width: 0;
    flex: 1 1 140px;
  }

  .help-fab {
    right: 14px;
    bottom: 110px;
    z-index: 50;
  }

  .bot-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 180px;
  }

  .splash-title {
    font-size: 2.2rem;
  }

  .splash-note {
    font-size: 0.95rem;
  }


}
#splash:not(.hide) ~ .help-fab,
#splash:not(.hide) ~ .bot-panel {
  display: none !important;
}
@media (max-width: 640px) {
  .eyebrow {
    font-size: 0.60rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .special-greeting-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .special-greeting {
    font-size: 0.80rem;
    line-height: 1.9;
    max-width: 100%;
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .hero-copy {
    width: 100%;
    padding: 0 6px;
  }
}



.splash-scroll{
  position:absolute;
  bottom:90px; 
  left:50%;
  transform:translateX(-50%);
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:50%;
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:white;
  font-size:36px;
  transition:0.3s;
  animation:arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove{
  0%{ transform:translate(-50%,0); }
  50%{ transform:translate(-40%,0); }
  100%{ transform:translate(-50%,0); }
}

.splash-scroll:hover{
  transform:translate(-40%,0) scale(1.1);
  background:rgba(255,255,255,0.15);
}

@media (max-width: 640px) {
  .splash-scroll {
    bottom: 140px;
  }
}
