:root {
  color-scheme: dark;
  --bg: #050914;
  --ink: #f7fbff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.14);
  --paper: rgba(7, 14, 28, 0.76);
  --soft: rgba(255, 255, 255, 0.08);
  --clay: #1f8cff;
  --clay-dark: #dcecff;
  --teal: #48d6ff;
  --mint: rgba(72, 214, 255, 0.16);
  --gold: #ffffff;
  --danger: #ff5f7a;
  --danger-soft: rgba(255, 116, 111, 0.16);
  --ok: #5af2b4;
  --ok-soft: rgba(90, 242, 180, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    conic-gradient(from 215deg at 50% 8%, rgba(0, 123, 255, 0.44), rgba(255, 255, 255, 0.08), rgba(0, 238, 255, 0.34), rgba(4, 8, 20, 0.2), rgba(0, 123, 255, 0.44)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(145deg, rgba(3, 7, 18, 0.96), rgba(8, 18, 38, 0.92) 48%, rgba(2, 5, 12, 0.98)),
    var(--portfolio-bg-1, none),
    var(--portfolio-bg-2, none);
  background-size: auto, 24px 24px, auto, min(42vw, 540px) auto, min(40vw, 500px) auto;
  background-position: center, center, center, right 7% top 120px, left 6% bottom 70px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "B Nazanin", "IRNazanin", "Noto Naskh Arabic", Tahoma, serif;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 16%, rgba(72, 214, 255, 0.14) 18%, transparent 27%),
    linear-gradient(72deg, transparent 0 45%, rgba(255, 255, 255, 0.08) 48%, transparent 60%),
    linear-gradient(155deg, transparent 0 62%, rgba(31, 140, 255, 0.18) 66%, transparent 76%);
  mix-blend-mode: screen;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
  max-width: 100%;
  text-wrap: balance;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(14px, 4vw, 48px);
  background: rgba(6, 10, 18, 0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  max-width: 100vw;
  gap: clamp(8px, 2vw, 18px);
}

.site-banner {
  position: sticky;
  top: 74px;
  z-index: 9;
  padding: 9px 16px;
  text-align: center;
  color: #071312;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.site-banner[hidden] {
  display: none;
}

.brand,
.nav-link,
.bell,
.ghost,
.primary,
.danger,
.mini,
.slot {
  border: 0;
  border-radius: 8px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link,
.primary,
.ghost,
.danger,
.mini,
.bell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-link::after,
.primary::after,
.ghost::after,
.danger::after,
.mini::after,
.bell::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  z-index: -1;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: left 280ms ease;
}

.nav-link:hover::after,
.primary:hover::after,
.ghost:hover::after,
.danger:hover::after,
.mini:hover::after,
.bell:hover::after {
  left: 112%;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  color: var(--ink);
  background: transparent;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  white-space: nowrap;
}

.booking-action {
  grid-column: 3;
  justify-self: end;
}

.header-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  color: var(--teal);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.notice-inline {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 14px;
}

.bell {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  overflow: visible;
}

.bell-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.bell-icon svg {
  display: block;
}

.bell b {
  position: absolute;
  right: auto;
  bottom: -9px;
  left: -9px;
  z-index: 3;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: white;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  border: 2px solid #111716;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.nav-link {
  padding: 10px 16px;
  background: linear-gradient(135deg, #ffffff, var(--teal) 45%, var(--clay));
  color: #041021;
  font-weight: 800;
}

.nav-link:hover,
.bell:hover,
.primary:hover,
.ghost:hover,
.danger:hover,
.mini:hover,
.slot:not(:disabled):hover {
  transform: translateY(-1px);
}

.primary:disabled,
.ghost:disabled,
.nav-link:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

#app {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  min-height: calc(100vh - 112px);
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 1.15;
  color: var(--ink);
}

.hero-copy p {
  max-width: 670px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 19px);
}

.hero-actions,
.row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary,
.ghost,
.danger {
  min-height: 46px;
  padding: 11px 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, var(--clay), #0357ff);
  color: white;
  box-shadow: 0 14px 34px rgba(31, 140, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ghost {
  background:
    linear-gradient(135deg, rgba(72, 214, 255, 0.14), rgba(255, 255, 255, 0.05)),
    var(--soft);
  color: var(--teal);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.danger {
  background: linear-gradient(135deg, var(--danger), #c84c49);
  color: white;
  box-shadow: 0 14px 30px rgba(255, 116, 111, 0.20);
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.photo-stack {
  position: absolute;
  inset: 0;
}

.photo-stack img {
  position: absolute;
  width: 68%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid rgba(255, 253, 248, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-stack img:nth-child(1) {
  top: 0;
  right: 0;
}

.photo-stack img:nth-child(2) {
  left: 0;
  bottom: 34px;
}

.photo-stack img:nth-child(3) {
  width: 44%;
  right: 22%;
  bottom: 0;
}

.rgb-showcase {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.rgb-ring {
  position: absolute;
  width: min(430px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, #ffffff, #48d6ff, #1f8cff, #061329, #ffffff);
  filter: drop-shadow(0 30px 70px rgba(31, 140, 255, 0.36));
  animation: rgbSpin 12s linear infinite;
}

.rgb-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: rgba(5, 9, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.intro-logo-image {
  position: absolute;
  z-index: 1;
  width: min(360px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(72, 214, 255, 0.10)),
    url("assets/2.jpg") center / cover no-repeat;
  opacity: 0.3;
  filter: saturate(1.08) contrast(1.04);
}

.showcase-card {
  position: relative;
  z-index: 2;
  width: min(330px, 76vw);
  padding: 34px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.018);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.03)),
    rgba(7, 14, 28, 0.143);
  box-shadow: var(--shadow);
  backdrop-filter:  saturate(1.08);
  -webkit-backdrop-filter:  saturate(1.08);
}

.showcase-card span,
.showcase-card strong,
.showcase-card small {
  display: block;
}

.showcase-card span {
  color: var(--teal);
  font-weight: 900;
}

.showcase-card strong {
  margin: 10px 0;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
}

.showcase-card small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes rgbSpin {
  to {
    transform: rotate(1turn);
  }
}

.section {
  margin-top: 56px;
}

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

.intro-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(72, 214, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(7, 14, 28, 0.74);
  box-shadow: var(--shadow);
}

.intro-card strong,
.intro-card span {
  display: block;
}

.intro-card strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.intro-card span {
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  min-width: 0;
}

.section-head h2,
.panel h2,
.panel h3 {
  margin: 0;
  line-height: 1.45;
}

.section-head p,
.muted {
  color: var(--muted);
}

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

.work-card,
.comment,
.panel,
.booking-card,
.service-card,
.contact-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(72, 214, 255, 0.055)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.social-under-phone {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.social-label {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 900;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(72, 214, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  direction: ltr;
}

.instagram-logo {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 70% 25%, #fff 0 2px, transparent 3px),
    radial-gradient(circle, transparent 0 6px, #fff 7px 9px, transparent 10px),
    linear-gradient(135deg, #405de6, #5851db 32%, #c13584 58%, #fd1d1d 78%, #feda77);
}

.instagram-logo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #fff;
  border-radius: 7px;
}

.instagram-link b {
  font-size: 14px;
}

.work-card::before,
.comment::before,
.panel::before,
.booking-card::before,
.service-card::before,
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.18), transparent 32%, rgba(72, 214, 255, 0.09) 70%, rgba(31, 140, 255, 0.10));
  opacity: 0.78;
}

.work-card,
.comment,
.panel,
.booking-card,
.service-card,
.contact-band {
  position: relative;
  overflow: hidden;
}

.work-card > *,
.comment > *,
.panel > *,
.booking-card > *,
.service-card > *,
.contact-band > * {
  position: relative;
  z-index: 1;
}

.work-card {
  overflow: hidden;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.work-card strong,
.work-card span {
  display: block;
  padding: 0 14px;
}

.work-card strong {
  padding-top: 12px;
}

.work-card span {
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.comments.carousel {
  display: block;
  overflow: hidden;
  direction: ltr;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.comments.carousel:active {
  cursor: grabbing;
}

.comment-track {
  display: flex;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.comment {
  direction: rtl;
  flex: 0 0 100%;
  padding: 18px;
}

.active-comment {
  min-height: 188px;
  display: grid;
  align-content: center;
  opacity: 0.56;
  transform: scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
}

.active-comment.is-current {
  opacity: 1;
  transform: scale(1);
}

.active-comment span {
  color: var(--gold);
  font-weight: 900;
}

.comment p {
  margin: 0 0 12px;
}

.contact-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.contact-band > div:last-child {
  text-align: left;
  direction: ltr;
}

.view-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
}

.full {
  width: 100%;
}

.auth-switch {
  margin-top: 10px;
}

.panel {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(72, 214, 255, 0.04)),
    rgba(9, 15, 27, 0.88);
}

.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.field span,
.field label {
  color: var(--ink);
  font-weight: 800;
}

.field-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(72, 214, 255, 0.16);
}

select option {
  background: #071326;
  color: var(--ink);
}

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

.booking-extra[hidden] {
  display: none;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.check-line input {
  width: auto;
}

.summary-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(72, 214, 255, 0.20), rgba(31, 140, 255, 0.16));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-guide {
  margin-bottom: 14px;
  border: 1px dashed rgba(72, 214, 255, 0.28);
}

.days {
  min-width: 104px;
  text-align: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.days b {
  display: block;
  color: var(--teal);
  font-size: 34px;
  line-height: 1.1;
}

.bookings-list,
.notice-list {
  display: grid;
  gap: 10px;
}

.limit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.limit-strip span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.invite-card {
  background:
    linear-gradient(135deg, rgba(31, 140, 255, 0.20), rgba(255, 255, 255, 0.06)),
    var(--paper);
}

.referral-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(72, 214, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.referral-box span {
  color: var(--muted);
  font-weight: 800;
}

.referral-box strong {
  direction: ltr;
  justify-self: end;
  color: var(--teal);
  font-size: 20px;
}

.referral-box b {
  grid-column: 1 / -1;
  color: var(--ink);
}

.danger-note {
  color: #ffd3d1;
  background: var(--danger-soft);
}

.booking-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--clay-dark);
  font-size: 13px;
  font-weight: 800;
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.service-card {
  position: relative;
  padding: 14px;
}

.service-card input {
  position: absolute;
  inset: 12px auto auto 12px;
  width: auto;
}

.service-card strong,
.service-card small {
  display: block;
  padding-left: 28px;
}

.service-card small {
  color: var(--muted);
}

.slot-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(76px, 10vw, 96px), 1fr));
  gap: 8px;
  margin-top: 10px;
}

.slot {
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  font-size: clamp(13px, 1.4vw, 15px);
}

.slot.available {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: #a7d9c2;
}

.slot.full {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #ffc3c3;
}

.slot.closed,
.slot:disabled {
  background: #ece8e0;
  color: #8a8680;
  cursor: not-allowed;
}

.slot.selected {
  background: var(--teal);
  color: #041021;
  box-shadow: 0 10px 20px rgba(72, 214, 255, 0.24);
}

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

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 900;
}

.tab.active {
  background: linear-gradient(135deg, #ffffff, var(--teal), var(--clay));
  color: #041021;
  border-color: var(--teal);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

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

.admin-side {
  position: sticky;
  top: 94px;
  min-height: calc(100vh - 128px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(72, 214, 255, 0.17), rgba(31, 140, 255, 0.12)),
    rgba(5, 12, 26, 0.80);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.admin-side h2,
.admin-side p {
  margin: 0;
}

.admin-side p {
  color: var(--muted);
  margin-top: 8px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.admin-kpis div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-phone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 4px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(72, 214, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.admin-kpis span,
.admin-kpis b {
  display: block;
}

.admin-kpis span {
  color: var(--muted);
  font-size: 13px;
}

.admin-kpis b {
  color: var(--gold);
  font-size: 26px;
}

.admin-nav {
  display: grid;
}

.admin-nav .tab {
  width: 100%;
  text-align: right;
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 16px;
  background: linear-gradient(135deg, rgba(72, 214, 255, 0.15), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

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

th {
  color: var(--clay-dark);
  background: rgba(31, 140, 255, 0.15);
}

.mini {
  min-height: 34px;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  color: var(--clay-dark);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mini.warn {
  background: var(--danger-soft);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  background: #202322;
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

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

.notifications-page {
  max-width: 860px;
  margin: 0 auto;
}

.preview-banner {
  position: static;
  display: block;
  border-radius: 8px;
}

.empty {
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .site-banner {
    top: 116px;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .booking-action {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    text-align: center;
  }

  .header-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    min-width: 0;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head .row {
    width: 100%;
  }

  .section-head .row > button {
    flex: 1;
  }

  .hero,
  .view-grid,
  .admin-grid,
  .admin-shell,
  .contact-band,
  .stats-row,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 430px;
  }

  .rgb-showcase {
    min-height: 410px;
  }

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

@media (min-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  }

  #app {
    width: min(1220px, calc(100% - 64px));
  }

  .panel {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  body {
    background-size: auto, auto, auto, 90vw auto, 80vw auto;
    background-position: center, center, center, right -30vw top 110px, left -28vw bottom 50px;
  }

  .site-banner {
    top: 112px;
    font-size: 13px;
  }

  #app {
    width: min(100% - 18px, 1180px);
    padding-top: 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .grid,
  .comments,
  .form-grid,
  .service-grid,
  .summary-hero,
  .booking-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 10px;
  }

  .brand {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 22px;
  }

  .nav-link,
  .header-phone {
    font-size: 12px;
  }

  .header-left {
    gap: 6px;
  }

  .bell {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  table {
    min-width: 680px;
  }

  .panel,
  .contact-band,
  .social-band,
  .summary-hero {
    padding: 14px;
  }

  .primary,
  .ghost,
  .danger {
    min-height: 44px;
    padding: 9px 12px;
    width: 100%;
  }

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

  .photo-stack img {
    width: 74%;
  }
}

@media (max-width: 420px) {
  #app {
    width: min(100% - 12px, 1180px);
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .brand {
    font-size: 19px;
  }

  .booking-action,
  .header-phone {
    font-size: 11px;
  }

  .slot-board {
    gap: 6px;
  }

  .slot {
    min-height: 42px;
    padding: 6px;
  }
}
