/*
 * GOONSAI — void aesthetic
 * anti-corporate, anti-bloat, pro-mystery
 */

/* ═══════════════════════════════════════════
   RESET & FOUNDATION
   ═══════════════════════════════════════════ */

:root {
  --void: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --stroke: #222222;
  --ghost: #444444;
  --muted: #666666;
  --text: #999999;
  --text-bright: #cccccc;
  --white: #e8e8e8;
  --accent: #00ffcc;
  --accent-dim: #00aa88;
  --danger: #ff2244;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════
   HEADER — minimal
   ═══════════════════════════════════════════ */

header {
  background: transparent;
  border-bottom: 1px solid var(--stroke);
  padding: 2rem 0;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tagline {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-size: 0.75rem;
  color: var(--ghost);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

nav a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */

main {
  padding: 4rem 0;
}

.section-title {
  font-size: 0.75rem;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  text-align: center;
}

/* ═══════════════════════════════════════════
   SUBSCRIBE FORM — the core
   ═══════════════════════════════════════════ */

.subscribe-section {
  background: transparent;
  padding: 0;
}

.form-container {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.tagline-hero {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-style: italic;
}

.form-header h2 {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Plan options */
.plan-option {
  display: block;
  background: var(--void);
  border: 1px solid var(--stroke);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-option:hover {
  border-color: var(--ghost);
  background: var(--surface-hover);
}

.plan-option.selected,
.plan-option:has(input:checked) {
  border-color: var(--accent-dim);
  background: var(--surface-hover);
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-bright);
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.plan-description {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.plan-features {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
}

.plan-features li {
  font-size: 0.7rem;
  color: var(--ghost);
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
  list-style: none;
}

.plan-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* Credit selector */
.credit-selector {
  margin-top: 1rem;
}

.credit-selector label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* Form inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  text-transform: lowercase;
}

.form-input,
input[type="email"],
input[type="text"],
select {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--stroke);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
input[type="email"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.form-input::placeholder,
input::placeholder {
  color: var(--ghost);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background: var(--surface);
  color: var(--text);
}

.form-hint {
  font-size: 0.65rem;
  color: var(--ghost);
  margin-top: 0.35rem;
}

.form-disclaimer {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px dashed var(--stroke);
  line-height: 1.5;
}

.try-first {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--stroke);
}

.try-first span {
  font-size: 0.7rem;
  color: var(--ghost);
  margin-right: 0.5rem;
}

.try-first a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.try-first a:hover {
  color: var(--accent);
}

/* Telegram widget container — tame the blue beast */
#telegram-login-container {
  padding: 0.75rem 0;
  display: flex;
  justify-content: flex-start;
  min-height: 40px;
  position: relative;
}

#telegram-login-container iframe {
  filter: saturate(0) brightness(0.6) contrast(1.2);
  opacity: 0.7;
  transition: all 0.3s ease;
}

#telegram-login-container:hover iframe,
#telegram-login-container:focus-within iframe {
  filter: saturate(0.5) brightness(0.85) contrast(1);
  opacity: 1;
}

/* After telegram auth - show confirmation state */
.telegram-confirmed {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding: 0.5rem 0;
}

.telegram-confirmed::before {
  content: "✓ ";
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checkbox-group span {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button */
.submit-btn,
button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.submit-btn:hover,
button[type="submit"]:hover {
  background: var(--white);
}

.submit-btn:active,
button[type="submit"]:active {
  transform: scale(0.98);
}

.form-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
}

.form-footer p {
  font-size: 0.65rem;
  color: var(--ghost);
  margin-bottom: 0.5rem;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0.3;
}

.payment-icons img {
  height: 1rem;
  filter: grayscale(100%) invert(1);
}

/* Processing state */
#processingMessage {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  padding: 1rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   FOOTER — minimal
   ═══════════════════════════════════════════ */

footer {
  background: transparent;
  border-top: 1px solid var(--stroke);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer .container {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.7rem;
  color: var(--ghost);
  font-family: var(--font-mono);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.65rem;
  color: var(--ghost);
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — mobile first is already here
   ═══════════════════════════════════════════ */

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .form-container {
    padding: 2.5rem;
  }
}

/* ═══════════════════════════════════════════
   KILL OLD STYLES — override tailwind garbage
   ═══════════════════════════════════════════ */

.bg-gradient,
.bg-gray-50,
.bg-gray-100,
.bg-white,
.bg-purple-800,
.bg-indigo-600,
.bg-green-100,
.bg-yellow-50,
.bg-blue-50,
.bg-blue-100,
.bg-purple-100 {
  background: transparent !important;
}

.text-white {
  color: var(--text-bright) !important;
}

.shadow-lg,
.shadow-xl,
.shadow-2xl,
.shadow-md {
  box-shadow: none !important;
}

.rounded-xl,
.rounded-lg {
  border-radius: 0 !important;
}

.border-purple-400,
.border-blue-400,
.border-l-4 {
  border-color: var(--stroke) !important;
}

/* Kill animations we don't need */
.animate-on-scroll {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */

.legal-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: 3rem 1.5rem;
}

.legal-content {
  max-width: 680px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.legal-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.legal-section h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.legal-section li {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  list-style: none;
  position: relative;
  padding-left: 1rem;
}

.legal-section li::before {
  content: "—";
  position: absolute;
  left: -0.5rem;
  color: var(--ghost);
}

.legal-section ol li {
  counter-increment: item;
}

.legal-section ol li::before {
  content: counter(item) ".";
  color: var(--accent-dim);
}

.legal-section a {
  color: var(--accent);
}

.legal-section a:hover {
  color: var(--white);
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Alert boxes for legal pages */
.legal-alert {
  background: var(--surface);
  border-left: 2px solid var(--accent-dim);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.legal-alert p {
  margin-bottom: 0.5rem;
}

.legal-alert p:last-child {
  margin-bottom: 0;
}

.legal-alert--warning {
  border-left-color: #ffaa00;
}

.legal-alert--danger {
  border-left-color: var(--danger);
}

.legal-alert--danger p {
  color: var(--text);
}

/* Dispute page FAFO styling */
.fafo-warning {
  background: var(--surface);
  border: 1px solid var(--danger);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.fafo-warning p {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--danger);
  margin: 0;
}

/* ═══════════════════════════════════════════
   REVIEWS PAGE
   ═══════════════════════════════════════════ */

.reviews-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.reviews-main {
  flex: 1;
  padding: 2rem 1.5rem;
}

.reviews-content {
  max-width: 540px;
  margin: 0 auto;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.reviews-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.reviews-subtitle {
  font-size: 0.7rem;
  color: var(--ghost);
  font-style: italic;
}

.reviews-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px dashed var(--stroke);
  line-height: 1.6;
}

.review {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stroke);
}

.review:last-child {
  border-bottom: none;
}

.review-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.review-text::before {
  content: """;
  color: var(--ghost);
}

.review-text::after {
  content: """;
  color: var(--ghost);
}

.review-meta {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--ghost);
}

.review.legendary .review-text {
  color: var(--accent);
}

.curator {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
  font-size: 0.65rem;
  color: var(--ghost);
}

.curator span {
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   HELP PAGE
   ═══════════════════════════════════════════ */

.help-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.help-main {
  flex: 1;
  padding: 2rem 1.5rem;
}

.help-content {
  max-width: 640px;
  margin: 0 auto;
}

.help-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.help-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.help-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 540px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--void);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video-info {
  padding: 1rem;
  border-top: 1px solid var(--stroke);
}

.video-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}

.video-description {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

.guides-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke);
}

.coming-soon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ghost);
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--stroke);
}

.support-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
}

.support-text {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.support-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-dim);
  transition: all 0.2s ease;
}

.support-link:hover {
  background: var(--accent);
  color: var(--void);
}

/* ═══════════════════════════════════════════
   AFFILIATE PAGE
   ═══════════════════════════════════════════ */

.affiliate-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.affiliate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.affiliate-content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.affiliate-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.affiliate-note {
  font-size: 0.75rem;
  color: var(--ghost);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.waitlist-box {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.waitlist-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.affiliate-disclaimer {
  font-size: 0.65rem;
  color: var(--ghost);
  line-height: 1.5;
}

/* Loops.so form overrides */
.newsletter-form-container {
  width: 100%;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form-input {
  width: 100% !important;
  max-width: 100% !important;
  background: var(--void) !important;
  border: 1px solid var(--stroke) !important;
  color: var(--white) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.875rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.newsletter-form-input:focus {
  outline: none;
  border-color: var(--accent-dim) !important;
}

.newsletter-form-input::placeholder {
  color: var(--ghost) !important;
}

.newsletter-form-button,
.newsletter-loading-button {
  width: 100% !important;
  max-width: 100% !important;
  background: var(--accent) !important;
  color: var(--void) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: lowercase !important;
  height: auto !important;
}

.newsletter-form-button:hover {
  background: var(--white) !important;
}

.newsletter-success-message {
  font-family: var(--font-mono) !important;
  color: var(--accent) !important;
  font-size: 0.8rem !important;
}

.newsletter-error-message {
  font-family: var(--font-mono) !important;
  color: var(--danger) !important;
  font-size: 0.8rem !important;
}

.newsletter-back-button {
  font-family: var(--font-mono) !important;
  color: var(--muted) !important;
  font-size: 0.75rem !important;
}

/* ═══════════════════════════════════════════
   ACE PROMPTER PAGE
   ═══════════════════════════════════════════ */

.prompter-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.prompter-main {
  flex: 1;
  padding: 2rem 1.5rem;
}

.prompter-content {
  max-width: 640px;
  margin: 0 auto;
}

.prompter-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.prompter-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.prompter-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.input-section {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.type-selector {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.type-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.type-option input {
  accent-color: var(--accent);
}

.type-option:has(input:checked) {
  color: var(--accent);
}

.prompt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.prompt-textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--stroke);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 1rem;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.prompt-textarea::placeholder {
  color: var(--ghost);
}

.char-count {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ghost);
  margin-top: 0.5rem;
}

.enhance-btn {
  width: 100%;
  background: var(--accent);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-transform: lowercase;
  margin-top: 1rem;
}

.enhance-btn:hover {
  background: var(--white);
}

.enhance-btn:disabled {
  background: var(--ghost);
  cursor: not-allowed;
}

.loading {
  display: none;
  text-align: center;
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.loading.active {
  display: block;
}

.results-section {
  display: none;
}

.results-section.active {
  display: block;
}

.results-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.result-card:hover {
  border-color: var(--accent-dim);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.result-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.result-score {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent-dim);
  color: var(--void);
}

.result-score.high {
  background: var(--accent);
}

.result-score.medium {
  background: #ffaa00;
}

.result-score.low {
  background: var(--ghost);
}

.result-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
  background: var(--void);
  padding: 1rem;
  border: 1px solid var(--stroke);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.result-copy {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ghost);
}

/* Syntax highlighting */
.syntax-weight { color: #d946ef; }
.syntax-modifier { color: #3b82f6; }
.syntax-lora { color: var(--accent); }
.syntax-camera { color: #ffaa00; }

.tips-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
}

.tips-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.tip {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.tip::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  animation: toastSlideIn 0.3s ease;
}

.toast.error {
  border-color: var(--danger);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Age verification modal */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-modal {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 2rem;
  max-width: 400px;
  text-align: center;
}

.age-modal h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.age-modal p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.age-buttons {
  display: flex;
  gap: 0.75rem;
}

.age-btn {
  flex: 1;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.age-btn.accept {
  background: var(--accent);
  color: var(--void);
}

.age-btn.accept:hover {
  background: var(--white);
}

.age-btn.decline {
  background: var(--ghost);
  color: var(--void);
}

.age-btn.decline:hover {
  background: var(--muted);
}
