/* ═══════════════════════════════════════════════════════════
   QR CODE APP — Complete stylesheet
═══════════════════════════════════════════════════════════ */

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

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #EDE9FE;
  --accent: #10B981;
  --accent-dark: #047857;

  --text: #1a1a1a;
  --text-muted: #5a6473;
  --text-light: #8a93a4;

  --bg: #ffffff;
  --bg-alt: #F8F7FC;
  --bg-dark: #0F1621;

  --border: #E4E7EC;
  --border-light: #F0F2F5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --container: 1200px;
  --header-height: 72px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  z-index: 1000;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo-icon { width: 28px; height: 28px; stroke-width: 2.2; }
.logo-text { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang-select:hover, .lang-select:focus {
  outline: none;
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  top: -100px; right: -100px;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  bottom: -100px; left: -80px;
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4); }
.btn-primary svg { width: 24px; height: 24px; }

.btn-primary span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.btn-primary small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.btn-primary strong { font-size: 16px; font-weight: 700; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-large svg { width: 28px; height: 28px; }
.btn-large:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }

.btn-large span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.btn-large small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.06em;
}

.btn-large strong { font-size: 16px; font-weight: 700; }

.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-disabled:hover { transform: none; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── PHONE MOCKUP ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  background: #1a1a1a;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 30px 70px rgba(91, 33, 182, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0F1621;
  position: relative;
}

.mock-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 20px 20px;
  color: #fff;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mock-title { font-size: 18px; font-weight: 700; }
.mock-icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,0.1); }

.mock-viewfinder {
  position: relative;
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.mock-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid var(--primary);
}

.mock-corner.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.mock-corner.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.mock-corner.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.mock-corner.br { bottom: 20px; right: 20px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.mock-scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  top: 50%;
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { top: 20%; opacity: 0.3; }
  50% { top: 80%; opacity: 1; }
}

.mock-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 16px;
}

.mock-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.mock-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mock-action-btn.primary {
  width: 56px;
  height: 56px;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.phone-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.phone-decoration-1 {
  width: 80px; height: 80px;
  background: var(--accent);
  top: 40px; right: 30px;
  opacity: 0.9;
  animation: float 8s ease-in-out infinite;
}

.phone-decoration-2 {
  width: 50px; height: 50px;
  background: var(--primary-light);
  bottom: 60px; left: 20px;
  animation: float 7s ease-in-out infinite reverse;
}

.phone-decoration-3 {
  width: 30px; height: 30px;
  background: var(--accent);
  top: 50%; right: 10px;
  opacity: 0.7;
  animation: float 9s ease-in-out infinite;
}

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

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-header p { font-size: 17px; color: var(--text-muted); }

/* ── FEATURES ── */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.feature-card-large { grid-column: span 3; }
.feature-card { grid-column: span 2; }

.feature-card {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  color: var(--icon-color);
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.15s ease;
}

.feature-link:hover { color: var(--primary-dark); }

/* ── TYPES GRID ── */
.types {
  padding: 100px 0;
  background: var(--bg);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.type-card {
  padding: 24px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.type-emoji {
  display: inline-block;
  font-size: 32px;
  margin-bottom: 12px;
}

.type-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.type-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 0;
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
}

.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }

.step p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ── CTA ── */
.cta { padding: 40px 0; background: var(--bg); }

.cta-card {
  position: relative;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(91, 33, 182, 0.35);
}

.cta-card::before, .cta-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-card::before {
  width: 300px; height: 300px;
  top: -150px; right: -80px;
}

.cta-card::after {
  width: 200px; height: 200px;
  bottom: -100px; left: -60px;
}

.cta-card h2, .cta-card p, .cta-card .btn {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* ── DOWNLOAD ── */
.download { padding: 40px 0 100px; background: var(--bg); }

.download-card {
  position: relative;
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.download-card::before, .download-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
}

.download-card::before {
  width: 300px; height: 300px;
  top: -150px; right: -80px;
}

.download-card::after {
  width: 200px; height: 200px;
  bottom: -100px; left: -60px;
}

.download-card h2, .download-card p, .download-card .btn {
  position: relative;
  z-index: 1;
}

.download-card h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: #cbd3dd;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo-text { color: #fff; }

.footer-brand p {
  font-size: 14px;
  color: #8a93a4;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #8a93a4;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #8a93a4;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large, .feature-card { grid-column: span 1; }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    gap: 0;
  }

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

  .nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .menu-toggle { display: flex; }
  .hero { padding: calc(var(--header-height) + 40px) 0 60px; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .phone { width: 240px; height: 490px; }
  .phone-decoration-1 { width: 60px; height: 60px; right: 10px; top: 20px; }
  .phone-decoration-2 { width: 40px; height: 40px; left: 10px; }
  .features, .how, .types { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 40px; }
  .cta, .download { padding: 20px 0 60px; }
  .cta-card, .download-card { padding: 48px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .lang-select { padding: 6px 8px; font-size: 13px; max-width: 100px; }
}

@media (max-width: 420px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { justify-content: center; width: 100%; }
  .hero-stats { gap: 24px; }
  .types-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   TRY ONLINE PAGE
═══════════════════════════════════════════════════════════ */
.page-hero-compact {
  padding: calc(var(--header-height) + 24px) 0 16px;
}

.page-hero-compact h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 6px;
}

.page-hero .page-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.try-page {
  padding: 20px 0 80px;
}

.try-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-alt);
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  max-width: 400px;
}

.try-tab {
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.try-tab:hover {
  color: var(--primary);
}

.try-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.try-panel {
  display: none;
}

.try-panel.active {
  display: block;
}

/* ── GENERATOR LAYOUT ── */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.generator-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

#dynamic-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group label .required {
  color: #E53935;
  margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6473' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ── PREVIEW ── */
.generator-preview-wrap {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.qr-preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  overflow: hidden;
}

.qr-preview svg {
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 320px;
}

.qr-empty {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  padding: 40px 16px;
  line-height: 1.5;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

.btn-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── SCANNER LAYOUT ── */
.scanner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.scanner-view-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0F1621;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scanner-overlay.active {
  opacity: 1;
}

.scanner-frame {
  position: relative;
  width: 60%;
  aspect-ratio: 1;
  max-width: 280px;
}

.scanner-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid var(--primary);
}

.scanner-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.scanner-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.scanner-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.scanner-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.scanner-actions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.btn-scan-start,
.btn-scan-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-scan-start:hover,
.btn-scan-stop:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-scan-stop {
  background: #DC2626;
}

.btn-scan-stop:hover {
  background: #B91C1C;
}

.scan-message {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
  line-height: 1.4;
}

.scan-message.error {
  background: rgba(220, 38, 38, 0.95);
}

.scanner-result-wrap {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.scanner-result-wrap h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.scan-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scan-empty {
  font-size: 14px;
  color: var(--text-light);
  padding: 24px 12px;
  text-align: center;
  line-height: 1.6;
}

.scan-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.scan-format {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.scan-raw {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-all;
  font-family: 'Inter', monospace;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scan-action {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.scan-action:hover {
  background: var(--primary);
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .generator-layout {
    grid-template-columns: 1fr;
  }
  .generator-preview-wrap {
    position: static;
  }
  .scanner-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .try-tabs {
    max-width: none;
  }
  .try-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
  .generator-form-wrap {
    padding: 20px;
  }
  .qr-preview-card {
    padding: 16px;
  }
  .scanner-result-wrap {
    padding: 20px;
  }
}

/* ── BOTTOM NAV (mobile) ── */
.bottom-nav {
  display: none;
}

@media (max-width: 720px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
  }

  .bottom-nav-item:active {
    background: var(--primary-light);
  }

  .bottom-nav-item:active svg {
    transform: scale(0.92);
  }

  .bottom-nav-item.active {
    color: var(--primary);
  }

  .bottom-nav-item.active svg {
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.25));
  }

  .bottom-nav-item span {
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ═══════════════════════════════════════════════════════════
   ADDRESS AUTOCOMPLETE
═══════════════════════════════════════════════════════════ */
.address-input-wrapper {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  margin-top: -1px;
}

.address-suggestions[hidden] {
  display: none !important;
}

.address-suggestion-item {
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  transition: background 0.1s;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.address-suggestion-item.address-empty,
.address-suggestion-item.address-loading {
  cursor: default;
  color: var(--text-light);
  font-style: italic;
}

.address-suggestion-item.address-empty:hover,
.address-suggestion-item.address-loading:hover {
  background: transparent;
  color: var(--text-light);
}

.form-hint {
  font-size: 12.5px;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Navigation app selector ── */
.form-group select[data-field-name="navApp"] {
  font-weight: 500;
}

.form-group select[data-field-name="navApp"] option {
  padding: 8px;
}

/* ═══════════════════════════════════════════════════════════
   NAV APP SEGMENTED CONTROL (Location type) — compact
═══════════════════════════════════════════════════════════ */
.form-group.nav-app-choice {
  padding: 12px 14px;
  background: linear-gradient(135deg, #F5F0FF 0%, #FFFFFF 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.12);
  margin-bottom: 4px;
}

.form-group.nav-app-choice > label {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.segmented-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.segmented-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  font-family: inherit;
  color: var(--primary-dark);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.segmented-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.15);
}

.segmented-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.segmented-btn.active:hover {
  transform: translateY(-1px);
}

.segmented-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.segmented-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-group.nav-app-choice .form-hint {
  margin-top: 8px;
  text-align: center;
  color: var(--primary-dark);
  opacity: 0.75;
  font-size: 12px;
}

@media (max-width: 480px) {
  .segmented-btn {
    padding: 9px 8px;
    gap: 5px;
  }
  .segmented-label {
    font-size: 12px;
  }
  .segmented-icon {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY SECTION
═══════════════════════════════════════════════════════════ */
.privacy {
  padding: 100px 0;
  background: var(--bg);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.privacy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 16px;
}

.privacy-icon svg {
  width: 24px;
  height: 24px;
}

.privacy-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.privacy-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   ROADMAP SECTION
═══════════════════════════════════════════════════════════ */
.roadmap {
  padding: 100px 0;
  background: var(--bg-alt);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.roadmap-card {
  position: relative;
  padding: 32px 24px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.roadmap-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px;
  margin-bottom: 12px;
}

.roadmap-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.roadmap-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .privacy-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .privacy,
  .roadmap {
    padding: 60px 0;
  }
  .privacy-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGES (privacy, imprint, future legal pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--header-height) + 60px) 0 40px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}

.page-hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.page-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* Re-assert compact variant after base .page-hero */
.page-hero-compact {
  padding: calc(var(--header-height) + 24px) 0 16px;
}

.page-hero-compact h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 6px;
}

.page-content {
  padding: 40px 0 80px;
  background: var(--bg);
}

.page-content-inner {
  max-width: 780px;
  margin: 0 auto;
}

.page-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  color: #5D4037;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 36px;
}

.page-notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.page-content p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}

.page-content li::marker {
  color: var(--primary);
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.page-content a:hover {
  text-decoration-color: var(--primary);
}

.page-content code {
  padding: 2px 6px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--primary-dark);
}

.page-content strong {
  font-weight: 700;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .page-hero {
    padding: calc(var(--header-height) + 32px) 0 24px;
  }
  .page-content {
    padding: 24px 0 60px;
  }
  .page-content h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  .page-content h3 {
    font-size: 16px;
  }
  .page-content p,
  .page-content li {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════ */
.faq-list {
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 40px 22px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

@media (max-width: 720px) {
  .faq-question {
    font-size: 15.5px;
    padding: 16px 0;
    gap: 12px;
  }
  .faq-answer-content {
    padding: 0 0 20px 0;
    font-size: 14.5px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FEEDBACK FORM
═══════════════════════════════════════════════════════════ */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}

.feedback-form .form-group label .optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
  margin-left: 4px;
}

.feedback-form textarea {
  min-height: 160px;
}

.feedback-note {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 8px;
}

.feedback-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

.btn-submit svg {
  width: 18px;
  height: 18px;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.feedback-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #E8F5E9;
  border-left: 3px solid #2E7D32;
  border-radius: var(--radius-sm);
  color: #1B5E20;
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
}

.feedback-success.visible {
  display: flex;
}

.feedback-success svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.praise-section {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px;
  background: linear-gradient(180deg, #FFF8E1 0%, #FFFDE7 100%);
  border-left: 3px solid #F9A825;
  border-radius: var(--radius);
  margin-top: 4px;
}

.praise-section.visible {
  display: flex;
}

.praise-section .form-group label {
  color: #6D4C00;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.star-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #D0D5DD;
  transition: transform 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.star-btn:hover,
.star-btn.hover,
.star-btn.selected {
  color: #F9A825;
  transform: scale(1.15);
}

.star-label {
  margin-left: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6D4C00;
  min-height: 18px;
  transition: opacity 0.15s ease;
}

.star-label:empty {
  opacity: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

@media (max-width: 720px) {
  .feedback-form {
    gap: 18px;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-submit,
  .btn-reset {
    justify-content: center;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   CONTRIBUTE PAGE
═══════════════════════════════════════════════════════════ */
.contribute-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 40px;
}

.contribute-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 36px 28px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contribute-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contribute-card.paypal:hover {
  border-color: #0070BA;
}

.contribute-card.kofi:hover {
  border-color: #FF5E5B;
}

.contribute-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  margin-bottom: 4px;
}

.contribute-card.paypal .contribute-icon {
  background: linear-gradient(135deg, #0070BA 0%, #003087 100%);
}

.contribute-card.kofi .contribute-icon {
  background: linear-gradient(135deg, #FF5E5B 0%, #E63946 100%);
}

.contribute-icon svg {
  width: 36px;
  height: 36px;
}

.contribute-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.contribute-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 260px;
}

.contribute-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  margin-top: 4px;
  transition: opacity 0.15s ease;
}

.contribute-card.paypal .contribute-cta {
  background: #0070BA;
}

.contribute-card.kofi .contribute-cta {
  background: #FF5E5B;
}

.contribute-card:hover .contribute-cta {
  opacity: 0.9;
}

.contribute-cta svg {
  width: 14px;
  height: 14px;
}

.contribute-thanks {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border-left: 3px solid #F9A825;
  border-radius: var(--radius);
  color: #5D4037;
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 8px;
}

.contribute-thanks svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #F9A825;
  margin-top: 1px;
}

.contribute-why {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.contribute-why h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.contribute-why ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contribute-why li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.contribute-why li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .contribute-actions {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 32px;
  }
  .contribute-card {
    padding: 28px 20px;
  }
  .contribute-icon {
    width: 60px;
    height: 60px;
  }
  .contribute-icon svg {
    width: 30px;
    height: 30px;
  }
  .contribute-name {
    font-size: 19px;
  }
  .contribute-why {
    margin-top: 32px;
    padding-top: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════
   EMAIL PROVIDER MODAL
═══════════════════════════════════════════════════════════ */
.email-provider-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.email-provider-modal.visible {
  display: flex;
}

.email-provider-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 33, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.email-provider-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  animation: epFadeIn 0.2s ease;
}

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

.ep-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ep-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.email-provider-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.email-provider-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.ep-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.ep-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.ep-option:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.ep-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.ep-fallback {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.ep-fallback-text {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  margin-bottom: 16px;
}

.ep-cancel {
  display: block;
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ep-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

@media (max-width: 480px) {
  .email-provider-card {
    padding: 24px 20px;
  }
  .ep-options {
    grid-template-columns: 1fr;
  }
  .email-provider-card h2 {
    font-size: 19px;
  }
}