html {
  -webkit-user-select: text;
  user-select: text;
}

:root {
  --bg: #0b1320;
  --bg-blue: rgb(14, 82, 137);
  --panel: #0a3860;
  --panel-2: #083050;
  --border: #f59e0b;
  --border-strong: #ffb028;
  --text: #e7edf8;
  --muted: #9aa8c0;
  --accent: #4f8cff;
  --accent-2: #3b6fd6;
  --free: #34d399;
  --pro: #f59e0b;
  --max: #8b5cf6;
  --archived: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(14, 82, 137);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-user-select: text;
  user-select: text;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.promo-banner {
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(134, 239, 172, 0.25), 0 0 32px rgba(225, 29, 72, 0.15);
  background: linear-gradient(
    90deg,
    #86efac 0%,
    #6ee7b7 12%,
    #a78bfa 35%,
    #f472b6 55%,
    #e11d48 75%,
    #86efac 100%
  );
  background-size: 400% 100%;
  animation: promo-gradient-run 6s ease-in-out infinite;
}

.promo-banner__title {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(10, 61, 102, 0.95) 0%, rgba(6, 45, 77, 0.95) 100%);
}

.promo-banner__inner {
  padding: 16px 18px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(10, 61, 102, 0.95) 0%, rgba(6, 45, 77, 0.95) 100%);
}

.promo-banner__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.promo-card {
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(10, 61, 102, 0.6);
}

.promo-card--highlight {
  border-color: rgba(245, 114, 182, 0.5);
}

.promo-card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.promo-card__desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.promo-card__price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 10px;
}

.promo-card__btn {
  display: inline-block;
  margin-top: 4px;
}

@keyframes promo-gradient-run {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.home-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  padding: 10px 12px;
  font-size: 13px;
  -webkit-user-select: text;
  user-select: text;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  -webkit-user-select: text;
  user-select: text;
}

.lang-btn:hover {
  border-color: var(--border-strong);
}

.lang-btn.active {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #0d4a75 0%, #083558 100%);
}

.lang-sep {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  padding: 10px 12px;
  font-size: 14px;
  -webkit-user-select: text;
  user-select: text;
}

.nav a.active {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #0d4a75 0%, #083558 100%);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  padding: 16px;
}

.heading {
  margin: 0 0 8px;
  font-size: 22px;
}

.muted {
  margin: 0 0 16px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.desc {
  margin: 0 0 10px;
  color: #c5d2e9;
  font-size: 14px;
  line-height: 1.45;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.free {
  color: #052014;
  background: var(--free);
}

.pro {
  color: #2a1800;
  background: var(--pro);
}

.max {
  color: #f3ebff;
  background: var(--max);
}

.archived {
  color: #2b0a0a;
  background: var(--archived);
}

.price {
  font-size: 13px;
  color: #dfebff;
}

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

.links a {
  text-decoration: none;
  color: #d7e4fc;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 9px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  -webkit-user-select: text;
  user-select: text;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: #cfdcf1;
}

.list li {
  margin-bottom: 8px;
}

.price-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  padding: 14px;
}

.price-box h3 {
  margin: 0 0 10px;
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.plan-card--pro {
  border-color: var(--border-strong);
}

.plan-card--max {
  border: 2px solid var(--border-strong);
}

.plan-note {
  margin: 0;
  color: #cfc0ff;
  font-size: 13px;
}

.btn-pay {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  -webkit-user-select: text;
  user-select: text;
}

.plan-card--optimizer {
  border: 2px solid var(--border-strong);
}

.scenarios {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 0;
}

.scenario-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
  -webkit-user-select: text;
  user-select: text;
}

.scenario-card:hover {
  border-color: var(--border-strong);
}

.scenario-card:active {
  transform: scale(0.99);
}

.scenario-card--primary {
  border-width: 2px;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #0d4a75 0%, #083558 100%);
}

.scenario-card--promo {
  position: relative;
  border: none;
  overflow: visible;
  box-shadow: 0 0 16px rgba(134, 239, 172, 0.3);
}

.scenario-card--promo::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    #86efac 0%,
    #6ee7b7 12%,
    #a78bfa 35%,
    #f472b6 55%,
    #e11d48 75%,
    #86efac 100%
  );
  background-size: 400% 100%;
  animation: promo-gradient-run 6s ease-in-out infinite;
}

.scenario-card--promo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(180deg, #0a3d66 0%, #062d4d 100%);
}

.scenario-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.scenario-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.scenario-card--buy .scenario-actions a {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

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