:root {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.eyebrow {
  color: #10b981;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trust-chip,
.tag-chip,
.ai-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.69rem;
  line-height: 1;
}

.trust-chip {
  border: 1px solid rgb(0 0 0 / 0.09);
  color: rgb(0 0 0 / 0.52);
  padding: 0.5rem 0.7rem;
}

.dark .trust-chip {
  border-color: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.52);
}

.ai-chip {
  background: rgb(16 185 129 / 0.1);
  color: #059669;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.45rem;
}

.dark .ai-chip {
  color: #34d399;
}

.skeleton-card {
  background-color: rgb(0 0 0 / 0.012);
}

.dark .skeleton-card {
  background-color: rgb(255 255 255 / 0.02);
}

.skeleton-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.3) 50%, transparent 80%);
  animation: shimmer 2.5s infinite;
  content: "";
  pointer-events: none;
}

.dark .skeleton-card::after {
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.04) 50%, transparent 80%);
}

.score-ring {
  position: relative;
  width: 112px;
  height: 112px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 7;
}

.score-track {
  stroke: rgb(0 0 0 / 0.07);
}

.dark .score-track {
  stroke: rgb(255 255 255 / 0.1);
}

.score-progress {
  stroke: #10b981;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: calc(251.2 - (251.2 * var(--score)) / 100);
  animation: score-in 0.9s ease-out both;
}

.score-ring-preview .score-progress {
  stroke: #a8a29e;
}

.country-picker select {
  appearance: none;
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 999px;
  background: transparent;
  color: rgb(0 0 0 / 0.62);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0.55rem 0.65rem;
}

.dark .country-picker select {
  border-color: rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.68);
}

.country-indicator {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: rgb(0 0 0 / 0.5);
  font-size: 0.75rem;
}

.dark .country-indicator {
  color: rgb(255 255 255 / 0.52);
}

.country-indicator button:not([data-country-choice]) {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.country-menu {
  position: absolute;
  z-index: 10;
  top: 1.7rem;
  left: 0;
  display: grid;
  min-width: 12rem;
  gap: 0.15rem;
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 16px 35px rgb(0 0 0 / 0.12);
  padding: 0.4rem;
}

.dark .country-menu {
  border-color: rgb(255 255 255 / 0.1);
  background: #171718;
  box-shadow: 0 16px 35px rgb(0 0 0 / 0.35);
}

.country-menu button {
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  text-align: left;
  font-size: 0.75rem;
}

.country-menu button:hover {
  background: rgb(16 185 129 / 0.1);
}

.score-explanation {
  border-top: 1px solid rgb(0 0 0 / 0.08);
  padding-top: 1rem;
}

.auth-controls,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.auth-controls {
  min-width: 0;
  flex-shrink: 0;
}

.auth-link,
.auth-primary {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.62rem 0.78rem;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.auth-link {
  color: rgb(0 0 0 / 0.58);
}

.auth-link:hover {
  color: #10b981;
}

.dark .auth-link {
  color: rgb(255 255 255 / 0.62);
}

.auth-primary {
  border: 1px solid rgb(16 185 129 / 0.28);
  background: rgb(16 185 129 / 0.12);
  color: #047857;
}

.auth-primary:hover {
  background: rgb(16 185 129 / 0.22);
}

.dark .auth-primary {
  color: #6ee7b7;
}

.quota-indicator {
  color: rgb(0 0 0 / 0.42);
  font-size: 0.65rem;
  white-space: nowrap;
}

.billing-link {
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.billing-link:hover {
  color: #10b981;
}

.dark .billing-link {
  color: #6ee7b7;
}

.unlocked-alternatives-section {
  border: 1px solid rgb(16 185 129 / 0.22);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgb(16 185 129 / 0.08), rgb(0 0 0 / 0.02));
  padding: 1.25rem;
}

.dark .unlocked-alternatives-section {
  border-color: rgb(52 211 153 / 0.25);
  background: linear-gradient(145deg, rgb(16 185 129 / 0.13), rgb(255 255 255 / 0.025));
}

.unlocked-badge {
  border: 1px solid rgb(16 185 129 / 0.24);
  border-radius: 999px;
  background: rgb(16 185 129 / 0.11);
  color: #047857;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.65rem;
  text-transform: uppercase;
}

.dark .unlocked-badge {
  color: #6ee7b7;
}

.unlocked-alternatives-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unlocked-alternative-card {
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.72);
  padding: 0.65rem;
}

.dark .unlocked-alternative-card {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.055);
}

.unlocked-alternative-image {
  aspect-ratio: 1.45;
  width: 100%;
  border-radius: 0.7rem;
  object-fit: cover;
  background: rgb(0 0 0 / 0.06);
}

.unlocked-alternative-image-empty {
  background: linear-gradient(135deg, rgb(16 185 129 / 0.12), rgb(0 0 0 / 0.04));
}

.unlocked-alternative-store {
  flex-shrink: 0;
  color: rgb(0 0 0 / 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dark .unlocked-alternative-store {
  color: rgb(255 255 255 / 0.48);
}

.plans-hero {
  margin: 0 auto;
  max-width: 46rem;
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.plans-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 75rem;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 0.72);
  padding: 1.4rem;
}

.dark .plan-card {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.045);
}

.plan-card-featured {
  border-color: rgb(16 185 129 / 0.5);
  box-shadow: 0 1.5rem 3rem rgb(16 185 129 / 0.1);
}

.plan-popular {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 999px;
  background: rgb(16 185 129 / 0.12);
  color: #047857;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

.dark .plan-popular {
  color: #6ee7b7;
}

.plan-name {
  color: rgb(0 0 0 / 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dark .plan-name {
  color: rgb(255 255 255 / 0.55);
}

.plan-price {
  margin-top: 1.2rem;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.plan-price span {
  margin-left: 0.25rem;
  color: rgb(0 0 0 / 0.4);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: normal;
}

.dark .plan-price span {
  color: rgb(255 255 255 / 0.42);
}

.plan-checks {
  margin-top: 0.25rem;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
}

.dark .plan-checks {
  color: #6ee7b7;
}

.plan-features {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0;
  color: rgb(0 0 0 / 0.63);
  font-size: 0.82rem;
}

.dark .plan-features {
  color: rgb(255 255 255 / 0.65);
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
}

.plan-features li span {
  color: #10b981;
  font-weight: 800;
}

.plan-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.plan-button-primary {
  background: #10b981;
  color: #06251a;
}

.plan-button-primary:hover {
  background: #34d399;
}

.plan-button-secondary {
  border: 1px solid rgb(0 0 0 / 0.12);
  color: rgb(0 0 0 / 0.68);
}

.dark .plan-button-secondary {
  border-color: rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.72);
}

.plan-message {
  min-height: 1.1rem;
  margin-top: 0.75rem;
  color: #ef4444;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}

.plans-note {
  margin: 1.5rem auto 4rem;
  max-width: 42rem;
  color: rgb(0 0 0 / 0.45);
  font-size: 0.72rem;
  text-align: center;
}

.dark .plans-note {
  color: rgb(255 255 255 / 0.45);
}

.max-features-panel {
  border: 1px solid rgb(16 185 129 / 0.2);
  border-radius: 1.25rem;
  background: rgb(16 185 129 / 0.055);
  padding: 1rem;
}

.dark .max-features-panel {
  background: rgb(16 185 129 / 0.09);
}

.price-history-list {
  display: grid;
  gap: 0.35rem;
}

.price-history-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(0 0 0 / 0.07);
  color: rgb(0 0 0 / 0.54);
  font-size: 0.72rem;
  padding: 0.35rem 0;
}

.price-history-row strong {
  color: rgb(0 0 0 / 0.72);
}

.dark .price-history-row {
  border-color: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.55);
}

.dark .price-history-row strong {
  color: rgb(255 255 255 / 0.78);
}

.alert-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 0.7);
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  outline: none;
}

.alert-form input:focus {
  border-color: #10b981;
}

.dark .alert-form input {
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(0 0 0 / 0.15);
  color: white;
}

.alert-button {
  border-radius: 0.7rem;
  background: #10b981;
  color: #06251a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.65rem 0.8rem;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .unlocked-alternatives-grid {
    grid-template-columns: 1fr;
  }
}

.quota-indicator.quota-exhausted {
  color: #ef4444;
}

.dark .quota-indicator {
  color: rgb(255 255 255 / 0.42);
}

.auth-user-email {
  max-width: 9rem;
  overflow: hidden;
  color: rgb(0 0 0 / 0.56);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status {
  max-width: 12rem;
  color: #ef4444;
  font-size: 0.62rem;
  line-height: 1.3;
}

.dark .auth-user-email {
  color: rgb(255 255 255 / 0.62);
}

@media (max-width: 900px) {
  .quota-indicator {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-primary {
    padding-inline: 0.62rem;
  }

  .auth-user-email {
    display: none;
  }
}

.dark .score-explanation {
  border-color: rgb(255 255 255 / 0.1);
}

.locked-alternatives-section {
  border: 1px solid rgb(16 185 129 / 0.2);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgb(16 185 129 / 0.06), rgb(0 0 0 / 0.02));
  padding: 1.25rem;
}

.dark .locked-alternatives-section {
  border-color: rgb(52 211 153 / 0.2);
  background: linear-gradient(145deg, rgb(16 185 129 / 0.1), rgb(255 255 255 / 0.025));
}

.locked-alternatives-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.locked-eyebrow,
.locked-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #047857;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.locked-eyebrow {
  gap: 0.35rem;
}

.dark .locked-eyebrow,
.dark .locked-badge {
  color: #6ee7b7;
}

.locked-icon,
.locked-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.locked-icon svg,
.locked-cta-icon svg {
  width: 1rem;
  height: 1rem;
}

.locked-badge {
  border: 1px solid rgb(16 185 129 / 0.2);
  background: rgb(16 185 129 / 0.1);
  letter-spacing: 0.1em;
  padding: 0.5rem 0.65rem;
}

.locked-alternatives-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locked-alternative-card {
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.58);
  padding: 0.65rem;
}

.dark .locked-alternative-card {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.055);
}

.locked-image,
.locked-line,
.locked-price {
  filter: blur(5px);
  opacity: 0.72;
}

.locked-image {
  height: 5.75rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgb(16 185 129 / 0.35), rgb(0 0 0 / 0.12));
}

.dark .locked-image {
  background: linear-gradient(135deg, rgb(52 211 153 / 0.3), rgb(255 255 255 / 0.1));
}

.locked-line,
.locked-price {
  height: 0.68rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.13);
}

.dark .locked-line,
.dark .locked-price {
  background: rgb(255 255 255 / 0.18);
}

.locked-line-long {
  width: 84%;
}

.locked-line-short {
  width: 58%;
}

.locked-price {
  width: 38%;
  background: rgb(16 185 129 / 0.45);
}

.locked-alternatives-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: #10b981;
  color: #0a0a0b;
  cursor: not-allowed;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  opacity: 0.9;
}

.locked-alternatives-cta:hover {
  background: #34d399;
}

@media (max-width: 640px) {
  .locked-alternatives-grid {
    grid-template-columns: 1fr;
  }

  .locked-alternative-card:not(:first-child) {
    display: none;
  }
}

.preview-banner {
  margin: -0.25rem -0.25rem 1.5rem;
  border: 1px solid rgb(245 158 11 / 0.35);
  border-radius: 0.9rem;
  background: rgb(245 158 11 / 0.12);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.75rem 0.9rem;
}

.dark .preview-banner {
  color: #fcd34d;
}

.score-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-label strong {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.score-label span {
  margin-top: 0.25rem;
  color: rgb(0 0 0 / 0.42);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.dark .score-label span {
  color: rgb(255 255 255 / 0.42);
}

.signal-pill,
.badge-real,
.badge-average,
.badge-fake {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.signal-pill {
  padding: 0.48rem 0.7rem;
}

.signal-buy {
  background: rgb(16 185 129 / 0.12);
  color: #059669;
}

.signal-wait {
  background: rgb(245 158 11 / 0.14);
  color: #b45309;
}

.signal-avoid {
  background: rgb(239 68 68 / 0.12);
  color: #dc2626;
}

.dark .signal-buy,
.dark .badge-real {
  color: #6ee7b7;
}

.dark .signal-wait,
.dark .badge-average {
  color: #fcd34d;
}

.dark .signal-avoid,
.dark .badge-fake {
  color: #fca5a5;
}

.tag-chip {
  border: 1px solid rgb(0 0 0 / 0.1);
  color: rgb(0 0 0 / 0.5);
  padding: 0.48rem 0.68rem;
}

.dark .tag-chip {
  border-color: rgb(255 255 255 / 0.11);
  color: rgb(255 255 255 / 0.54);
}

.badge-real {
  background: rgb(16 185 129 / 0.13);
  color: #047857;
  padding: 0.5rem 0.7rem;
}

.badge-average {
  background: rgb(245 158 11 / 0.14);
  color: #92400e;
  padding: 0.5rem 0.7rem;
}

.badge-fake {
  background: rgb(239 68 68 / 0.12);
  color: #b91c1c;
  padding: 0.5rem 0.7rem;
}

.check-mark,
.x-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

.check-mark {
  background: rgb(16 185 129 / 0.13);
  color: #059669;
}

.x-mark {
  background: rgb(239 68 68 / 0.12);
  color: #dc2626;
}

.loading-card {
  min-height: 390px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes score-in {
  from { stroke-dashoffset: 251.2; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}