:root {
  --app-bg: #14161a;
  --panel-bg: #1b1f24;
  --card-bg: #232830;
  --card-bg-hover: #2a3038;
  --border-subtle: #323843;
  --border-strong: #444c59;
  --text-primary: #f3f5f7;
  --text-secondary: #a8b0ba;
  --text-muted: #7b848f;
  --accent-primary: #e03a3e;
  --accent-primary-hover: #f04449;
  --accent-primary-pressed: #c92f34;
  --success: #2fa36b;
  --warning: #e0a126;
  --danger: #d64545;
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.34);
}

html {
  background-color: var(--app-bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.app-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--app-bg);
  background-image:
    radial-gradient(75rem 36rem at 88% 0%, rgba(224, 58, 62, 0.11), transparent 65%),
    radial-gradient(62rem 32rem at 0% 8%, rgba(92, 134, 214, 0.12), transparent 62%),
    linear-gradient(180deg, #13161b 0%, var(--app-bg) 55%, #121418 100%);
  background-repeat: no-repeat;
  position: relative;
}

.layout-container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(58px);
  pointer-events: none;
}

.orb-a {
  width: 20rem;
  height: 20rem;
  top: -6rem;
  right: -5rem;
  background: rgba(224, 58, 62, 0.22);
}

.orb-b {
  width: 19rem;
  height: 19rem;
  left: -4rem;
  bottom: -5rem;
  background: rgba(62, 141, 221, 0.17);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(20, 22, 26, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.82rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.64rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent-primary-hover), var(--accent-primary-pressed));
  box-shadow: 0 10px 20px rgba(224, 58, 62, 0.35);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.nav-toggle {
  display: none;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.44rem;
  border-radius: 0.62rem;
  border: 1px solid var(--border-strong);
  background: #232a33;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.26rem;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text-primary);
}

.admin-dropdown {
  position: relative;
}

.admin-summary {
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.admin-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 13rem;
  margin-top: 0;
  padding: 0.42rem;
  border-radius: 0.72rem;
  border: 1px solid var(--border-strong);
  background: #20262e;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.2rem;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.admin-dropdown:hover .admin-dropdown-menu,
.admin-dropdown:focus-within .admin-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-dropdown-link {
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: 0.56rem;
  padding: 0.48rem 0.55rem;
  font-size: 0.88rem;
}

.admin-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.inline-form {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  border-radius: 0.62rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: 0.14s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.main-content {
  flex: 1;
  padding-block: 1.95rem 2.3rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 0.72rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.58rem 0.92rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 0.43rem 0.72rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(150deg, var(--accent-primary-hover), var(--accent-primary-pressed));
  border-color: #ff6670;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(224, 58, 62, 0.34);
}

.btn-primary:hover {
  background: linear-gradient(150deg, #f3585d, #d1363a);
}

.btn-ghost,
.btn-neutral {
  background: #232a33;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover,
.btn-neutral:hover {
  background: #2a3038;
}

.btn-danger {
  color: #ffd8d9;
  background: rgba(214, 69, 69, 0.2);
  border-color: rgba(214, 69, 69, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.page-head {
  margin-bottom: 1.2rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.05rem);
  letter-spacing: 0.01em;
}

.page-subtitle {
  margin: 0.46rem 0 0;
  color: var(--text-secondary);
}

.home-hero {
  padding: clamp(1.8rem, 4.2vw, 3.6rem) 0 0.4rem;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
  align-items: center;
}

.home-copy {
  max-width: 42rem;
}

.home-kicker {
  margin: 0 0 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #ffd9dd;
  border: 1px solid rgba(224, 58, 62, 0.45);
  background: rgba(224, 58, 62, 0.15);
}

.home-title {
  margin: 0;
  font-size: clamp(2.9rem, 7.4vw, 5.25rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-description {
  margin: 1rem 0 0;
  max-width: 39rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.9vw, 1.08rem);
  line-height: 1.72;
}

.home-quick-points {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.home-quick-pill {
  border-radius: 999px;
  border: 1px solid #3b4350;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.77rem;
  padding: 0.3rem 0.58rem;
}

.home-hero-card {
  padding: 1rem;
  border-color: #4a2a30;
  background:
    linear-gradient(160deg, rgba(38, 42, 50, 0.95), rgba(29, 33, 40, 0.95)),
    radial-gradient(50rem 24rem at 96% 0%, rgba(224, 58, 62, 0.14), transparent 70%);
}

.home-hero-card-title {
  margin: 0 0 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-window {
  border: 1px solid #3f4753;
  border-radius: 0.84rem;
  background: linear-gradient(180deg, rgba(31, 35, 42, 0.96), rgba(26, 30, 36, 0.96));
  padding: 0.72rem;
}

.home-window-bar {
  display: flex;
  gap: 0.34rem;
  margin-bottom: 0.58rem;
}

.home-window-bar span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: #55606f;
}

.home-window-bar span:nth-child(1) {
  background: #de6166;
}

.home-window-bar span:nth-child(2) {
  background: #d5a24c;
}

.home-window-bar span:nth-child(3) {
  background: #47ad7a;
}

.home-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-window-module {
  border: 1px solid #3b4350;
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.58rem;
}

.home-window-module p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.home-window-status {
  display: inline-flex;
  margin-top: 0.34rem;
  border-radius: 999px;
  border: 1px solid #6e5a37;
  background: rgba(214, 157, 64, 0.16);
  color: #f6d8a2;
  font-size: 0.69rem;
  padding: 0.14rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-window-status-ok {
  border-color: rgba(65, 172, 113, 0.48);
  background: rgba(47, 163, 107, 0.18);
  color: #cef1de;
}

.home-hero-note {
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.home-strip {
  margin-top: 1rem;
}

.home-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid #313844;
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.78rem 0.92rem;
}

.home-strip-label {
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
}

.home-strip-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.home-strip-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #3a4250;
  background: rgba(255, 255, 255, 0.03);
  color: #d6dde5;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}

.home-section {
  margin-top: 3rem;
}

.home-features-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-card {
  padding: 0.95rem;
}

.home-feature-icon {
  margin: 0;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(150deg, #f2595f, #d6363b);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.home-feature-title {
  margin: 0 0 0.45rem;
  margin-top: 0.7rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.home-bots-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-bot-card {
  padding: 0.95rem;
}

.home-bot-name {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.home-bot-features {
  margin: 0.62rem 0 0;
  padding-left: 1.05rem;
  color: var(--text-secondary);
  list-style: disc;
  display: grid;
  gap: 0.34rem;
  font-size: 0.86rem;
}

.home-bot-tag {
  margin: 0 0 0.45rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #5a4b2d;
  background: rgba(214, 157, 64, 0.16);
  color: #f6d8a2;
  font-size: 0.7rem;
  padding: 0.16rem 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-plans-grid {
  display: grid;
  gap: 0.8rem;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.6rem) / 3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #4b5566 rgba(255, 255, 255, 0.05);
}

.home-plans-grid::-webkit-scrollbar {
  height: 9px;
}

.home-plans-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.home-plans-grid::-webkit-scrollbar-thumb {
  background: #4b5566;
  border-radius: 999px;
}

.home-plan-card {
  padding: 1rem 1rem 1.08rem;
  border-top: 2px solid transparent;
  border-color: #3a4250;
  scroll-snap-align: start;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-plan-card-featured {
  border-top-color: #ff6f74;
  border-color: #6e343a;
  box-shadow: 0 16px 34px rgba(224, 58, 62, 0.22);
}

.home-plan-card:hover,
.home-plan-card:focus-within {
  border-color: rgba(224, 58, 62, 0.55);
  box-shadow: 0 16px 34px rgba(224, 58, 62, 0.24);
}

.home-plan-name {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-plan-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-plan-phones {
  margin-top: 0.58rem;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #3e4653;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.52rem;
}

.home-plan-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  list-style: disc;
  display: grid;
  gap: 0.45rem;
}

.home-plan-buy-btn {
  width: 100%;
  margin-top: 0.88rem;
}

.home-plan-buy-btn:hover,
.home-plan-card:hover .home-plan-buy-btn,
.home-plan-card:focus-within .home-plan-buy-btn {
  background: linear-gradient(150deg, var(--accent-primary-hover), var(--accent-primary-pressed));
  border-color: #ff6670;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(224, 58, 62, 0.3);
}

.home-faq-grid {
  display: grid;
  gap: 0.72rem;
}

.home-faq-item {
  padding: 0;
  overflow: hidden;
}

.home-faq-question {
  list-style: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0.92rem 2.7rem 0.92rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.home-faq-question::-webkit-details-marker {
  display: none;
}

.home-faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  border: 1px solid #4a5260;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-grid;
  place-items: center;
  font-size: 0.88rem;
  line-height: 1;
}

.home-faq-item[open] .home-faq-question::after {
  content: "-";
}

.home-faq-item[open] .home-faq-question {
  border-bottom: 1px solid #353d49;
}

.home-faq-answer {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 0.88rem 1rem 1rem;
}

.home-faq-item:hover .home-faq-question {
  background: rgba(255, 255, 255, 0.02);
}

.home-faq-item .home-faq-question:focus-visible {
  outline: 2px solid rgba(224, 58, 62, 0.7);
  outline-offset: -2px;
}

.home-cta {
  margin-top: 3rem;
  padding: 1.25rem;
  border-color: #4a2a30;
  background:
    linear-gradient(160deg, rgba(35, 39, 47, 0.95), rgba(27, 31, 38, 0.95)),
    radial-gradient(40rem 20rem at 100% 0%, rgba(224, 58, 62, 0.15), transparent 72%);
}

.home-cta-kicker {
  margin: 0;
  color: #ffb8bb;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-cta-title {
  margin: 0.56rem 0 0;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  text-wrap: balance;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 20, 0.76);
  backdrop-filter: blur(6px);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1.1rem 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem 0.7rem;
}

.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  padding: 0.2rem 0.26rem;
  border-radius: 0.42rem;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.footer-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.panel {
  background: linear-gradient(180deg, rgba(30, 34, 40, 0.94), rgba(27, 31, 36, 0.94));
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.panel-hero {
  background:
    linear-gradient(145deg, rgba(35, 40, 48, 0.96), rgba(29, 33, 39, 0.96)),
    radial-gradient(60rem 28rem at 92% 0%, rgba(224, 58, 62, 0.14), transparent 72%);
  border-color: #4a2a30;
}

.split-grid {
  display: grid;
  gap: 1rem;
}

.split-grid-3 {
  grid-template-columns: 2fr 1fr;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.stat-card {
  background: #20252d;
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 0.86rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 0.24rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 1.42rem;
  font-weight: 700;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.56rem 1rem;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.43rem 0.55rem;
  border: 1px solid #39404b;
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.03);
}

.kv-key {
  color: var(--text-secondary);
}

.kv-value {
  text-align: right;
  font-weight: 600;
}

.mono {
  font-family: "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.01em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 0.86rem;
  background: #1f242b;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 0.76rem 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #232932;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #313844;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-ok {
  color: #c7f3db;
  background: rgba(47, 163, 107, 0.24);
  border: 1px solid rgba(47, 163, 107, 0.38);
}

.pill-warn {
  color: #f9e4b8;
  background: rgba(224, 161, 38, 0.22);
  border: 1px solid rgba(224, 161, 38, 0.38);
}

.pill-bad {
  color: #ffdddd;
  background: rgba(214, 69, 69, 0.24);
  border: 1px solid rgba(214, 69, 69, 0.42);
}

.form-shell {
  width: min(34rem, 100%);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.form-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-stack {
  display: grid;
  gap: 0.94rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0.72rem;
  padding: 0.62rem 0.74rem;
  color: var(--text-primary);
  background: #21262e;
  font-family: inherit;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent-primary);
  transform: translateY(1px);
  margin-right: 0.35rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #d8565a;
  box-shadow: 0 0 0 3px rgba(224, 58, 62, 0.23);
}

.help-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.field-error,
.errorlist {
  margin: 0.28rem 0 0;
  padding-left: 0;
  list-style: none;
  color: #ffb4b7;
  font-size: 0.81rem;
}

.flash-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.flash {
  border-radius: 0.72rem;
  padding: 0.63rem 0.8rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.flash-ok {
  color: #d1f5e4;
  background: rgba(47, 163, 107, 0.24);
  border-color: rgba(47, 163, 107, 0.38);
}

.flash-warn {
  color: #f9e8be;
  background: rgba(224, 161, 38, 0.21);
  border-color: rgba(224, 161, 38, 0.36);
}

.flash-error {
  color: #ffd9dc;
  background: rgba(214, 69, 69, 0.24);
  border-color: rgba(214, 69, 69, 0.4);
}

.note-box {
  border: 1px dashed #745f2f;
  border-radius: 0.8rem;
  background: rgba(224, 161, 38, 0.13);
  color: #f0d9a4;
  padding: 0.84rem 0.95rem;
  font-size: 0.89rem;
}

.empty-state {
  color: var(--text-muted);
  padding: 0.9rem 0.2rem;
}

.section-gap {
  display: grid;
  gap: 0.85rem;
}

.mt-lg {
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.44s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.05s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.1s;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .split-grid-3 {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-features-grid,
  .home-bots-grid {
    grid-template-columns: 1fr;
  }

  .home-plans-grid {
    grid-auto-columns: calc((100% - 0.8rem) / 2);
  }
}

@media (max-width: 700px) {
  .layout-container {
    width: min(1160px, calc(100% - 2rem));
  }

  .site-header-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.38rem;
    padding-inline: 0.56rem;
    padding-block: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 0.82rem;
    background: rgba(29, 33, 39, 0.95);
    border-color: transparent;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px) scaleY(0.98);
    transform-origin: top center;
    transition:
      max-height 0.24s ease,
      opacity 0.18s ease,
      transform 0.24s ease,
      padding 0.24s ease,
      margin-top 0.24s ease,
      border-color 0.24s ease;
  }

  .site-nav.is-open {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
    padding-block: 0.56rem;
    margin-top: 0.18rem;
    border-color: var(--border-subtle);
  }

  .site-nav > * {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.16s ease;
  }

  .site-nav.is-open > * {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .nav-link,
  .site-nav .btn,
  .site-nav .admin-summary {
    width: 100%;
    text-align: left;
  }

  .site-nav .btn {
    justify-content: center;
  }

  .inline-form {
    width: 100%;
  }

  .inline-form .btn {
    width: 100%;
  }

  .admin-dropdown {
    width: 100%;
  }

  .admin-dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-top: 0.35rem;
    border-color: var(--border-subtle);
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .main-content {
    padding-block: 1.3rem 2rem;
    padding-inline: 0.12rem;
  }

  .home-title {
    font-size: clamp(2.3rem, 12.2vw, 3.4rem);
  }

  .home-section {
    margin-top: 2.3rem;
  }

  .home-window-grid {
    grid-template-columns: 1fr;
  }

  .home-plans-grid {
    grid-auto-columns: 100%;
  }

  .home-strip-inner {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .home-cta {
    margin-top: 2.3rem;
    padding: 1rem;
  }

  .site-footer-inner {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .layout-container {
    width: min(1160px, calc(100% - 1.6rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav > * {
    transition: none;
  }
}
