:root {
  color-scheme: dark;
  --bg: #040918;
  --bg-soft: #09162f;
  --panel: rgba(8, 17, 38, 0.88);
  --panel-strong: rgba(11, 24, 52, 0.96);
  --line: rgba(134, 173, 255, 0.15);
  --text: #eff5ff;
  --muted: #9fb0cf;
  --blue-1: #30b8ff;
  --blue-2: #7ec4ff;
  --blue-3: #315eff;
  --violet: #7356ff;
  --shadow: 0 30px 90px rgba(1, 7, 18, 0.55);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(50, 138, 255, 0.17), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(118, 86, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #040816 0%, #050b18 40%, #030611 100%);
  color: var(--text);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(9, 18, 41, 0.94), rgba(5, 12, 29, 0.98));
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.auth-card p {
  color: var(--muted);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.hero,
.catalog,
.pricing,
.feature-band,
.flow,
.footer,
.service-strip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 18, 41, 0.9), rgba(5, 12, 29, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  position: sticky;
  top: 12px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(134, 173, 255, 0.22);
  box-shadow: 0 14px 34px rgba(49, 94, 255, 0.18);
}

.brand-lockup {
  display: grid;
  gap: 4px;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtext {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.topnav {
  display: inline-flex;
  gap: 22px;
}

.topnav a,
.ghost-button {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(151, 189, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce9ff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(151, 189, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 42px;
  height: 36px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.lang-button.active {
  background: linear-gradient(135deg, rgba(48, 184, 255, 0.22), rgba(49, 94, 255, 0.26));
  color: var(--text);
}

.ghost-button,
.secondary-button,
.primary-button,
.danger-button,
.discord-top-button {
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.ghost-button {
  border-color: rgba(151, 189, 255, 0.2);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-3));
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(31, 102, 255, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(151, 189, 255, 0.24);
}

.danger-button {
  background: rgba(255, 76, 104, 0.1);
  color: #ffd9df;
  border-color: rgba(255, 104, 130, 0.34);
}

.discord-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(88, 101, 242, 0.24);
}

.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.discord-top-button:hover,
.topnav a:hover {
  transform: translateY(-1px);
}

.hero {
  margin-top: 24px;
  border-radius: 28px;
  padding: 52px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 34px;
  min-height: 680px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(48, 184, 255, 0.16), transparent 20%),
    radial-gradient(circle at 90% 16%, rgba(115, 86, 255, 0.15), transparent 22%);
  pointer-events: none;
}

.hero-copy {
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.bot-card p,
.price-card p,
.feature-card p,
.flow-grid p,
.footer p,
.dialog-body p,
.service-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.proof-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-strip li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe7ff;
  font-size: 0.95rem;
}

.hero-visual {
  min-height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-panel {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(157, 201, 255, 0.18);
  background: linear-gradient(180deg, rgba(12, 26, 58, 0.96), rgba(4, 13, 32, 0.98));
  min-height: 560px;
  padding: 22px;
}

.hero-card {
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(157, 201, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 18, 45, 0.9), rgba(5, 11, 28, 0.94));
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card-badge,
.bot-tag,
.bot-rating,
.plan-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(134, 173, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card-badge {
  padding: 10px 14px;
  color: #dff2ff;
}

.hero-logo {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 45px rgba(49, 94, 255, 0.22));
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics article {
  border-radius: 18px;
  border: 1px solid rgba(134, 173, 255, 0.12);
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.hero-metrics strong,
.price-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog,
.pricing,
.feature-band,
.flow,
.service-strip {
  margin-top: 24px;
  border-radius: 24px;
  padding: 32px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.bot-grid,
.pricing-grid,
.feature-grid,
.flow-grid {
  display: grid;
  gap: 18px;
}

.bot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bot-card,
.price-card,
.feature-card,
.flow-grid article {
  min-height: 100%;
  border: 1px solid rgba(151, 189, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.76), rgba(7, 16, 37, 0.95));
}

.bot-card {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.bot-card.has-discount-card {
  padding-top: 54px;
}

.product-discount-tag {
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 24px;
  z-index: 2;
  min-width: 82px;
  padding: 13px 12px 9px;
  border-radius: 0 0 16px 16px;
  color: #061226;
  background: linear-gradient(180deg, #8ef0ff 0%, #63a8ff 100%);
  border: 1px solid rgba(211, 248, 255, 0.62);
  border-top: 0;
  box-shadow: 0 16px 30px rgba(33, 149, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.product-discount-tag::before {
  content: "";
  position: absolute;
  inset-block-start: -18px;
  inset-inline-start: 50%;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(160, 220, 255, 0.9));
}

.product-discount-tag::after {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #07152f;
  box-shadow: inset 0 0 0 1px rgba(226, 249, 255, 0.5);
  transform: translateX(-50%);
}

.unavailable-product {
  opacity: 0.72;
}

.unavailable-product .bot-icon {
  filter: grayscale(1);
}

.buy-button:disabled {
  cursor: not-allowed;
  box-shadow: none;
}

.buy-button {
  width: 100%;
}

.bot-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bot-tag,
.bot-rating {
  padding: 8px 12px;
  color: #dce9ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.bot-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #031126;
}

.bot-image,
.bot-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(151, 189, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.bot-media {
  display: block;
}

.bot-icon.aqua {
  background: #78e8ff;
}

.bot-icon.blue {
  background: #7ca4ff;
}

.bot-icon.ice {
  background: #b3f2ff;
}

.bot-icon.navy {
  background: #89bbff;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(151, 189, 255, 0.12);
  color: #d2e1ff;
}

.price-stack {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.meta-row .price-stack {
  justify-items: end;
  text-align: end;
  min-width: 118px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-line strong {
  display: inline;
  margin: 0;
  color: #f5f8ff;
  font-size: 1.38rem;
  line-height: 1;
}

.compact-price .price-line {
  justify-content: flex-end;
}

.compact-price .price-line strong {
  font-size: 1.1rem;
}

.price-line del {
  color: #8fa6cc;
  font-size: 0.85rem;
  text-decoration-color: rgba(255, 114, 146, 0.9);
  text-decoration-thickness: 2px;
}

.billing-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 24px;
}

.plan-name {
  padding: 8px 12px;
  color: #dce9ff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.price-card strong span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.plan-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  color: #d7e5ff;
  font-size: 0.95rem;
}

.plan-points li {
  padding-top: 10px;
  border-top: 1px solid rgba(151, 189, 255, 0.12);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #061226;
  background: linear-gradient(135deg, #78e8ff, #65a8ff);
  border: 1px solid rgba(196, 239, 255, 0.42);
  box-shadow: 0 10px 22px rgba(48, 184, 255, 0.18);
  font-weight: 900;
  font-size: 0.78rem;
}

.package-buy-button {
  margin-top: 18px;
}

.featured-plan {
  border-color: rgba(94, 170, 255, 0.32);
  background: linear-gradient(180deg, rgba(18, 39, 89, 0.88), rgba(10, 21, 52, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(21, 57, 155, 0.18);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.flow-grid article {
  padding: 24px;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(93, 162, 255, 0.15);
  color: var(--blue-2);
  font-weight: 700;
  margin-bottom: 18px;
}

.service-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.admin-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
  background:
    linear-gradient(180deg, rgba(9, 18, 41, 0.94), rgba(5, 12, 29, 0.98));
  box-shadow: var(--shadow);
}

.admin-panel .section-heading {
  max-width: 820px;
}

.admin-panel .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stats article,
.admin-card {
  border: 1px solid rgba(151, 189, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.76), rgba(7, 16, 37, 0.95));
}

.admin-stats article {
  padding: 16px;
}

.admin-stats strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.admin-stats span,
.admin-row span,
.empty-state {
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.admin-card {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  max-height: 520px;
  overflow: auto;
  padding-left: 4px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(151, 189, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  text-align: inherit;
  width: 100%;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row-actions .small {
  padding: 8px 12px;
  min-height: 36px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(151, 189, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button.admin-row {
  cursor: pointer;
}

button.admin-row:hover {
  border-color: rgba(151, 189, 255, 0.28);
}

.admin-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row .admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-row span,
.admin-row strong {
  overflow-wrap: anywhere;
}

.grant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.grant-form input {
  width: 100%;
  border: 1px solid rgba(151, 189, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  padding: 10px 14px;
}

.grant-form input::placeholder {
  color: var(--muted);
}

.auth-dialog {
  width: min(620px, calc(100% - 24px));
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #dce9ff;
  font-weight: 700;
}

.discord-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  background: #5865f2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(88, 101, 242, 0.24);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(151, 189, 255, 0.14);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  border: 1px solid rgba(151, 189, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.auth-form textarea {
  resize: vertical;
  min-height: 110px;
}

.auth-form select option {
  color: #061126;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  border-radius: 14px;
  background: rgba(255, 72, 72, 0.08);
  color: #ffd1d1;
}

.auth-actions,
.demo-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-accounts {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(151, 189, 255, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-accounts strong {
  width: 100%;
  color: #dce9ff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-grid article {
  border: 1px solid rgba(151, 189, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.settings-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}

.settings-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.service-copy {
  max-width: 620px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-tags span {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(134, 173, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #dce9ff;
  white-space: nowrap;
}

.footer {
  margin-top: 24px;
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.discord-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #5865f2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(88, 101, 242, 0.34);
}

.discord-float:hover {
  transform: translateY(-2px);
}

.small {
  padding: 10px 16px;
}

.preview-dialog {
  border: 1px solid rgba(151, 189, 255, 0.2);
  border-radius: 20px;
  width: min(540px, calc(100% - 24px));
  background: rgba(5, 15, 37, 0.98);
  color: var(--text);
  box-shadow: var(--shadow);
}

.product-dialog {
  width: min(720px, calc(100% - 24px));
}

.preview-dialog::backdrop {
  background: rgba(1, 6, 18, 0.72);
}

.dialog-body {
  padding: 28px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bot-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    align-items: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .catalog,
  .pricing,
  .feature-band,
  .flow,
  .service-strip {
    padding: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .bot-grid,
  .pricing-grid,
  .feature-grid,
  .flow-grid,
  .admin-stats,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .grant-form,
  .form-grid,
  .admin-row,
  .settings-grid {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .service-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel {
    min-height: 300px;
    padding: 16px;
  }

  .hero-card {
    padding: 16px;
  }

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