:root {
  color-scheme: light;
  --ink: #173b31;
  --ink-soft: #34564c;
  --muted: #70817a;
  --line: #dbe7e1;
  --surface: rgba(255,255,255,.92);
  --surface-strong: #ffffff;
  --green: #16815f;
  --green-dark: #0d5e47;
  --green-deep: #0b3e31;
  --green-soft: #e5f5ee;
  --green-pale: #f2faf6;
  --amber: #b77b0d;
  --amber-soft: #fff5d9;
  --red-soft: #ffeded;
  --shadow: 0 18px 50px rgba(23,59,49,.08);
  --shadow-strong: 0 24px 70px rgba(16,52,42,.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(76,188,139,.10), transparent 28%),
    linear-gradient(180deg, #f7fbf9 0%, #eef6f2 100%);
}
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}
.page-glow-one { width: 520px; height: 520px; right: -100px; top: -300px; background: rgba(67,184,133,.12); }
.page-glow-two { width: 420px; height: 420px; left: -240px; bottom: 8%; background: rgba(82,151,220,.07); }

.page-shell {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0 34px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid rgba(219,231,225,.82);
  border-radius: 18px;
  background: rgba(248,252,250,.88);
  box-shadow: 0 10px 32px rgba(23,59,49,.05);
  backdrop-filter: blur(16px);
}

.brand, .top-actions, .main-nav, .hero-actions, .live-preview-header, .section-heading,
.live-heading-actions, .footer, .telegram-actions, dialog header, dialog footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; letter-spacing: -.03em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, #137656, #1b9770);
  box-shadow: 0 8px 18px rgba(22,129,95,.22);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 19px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255,255,255,.9);
}
.brand-mark i {
  position: absolute;
  width: 11px;
  height: 16px;
  top: 8px;
  background: #fff;
}
.brand-mark i:first-child { left: 9px; border-radius: 12px 2px 12px 2px; transform: rotate(-18deg); }
.brand-mark i:last-child { right: 8px; border-radius: 2px 12px 2px 12px; transform: rotate(18deg); }

.main-nav {
  justify-content: center;
  gap: 24px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--green); }

.top-actions { justify-content: flex-end; gap: 9px; }
#languageSelect {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255,255,255,.88);
}

.primary-button, .secondary-button, .rack-action, .slot-action, .light-button, .ghost-light-button {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}
.primary-button, .rack-action, .slot-action {
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(22,129,95,.18);
}
.primary-button:hover, .rack-action:hover, .slot-action:hover { background: var(--green-dark); }
.secondary-button {
  color: var(--green-dark);
  background: var(--green-soft);
}
.large-button { padding: 13px 18px; border-radius: 13px; }

.secondary-link, .plant-action, .preview-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}
.secondary-link:hover, .plant-action:hover, .preview-link:hover { text-decoration: underline; }

.commercial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 46px;
  padding: 40px 8px 34px;
}
.hero-copy { max-width: 690px; }
.eyebrow, .rack-kicker {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { gap: 16px; margin-top: 26px; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.live-preview {
  overflow: hidden;
  min-height: 330px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  color: #effbf6;
  background:
    radial-gradient(circle at 78% 18%, rgba(80,205,151,.24), transparent 34%),
    linear-gradient(145deg, #0e4939, #0a3027 68%, #09251f);
  box-shadow: var(--shadow-strong);
}
.live-preview-header { justify-content: space-between; gap: 20px; }
.live-preview h2 { margin: 8px 0 0; color: #fff; font-size: 30px; letter-spacing: -.035em; }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bfeedd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.live-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58dda6;
  box-shadow: 0 0 0 5px rgba(88,221,166,.12);
}
.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #d9eee6;
  background: rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 800;
}
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #a5b0ab; }
.connection-pill.is-online .connection-dot { background: #61e4ad; box-shadow: 0 0 0 4px rgba(97,228,173,.12); }
.connection-pill.is-offline .connection-dot { background: #f58b8b; }
.preview-seen { margin: 9px 0 18px; color: #a9c9bd; font-size: 12px; }

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.compact-summary {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(255,255,255,.06);
}
.compact-summary div { padding: 15px 12px; }
.compact-summary div + div { border-left: 1px solid rgba(255,255,255,.1); }
.compact-summary strong { display: block; color: #fff; font-size: 23px; }
.compact-summary span { color: #a9c9bd; font-size: 10px; }
.preview-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  color: #dff8ee;
}
.preview-link b { font-size: 22px; }

.story-section, .plants-section, .live-section, .pricing-section { padding-top: 76px; }
.section-intro { max-width: 760px; }
.centered-intro { margin: 0 auto 28px; text-align: center; }
.section-intro h2, .section-heading h2, .telegram-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-intro > p:last-child, .section-heading > p, .marketing-heading > div + p {
  color: var(--muted);
  line-height: 1.55;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(23,59,49,.04);
}
.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #b8c9c1;
  font-size: 12px;
  font-weight: 900;
}
.step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  font-size: 23px;
}
.step-card h3 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.section-heading {
  justify-content: space-between;
  align-items: end;
  gap: 34px;
  margin-bottom: 22px;
}
.marketing-heading > p, .marketing-heading .live-heading-actions { max-width: 520px; }
.live-heading-actions { justify-content: flex-end; gap: 14px; }
.live-heading-actions p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.refresh-button { flex: 0 0 auto; }

.plants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.plant-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plant-card:hover {
  transform: translateY(-3px);
  border-color: #9bcfba;
  box-shadow: 0 24px 55px rgba(23,59,49,.11);
}
.plant-card:focus-visible {
  outline: 3px solid rgba(22,129,95,.24);
  outline-offset: 3px;
}
.plant-visual {
  position: relative;
  display: grid;
  height: 270px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(110,219,167,.40), transparent 28%),
    linear-gradient(145deg, #dff3e8, #eef8f3);
}
.plant-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .28s ease;
}
.plant-card:hover .plant-visual img { transform: scale(1.025); }
.plant-image-fallback {
  font-size: 42px;
  filter: drop-shadow(0 8px 12px rgba(22,129,95,.15));
}
.plant-card-body { padding: 18px; }
.plant-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.plant-card h3 { margin: 11px 0 7px; font-size: 20px; letter-spacing: -.025em; }
.plant-card p {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.plant-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(22,129,95,.16);
  font-size: 12px;
  font-weight: 850;
  transition: background .18s ease, transform .18s ease;
}
.plant-card:hover .plant-action { background: var(--green-dark); }
.plant-action-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}
.plant-card:hover .plant-action-arrow { transform: translateX(3px); }

.notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #edcaca;
  border-radius: 13px;
  color: #973d3d;
  background: rgba(255,237,237,.92);
  font-size: 12px;
}

.racks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 18px;
}
.loading-card {
  display: grid;
  grid-column: 1 / -1;
  min-height: 160px;
  place-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.86);
}
.rack-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.rack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 9px 14px;
}
.rack-header h3 {
  min-width: 0;
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.rack-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 12px;
  margin-left: auto;
}
.rack-temperature {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.rack-action {
  flex: 0 0 auto;
  padding: 8px 11px;
  font-size: 10px;
  box-shadow: none;
}
.rack-photo {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e7eeea;
}
.rack-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.rack-photo figcaption {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 8px;
  color: white;
  background: rgba(9,35,27,.68);
  font-size: 9px;
  pointer-events: none;
}
.rack-photo-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.rack-photo-hotspot {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  color: white;
  background: transparent;
  cursor: pointer;
}
.rack-photo-hotspot:hover,
.rack-photo-hotspot:focus-visible {
  z-index: 5;
  border-color: transparent;
  outline: none;
  background: transparent;
  box-shadow: none;
}
.rack-photo-hotspot[aria-disabled="true"] {
  cursor: default;
}
.rack-photo-slot-marker {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(9,35,27,.62);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease;
}
.rack-photo-hotspot:hover .rack-photo-slot-marker,
.rack-photo-hotspot:focus-visible .rack-photo-slot-marker {
  opacity: 1;
  transform: scale(1);
}
.rack-slot-tooltip {
  position: absolute;
  z-index: 8;
  display: none;
  width: min(240px, calc(200% - 16px));
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px;
  color: #fff;
  background: rgba(8,31,24,.94);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.rack-photo-hotspot:nth-child(odd) .rack-slot-tooltip {
  left: 7px;
}
.rack-photo-hotspot:nth-child(even) .rack-slot-tooltip {
  right: 7px;
}
.rack-photo-hotspot:nth-child(-n+4) .rack-slot-tooltip {
  top: calc(100% + 6px);
}
.rack-photo-hotspot:nth-child(n+5) .rack-slot-tooltip {
  bottom: calc(100% + 6px);
}
.rack-photo-hotspot:hover .rack-slot-tooltip,
.rack-photo-hotspot:focus-visible .rack-slot-tooltip {
  display: grid;
  gap: 3px;
}
.rack-slot-tooltip-title {
  font-size: 10px;
  font-weight: 800;
  opacity: .78;
}
.rack-slot-tooltip-plant {
  margin-top: 1px;
  font-size: 14px;
  line-height: 1.2;
}
.rack-slot-tooltip-reactions {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  word-spacing: 4px;
}
.rack-slot-tooltip-action {
  margin-top: 2px;
  color: #c6f3df;
  font-size: 11px;
  font-weight: 850;
}
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.slot {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fbf9;
}
.slot.is-available { border-color: #a8dac6; background: #eff9f5; }
.slot.is-growing, .slot.is-ready { border-color: #c3dfd3; background: #f3faf7; }
.slot.is-maintenance { background: var(--amber-soft); }
.slot.is-occupied { background: #f1f3f2; }
.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.slot-number {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.slot-status {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.slot-plant-name {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}
.slot-growing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.slot-social,
.slot-timelapses {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.slot-social {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.slot-timelapses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.slot-social-button,
.slot-video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}
.slot-social-button {
  width: 100%;
  gap: 6px;
}
.slot-social-icon {
  font-size: 14px;
  line-height: 1;
}
.slot-social-count {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}
.slot-social-button:hover,
.slot-video-button:hover {
  border-color: #8fcfb6;
  color: var(--green-dark);
  background: #fff;
}
.slot-video-button {
  width: 100%;
  min-width: 0;
  color: var(--green-dark);
  background: var(--green-pale);
  cursor: pointer;
}
.slot-action {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  padding: 9px 10px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 18px rgba(22,129,95,.18);
  font-size: 11px;
  font-weight: 850;
}
.slot-action:hover {
  color: #fff;
  background: var(--green-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 34px rgba(23,59,49,.05);
}
.featured-price {
  border-color: #8fcfb6;
  box-shadow: 0 22px 55px rgba(22,129,95,.13);
  transform: translateY(-5px);
}
.price-badge {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.price-card h3 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.price-line { display: flex; align-items: baseline; gap: 7px; min-height: 58px; }
.price-line strong { font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.price-line span, .price-line small { color: var(--muted); font-size: 11px; }
.text-price strong { font-size: 28px; }
.price-card ul { display: grid; gap: 10px; padding: 0; margin: 18px 0 26px; list-style: none; }
.price-card li { position: relative; padding-left: 23px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.price-action { margin-top: auto; text-align: center; }

.token-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 21px;
  border: 1px solid #b9dfcf;
  border-radius: 20px;
  background: linear-gradient(135deg, #e7f7f0, #f4fbf8);
}
.token-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #16815f, #0f634b);
  box-shadow: 0 10px 24px rgba(22,129,95,.18);
  font-size: 24px;
  font-weight: 900;
}
.token-band h3 { margin: 0 0 4px; }
.token-band p { margin: 0; color: var(--muted); font-size: 12px; }

.telegram-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 76px;
  padding: 34px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(94,221,169,.22), transparent 30%),
    linear-gradient(140deg, #0f4939, #092e26);
  box-shadow: var(--shadow-strong);
}
.telegram-section > div:first-child { max-width: 730px; }
.telegram-section h2 { color: white; }
.telegram-section p:not(.eyebrow) { margin: 12px 0 0; color: #b9d7cc; line-height: 1.55; }
.light-eyebrow { color: #8ee1bd; }
.telegram-actions { flex: 0 0 auto; gap: 10px; }
.light-button { color: var(--green-dark); background: white; }
.ghost-light-button { color: white; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); }

.footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.footer strong { color: var(--ink); }

dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(16,52,42,.3);
}
dialog::backdrop { background: rgba(11,34,28,.48); backdrop-filter: blur(2px); }
dialog form, dialog > section { padding: 23px; }
dialog header { justify-content: space-between; gap: 15px; }
dialog h2 { margin: 0; }
.close-button { border: 0; padding: 2px 8px; color: var(--ink); background: transparent; font-size: 27px; }
dialog label { display: grid; gap: 6px; margin-top: 15px; font-size: 13px; font-weight: 700; }
dialog input, dialog select { width: 100%; padding: 11px 12px; border: 1px solid #ccd9d3; border-radius: 11px; color: var(--ink); background: white; }
dialog footer { justify-content: flex-end; gap: 10px; margin-top: 21px; }
.text-button { margin-right: auto; border: 0; color: var(--green); background: transparent; font-weight: 700; }
.form-error { color: #a13939; font-size: 12px; }
.form-success {
  margin: 12px 0 0;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.45;
}
.dialog-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-footer {
  flex-wrap: wrap;
}
#forgotPasswordButton {
  margin-right: 0;
}
.account-dialog { width: min(430px, calc(100% - 30px)); }
.account-profile {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
}
.account-profile-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-profile-email {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.account-group { margin-top: 25px; }
.account-group h3 { margin: 0 0 10px; }
.account-list { display: grid; gap: 8px; }
.account-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
.account-item span { color: var(--muted); font-size: 12px; }
.account-item button { flex: none; }

.video-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
}
.video-dialog > section {
  padding: 16px;
}
.video-dialog header {
  min-height: 42px;
  padding-bottom: 10px;
}
.video-dialog h2 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #07110e;
}
.video-stage video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 130px);
  background: #000;
}
.video-error {
  margin: 0;
  padding: 18px;
  color: #fff;
  text-align: center;
  background: #07110e;
}

.social-dialog {
  width: min(640px, calc(100% - 28px));
}
.social-dialog > section {
  padding: 18px;
}
.social-dialog header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.social-dialog h2 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
}
.comment-item {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbf9;
}
.comment-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.comment-item-head strong {
  font-size: 12px;
}
.comment-item-head span {
  color: var(--muted);
  font-size: 9px;
}
.comment-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.comment-empty {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.comment-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 10px 11px;
  border: 1px solid #ccd9d3;
  border-radius: 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}
.comment-form .primary-button {
  justify-self: end;
  min-width: 120px;
}
.gift-hint {
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.gift-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gift-options button {
  min-height: 48px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #f8fbf9;
  font-size: 11px;
  font-weight: 800;
}
.gift-options button:hover {
  border-color: #8fcfb6;
  color: var(--green-dark);
  background: var(--green-pale);
}
.gift-options strong {
  font-size: 15px;
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .commercial-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .hero-copy { max-width: 820px; }
  .live-preview { min-height: auto; }
  .plants-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .plant-visual { height: 240px; }
  .page-shell { width: min(100% - 24px, 720px); }
  .topbar { top: 6px; padding: 8px 10px; }
  .brand small { display: none; }
  .commercial-hero { padding: 30px 2px 22px; }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 58px); }
  .hero-lead { font-size: 16px; }
  .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .featured-price { transform: none; }
  .story-section, .plants-section, .live-section, .pricing-section { padding-top: 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .marketing-heading > p, .marketing-heading .live-heading-actions { max-width: none; width: 100%; }
  .live-heading-actions { justify-content: space-between; }
  .live-heading-actions p { text-align: left; }
  .telegram-section { align-items: flex-start; flex-direction: column; padding: 26px; }
  .telegram-actions { width: 100%; }
  .telegram-actions > * { flex: 1; text-align: center; }
}

@media (max-width: 620px) {
  .rack-slot-tooltip {
    width: min(190px, calc(200% - 12px));
    padding: 8px 9px;
    font-size: 9px;
  }
  .rack-slot-tooltip-plant { font-size: 12px; }
  .rack-slot-tooltip-reactions { font-size: 10px; }
  .gift-options { grid-template-columns: repeat(2, 1fr); }
  .plant-visual { height: 230px; }
  .top-actions { gap: 6px; }
  #languageSelect { max-width: 108px; }
  #accountButton { padding: 9px 10px; font-size: 11px; }
  .brand strong { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > * { text-align: center; }
  .live-preview { padding: 18px; border-radius: 22px; }
  .live-preview-header { align-items: flex-start; }
  .connection-pill { max-width: 118px; }
  .compact-summary { grid-template-columns: repeat(2, 1fr); }
  .compact-summary div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .compact-summary div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .plants-grid { grid-template-columns: 1fr; }
  .racks-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 10px; }
  .slot { padding: 8px; }
  .slot-social { gap: 5px; }
  .slot-social-button { min-height: 34px; padding: 7px 5px; font-size: 10px; }
  .slot-social-count { font-size: 14px; }
  .slot-video-button { min-height: 32px; padding: 6px 4px; font-size: 8px; }
  .slot-action { min-height: 36px; padding: 8px 6px; font-size: 10px; }
  .token-band { grid-template-columns: auto 1fr; }
  .token-band .primary-button { grid-column: 1 / -1; text-align: center; }
  .telegram-actions { flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

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