﻿:root {
  color-scheme: light dark;
  --bg: #031f12;
  --accent: #2ecc71;
  --accent-strong: #27ae60;
  --accent-soft: rgba(46, 204, 113, 0.18);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-muted: rgba(255, 255, 255, 0.65);
  --text: #f3fff8;
  --ink: #0d2b1c;
  --muted: #5d7a6a;
  --muted-light: rgba(243, 255, 248, 0.72);
  --heading: "Poppins", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  background: radial-gradient(circle at top left, #0b4d33, #04150d);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

#root {
  width: 100%;
  max-width: 1320px;
}

.app-shell {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(46, 204, 113, 0.32);
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.app-title {
  font-family: var(--heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.app-subtitle {
  font-size: 17px;
  color: var(--muted-light);
  max-width: 820px;
  line-height: 1.6;
}

.configurator-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  animation: fade-in 400ms ease;
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.package-box {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 28px 34px;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid rgba(13, 43, 28, 0.12);
  box-shadow: 0 30px 62px rgba(12, 40, 26, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.package-box:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 204, 113, 0.45);
  box-shadow: 0 38px 78px rgba(9, 35, 23, 0.28);
}

.package-header {
  flex: 0 0 280px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.package-number {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-strong), rgba(46, 204, 113, 0.85));
  box-shadow: 0 18px 36px rgba(46, 204, 113, 0.32);
  color: #ffffff;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}

.package-box:hover .package-number {
  transform: scale(1.04);
}

.package-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-title {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.category-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.package-options {
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: flex-start;
}

.option-pill {
  flex: 1 1 240px;
  min-width: 220px;
  background: rgba(8, 31, 18, 0.05);
  border-radius: 18px;
  border: 1px solid rgba(13, 43, 28, 0.12);
  padding: 18px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.option-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.25), rgba(39, 174, 96, 0));
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.option-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.option-pill:hover::after {
  opacity: 0.4;
}

.option-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.option-pill.selected {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.32), rgba(39, 174, 96, 0.32));
  border-color: var(--accent-strong);
  box-shadow: 0 18px 38px rgba(46, 204, 113, 0.25);
}

.option-pill.selected::after {
  opacity: 0.5;
}

.option-headline {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.option-subtext {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.option-pricing {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.addon-section {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(13, 43, 28, 0.08);
  margin-bottom: 32px;
  color: var(--ink);
  animation: fade-in-up 400ms ease;
}

.addon-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.addon-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.addon-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(8, 31, 18, 0.05);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 43, 28, 0.12);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  color: inherit;
  font: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.addon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(39, 174, 96, 0));
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.addon-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.addon-card:hover::after {
  opacity: 0.35;
}

.addon-card.active {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.32), rgba(39, 174, 96, 0.28));
  border-color: var(--accent-strong);
  box-shadow: 0 15px 34px rgba(46, 204, 113, 0.28);
}

.addon-card.active::after {
  opacity: 0.5;
}

.addon-icon {
  font-size: 22px;
}

.addon-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.addon-title {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.addon-status {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.16);
  color: var(--accent-strong);
}

.addon-card.active .addon-status {
  background: #ffffff;
  color: var(--accent-strong);
}

.addon-description {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.addon-pricing {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.summary-panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(13, 43, 28, 0.08);
  margin-bottom: 32px;
  color: var(--ink);
  animation: fade-in-up 420ms ease;
}

.summary-title {
  font-family: var(--heading);
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.summary-item {
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 43, 28, 0.12);
  display: grid;
  gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.summary-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(12, 40, 26, 0.18);
}

.summary-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(46, 204, 113, 0.45);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}

.summary-category {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.summary-choice {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.summary-pricing {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--accent-strong);
}

.addon-summary {
  margin-top: 28px;
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 43, 28, 0.12);
}

.addon-summary-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.addon-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.addon-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
}

.addon-summary-price {
  color: var(--accent-strong);
  font-weight: 600;
}

.addon-summary-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.totals-panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 34px;
  border: 1px solid rgba(13, 43, 28, 0.08);
  color: var(--ink);
  animation: fade-in-up 440ms ease;
}

.totals-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.totals-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.totals-card {
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(13, 43, 28, 0.12);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.totals-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(39, 174, 96, 0));
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.totals-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(12, 40, 26, 0.2);
}

.totals-card:hover::after {
  opacity: 0.35;
}

.totals-card.highlight {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.82), rgba(46, 204, 113, 0.92));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 45px rgba(39, 174, 96, 0.35);
}

.totals-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.totals-card.highlight .totals-label {
  color: rgba(255, 255, 255, 0.85);
}

.totals-value {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  transition: color 200ms ease, transform 200ms ease;
}

.totals-card.highlight .totals-value {
  color: #ffffff;
}

.totals-card:hover .totals-value {
  transform: translateY(-2px);
}

.totals-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.totals-card.highlight .totals-note {
  color: rgba(255, 255, 255, 0.88);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .package-header {
    flex: 1 1 100%;
  }

  .package-options {
    flex: 1 1 100%;
  }
}

@media (max-width: 780px) {
  body {
    padding: 24px 12px;
  }

  .app-shell {
    padding: 30px;
  }

  .package-box {
    padding: 24px;
  }

  .package-number {
    width: 52px;
    height: 52px;
    font-size: 21px;
  }

  .app-title {
    font-size: 32px;
  }
}

.info-trigger {
  position: relative;
  display: inline-flex;
}

.info-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0 4px;
  margin: 0;
  font: inherit;
  color: var(--accent-strong);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed rgba(46, 204, 113, 0.6);
  transition: color 180ms ease, border-color 180ms ease;
}

.info-button::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.info-button:hover,
.info-button:focus {
  color: var(--accent);
  border-color: rgba(46, 204, 113, 0.85);
}

.info-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.info-button.active {
  color: #ffffff;
  border-color: transparent;
}

.info-trigger .info-popover {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 260px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid rgba(13, 43, 28, 0.12);
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(9, 35, 23, 0.28);
  padding: 18px 20px;
  z-index: 10;
  animation: pop-in 220ms ease;
}

.info-popover::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: var(--surface);
  border-left: 1px solid rgba(13, 43, 28, 0.12);
  border-top: 1px solid rgba(13, 43, 28, 0.12);
}

.info-popover__content {
  display: grid;
  gap: 10px;
}

.info-popover__title {
  margin: 0;
  font-family: var(--heading);
  font-size: 16px;
  color: var(--ink);
}

.info-popover__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.info-popover__close {
  justify-self: flex-start;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent-strong);
  color: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.info-popover__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(39, 174, 96, 0.28);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
