:root {
  --purple: #7e05e8;
  --purple-deep: #6904c4;
  --ink: #0f0f15;
  --muted: #6d7280;
  --line: #ececf2;
  --chip: #f3f3f6;
  --bg: #fff;
  --green: #14804a;
  --max: 1180px;
  --shadow: 0 12px 32px rgba(15, 15, 21, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
s { color: #9aa0ab; font-weight: 500; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row, .nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-row { min-height: 72px; }
.nav-row { padding-bottom: 10px; gap: 6px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.logo-mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 8px 0 14px;
  border: 1px solid #e6e6ee;
  border-radius: 999px;
  background: #fafafa;
}
.search input {
  flex: 1;
  width: auto;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  padding: 0;
}
.search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5c6370;
  display: grid;
  place-items: center;
}

.tools { display: flex; align-items: center; gap: 4px; position: relative; }
.tool, .icon-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.icon-btn {
  width: 40px;
  height: 40px;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0;
}
.tool:hover, .icon-btn:hover, .nav-link:hover, .chip:hover { background: var(--chip); }

.user-chip { font-weight: 700; font-size: 14px; }

.plus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}
.plus:hover { background: var(--purple-deep); }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-link.is-active { color: var(--purple); }

.menu { position: relative; }
.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  inset-inline-start: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 40;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: grid; }
.menu-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.menu-panel a:hover { background: #f6f1ff; color: var(--purple); }

.pop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 40;
}
.pop button, .pop a {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.pop button:hover, .pop a:hover { background: #f6f1ff; color: var(--purple); }

.page { padding: 26px 0 70px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
h1 { margin: 0; font-size: 34px; line-height: 1.25; letter-spacing: -0.02em; }
.lede { margin: 6px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  border: 0;
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.is-on { background: #111; color: #fff; }

.slider { position: relative; margin-bottom: 28px; }
.slide {
  display: none;
  position: relative;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.slide.is-on { display: block; }
.slide img { width: 100%; height: 360px; object-fit: cover; }
.slide-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 64px 28px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.slide-copy h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.35; max-width: 16em; }
.slide-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.slide-meta > * { white-space: nowrap; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  z-index: 2;
}
.arrow.prev { inset-inline-start: -16px; }
.arrow.next { inset-inline-end: -16px; }
html[dir="ltr"] .arrow svg { transform: scaleX(-1); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 14px;
}
.section-head h2 { margin: 0; font-size: 26px; }
.count { color: var(--muted); font-size: 16px; font-weight: 600; }
.linkish { color: var(--purple); font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 16px;
}
.card { position: relative; }
.fav { z-index: 2; }
.card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover img { transform: scale(1.045); }
.card h3 {
  margin: 10px 0 2px;
  font-size: 15.5px;
  line-height: 1.45;
  min-height: 2.9em;
}
.price { margin: 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.price b { color: var(--purple); }
.fast { color: var(--purple); font-weight: 700; font-size: 13px; }
.when { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.fav {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  color: #111;
}
.fav.on { color: #e11d48; }
.fav.on svg path { fill: currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--purple);
}
.card-media .pill, .slide .pill {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
}
.pill.green { background: var(--green); }
.rate {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 800;
}
.card-media .pill + .rate, .has-both .rate { top: 40px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}

.footer { border-top: 1px solid var(--line); padding: 28px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.footer strong { display: block; margin-bottom: 8px; }
.footer a, .footer p { display: block; color: var(--muted); margin: 6px 0; }
.footer a:hover { color: var(--purple); }
.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.detail-hero {
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  background: #111 center/cover no-repeat;
}
.detail h1 { font-size: 30px; margin-top: 14px; }
.book {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 96px;
}
.book h2 { margin: 0 0 8px; font-size: 18px; }
.ticket-row, .qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
}
.book .plus { width: 100%; justify-content: center; margin-top: 12px; padding: 12px; }
.note { color: var(--green); font-weight: 700; }

.panel {
  max-width: 560px;
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.panel h1 { font-size: 28px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-head h1 { margin: 0; font-size: 28px; }
.admin-head .chip { font-weight: 700; }
html[dir="rtl"] .admin-table td.ltr { text-align: right; }
.admin-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td.wrap { white-space: normal; min-width: 240px; }
.admin-table th { font-size: 13px; color: var(--muted); background: #fafafa; }
.admin-table tr:last-child td { border-bottom: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin: 12px 0 0; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.panel input, .signup input, .panel select, .signup select { width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.jobs { display: grid; gap: 12px; }
.job {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.crumb { color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--purple); font-weight: 700; }

.signup {
  max-width: 460px;
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.signup h2 { margin: 0 0 4px; font-size: 20px; }
.signup .plus, .panel .plus { width: 100%; justify-content: center; margin-top: 16px; }
.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f7f2ff;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 4px;
}
.pay-summary span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.pay-label { font-weight: 800; margin: 18px 0 8px; }
.methods { display: grid; grid-template-columns: 1fr; gap: 8px; }
.method {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 72px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}
.method.is-on {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px var(--purple);
  background: #f7f2ff;
}
.method-marks { display: flex; gap: 4px; }
.pay-mark {
  height: 22px;
  min-width: 36px;
  padding: 0 6px;
  border: 1px solid #e6e6ee;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1f71;
}
.pay-mark.mc {
  min-width: 34px;
  background:
    radial-gradient(circle at 38% 50%, #eb001b 0 7px, transparent 7.5px),
    radial-gradient(circle at 62% 50%, #f79e1b 0 7px, transparent 7.5px);
}
.method-note { color: var(--muted); font-weight: 600; }
.accepted { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.accepted-row { display: flex; justify-content: center; gap: 8px; }
.ltr { direction: ltr; text-align: left; }
.code-input {
  font-size: 28px;
  letter-spacing: 0.28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { color: #b91c1c; font-weight: 700; }
.checkout { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.checkout-lang { color: #6d7280; font-size: 14px; font-weight: 700; background: none; border: 0; cursor: pointer; font-family: inherit; }
.checkout-main { width: min(440px, calc(100% - 36px)); margin: 8px auto 24px; }
.checkout-main input, .checkout-main select { width: 100%; }
.checkout-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.checkout-nav a { width: 36px; height: 36px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.checkout-main h1 { margin: 8px 0 8px; font-size: 34px; text-align: center; }
.checkout-main .lede { text-align: center; color: #3c4150; margin: 0 0 22px; }
.checkout-field { display: block; margin: 0 0 12px; }
.checkout-field span { display: block; font-size: 13px; font-weight: 700; margin: 0 4px 6px; }
.checkout-field input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #e4e4ec;
  padding: 0 16px;
  background: #fff;
}
.checkout-go, .auth-primary {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
}
.checkout-go, .auth-primary { background: #1c1430; color: #fff; }
.checkout-go:disabled { background: #ececf2; color: #b0b4be; }
.auth-terms { color: #6d7280; font-size: 13px; text-align: center; margin: 28px 0 0; line-height: 1.7; }
.auth-terms a { color: #2f6bff; font-weight: 700; }
.checkout-nav button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; }
.checkout-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.checkout-timer { font-variant-numeric: tabular-nums; }
.checkout-foot span { color: var(--muted); font-weight: 700; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.benefit {
  background: #f7f2ff;
  border-radius: 16px;
  padding: 16px;
}
.benefit b { color: var(--purple); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail, .footer-grid, .benefits { grid-template-columns: 1fr; }
  .slide, .slide img { height: 260px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .arrow.prev { inset-inline-start: 8px; }
  .arrow.next { inset-inline-end: 8px; }
  .book { position: static; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo tools" "search search";
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    min-height: 0;
    padding: 12px 0 8px;
  }
  .logo { grid-area: logo; font-size: 16px; gap: 6px; }
  .logo-mark { width: 26px; height: 26px; }
  .tools {
    grid-area: tools;
    justify-content: flex-end;
    min-width: 0;
  }
  .lang { display: inline-flex; }
  .tool { padding: 6px; font-size: 14px; }
  .search {
    grid-area: search;
    order: 0;
    width: 100%;
    flex: none;
    height: 42px;
  }
  .nav-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .nav-row::-webkit-scrollbar { display: none; }
  .menu { flex: 0 0 auto; }
  .nav-link { font-size: 14px; padding: 6px 8px; }
  .plus { font-size: 14px; padding: 7px 12px; }
  .grid, .benefits { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .slide, .slide img { height: 230px; }
  .slide-copy { padding: 48px 18px 16px; }
  .slide-copy h2 { font-size: 22px; }
  .arrow { width: 34px; height: 34px; }
}

body.admin-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(160, 213, 244, 0.25), transparent), linear-gradient(165deg, #0f2744 0%, #0a1628 45%, #0b0f14 100%);
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}
.admin-login-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-login-card .logo { justify-content: center; }
.admin-login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0f2744;
}
.admin-login-sub { margin: 0; text-align: center; color: #64748b; font-size: 14px; }
.admin-login-card label { margin: 0; color: #334155; }
.admin-login-card label span { font-size: 13px; }
.admin-login-card input {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}
.admin-login-card input:focus { outline: none; border-color: #5191ce; box-shadow: 0 0 0 3px rgba(81, 145, 206, 0.2); }
.admin-btn-primary {
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #5191ce, #1a365d);
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(81, 145, 206, 0.35);
}
.admin-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 14px;
}
.admin-back { text-align: center; color: #64748b; font-size: 14px; }

body.admin-dash-body {
  margin: 0;
  min-height: 100vh;
  background: #0b0f14;
  color: #f1f5f9;
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}
.ad-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(20, 27, 38, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}
.ad-brand { display: flex; align-items: center; gap: 14px; }
.ad-brand .logo { color: #a0d5f4; font-size: 16px; }
.ad-brand h1 { margin: 0; font-size: 17px; font-weight: 800; }
.ad-brand p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; }
.ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-live, .ad-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ad-live { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }
.ad-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.ad-count { background: rgba(81, 145, 206, 0.15); color: #a0d5f4; border: 1px solid rgba(81, 145, 206, 0.3); }
.ad-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #f1f5f9;
}
.ad-btn:hover { background: rgba(255, 255, 255, 0.05); }
.ad-btn-danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.25); }
.ad-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ad-stat {
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
}
.ad-stat span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #94a3b8; }
.ad-stat strong { font-size: 22px; font-weight: 800; color: #f1f5f9; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141b26;
  color: #94a3b8;
  cursor: pointer;
}
.ad-tab.is-on {
  color: #a0d5f4;
  border-color: rgba(81, 145, 206, 0.45);
  background: rgba(81, 145, 206, 0.12);
}
.ad-panel {
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 18px 20px 20px;
}
.ad-panel-title { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.ad-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th, .ad-table td {
  padding: 10px 12px;
  text-align: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.ad-table td.wrap { white-space: normal; min-width: 200px; max-width: 320px; }
.ad-table th { color: #94a3b8; font-weight: 700; font-size: 12px; background: rgba(0, 0, 0, 0.2); }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table-empty { text-align: center !important; color: #94a3b8; padding: 28px !important; }
.ad-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f14;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13px;
}
.ad-search::placeholder { color: #64748b; }
.ad-search:focus { outline: none; border-color: rgba(81, 145, 206, 0.5); }
.ad-layout,
.ad-layout-visitors {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 20px;
  align-items: start;
}
.ad-facts-wide { grid-template-columns: repeat(4, 1fr); }
.ad-side-label {
  margin: 0 0 10px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.ad-side-list { display: flex; flex-direction: column; gap: 8px; }
.ad-visitor {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #141b26;
  color: inherit;
  font-family: inherit;
}
.ad-visitor.is-active {
  border-color: rgba(81, 145, 206, 0.55);
  background: linear-gradient(135deg, rgba(81, 145, 206, 0.12), rgba(26, 54, 93, 0.35));
}
.ad-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex: 0 0 auto;
}
.ad-visitor-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ad-visitor-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-visitor-title strong { font-size: 15px; }
.ad-visitor-phone { color: #a0d5f4; font-size: 13px; }
.ad-geo { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ad-flag { font-size: 16px; line-height: 1; }
.ad-main { display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.ad-now {
  background: linear-gradient(135deg, rgba(81, 145, 206, 0.18), #141b26);
  border: 1px solid rgba(81, 145, 206, 0.35);
  border-radius: 20px;
  padding: 22px 24px;
}
.ad-now-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: #94a3b8; }
.ad-now h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 800; }
.ad-now-detail { margin: 0; color: #a0d5f4; font-size: 17px; }
.ad-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ad-facts > div {
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
}
.ad-facts span { display: block; margin-bottom: 4px; color: #94a3b8; font-size: 12px; }
.ad-facts strong { font-size: 15px; font-weight: 700; }
.ad-facts .ad-geo { color: inherit; font-size: 15px; }
.ad-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.ad-empty {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  color: #94a3b8;
  background: #141b26;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}
.ad-pay {
  background: #141b26;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  padding: 18px 20px;
}
.ad-pay h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #fcd34d; }
.ad-pay-empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.12); }
.ad-pay-empty p { margin: 0; text-align: center; color: #94a3b8; font-size: 14px; }
.ad-pay-grid { margin: 0; }
.ad-pay-val { color: #fde68a; letter-spacing: 0.04em; }
.ad-code {
  background: #141b26;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 18px;
  padding: 18px 20px;
}
.ad-code h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #93c5fd; }
.ad-code-empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.12); }
.ad-code-empty p { margin: 0; text-align: center; color: #94a3b8; font-size: 14px; }
.ad-code-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #bfdbfe;
  text-align: center;
  padding: 8px 0;
}
@media (max-width: 900px) {
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-layout, .ad-layout-visitors, .ad-facts, .ad-facts-wide { grid-template-columns: 1fr; }
}
