/* Base Reset + Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: #2d001c;
  color: #ffffff;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Layout */
.container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

section {
  margin-bottom: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid transparent; /* Required for border-image to show */
  border-image: linear-gradient(45deg, #c850c0, #4158d0, #ff6ec4) 1;
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 2rem;

  /* Add a glowing edge to make gradient pop more visually */
  box-shadow:
    0 0 10px 2px rgba(255, 110, 196, 0.4),
    0 0 20px 4px rgba(65, 88, 208, 0.3);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 12px 3px rgba(255, 110, 196, 0.6),
    0 0 24px 6px rgba(65, 88, 208, 0.4);
}



/* Titles */
h1, h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
h1 {
  color: #6816cc;
}
h2 {
  color: #ffffff;
}

/* Inputs + Buttons */
input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
input::placeholder,
textarea::placeholder {
  color: #ccc;
}

button {
  background: #6816cc;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
button:hover {
  background: #7d34f1;
}

/* Footer Link */
.foot a {
  color: #aaa;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Chart Section */
#analytics {
  width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}









/* ─── Leaderboard Base Styles ─── */
#lbViewport {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}
#leaderboard {
  width: 100%;
  transition: transform 0.6s ease-in-out;
}


/* Leaderboard Items */
.leaderboard-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  animation: slideUp 0.5s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top Rank Medals */
.medal-1 { color: gold; font-weight: bold; }
.medal-2 { color: silver; font-weight: bold; }
.medal-3 { color: #cd7f32; font-weight: bold; } /* Bronze */

/* Buttons */
.remix-btn, .boost-btn, .view-btn {
  background: #3b82f6;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.remix-btn:hover, .boost-btn:hover, .view-btn:hover {
  background: #2563eb;
}
.boost-btn { background: #9333ea; }
.boost-btn:hover { background: #7e22ce; }

/* Toast Message (for success) */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #2563eb;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight: 500;
  animation: fadein 0.5s ease, fadeout 0.5s ease 2.5s;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}










#savedPromptsOverlay {
  pointer-events: auto;
}

#savedPromptsOverlay .card {
  backdrop-filter: blur(10px);
  background-color: rgba(24, 24, 27, 0.95); /* charcoal */
  color: #fff; /* ensure text is visible */
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  overflow-y: auto;
}










/* 🔐 Auth Card - Sign In / Sign Out panel */
#auth-card {
  background-color: rgba(24, 24, 27, 0.8); /* dark glass effect */
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 20rem;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal backdrop */
#auth-dialog {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal card */
#auth-dialog .bg-zinc-900 {
  background-color: rgba(17, 17, 20, 0.95);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* All inputs – text, email, password */
#auth-dialog input[type="text"],
#auth-dialog input[type="email"],
#auth-dialog input[type="password"],
.auth-input {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
  outline: none;
  backdrop-filter: blur(4px);
}
#auth-dialog input::placeholder,
.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Sign In / Sign Up buttons (blue) */
#auth-submit,
#signin-btn,
#signup-btn,
#login-btn {
  background-color: #3b82f6; /* Tailwind blue-500 */
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#auth-submit:hover,
#signin-btn:hover,
#signup-btn:hover,
#login-btn:hover {
  background-color: #2563eb; /* Tailwind blue-600 */
}

/* Sign Out button */
#logout-btn {
  color: #f87171; /* Tailwind red-400 */
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.3s;
}
#logout-btn:hover {
  color: #fecaca; /* Tailwind red-200 */
}

/* Toggle + Forgot Password Links */
#toggle-auth,
#forgot-pass {
  color: #60a5fa; /* Tailwind blue-400 */
  font-size: 0.875rem;
  text-decoration: underline;
  text-align: center;
  display: block;
  margin-top: 0.5rem;
  cursor: pointer;
}
#toggle-auth:hover,
#forgot-pass:hover {
  color: #93c5fd; /* Tailwind blue-300 */
}

/* Close button (×) for modal */
#close-auth-dialog,
#closePromptModal {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
#close-auth-dialog:hover,
#closePromptModal:hover {
  color: #f87171;
}







/* Push the grid section 2 inches down */
.top-prompt-grid {
  margin-top: 9rem; /* ≈ 144px ≈ 2 inches */
}





/* analytics overlay card inherits .card styles you already have */
#analyticsOverlay .card {
  background-color: rgba(24,24,27,0.95); /* charcoal */
  border: 1px solid rgba(255,255,255,0.1);
}








/* 🔝 Global Leaderboard Container */
#leaderboardCard {
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

/* 🏁 Leaderboard Ticker Effect */
#leaderboard {
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

/* 🎞️ Animate items entering */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.animate-slide-in {
  animation: slideUp 0.5s ease-out;
}












.subscription-summary {
  background: linear-gradient(to right, #6a00f4, #f6c400);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 800px;
}

.subscription-summary .plan-link {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  margin: 0 5px;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #1f1f1f;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: white;
}
.hidden {
  display: none;
}





















.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.06);
  margin: 2rem auto; /* center it horizontally with space above and below */
}

.cropped-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  border: none;
}











/* Charcoal subscription popup */
.sub-dialog {
  position: absolute;
  background: #2c2c2c;
  color: white;
  padding: 20px;
  border-radius: 8px;
  z-index: 9999;
  max-width: 300px;
  font-size: 16px;
  font-family: sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  animation: fadeInScale 0.3s ease-out;
}

.sub-dialog button {
  margin-top: 12px;
  padding: 10px;
  background: gold;
  color: #222;
  border: none;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  border-radius: 6px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}














/* HERO Section Base */
.uvp {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 4px solid;
  border-image: linear-gradient(45deg, purple) 1;
  background: linear-gradient(#370031, #8b00ff, #2b0c2a, #350442);
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

/* Top-left logo/title */
.uvp > h1.text-3xl {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
}

/* Hero main heading */
.uvp h1:not(.text-3xl) {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-top: 4rem;
}

/* Subtext */
.uvp p {
  font-size: 1.4rem;
  margin-top: 1rem;
  color: #fefefe;
}

/* Highlighted words */
.uvp .highlight-third-word {
  color: gold;
  font-weight: 900;
  text-shadow: 1px 1px 4px #6a0dad;
}

/* CTA Button Style */
.uvp .cta-buttons {
  margin-top: 2rem;
}

.uvp .cta-buttons .primary {
  background: #fff;
  color: #8B0000; /* dark brown-red */
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.uvp .cta-buttons .primary:hover {
  background: #ffe4e1;
  color: #6b0000;
}























/* === Social Proof Section === */
.value-core {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 0.75rem;

  
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08), 0 0 12px rgba(255, 255, 255, 0.05);
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #fff;
}

.value-core h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.value-core p {
  margin: 0.75rem 0;
  font-size: 1.2rem;
  color: #f0f0f0;
}

.value-core .highlight-third-word {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* === Social Proof Section === */
.social-proof {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 4px solid transparent;

  border-image: linear-gradient(45deg, #c850c0, #4158d0, #ff6ec4) 1;
  background: linear-gradient(#370031, #8b00ff, #2b0c2a, #350442);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* === Gold Data Stats === */
.stat-bar {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.stat-bar .stat-item {
  font-size: 1.6rem;
  animation: countUp 2s ease-out forwards;
}

.stat-bar .counter {
  color: #FFD700;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

/* === Gold Testimonial Horizontal === */
.testimonial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(90deg, #ffd700, #ffea90);
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  font-style: italic;
  color: #000;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
  text-shadow: none;
}



/* === Number Counting Animation === */
@keyframes countUp {
  from {
    content: "0";
  }
  to {
    content: "var(--target)";
  }
}

/* === Bounce In Keyframe === */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}













.site-header {
  background-color: #2d001c;
  padding: 1.5rem 2rem;
}

.site-header h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}





.site-footer {
  background: linear-gradient(#2d001c);
  padding: 2rem;
  margin-top: 1.0in;
  text-align: center;
  color: #520f45;
  font-weight: 600;
  border-top: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
}

.footer-content a {
  color: #fcfbf9;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-content a:hover {
  color: #ffffff;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffd700;
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  max-width: 700px;
  padding: 2rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  overflow-y: auto;
  max-height: 80vh;
  position: relative;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  color: #ffd700;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}


















@media (max-width: 900px) {
  html, body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  /* Global layout adjustments */
  .container,
  section,
  .card,
  .uvp,
  .value-core,
  .social-proof,
  .iframe-wrapper,
  #analytics,
  #leaderboardCard,
  #auth-card,
  #savedPromptsOverlay .card,
  .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    box-sizing: border-box;
    border-radius: 0.5rem !important;
  }

  /* Scroll snap for card-by-card view */
  main {
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
  }

  .card,
  .uvp,
  .value-core,
  .social-proof,
  .iframe-wrapper,
  section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Card appearance animation */
  .card,
  .uvp,
  .value-core,
  .social-proof {
    animation: fadeInScroll 0.6s ease-out;
    opacity: 0;
    transform: translateY(40px);
    animation-fill-mode: forwards;
  }

  @keyframes fadeInScroll {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Typography Tweaks */
  h1, h2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
  }

  .uvp h1:not(.text-3xl),
  .value-core h2,
  .social-proof h2 {
    font-size: 1.5rem !important;
  }

  .uvp p,
  .value-core p,
  .social-proof p {
    font-size: 0.95rem !important;
    line-height: 1.4;
  }

  /* Fix hero height and layout */
  .uvp {
    padding: 2.5rem 1rem !important;
    margin: 1.5rem 0 !important;
  }

  /* Keep iframe original height (desktop style) */
  .iframe-wrapper {
    height: 720px !important;
    padding: 0 !important;
  }

  .cropped-iframe {
    height: 800px !important;
  }

  /* Shrink Sign-in box */
  #auth-card {
    max-width: 90vw !important;
    padding: 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Modals full width & centered */
  .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    font-size: 1rem;
  }

  /* Remove border shadows */
  .card,
  .uvp,
  .value-core,
  .social-proof,
  #auth-card {
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  /* Footer tweaks */
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
  }

  /* Stat bar font fix */
  .stat-bar {
    font-size: 0.8rem !important;
  }

  .stat-bar .stat-item {
    font-size: 1rem !important;
  }

  /* Hide overflow edge cases */
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}




