:root {
  --black: #080808;
  --surface: #111018;
  --surface2: #1a1826;
  --surface3: #221f33;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dim: rgba(124,58,237,0.15);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);
  --green: #4ade80;
  --green-dim: rgba(74,222,128,0.1);
  --yellow: #fbbf24;
  --ghost: #f0eeff;
  --muted: #6b6880;
  --border: rgba(255,255,255,0.07);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  overflow-x: hidden;
  overflow-y: hidden;
  max-width: 100%;
  min-height: 100%;
  background: var(--black);
  color: var(--ghost);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.app {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  will-change: transform;
  overflow-x: hidden;
}

.screen.hidden { transform: translateX(100%); opacity: 0; pointer-events: none; }
.screen.slide-left { transform: translateX(-30%); opacity: 0; pointer-events: none; }

#screen-onboard {
  background: var(--black);
  align-items: center;
  justify-content: flex-start;
  padding: 32px 28px 52px;
  text-align: center;
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.onboard-glow {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 70%);
  top: 10%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

.onboard-ghost {
  font-size: 88px;
  display: block;
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(124,58,237,0.5));
}

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

.onboard-content { position: relative; z-index: 1; width: 100%; }

.onboard-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--ghost);
  margin-bottom: 26px;
}

.onboard-title .dim {
  color: transparent;
  -webkit-text-stroke: 1px rgba(167,139,250,0.4);
}

.onboard-sub {
  font-size: 24px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 400;
  max-width: 340px;
  margin: 0 auto 32px;
}

.hero-text {
  text-align: center;
  margin-bottom: 32px;
}

.wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
  opacity: 0.7;
}

.hero-text h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ghost);
  margin-bottom: 32px;
}

.hero-text .subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

.onboard-quick-steps {
  width: 420px;
  margin: 0 auto 28px;
  max-width: 100%;
}

.onboard-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.onboard-step:last-child {
  margin-bottom: 0;
}

.onboard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-light);
  flex-shrink: 0;
}

.onboard-step-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
}

.onboard-step-text strong {
  color: var(--ghost);
  font-weight: 600;
}

.privacy-note {
  font-size: 16px;
  color: #e5e7eb;
  margin-top: 14px;
  line-height: 1.6;
  background: rgba(124, 58, 237, 0.13);
  border: 1px solid rgba(124, 58, 237, 0.35);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.privacy-note::before {
  content: '\1F510';
  font-size: 17px;
}

.privacy-note strong {
  color: #f9fafb;
  font-weight: 600;
}

.results-summary {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 10px;
}

@media (max-width: 480px) {
  .privacy-note {
    border-radius: 16px;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
  }

  .onboard-pills {
    flex-wrap: wrap !important;
    gap: 8px;
  }

  .pill {
    flex: 1 1 calc(50% - 8px) !important;
    font-size: 13px;
    white-space: normal !important;
    text-align: center;
  }
}

.onboard-pills {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: 20px;
  width: 100%;
  padding: 0 28px;
  box-sizing: border-box;
}

.pill {
  flex: 1 1 0;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.onboard-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 24px;
  margin-top: 32px;
  margin-bottom: 20px;
  text-align: center;
  padding-left: 28px;
  padding-right: 28px;
}

.btn-main {
  width: 100%;
  padding: 18px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.btn-main:active { transform: scale(0.97); background: #6d28d9; }

.btn-main-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  font-family: 'DM Sans', sans-serif;
}
.btn-price-highlight {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-secondary {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.btn-secondary:active { background: var(--surface); }

#screen-upload {
  background: var(--black);
  padding: 0;
}

.screen-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.back-btn:active { background: var(--surface2); }

.header-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.how-title {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.step-row:last-child { margin-bottom: 0; }

.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text { font-size: 16px; color: var(--muted); line-height: 1.5; }
.step-text strong { color: var(--ghost); font-weight: 500; }

.upload-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ghost);
}

.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.upload-card:active { background: var(--surface2); }
.upload-card.loaded { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.upload-card.error { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.04); }

.upload-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.upload-card.loaded .upload-icon-wrap { background: var(--green-dim); }

.upload-info { flex: 1; min-width: 0; }
.upload-name { font-size: 16px; font-weight: 700; color: var(--ghost); margin-bottom: 3px; }
.upload-status { font-size: 16px; color: var(--muted); }
.upload-card.loaded .upload-status { color: var(--green); }
.upload-card.error .upload-status { color: var(--red); }

.upload-arrow { font-size: 18px; color: var(--muted); flex-shrink: 0; }
.upload-card.loaded .upload-arrow { color: var(--green); }

.upload-card-zip {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.06);
}
.upload-card-zip .upload-icon-wrap { background: rgba(124,58,237,0.18); }
.upload-card-zip.loaded { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.upload-card-zip.error  { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.04); }
.recommended-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--purple);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.4px;
  vertical-align: middle;
}
.upload-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.upload-divider::before,
.upload-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

input[type=file] { display: none; }

.analyze-btn {
  width: 100%;
  padding: 18px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  opacity: 0.4;
  pointer-events: none;
  letter-spacing: -0.3px;
}
.analyze-btn.ready { opacity: 1; pointer-events: all; }
.analyze-btn.ready:active { transform: scale(0.97); }

#screen-results {
  background: var(--black);
}

.results-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.results-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.results-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-btn {
  font-size: 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.stat-box .n {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.stat-box .l { font-size: 10px; color: var(--muted); margin-top: 3px; }
.stat-box.danger .n { color: var(--red); }
.stat-box.warn .n { color: var(--yellow); }

.tabs {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 3px;
  margin: 12px 20px 0;
  flex-shrink: 0;
}

.tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}
.tab.active { background: var(--surface3); color: var(--ghost); }

.search-wrap {
  position: relative;
  padding: 12px 20px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px 11px 40px;
  font-size: 16px;
  color: var(--ghost);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: rgba(124,58,237,0.4); }
.search-input::placeholder { color: var(--muted); }

.search-icon {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.list-area {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 8px;
  gap: 12px;
  border: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.list-item:active { background: var(--surface2); }

.list-item.blurred::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(8,8,8,0.3);
  border-radius: 14px;
}

.av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
}
.av-red { background: var(--red-dim); color: var(--red); }
.av-yellow { background: rgba(251,191,36,0.1); color: var(--yellow); }

.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 16px; font-weight: 500; color: var(--ghost); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-tag { font-size: 11px; color: var(--muted); margin-top: 2px; }

.item-action {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--purple-light);
  background: var(--purple-dim);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.paywall-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(76,29,149,0.95));
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 8px;
  text-align: center;
  border: 1px solid rgba(167,139,250,0.2);
}

.paywall-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.paywall-sub { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }

.paywall-btn {
  background: white;
  color: var(--purple);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: transform 0.15s;
  width: 100%;
}
.paywall-btn:active { transform: scale(0.97); }
.paywall-note { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 8px; }
.stripe-badge {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

.stripe-badge svg {
  width: 38px;
  height: 16px;
  opacity: 0.55;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 16px;
}
.empty-state .ei { font-size: 40px; display: block; margin-bottom: 12px; }

.guide-hero {
  background: linear-gradient(160deg, rgba(124,58,237,0.12) 0%, transparent 60%);
  padding: 24px 20px 48px;
  flex-shrink: 0;
}

.guide-hero-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  flex-shrink: 0;
}

.guide-hero-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.guide-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--ghost);
  margin-bottom: 10px;
  padding-bottom: 0;
}

.brand-instagram {
  font-family: inherit;
  font-weight: inherit;
}

.guide-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-section {
  margin-bottom: 28px;
}

.guide-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-top: 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-step {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.guide-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-step-body { flex: 1; }

.guide-step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ghost);
  margin-bottom: 4px;
  line-height: 1.4;
}

.guide-step-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.guide-step-desc strong { color: var(--ghost); font-weight: 500; }

.ui-label { color: var(--ghost); font-weight: 500; }

.guide-path {
  background: var(--surface2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  color: var(--purple-light);
  margin-top: 8px;
  font-family: monospace;
  letter-spacing: 0.3px;
  line-height: 1.8;
  border: 1px solid rgba(124,58,237,0.15);
}

.guide-path span {
  color: var(--muted);
}

.guide-video {
  margin: 8px auto 22px;
  max-width: 800px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid rgba(124,58,237,0.18);
  position: relative;
}

.guide-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.guide-video-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 14px 12px;
  line-height: 1.45;
  border-top: 1px solid rgba(124,58,237,0.12);
}

.guide-video-caption strong {
  color: var(--purple-light);
  font-weight: 600;
}

.guide-tip {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.guide-tip-icon { font-size: 18px; flex-shrink: 0; }
.guide-tip-text { font-size: 16px; color: var(--muted); line-height: 1.5; }
.guide-tip-text strong { color: var(--green); }

.guide-warn {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.guide-warn-text { font-size: 16px; color: var(--muted); line-height: 1.5; }
.guide-warn-text strong { color: var(--yellow); }

.guide-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}

.guide-faq-q {
  font-size: 16px;
  font-weight: 500;
  color: var(--ghost);
  margin-bottom: 6px;
}

.guide-faq-a {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.explore-more {
  margin: 28px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.explore-more-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.explore-more a {
  display: block;
  color: var(--purple-light);
  font-size: 15px;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.explore-more a:last-child { border-bottom: none; }
.explore-more a:hover { color: var(--ghost); }

.install-banner {
  margin: 0 20px 12px;
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.install-text { flex: 1; font-size: 16px; color: var(--muted); line-height: 1.4; }
.install-text strong { color: var(--ghost); display: block; font-size: 16px; margin-bottom: 2px; }
.install-btn-sm {
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Bricolage Grotesque', sans-serif;
}

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

.list-item { animation: slideUp 0.3s ease both; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.loading { animation: pulse 1s ease infinite; }

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.contact-modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.contact-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUpModal 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-header {
  margin-bottom: 24px;
  position: relative;
  text-align: center;
}

.contact-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  transition: all 0.2s;
}

.contact-modal-close:active {
  background: var(--surface3);
  color: var(--ghost);
}

.contact-modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ghost);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.contact-modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple-light);
}

.contact-category-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-category-btn {
  flex: 1;
  min-width: 90px;
  padding: 12px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.contact-category-btn:active,
.contact-category-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.contact-form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ghost);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-textarea:focus {
  border-color: var(--purple);
}

.contact-form-textarea::placeholder {
  color: var(--muted);
}

.contact-char-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

.contact-form-submit {
  width: 100%;
  padding: 14px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

.contact-form-submit:active {
  transform: scale(0.97);
  background: #6d28d9;
}

.contact-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-success-state {
  display: none;
  text-align: center;
  animation: slideUpModal 0.3s ease;
}

.contact-success-state.active {
  display: block;
}

.contact-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: pulse 0.6s ease;
}

.contact-success-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}

.contact-success-message {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-success-redirect {
  font-size: 13px;
  color: var(--purple-light);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-link {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 14px;
}

.contact-link:active {
  background: var(--surface2);
  border-color: var(--purple);
  color: var(--purple-light);
}

.feedback-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  margin-top: 12px;
}
.feedback-trigger:active { color: var(--purple-light); }

.payment-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOutOverlay 0.5s ease 5s forwards;
}

.code-lost {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: none;
  color: var(--purple-light);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.code-lost:hover { opacity: 1; }

@keyframes fadeOutOverlay {
  to { opacity: 0; pointer-events: none; }
}

.success-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
  width: 50px;
  height: 50px;
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  fill: none;
  animation: drawCheck 0.4s ease 0.3s forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-label {
  margin-top: 20px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  animation: fadeIn 0.3s ease 0.5s forwards;
}

.success-sublabel {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.3s ease 0.7s forwards;
}

.payment-success-overlay.no-autofade { animation: none !important; }

.success-code-box {
  margin-top: 24px;
  padding: 16px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 14px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.success-code-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.success-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--ghost);
  background: rgba(0,0,0,0.45);
  padding: 12px;
  border-radius: 8px;
  word-break: break-all;
  margin-bottom: 10px;
  line-height: 1.5;
  user-select: all;
  cursor: text;
  border: 1px dashed rgba(167,139,250,0.3);
}
.success-code::before {
  content: 'tap & hold to select all, or use Copy button below';
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
}

.success-code-copy {
  background: white;
  color: var(--purple);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: transform 0.15s;
}
.success-code-copy:active { transform: scale(0.97); }

.success-code-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.5;
}

.success-done-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.success-done-btn:hover { background: rgba(255,255,255,0.1); }

.paywall-already-paid {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
}
.paywall-already-paid:hover { color: white; }

.code-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.code-modal.active { display: flex; }

.code-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}

.code-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.code-modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ghost);
}

.code-modal-close {
  background: var(--surface2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.code-modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.code-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ghost);
  font-family: monospace;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.code-input:focus { border-color: var(--purple-light); }

.code-submit {
  width: 100%;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.code-submit:hover { background: #6d28d9; }
.code-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.code-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}
