:root {
  --black-01: #0a0a0a;
  --black-02: #121212;
  --panel: #1a1a1a;
  --panel-soft: #151515;
  --border: #2b2b2b;
  --text-primary: #f3f3f3;
  --text-secondary: #a1a1a1;
  --red: #d90429;
  --red-hover: #b10321;
  --red-deep: #7f1123;
  --success: #15803d;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  --radius: 0;
}

body[data-theme='light'] {
  --black-01: #f7f8fa;
  --black-02: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f3f5f8;
  --border: #d2d7e0;
  --text-primary: #16181d;
  --text-secondary: #555d6a;
  --red: #d90429;
  --red-hover: #b10321;
  --red-deep: #7f1123;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black-01);
  color: var(--text-primary);
  font-family: Inter, "Segoe UI", sans-serif;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-32) var(--space-24) var(--space-64);
}

.public-page {
  padding-top: var(--space-48);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black-02);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(2px);
}

.site-header-inner {
  width: 100%;
  margin: 0;
  padding: 28px var(--space-24) var(--space-12);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-24);
  align-items: center;
  position: relative;
}

.site-utility {
  position: absolute;
  right: var(--space-24);
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.site-utility .appearance-switch.tiny a {
  padding: 3px 8px;
  font-size: 0.62rem;
}

.button.tiny,
button.tiny {
  padding: 5px 8px;
  font-size: 0.64rem;
  line-height: 1;
  min-height: 26px;
}

.site-utility form {
  margin: 0;
  display: inline-flex;
}

.site-utility .ghost.tiny {
  color: var(--text-secondary);
}

.brand {
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span {
  color: var(--red);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.site-nav a {
  padding: var(--space-8) 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--red);
}

.site-cta {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-menu-toggle,
.mobile-menu-drawer,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--panel);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  border-left: 1px solid var(--border);
  background: var(--black-02);
  z-index: 220;
  padding: var(--space-16);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  flex-direction: column;
  gap: var(--space-16);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-12);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-primary);
}

.mobile-menu-nav {
  display: grid;
  gap: var(--space-4);
}

.mobile-menu-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-menu-nav a.active,
.mobile-menu-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--red);
}

.mobile-menu-actions {
  display: grid;
  gap: var(--space-8);
}

.mobile-menu-actions .appearance-switch {
  width: 100%;
}

.mobile-menu-actions .appearance-switch a {
  flex: 1;
  text-align: center;
}

.mobile-menu-actions .button,
.mobile-menu-actions button {
  width: 100%;
}

.site-cta form,
.admin-quick form {
  display: inline-flex;
  margin: 0;
  gap: var(--space-8);
}

.appearance-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.appearance-switch a {
  padding: 8px 11px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
  border-right: 1px solid var(--border);
}

.appearance-switch a:last-child {
  border-right: 0;
}

.appearance-switch a.active {
  background: var(--red);
  color: #fff;
}

.appearance-switch a:hover {
  color: var(--text-primary);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: var(--radius);
}

.button:hover,
button:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.button.secondary,
button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.button.secondary:hover,
button.secondary:hover {
  border-color: var(--red);
  color: var(--text-primary);
}

button.ghost,
.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

button.ghost:hover,
.button.ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

button.danger,
.button.danger {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

button.danger:hover,
.button.danger:hover {
  background: var(--red);
  border-color: var(--red);
}

.section-block {
  margin-top: var(--space-32);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: var(--space-24);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.section-kicker {
  color: var(--red);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  margin-top: var(--space-24);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-24);
  padding: var(--space-32);
}

.hero-copy {
  display: grid;
  gap: var(--space-16);
}

.hero-copy p {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.hero-benefits {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.hero-benefits li {
  list-style: none;
  color: var(--text-primary);
  border-left: 3px solid var(--red);
  padding-left: var(--space-8);
}

.hero-media {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(10, 10, 10, 0.45), rgba(10, 10, 10, 0.76)),
    url('https://images.unsplash.com/photo-1525026198548-4baa812f1183?auto=format&fit=crop&w=1400&q=80') center/cover;
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 100%);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
}

.hero-meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.hero-meta-row span:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

.intent-grid,
.grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.intent-card,
.step-card,
.product-card,
.benefit-card,
.location-card,
.review-card,
.faq-card,
.kpi,
.panel {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-16);
  border-radius: var(--radius);
}

.intent-card h3,
.step-card h3,
.product-card h3,
.benefit-card h3,
.location-card h3,
.review-card h3,
.faq-card h3,
.card h3,
.panel h3 {
  margin-bottom: var(--space-8);
}

.how-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-no {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 2rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.switch-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-12);
}

.switch-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  display: grid;
  gap: var(--space-8);
}

.product-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--space-12) 0;
}

.price {
  color: var(--text-primary);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.product-meta,
.tight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: var(--space-4);
  color: var(--text-secondary);
}

.trust-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1.05fr 1fr;
}

.metric-list {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-8);
}

.metric strong {
  color: var(--text-primary);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.3rem;
}

.benefit-grid,
.location-grid,
.reviews-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pilot-list-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pilot-card {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-16);
  display: grid;
  gap: var(--space-12);
}

.pilot-card-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.pilot-card-head img,
.pilot-detail-head img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.pilot-detail-head {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 160px 1fr;
  align-items: start;
}

.pilot-detail-head img {
  width: 160px;
  height: 160px;
}

.meta-row {
  display: grid;
  gap: 4px;
}

.gallery-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  margin: 0;
  padding: 0;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.slots-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-page table thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #495057;
}

.badge.active,
.badge.confirmed,
.badge.completed,
.badge.paid,
.badge.issued,
.badge.sent,
.badge.succeeded,
.badge.resolved,
.badge.published {
  background: #15803d;
  border-color: #15803d;
}

.badge.pending_confirmation,
.badge.waiting_payment,
.badge.waiting_reply,
.badge.waiting_weather,
.badge.partially_paid,
.badge.pending,
.badge.rescheduled,
.badge.reserved {
  background: #d97706;
  border-color: #d97706;
}

.badge.cancelled,
.badge.cancelled_by_operator,
.badge.cancelled_by_customer,
.badge.refunded,
.badge.expired,
.badge.spam,
.badge.blocked,
.badge.no_show,
.badge.overdue,
.badge.credited {
  background: #dc2626;
  border-color: #dc2626;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.actions form {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex-wrap: wrap;
}

.row {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr 1fr;
  margin-top: var(--space-16);
}

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

.mini-stack {
  display: grid;
  gap: var(--space-8);
}

.mini-card {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-12);
}

.mini-card strong {
  display: block;
  margin-bottom: var(--space-8);
}

.bar-list {
  display: grid;
  gap: var(--space-8);
}

.bar-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  align-items: center;
  gap: var(--space-8);
}

.bar-label {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.bar-track {
  height: 10px;
  background: var(--black-02);
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7f1123 0%, #d90429 100%);
}

.bar-value {
  font-size: 0.84rem;
  color: var(--text-primary);
}

form {
  display: grid;
  gap: var(--space-8);
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  align-items: flex-start;
}

.module-head p {
  max-width: 72ch;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
}

.toolbar {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(0, auto));
  align-items: center;
}

.table-wrap {
  overflow: auto;
}

.split-layout {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1.2fr 1fr;
}

.panel-stack {
  display: grid;
  gap: var(--space-12);
}

.status-note {
  border: 1px solid var(--border);
  padding: var(--space-12);
  background: var(--panel-soft);
  color: var(--text-primary);
}

.status-note.success {
  border-color: #1f6f3f;
  background: rgba(21, 128, 61, 0.08);
}

.status-note.warning {
  border-color: #8d5f10;
  background: rgba(217, 119, 6, 0.1);
}

.hint {
  margin-top: var(--space-12);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.steps-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.step-chip {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.step-chip.active {
  border-color: var(--red);
  color: var(--text-primary);
  background: rgba(217, 4, 41, 0.1);
}

.kv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-8);
}

.kv-row strong {
  color: var(--text-primary);
}

.tag-list {
  color: var(--text-secondary);
}

.mailbox-layout {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr;
}

.thread-list,
.thread-detail-stack {
  display: grid;
  gap: var(--space-8);
}

.thread-item {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-12);
  display: grid;
  gap: var(--space-4);
}

.thread-item p {
  margin: 0;
}

.reservation-slot-grid {
  display: grid;
  gap: var(--space-8);
}

.reservation-slot-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  cursor: pointer;
}

.reservation-slot-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reservation-slot-content {
  padding: var(--space-12);
  display: grid;
  gap: var(--space-4);
}

.pilot-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pilot-inline img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.pilot-inline a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reservation-slot-card input:checked + .reservation-slot-content {
  box-shadow: inset 0 0 0 1px var(--red);
}

.reservation-slot-card input:checked + .reservation-slot-content strong {
  color: var(--red);
}

.voucher-select-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voucher-select-card {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-16);
  cursor: pointer;
  display: grid;
  gap: var(--space-8);
}

.voucher-select-card.selected {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.voucher-select-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-8);
}

.qty-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: var(--space-8);
}

.qty-btn {
  width: 100%;
  min-height: 42px;
  font-size: 1.15rem;
  padding: 0;
}

.qty-control input[type='number'] {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
}

.shipping-fields {
  display: none;
  margin-top: var(--space-8);
}

.shipping-fields.is-visible {
  display: grid;
  gap: var(--space-8);
}

.qr-wrap {
  margin-top: var(--space-12);
  border: 1px solid var(--border);
  background: #fff;
  padding: var(--space-12);
  display: inline-block;
}

.qr-wrap img {
  display: block;
}

label {
  color: var(--text-primary);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--black-02);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 10px;
  font-family: Inter, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
}

textarea {
  resize: vertical;
}

details {
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

summary {
  cursor: pointer;
  padding: var(--space-12);
  font-weight: 700;
}

details[open] summary {
  border-bottom: 1px solid var(--red);
}

details p {
  padding: 0 var(--space-12) var(--space-12);
}

.alert {
  border: 1px solid var(--error);
  color: #ff9b9b;
  background: rgba(220, 38, 38, 0.08);
  padding: var(--space-12);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--black-02);
  padding: var(--space-32) var(--space-24);
}

.site-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-24);
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.site-footer h4 {
  margin-bottom: var(--space-12);
  color: var(--text-primary);
}

.site-footer a,
.site-footer p {
  display: block;
  margin-bottom: var(--space-8);
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text-primary);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 92px 1fr;
  background: var(--black-01);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 92px;
  border-right: 1px solid var(--border);
  background: var(--black-02);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: var(--space-16) 0;
  overflow: visible;
  transition: width 0.18s ease, box-shadow 0.18s ease;
  z-index: 30;
}

.admin-sidebar:hover,
.admin-sidebar:focus-within {
  width: 248px;
  box-shadow: 18px 0 36px rgba(0, 0, 0, 0.22);
}

.admin-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: width 0.18s ease;
}

.admin-sidebar:hover .admin-logo,
.admin-sidebar:focus-within .admin-logo {
  width: calc(100% - 24px);
}

.admin-logo-mark {
  color: var(--text-primary);
}

.admin-logo-mark::after {
  content: '.';
  color: var(--red);
}

.admin-nav {
  padding: var(--space-12) 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  justify-items: center;
  gap: var(--space-8);
  width: 100%;
}

.admin-nav a {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  justify-content: start;
  gap: 10px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  background: transparent;
  overflow: visible;
  padding: 10px;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-sidebar:hover .admin-nav a,
.admin-sidebar:focus-within .admin-nav a {
  width: calc(100% - 20px);
}

.admin-nav a:hover {
  border-color: var(--border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav a.active {
  border-color: var(--red);
  color: #fff;
  background: rgba(217, 4, 41, 0.12);
}

.admin-nav-icon {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  font-family: Inter, "Segoe UI", sans-serif;
}

.admin-nav-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: opacity 0.14s ease, max-width 0.18s ease;
}

.admin-sidebar:hover .admin-nav-label,
.admin-sidebar:focus-within .admin-nav-label {
  opacity: 1;
  max-width: 160px;
}

.admin-sidebar-foot {
  border-top: 1px solid var(--border);
  padding-top: var(--space-12);
  width: 100%;
  display: grid;
  justify-items: center;
}

.ghost-link {
  color: var(--text-secondary);
}

.ghost-link:hover {
  color: var(--text-primary);
}

.admin-sidebar-link {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  justify-content: start;
  gap: 10px;
  border: 1px solid transparent;
  overflow: visible;
  padding: 10px;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-sidebar:hover .admin-sidebar-link,
.admin-sidebar:focus-within .admin-sidebar-link {
  width: calc(100% - 20px);
}

.admin-sidebar-link:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav a.active .admin-nav-icon,
.admin-sidebar-link:hover .admin-nav-icon,
.admin-nav a:hover .admin-nav-icon {
  border-color: rgba(217, 4, 41, 0.28);
  background: rgba(217, 4, 41, 0.12);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-12) var(--space-24);
  border-bottom: 1px solid var(--border);
  background: var(--black-02);
}

body[data-theme='light'] .site-header,
body[data-theme='light'] .admin-topbar {
  background: rgba(255, 255, 255, 0.95);
}

.admin-search {
  width: min(520px, 100%);
}

.admin-search input {
  width: 100%;
}

.admin-quick {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.add-menu {
  position: relative;
}

.add-menu summary {
  list-style: none;
}

.add-menu summary::-webkit-details-marker {
  display: none;
}

.add-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  max-height: min(60vh, 420px);
  overflow: auto;
  border: 1px solid var(--border);
  background: var(--panel);
  z-index: 60;
  display: grid;
}

.add-menu-list a {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
}

.add-menu-list a:last-child {
  border-bottom: 0;
}

.add-menu-list a:hover {
  color: var(--text-primary);
  background: var(--panel-soft);
}

.top-chip {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 9px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-page {
  max-width: none;
  padding-top: var(--space-24);
}

.kpis {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi {
  border-top: 3px solid var(--red);
}

.kpi strong {
  display: block;
  font-size: 1.9rem;
  color: var(--text-primary);
  margin-top: var(--space-8);
  font-family: Rajdhani, Inter, sans-serif;
}

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

.dashboard-widget {
  min-width: 0;
}

.dashboard-widget.span-1 {
  grid-column: span 1;
}

.dashboard-widget.span-2 {
  grid-column: span 2;
}

.dashboard-widget.span-3 {
  grid-column: span 3;
}

.widget-head {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.widget-head h3 {
  margin: 0;
  flex: 1;
}

.widget-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: grab;
  user-select: none;
}

.dashboard-widget.dragging {
  opacity: 0.55;
}

.widget-hide {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.widget-manager[hidden] {
  display: none;
}

.widget-manager {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.widget-manager-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.widget-manager-panel {
  position: absolute;
  right: 24px;
  top: 24px;
  width: min(560px, calc(100% - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: var(--space-16);
}

.widget-manager-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-8);
}

.widget-manager-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-8);
  align-items: center;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

.widget-manager-toggle {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
}

.admin-footer {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  padding: var(--space-12) var(--space-24) var(--space-24);
}

pre {
  margin: 0;
  background: var(--black-02);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: var(--space-8);
  white-space: pre-wrap;
  word-break: break-word;
}

body[data-theme='light'] .hero-media {
  background:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.35)),
    url('https://images.unsplash.com/photo-1525026198548-4baa812f1183?auto=format&fit=crop&w=1400&q=80') center/cover;
}

body[data-theme='light'] .hero-meta {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme='light'] .hero-meta-row span:last-child {
  color: var(--text-primary);
}

body[data-theme='light'] tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

body[data-theme='light'] .admin-nav a.active {
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.week-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day-col {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-12);
  display: grid;
  gap: var(--space-8);
}

.calendar-day-col h4 {
  font-size: 0.95rem;
  margin: 0;
}

.slot-card {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  padding: var(--space-12);
  display: grid;
  gap: var(--space-8);
}

.slot-chip {
  border: 1px solid var(--border);
  background: var(--black-02);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.modal-dialog {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-primary);
  width: min(640px, calc(100vw - 32px));
  padding: var(--space-16);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 1200px) {
  .site-header-inner {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }

  .hero-grid,
  .row,
  .split-layout,
  .mailbox-layout,
  .admin-grid-3,
  .trust-grid,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .intent-grid,
  .how-grid,
  .product-grid,
  .voucher-select-grid,
  .benefit-grid,
  .location-grid,
  .reviews-grid,
  .pilot-list-grid,
  .gallery-grid,
  .kpis,
  .dashboard-grid,
  .grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
    grid-template-rows: auto auto auto;
    justify-items: stretch;
    padding: var(--space-12);
    width: 100%;
    box-shadow: none;
  }

  .admin-logo {
    width: 100%;
    height: 52px;
  }

  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    justify-items: stretch;
  }

  .admin-nav a,
  .admin-sidebar-link {
    width: 100%;
  }

  .admin-nav-label {
    opacity: 1;
    max-width: 160px;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .intent-grid,
  .how-grid,
  .product-grid,
  .voucher-select-grid,
  .benefit-grid,
  .location-grid,
  .reviews-grid,
  .pilot-list-grid,
  .gallery-grid,
  .kpis,
  .dashboard-grid,
  .grid,
  .switch-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-widget.span-1,
  .dashboard-widget.span-2,
  .dashboard-widget.span-3 {
    grid-column: span 1;
  }

  .widget-manager-panel {
    right: 12px;
    top: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
  }

  .widget-manager-row {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: var(--space-8);
  }

  .site-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .appearance-switch {
    width: 100%;
  }

  .appearance-switch a {
    flex: 1;
    text-align: center;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-quick {
    flex-wrap: wrap;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .module-head {
    flex-direction: column;
  }

  .pilot-detail-head {
    grid-template-columns: 1fr;
  }

  .pilot-detail-head img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    padding: var(--space-12) var(--space-16);
    gap: var(--space-12);
  }

  .site-nav,
  .site-cta,
  .site-utility {
    display: none;
  }

  .mobile-menu-toggle,
  .mobile-menu-drawer,
  .mobile-menu-backdrop {
    display: flex;
  }

  .mobile-menu-backdrop {
    display: block;
  }
}
