:root {
  --bg: #061a34;
  --ink: #f8fafc;
  --muted: #b8c7dc;
  --line: rgba(255, 255, 255, 0.14);
  --panel: #ffffff;
  --brand: #2da8ff;
  --brand-dark: #0b5fa8;
  --accent: #86d5ff;
  --danger: #c2410c;
  --soft: rgba(45, 168, 255, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 168, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(6, 83, 158, 0.28), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input,
textarea {
  border-radius: 8px;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(4, 22, 48, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: right;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #050505;
  color: white;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand small,
.eyebrow,
.muted {
  color: var(--muted);
}

.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 5px;
}

.nav a,
.ghost,
.primary,
.icon-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a {
  gap: 5px;
  font-size: 13px;
}

.nav a span,
.social-icons a {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #86d5ff;
  font-size: 11px;
  font-weight: 900;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #20d4ff, #f4d675 55%, #cc2eff);
  color: #05070d;
}

.primary {
  background: linear-gradient(135deg, #86d5ff, #2da8ff);
  border-color: var(--brand);
  color: #090909;
  font-weight: 700;
}

.primary:hover {
  background: linear-gradient(135deg, #c4ecff, #2388df);
}

.ghost,
.icon-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #fff;
}

.ghost:hover,
.icon-button:hover,
.link-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 38px;
  min-height: 82vh;
  align-items: center;
  padding: 86px 7vw 60px;
  background:
    linear-gradient(90deg, rgba(4, 22, 48, 0.98), rgba(6, 35, 76, 0.88), rgba(6, 26, 52, 0.68)),
    url("assets/images/services-poster.png") center/cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 640px;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-socials a {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-logo,
.hero-carousel {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid rgba(134, 213, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-logo {
  background: #000;
  padding: 24px;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-carousel img.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel div,
.hero-metrics div,
.panel,
.card,
.program-card,
.ai-platform-card,
.review-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(134, 213, 255, 0.32);
}

.hero-panel span {
  color: var(--muted);
}

.hero-metrics span {
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

.hero-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  color: #fff;
}

.section {
  padding: 64px 7vw;
  color: #111827;
}

.section:not(.band):not(.contact-band):not(.ai-platforms) {
  background: #f7f8fb;
}

.ai-platforms {
  background: #061a34;
  color: #fff;
}

.qr-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
  padding: 34px 7vw;
  background: #fff;
  color: #111827;
}

.qr-copy h2 {
  margin: 8px 0;
  font-size: clamp(26px, 3vw, 42px);
}

.qr-copy p {
  color: #667085;
}

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

.qr-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.qr-card img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.filter-action {
  min-height: 44px;
}

.platform-hint {
  margin: -6px 0 18px;
  color: rgba(255, 255, 255, 0.7);
}

.program-hint {
  margin: -6px 0 18px;
  color: #475467;
  font-weight: 800;
}

.section-card-image {
  width: 100%;
  height: 160px;
  margin-top: 14px;
  object-fit: cover;
  border-radius: 8px;
}

.band {
  background: #fff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 6px 0 0;
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.25;
}

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

.ai-platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ai-platform-card {
  display: grid;
  gap: 8px;
  position: relative;
  min-height: 230px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #0c111d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ai-platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 184, 79, 0.5);
  background:
    linear-gradient(145deg, rgba(45, 168, 255, 0.16), rgba(134, 213, 255, 0.08)),
    #082449;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #86d5ff, #2da8ff 58%, #0b5fa8);
  color: #05070d;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(32, 212, 255, 0.18);
}

.ai-platform-card small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(217, 184, 79, 0.16);
  color: #86d5ff;
  font-size: 12px;
}

.ai-platform-card strong {
  font-size: 21px;
}

.ai-platform-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.ai-platform-card em {
  align-self: end;
  color: #86d5ff;
  font-style: normal;
  font-weight: 800;
}

.card,
.program-card,
.review-card,
.panel {
  padding: 20px;
}

.card h3,
.program-card h3,
.review-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.program-card {
  display: grid;
  gap: 10px;
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-color: rgba(17, 24, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14);
}

.program-icon {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.program-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.download-button {
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.download-button:hover {
  background: var(--brand-dark);
}

.card p,
.program-card p,
.review-card p,
.footer p {
  color: var(--muted);
  margin: 0;
}

.price {
  display: block;
  margin: 16px 0;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.service-tabs,
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.smart-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(134, 213, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.light-smart-filter {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.smart-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #fff;
}

.light-smart-filter .smart-filter-head {
  color: #111827;
}

.smart-filter-head span {
  color: var(--accent);
  font-weight: 900;
}

.category-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.category-pills button,
.device-pills button {
  border: 1px solid rgba(134, 213, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 17, 38, 0.54);
  color: #fff;
  min-height: 48px;
  padding: 8px;
}

.light-smart-filter .category-pills button,
.light-smart-filter .device-pills button {
  background: #f8fafc;
  color: #111827;
  border-color: #e5e7eb;
}

.category-pills button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.category-pills span,
.device-pills span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #86d5ff, #2da8ff 58%, #0b5fa8);
  color: #02152d;
  font-size: 11px;
  font-weight: 900;
}

.category-pills strong {
  font-size: 13px;
}

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

.device-pills button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-pills button.active,
.device-pills button.active {
  border-color: #86d5ff;
  background: linear-gradient(135deg, rgba(45, 168, 255, 0.32), rgba(6, 83, 158, 0.38));
  box-shadow: 0 14px 34px rgba(45, 168, 255, 0.18);
}

.light-smart-filter .category-pills button.active,
.light-smart-filter .device-pills button.active {
  background: #e8f5ff;
  color: #0b315f;
}

.dark-filters {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.service-tabs button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: white;
}

.service-tabs button.active {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.filters label,
.form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.dark-filters label {
  color: rgba(255, 255, 255, 0.82);
}

.filters select,
.filters input,
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #fff;
  color: #111827;
  outline: 0;
}

.dark-filters select,
.dark-filters input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.dark-filters option {
  color: #111827;
}

.results-count {
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(217, 184, 79, 0.14);
  color: #86d5ff;
  text-align: center;
  font-weight: 900;
}

.light-count {
  background: #111827;
  color: #fff;
}

.empty-state {
  grid-column: 1 / -1;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form .invalid input,
.form .invalid select,
.form .invalid textarea,
.form .invalid .phone-row {
  border-color: var(--danger);
}

.field-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}

.form {
  display: grid;
  gap: 12px;
}

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

.full {
  grid-column: 1 / -1;
}

.phone-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.phone-row select,
.phone-row input {
  border: 0;
  border-radius: 0;
}

.phone-row select {
  border-left: 1px solid var(--line);
}

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

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

.video-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  background: #000;
  object-fit: cover;
}

.video-card h3 {
  margin: 0;
  padding: 14px 16px;
  font-size: 17px;
}

.contact-band {
  background: #10201f;
  color: #fff;
}

.contact-band .eyebrow,
.contact-band .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

.contact-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-card span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: #fff;
}

.stars {
  color: #b7791f;
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 42px 7vw;
  background: #10201f;
  color: #fff;
}

.footer h3 {
  margin: 0 0 10px;
}

.footer a,
.link-button {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.84);
}

.link-button {
  padding: 0;
  min-height: auto;
  background: transparent;
  border: 0;
  text-align: right;
}

.modal,
.admin-modal {
  width: min(94vw, 760px);
  max-height: 88vh;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.modal::backdrop,
.admin-modal::backdrop {
  background: rgba(17, 24, 39, 0.55);
}

.close {
  float: left;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 38px 0 16px;
}

.auth-tabs button {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  background: #fff;
}

.auth-tabs button.active {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.account-pane {
  clear: both;
  display: grid;
  gap: 12px;
}

.client-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

.chat-thread {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: #f3f4f6;
}

.chat-bubble {
  width: fit-content;
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.chat-bubble span {
  display: block;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.admin-chat {
  margin-right: auto;
  background: #111827;
  color: #fff;
}

.inline-chat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.inline-chat input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.notify-button {
  gap: 7px;
}

.notify-button span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.policy-modal {
  width: min(94vw, 900px);
}

.policy-modal li {
  margin-bottom: 8px;
}

.admin-modal {
  width: min(98vw, 1420px);
  padding: 0;
}

.admin-modal[open] {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #07090f, #111827);
  color: #fff;
}

.admin-sidebar strong {
  margin-bottom: 12px;
  font-size: 20px;
}

.admin-sidebar button {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: right;
}

.admin-sidebar button.active {
  background: #fff;
  color: #10201f;
  font-weight: 800;
}

.admin-content {
  overflow: auto;
  padding: 24px;
  background: #f3f4f6;
  color: #111827;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item input,
.admin-item textarea,
.admin-item select,
.admin-editor input,
.admin-editor textarea,
.admin-editor select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.danger {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--danger);
}

.admin-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  background: #10201f;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .top-actions {
    width: 100%;
  }

  .hero,
  .hero-showcase,
  .qr-section,
  .split,
  .footer,
  .admin-modal[open] {
    grid-template-columns: 1fr;
  }

  .grid,
  .ai-platform-grid,
  .review-list,
  .wide-form,
  .filters,
  .admin-grid,
  .admin-list,
  .video-grid,
  .contact-grid,
  .qr-cards {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-logo,
  .hero-carousel {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grid,
  .ai-platform-grid,
  .review-list,
  .wide-form,
  .filters,
  .admin-grid,
  .admin-list,
  .video-grid,
  .contact-grid,
  .qr-cards,
  .qr-section {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 112px 1fr;
  }

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

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

/* ===== Mobile final fix: Netlify phone layout + clickable controls ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body, main, section, header, footer, dialog, .hero, .section, .topbar, .admin-content, .admin-sidebar {
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
}

a, button, input, select, textarea, .primary, .ghost, .icon-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(45, 168, 255, 0.25);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    position: relative;
    width: 100%;
    padding: 12px;
    gap: 10px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }

  .nav a {
    width: 100%;
    min-height: 42px;
    padding: 7px 6px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav a span {
    min-width: 22px;
    height: 22px;
  }

  .social-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .social-icons a {
    width: 100%;
    height: 36px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .top-actions button,
  .top-actions .primary,
  .top-actions .icon-button {
    width: 100%;
    min-height: 44px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 34px 16px 28px;
    gap: 20px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-showcase,
  .hero-carousel,
  .hero-logo {
    min-width: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-socials {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions a,
  .hero-socials a {
    width: 100%;
    min-height: 44px;
  }

  .hero-showcase {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .hero-logo,
  .hero-carousel {
    min-height: 220px;
    height: 220px;
  }

  .hero-logo {
    object-fit: contain;
  }

  .hero-carousel img {
    object-fit: cover;
  }

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

  .section,
  .qr-section {
    padding: 34px 16px;
  }

  .grid,
  .cards,
  .ai-platform-grid,
  .program-grid,
  .review-list,
  .wide-form,
  .filters,
  .admin-grid,
  .admin-list,
  .video-grid,
  .contact-grid,
  .qr-cards,
  .qr-section,
  .split,
  .footer,
  .service-tabs {
    grid-template-columns: 1fr !important;
  }

  .filters {
    padding: 12px;
  }

  .phone-row {
    grid-template-columns: 105px 1fr !important;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: 88dvh;
    padding: 14px;
  }

  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 42px;
  }

  .auth-tabs button,
  .form button,
  .form input,
  .form select,
  .form textarea {
    min-height: 44px;
  }

  .admin-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .admin-modal[open] {
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
  }

  .admin-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    white-space: nowrap;
  }

  .admin-sidebar strong {
    display: none;
  }

  .admin-sidebar button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .admin-content {
    padding: 14px;
    overflow: auto;
  }

  .admin-editor {
    grid-template-columns: 1fr !important;
  }

  .admin-item-actions,
  .inline-chat {
    grid-template-columns: 1fr !important;
  }

  .admin-item-actions button,
  .inline-chat button,
  .inline-chat input {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 31px;
  }

  .section h2 {
    font-size: 25px;
  }
}
