@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #0f1117;
  --card: rgba(28,34,48,0.97); border: 1.5px solid #23395d;
  --input: #191b1f;
  --border: #32373f;
  --feature-icon: #74c3fc;
  --feature-border: #31333b;
  --cta: #40dec1;
  --cta-hover: #29cbb2;
  --blue: #6ebfff;
  --badge: #377dff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  margin: 0; padding: 0;
  background: linear-gradient(160deg,#101522 60%,#141b2e 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 0 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -1px;
}
.navbar-links {
  display: flex; gap: 28px;
  font-size: 16px;
  align-items: center;
}
.navbar-cta {
  background: #131419;
  color: #fff;
  border: 1px solid #23263c;
  border-radius: 8px;
  padding: 9px 22px;
  font-weight: 600;
  margin-left: 12px;
  transition: background 0.2s, color 0.16s;
  cursor: pointer;
  box-shadow: 0 1.5px 10px #40dec135;
}
.navbar-cta:hover {
  background: #181b2a;
  color: #87f7ff;
}
.theme-toggle {
  margin-left: 18px;
  background: none;
  border: none;
  color: #d7e8ff;
  font-size: 19px;
  cursor: pointer;
  transition: color 0.2s;
}
.theme-toggle:hover { color: #fff; }

.hero { text-align: center; margin: 120px auto 0 auto; max-width: 800px; padding: 0 8px; }
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #90caf9 30%, #6ebfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  line-height: 1.14;
  letter-spacing: -.5px;
}
.hero-desc { color: #c9d4e6; font-size: 1.15rem; margin-bottom: 34px; font-weight: 400; }
.hero-actions {
  display: flex; gap: 18px; justify-content: center; margin-bottom: 70px; flex-wrap: wrap;
}
.cta-btn {
  background: linear-gradient(90deg, #dcf3e6, #40dec1 85%);
  color: #13191e;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 16px 36px;
  font-size: 1.17rem;
  box-shadow: 0 4px 32px #12182a30;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.13s;
}
.cta-btn:hover { background: var(--cta-hover); color: #fff; transform: translateY(-2px);}
.cta-btn.secondary {
  background: #181e29;
  color: #b6cdfd;
  border: 1.5px solid #2e3851;
}
.cta-btn.secondary:hover { background: #232b3b; color: #fff; }

/* Testimonials */
.testimonials-section {
  background: none;
  margin: 0 auto 38px auto;
  text-align: center;
}
.testimonials-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #7ee5ff;
  margin-bottom: 8px;
}
.testimonials-carousel {
  position: relative;
  min-height: 95px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.testimonial-item {
  display: block;
  background: #222434;
  color: #bdefff;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 1.11rem;
  box-shadow: 0 3px 15px #21e6c83a;
  margin: 0 10px;
}
.testimonial-author {
  color: #81d8f7;
  font-size: 0.97rem;
  font-weight: 500;
}

/* Features */
.features-section { max-width: 1200px; margin: 0 auto 70px auto; padding: 0 8px; }
.features-title {
  text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(90deg, #a4d1fb, #6ebfff 85%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.features-desc { text-align: center; color: #b0b0b0; font-size: 1.1rem; margin-bottom: 28px; }
.features-list {
  display: flex; flex-direction: row; gap: 24px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap;
  padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; scrollbar-color: #b0d1fa #23252b;
}
.features-list::-webkit-scrollbar { height: 7px; }
.features-list::-webkit-scrollbar-thumb { background: #b0d1fa; border-radius: 8px; }
.features-list::-webkit-scrollbar-track { background: #23252b; }
.feature-card {
  background: var(--card); border: 1.5px solid var(--feature-border); border-radius: 15px;
  min-width: 230px; max-width: 260px; min-height: 140px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 28px 24px 20px 24px; box-shadow: 0 6px 32px #021c3131;
}
.feature-icon { font-size: 29px; margin-bottom: 13px; color: var(--feature-icon); display: inline-block; }
.feature-title { font-weight: 600; font-size: 18px; margin-bottom: 5px; }
.feature-desc { color: #c4cbdf; font-size: 15px; font-weight: 400; }

.studio-section { display: flex; justify-content: center; margin: 0 auto 48px auto; }
.studio-container {
  background: rgba(36,38,45,0.18); border-radius: 22px;
  padding: 34px 32px 30px 32px; box-shadow: 0 4px 32px #021c3131;
  max-width: 1250px; width: 100%; margin: 0 auto;
}
.studio-header { display:none; }
/* (You can re-enable .studio-header if needed) */
.prompt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0 0;
}
#promptInput {
  padding: 32px 20px;
  background: #161d2c;
  border: 2.5px solid #6ebfff;
  border-radius: 14px;
  color: #f4f6ff;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  outline: none;
  min-height: 56px;
  margin-bottom: 0;
  box-shadow: 0 3px 18px #40dec129;
  transition: border-color 0.22s, box-shadow 0.18s;
  resize: vertical;
}

#promptInput:focus {
  border-color: #40dec1;
  box-shadow: 0 0 12px #40dec14d;
}

#systemPromptSelect {
  padding: 10px 14px;
  background: var(--input);
  border: 1.4px solid var(--border);
  border-radius: 8px;
  color: #eaeaea;
  font-size: 14px;
  width: 100%;
  margin-bottom: 10px;
}
#systemPromptSelect:focus { border-color: var(--blue); box-shadow: 0 0 7px #47b5ff55; }

/* Smaller, password-like API key input */
#apiKey {
  padding: 10px 14px;
  background: var(--input);
  border: 1.4px solid var(--border);
  border-radius: 8px;
  color: #eaeaea;
  font-size: 14px;
  width: 240px;
  max-width: 100%;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}
#apiKey:focus { border-color: var(--blue); box-shadow: 0 0 7px #47b5ff55; }

.prompt-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0 0;
}
.prompt-btn {
  padding: 11px 0;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(90deg, #fafcfc 0%, #40dec1 100%);
  color: #21294a;
  box-shadow: 0 1.5px 9px #7be9fc36;
  transition: background 0.22s, box-shadow 0.18s, color 0.18s;
  min-width: 124px;
  flex: 1 1 120px;
}
.prompt-btn.secondary {
  background: #23233f;
  color: #bdbded;
  border: 1px solid #2f314c;
}
.prompt-btn:hover { filter: brightness(1.08) saturate(1.08); }
.prompt-btn.secondary:hover { background: #29315a; color: #19e869; }
.ai-hint {
  background: rgba(255,200,0,0.07);
  color: #ffe347;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  margin: 8px 0;
  border-left: 3px solid #ffeb3b;
}
.criteria-block { background: rgba(255,255,255,0.09); padding: 10px; border-radius: 8px; margin: 10px 0 14px 0;}
.criteria-row { display: flex; align-items: center; margin: 4px 0; font-size: 13px; }
.score-block {
  background: rgba(255,255,255,0.10); padding: 12px; border-radius: 12px; margin: 14px 0 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.score-value { font-size: 22px; font-weight: bold; color: #6ebfff; }
.output-box {
  white-space: pre-wrap;
  background: rgba(42, 70, 115, 0.22); /* more blue, more visible */
  color: #fff;
  border: 2.5px solid #6ebfff;
  padding: 24px 18px;
  border-radius: 16px;
  margin-top: 14px;
  overflow-x: auto;
  font-size: 16px;
  line-height: 1.65;
  max-height: 350px;   /* was 120px */
  min-height: 220px;   /* add this for bigger feel */
  box-shadow: 0 4px 28px 0 rgba(60,140,255,0.23);
  backdrop-filter: blur(18px) saturate(140%) brightness(1.13);
  -webkit-backdrop-filter: blur(18px) saturate(140%) brightness(1.13);
  transition: border 0.18s, background 0.18s;
}

.output-box-container {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #b7dcfe;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #40dec1;
  color: #111;
}

/* Status Messages */
.status {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.status.success {
  background: rgba(64, 222, 193, 0.1);
  color: #40dec1;
  border: 1px solid rgba(64, 222, 193, 0.3);
}

.status.error {
  background: rgba(255, 68, 68, 0.1);
  color: #44ffd0;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.status.info {
  background: rgba(183, 220, 254, 0.1);
  color: #b7dcfe;
  border: 1px solid rgba(183, 220, 254, 0.3);
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #8fa8c4;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid #40dec1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* PRICING ROW - HORIZONTAL, CARDS ON ONE LINE */
.pricing-section {
  max-width: 1200px;
  margin: 72px auto 0 auto;
  background: none;
  text-align: center;
  padding: 0 8px 72px 8px;
}
.pricing-title {
  font-size: 2.1rem; font-weight: 700;
  background: linear-gradient(90deg, #a4d1fb, #6ebfff 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.pricing-desc { color: #b0b0b0; font-size: 1.15rem; margin-bottom: 35px; }
.pricing-row, .pricing-tiers {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 30px;
}
.pricing-card {
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 230px;
  background: var(--card);
  border: 2px solid #31374a;
  border-radius: 19px;
  padding: 36px 32px 32px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
  box-shadow: 0 8px 48px #2039591e;
  position: relative;
}
.pricing-row .pricing-card { margin-bottom: 0;}
.pricing-badge {
  position: absolute;
  top: 20px; right: 22px;
  background: var(--badge); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 3px 18px 3px 14px;
  border-radius: 11px;
  letter-spacing: .4px;
  display: flex; align-items: center; gap: 7px;
}
.pricing-card.popular { border: 2.5px solid #40dec1; box-shadow: 0 12px 32px #40dec139; }
.pricing-name { font-size: 1.35rem; font-weight: 600; margin-bottom: 6px;}
.pricing-blurb { font-size: 1rem; color: #b2b9d0; margin-bottom: 8px;}
.pricing-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 2px; letter-spacing: -1.5px;}
.pricing-interval { font-size: 1.16rem; color: #aac; margin-left: 1px; font-weight: 400;}
.pricing-list { margin: 20px 0 26px 0; padding: 0; list-style: none; width: 100%; }
.pricing-list li {
  text-align: left;
  margin-bottom: 14px;
  color: #d4f7e6;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-list li .tick { color: #5ae486; font-size: 1.2em; margin-right: 4px;}
.pricing-list li::before {
  content: '✓';
  color: #5ae486;
  font-weight: bold;
  margin-right: 8px;
}
.pricing-action {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(90deg, #e7fff6, #40dec1 75%);
  color: #151a1f;
  border: none;
  border-radius: 9px;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 13px 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 2px 10px #21e6c857;
}
.pricing-action:hover { background: var(--cta-hover); color: #fff; }
.pricing-action[disabled] { background: #26292e; color: #97b4aa; cursor: not-allowed; }

@media (max-width: 1000px) {
  .pricing-row, .pricing-tiers { flex-wrap: wrap; gap: 22px;}
  .pricing-card { flex: 1 1 90vw; min-width: 220px; }
}
@media (max-width: 600px) {
  .pricing-row, .pricing-tiers { flex-direction: column; gap: 16px;}
  .pricing-card { max-width: 98vw; }
}

/* FAQ */
.faq-section { max-width: 820px; margin: 0 auto 48px auto; text-align: left;}
.faq-title { text-align: center; font-size: 1.3rem; font-weight: 700; margin-bottom: 18px;}
.faq-list { margin: 0; padding: 0;}
.faq-item { margin-bottom: 14px;}
.faq-question {
  background: #252637;
  color: #a3e8ff;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 1.07rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.faq-question.open, .faq-question:hover { background: #2c3152;}
.faq-answer {
  display: none;
  background: #202136;
  color: #e7feff;
  border-radius: 0 0 8px 8px;
  padding: 13px 22px;
  font-size: 1.01rem;
}
.faq-question.open + .faq-answer { display: block; }

/* Footer/Legal */
.footer {
  margin-top: 35px;
  padding: 32px 0 12px 0;
  text-align: center;
  color: #b2c8de;
  background: none;
  font-size: 1.05rem;
  border-top: 1.5px solid #272e3a;
}
.footer-links { margin-bottom: 7px;}
.footer-links a { color: #8bf1d4; margin: 0 5px; }
.footer-copy { color: #888db8; font-size: .98rem; }
.template-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  max-width: 100%;
}

.template-select {
  background: #1a1f2a;
  color: #d8f0ff;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #2d3748;
  border-radius: 6px;
  height: 34px;
}

.template-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.template-btn {
  background: #212837;
  color: #c7eaff;
  font-size: 15px;
  padding: 8px 14px;
  border: 1px solid #2f3a4a;
  border-radius: 6px;
  cursor: pointer;
  /* Spread evenly in two columns (wrap to next row if needed) */
  flex: 1 1 calc(50% - 6px);
  /* Keep template labels to one line and truncate overflowing text */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: all 0.15s ease;
}

.template-btn:hover {
  background: #2a3246;
  border-color: #40dec1;
  color: #fff;
}

.history-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 22px !important;    /* Use !important to force the gap */
  margin-bottom: 10px;
  width: fit-content;
}
.prompt-btn.secondary {
  min-width: 2;
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 0.8rem;
  white-space: nowrap !important;
}

/* Sign-in Modal Light Theme */
body.light-theme #signInModal > div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

body.light-theme #signInModal h2 {
  color: #2d3748 !important;
}

body.light-theme #signInModal p {
  color: #718096 !important;
}

body.light-theme #emailInput,
body.light-theme #passwordInput {
  background: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #2d3748 !important;
}

body.light-theme #emailInput:focus,
body.light-theme #passwordInput:focus {
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

body.light-theme #emailSignInBtn {
  background: #3182ce !important;
  color: #ffffff !important;
}

body.light-theme #emailSignInBtn:hover {
  background: #2c5282 !important;
}

body.light-theme #createAccountBtn {
  color: #3182ce !important;
}

body.light-theme #closeSignInModal {
  border: 1px solid #e2e8f0 !important;
  color: #718096 !important;
}

body.light-theme #closeSignInModal:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
}

/* Sign-in Modal Light Theme */
body.light-theme #signInModal > div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

body.light-theme #signInModal h2 {
  color: #2d3748 !important;
}

body.light-theme #signInModal p {
  color: #718096 !important;
}

body.light-theme #emailInput,
body.light-theme #passwordInput {
  background: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #2d3748 !important;
}

body.light-theme #emailInput:focus,
body.light-theme #passwordInput:focus {
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

body.light-theme #emailSignInBtn {
  background: #3182ce !important;
  color: #ffffff !important;
}

body.light-theme #emailSignInBtn:hover {
  background: #2c5282 !important;
}

body.light-theme #createAccountBtn {
  color: #3182ce !important;
}

body.light-theme #closeSignInModal {
  border: 1px solid #e2e8f0 !important;
  color: #718096 !important;
}

body.light-theme #closeSignInModal:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
}

/* Light Theme Overrides */
body.light-theme {
  background: linear-gradient(160deg, #f8fafc 60%, #e2e8f0 100%) !important;
  color: #1a202c !important;
}

/* Light theme navbar */
body.light-theme .navbar-logo {
  color: #2d3748 !important;
}

body.light-theme .navbar-links a {
  color: #4a5568 !important;
}

body.light-theme .navbar-cta {
  background: #ffffff !important;
  color: #2d3748 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .navbar-cta:hover {
  background: #f7fafc !important;
  color: #2b6cb0 !important;
}

body.light-theme .theme-toggle {
  color: #f6ad55 !important;
}

/* Light theme hero */
body.light-theme .hero-title {
  background: linear-gradient(90deg, #3182ce 30%, #2b6cb0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-theme .hero-desc {
  color: #4a5568 !important;
}

body.light-theme .cta-btn {
  background: linear-gradient(90deg, #38b2ac, #319795 85%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 32px rgba(56, 178, 172, 0.3) !important;
}

body.light-theme .cta-btn:hover {
  background: #2c7a7b !important;
  color: #ffffff !important;
}

body.light-theme .cta-btn.secondary {
  background: #ffffff !important;
  color: #4a5568 !important;
  border: 1.5px solid #e2e8f0 !important;
}

body.light-theme .cta-btn.secondary:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
}

/* Light theme features */
body.light-theme .features-title {
  background: linear-gradient(90deg, #3182ce, #2b6cb0 85%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-theme .features-desc {
  color: #718096 !important;
}

body.light-theme .feature-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .feature-icon {
  color: #3182ce !important;
}

body.light-theme .feature-title {
  color: #2d3748 !important;
}

body.light-theme .feature-desc {
  color: #718096 !important;
}

/* Light theme studio */
body.light-theme .studio-container {
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme #promptInput {
  background: #ffffff !important;
  border: 2.5px solid #3182ce !important;
  color: #2d3748 !important;
  box-shadow: 0 3px 18px rgba(49, 130, 206, 0.1) !important;
}

body.light-theme #promptInput:focus {
  border-color: #38b2ac !important;
  box-shadow: 0 0 12px rgba(56, 178, 172, 0.3) !important;
}

body.light-theme #systemPromptSelect {
  background: #ffffff !important;
  border: 1.4px solid #e2e8f0 !important;
  color: #2d3748 !important;
}

body.light-theme #systemPromptSelect:focus {
  border-color: #3182ce !important;
  box-shadow: 0 0 7px rgba(49, 130, 206, 0.3) !important;
}

body.light-theme .prompt-btn {
  background: linear-gradient(90deg, #38b2ac, #319795 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 1.5px 9px rgba(56, 178, 172, 0.3) !important;
}

body.light-theme .prompt-btn.secondary {
  background: #ffffff !important;
  color: #4a5568 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .prompt-btn.secondary:hover {
  background: #f7fafc !important;
  color: #38a169 !important;
}

body.light-theme .template-btn {
  background: #ffffff !important;
  color: #4a5568 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .template-btn:hover {
  background: #f7fafc !important;
  border-color: #38b2ac !important;
  color: #2d3748 !important;
}

/* Light theme output */
body.light-theme .score-block {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .output-box {
  background: #f7fafc !important;
  color: #2d3748 !important;
  border: 2.5px solid #3182ce !important;
  box-shadow: 0 4px 28px rgba(49, 130, 206, 0.1) !important;
}

body.light-theme .copy-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
  color: #4a5568 !important;
}

body.light-theme .copy-btn:hover {
  background: #38b2ac !important;
  color: #ffffff !important;
}

/* Light theme pricing */
body.light-theme .pricing-title {
  background: linear-gradient(90deg, #3182ce, #2b6cb0 85%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.light-theme .pricing-desc {
  color: #718096 !important;
}

body.light-theme .pricing-card {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  color: #2d3748 !important;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .pricing-card.popular {
  border: 2.5px solid #38b2ac !important;
  box-shadow: 0 12px 32px rgba(56, 178, 172, 0.2) !important;
}

body.light-theme .pricing-name {
  color: #2d3748 !important;
}

body.light-theme .pricing-blurb {
  color: #718096 !important;
}

body.light-theme .pricing-price {
  color: #2d3748 !important;
}

body.light-theme .pricing-interval {
  color: #718096 !important;
}

body.light-theme .pricing-list li {
  color: #4a5568 !important;
}

body.light-theme .pricing-list li::before {
  color: #38a169 !important;
}

body.light-theme .pricing-action {
  background: linear-gradient(90deg, #38b2ac, #319795 75%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(56, 178, 172, 0.3) !important;
}

body.light-theme .pricing-action:hover {
  background: #2c7a7b !important;
  color: #ffffff !important;
}

body.light-theme .pricing-action[disabled] {
  background: #f7fafc !important;
  color: #a0aec0 !important;
}

/* Light theme FAQ */
body.light-theme .faq-title {
  color: #2d3748 !important;
}

body.light-theme .faq-question {
  background: #ffffff !important;
  color: #2d3748 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-theme .faq-question.open,
body.light-theme .faq-question:hover {
  background: #f7fafc !important;
}

body.light-theme .faq-answer {
  background: #f7fafc !important;
  color: #4a5568 !important;
  border: 1px solid #e2e8f0 !important;
  border-top: none !important;
}

/* Light theme footer */
body.light-theme .footer {
  color: #718096 !important;
  border-top: 1.5px solid #e2e8f0 !important;
}

body.light-theme .footer-links a {
  color: #3182ce !important;
}

body.light-theme .footer-copy {
  color: #a0aec0 !important;
}

/* Light theme status messages */
body.light-theme .status.success {
  background: rgba(56, 178, 172, 0.1) !important;
  color: #2c7a7b !important;
  border: 1px solid rgba(56, 178, 172, 0.3) !important;
}

body.light-theme .status.error {
  background: rgba(245, 101, 101, 0.1) !important;
  color: #30c5c0 !important;
  border: 1px solid rgba(245, 101, 101, 0.3) !important;
}

body.light-theme .status.info {
  background: rgba(49, 130, 206, 0.1) !important;
  color: #2b6cb0 !important;
  border: 1px solid rgba(49, 130, 206, 0.3) !important;
}

body.light-theme .loading {
  color: #718096 !important;
}

/* Sign-in Modal Light Theme */
body.light-theme #signInModal > div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

body.light-theme #signInModal h2 {
  color: #2d3748 !important;
}

body.light-theme #signInModal p {
  color: #718096 !important;
}

body.light-theme #emailInput,
body.light-theme #passwordInput {
  background: #f7fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #2d3748 !important;
}

body.light-theme #emailInput:focus,
body.light-theme #passwordInput:focus {
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

body.light-theme #emailSignInBtn {
  background: #3182ce !important;
  color: #ffffff !important;
}

body.light-theme #emailSignInBtn:hover {
  background: #2c5282 !important;
}

body.light-theme #createAccountBtn {
  color: #3182ce !important;
}

body.light-theme #closeSignInModal {
  border: 1px solid #e2e8f0 !important;
  color: #718096 !important;
}

body.light-theme #closeSignInModal:hover {
  background: #f7fafc !important;
  color: #2d3748 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .prompt-btns {
        flex-direction: column;
    }
    
    .template-list {
        flex-direction: column;
        align-items: center;
    }
    
    .features-list {
        flex-direction: column;
    }
}
/* === Billing Cycle Toggle + Yearly View ========================= */
.billing-toggle{
  display:flex;gap:8px;justify-content:center;margin:16px auto 24px;
  background:#0e1422;padding:6px;border-radius:12px;border:1px solid #22314a;width:max-content
}
.billing-toggle button{
  background:transparent;border:none;color:#9fb6d1;padding:10px 14px;border-radius:8px;
  font-weight:700;cursor:pointer
}
.billing-toggle button.active{background:#3be3c6;color:#0b1326}
.billing-toggle .save{margin-left:6px;background:#133;border-radius:999px;padding:2px 6px;color:#3be3c6;font-size:12px}

/* default: show monthly, hide yearly (scoped to the pricing section by ID) */
#pricing .price-y, #pricing .int-y, #pricing .yearly-note { display:none; }

/* when yearly selected, flip (we toggle .annual on the element with id="pricing") */
#pricing.annual .price-m, #pricing.annual .int-m { display:none; }
#pricing.annual .price-y, #pricing.annual .int-y, #pricing.annual .yearly-note { display:inline; }

.yearly-note{display:block;font-size:12px;color:#9fb6d1;margin-top:4px}
.price-line{display:flex;align-items:baseline;gap:6px}

/* ====== NEW NAVBAR AUTH BUTTONS ====== */
.navbar-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-left: 8px;
}

.navbar-btn.login {
  background-color: #1a202c; /* Dark background */
  color: #ffffff; /* White text */
  border: 1px solid #334152;
}
.navbar-btn.login:hover {
  background-color: #334152;
}

.navbar-btn.signup {
  background-color: #ffffff; /* White background */
  color: #1a202c; /* Dark text */
  border: 1px solid #e2e8f0;
}
.navbar-btn.signup:hover {
  background-color: #f8fafc;
  border-color: #cbd5e0;
}
/* === Actions row (moved from inline; CSP-safe) === */
.actions-row { display:flex; align-items:center; gap:8px; margin-top:8px; }
.actions-row button { position:static !important; margin:0; }

/* === Auth buttons (Google-only modal) === */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  width:100%; padding:12px 16px; border-radius:8px; border:1px solid transparent;
  font-weight:600; cursor:pointer; transition:transform .05s ease-in-out;
}
.btn:active { transform:translateY(1px); }

.btn-google { background:#fff; color:#1f2937; border-color:#e5e7eb; }
.btn-quiet  { background:transparent; color:#a0aec0; border-color:#4a5568; }

/* Optional icon span inside the Google button */
.btn-icon { display:inline-block; width:20px; height:20px; }

/* Divider & modal actions */
.divider { text-align:center; margin:16px 0; font-size:.875rem; color:#718096; }
.divider span { background:transparent; padding:0 6px; }
.modal-actions { text-align:center; margin-top:12px; }

