@font-face {
  font-family: Alexandria;
  src: url('../../visits-live/assets/alexandria-arabic.woff2') format('woff2');
  font-display: swap;
}

:root {
  --navy: #111827;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --gray: #d1d5db;
  --muted: #64748b;
  --surface: #ffffff;
  --background: #f4f7f9;
  --border: #e5e7eb;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.09), transparent 24rem),
    var(--background);
  color: var(--navy);
  font-family: Alexandria, Tahoma, sans-serif;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }

.status-pill, .hint, .live-dot {
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--teal-dark);
  padding: 8px 12px;
  font-size: 11px;
}
.status-pill i, .live-dot::before {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; margin-left: 6px;
}

.shell { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; }

.hero-panel {
  min-height: 290px;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  background: linear-gradient(135deg, #111827 0%, #102e36 60%, #0f766e 130%);
  color: white;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-panel::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.hero-panel > * { position: relative; z-index: 1; }
.eyebrow { color: #5eead4; font-size: 12px; letter-spacing: .04em; }
.hero-panel h1 { font-size: clamp(30px, 4vw, 54px); line-height: 1.25; max-width: 780px; margin: 14px 0; }
.hero-panel p { max-width: 760px; color: #d1fae5; line-height: 1.9; font-size: 15px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.primary, .secondary, .text-button, .icon-button {
  border: 0; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center;
}
.primary { background: var(--teal); color: #062d2a; padding: 13px 20px; border-radius: 13px; font-weight: 700; }
.primary:hover { background: #2dd4bf; }
.secondary { background: white; color: var(--navy); padding: 13px 20px; border-radius: 13px; font-weight: 700; border: 1px solid var(--border); }
.hero-actions .secondary { background: rgba(255,255,255,.1); color: white; border-color: rgba(255,255,255,.18); }

.hero-orbit { min-height: 220px; position: relative; display: grid; place-items: center; }
.bot-mark { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(145deg, #2dd4bf, #0f766e); font-size: 44px; font-weight: 800; box-shadow: 0 20px 50px rgba(20,184,166,.35); }
.orbit { position: absolute; border: 1px solid rgba(94,234,212,.25); border-radius: 50%; }
.orbit-one { width: 180px; height: 180px; }
.orbit-two { width: 260px; height: 260px; }
.mini-card { position: absolute; min-width: 120px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); background: rgba(17,24,39,.8); border-radius: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 11px; display: grid; gap: 3px; }
.mini-card b { color: #5eead4; }
.card-products { top: 18px; left: 2px; }
.card-answer { bottom: 12px; right: 0; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metrics article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.metrics span { color: var(--muted); font-size: 11px; }
.metrics strong { font-size: 26px; }
.metrics .metric-text { font-size: 13px; line-height: 1.5; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: 0 15px 45px rgba(15,23,42,.045); }
.panel-heading, .section-divider { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-heading > div, .section-divider > div { display: flex; align-items: center; gap: 10px; }
.panel h2 { font-size: 17px; margin: 0; }
.step { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #ccfbf1; font-size: 10px; font-weight: 700; }

form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; }
label > span { font-size: 12px; font-weight: 700; }
label small { color: var(--muted); line-height: 1.7; font-size: 10px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea, select { width: 100%; color: var(--navy); background: #fbfdfe; border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; outline: 0; transition: .2s ease; }
textarea { resize: vertical; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.1); background: white; }

.section-divider { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.text-button { color: var(--teal-dark); background: transparent; font-size: 11px; font-weight: 700; }
.faq-list { display: grid; gap: 10px; }
.faq-row { display: grid; grid-template-columns: 1fr 1.5fr 36px; gap: 9px; align-items: center; }
.icon-button { width: 34px; height: 34px; border-radius: 10px; background: #fff1f2; color: #be123c; font-size: 19px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-message { margin: 0; min-height: 20px; color: var(--teal-dark); font-size: 11px; }
.form-message[data-type="error"] { color: #be123c; }
.form-message[data-type="pending"] { color: var(--muted); }

.preview-panel { position: sticky; top: 94px; }
.preview-panel iframe { width: 100%; height: 590px; border: 1px solid var(--border); border-radius: 20px; background: #f8fafc; }
.guardrails { margin-top: 18px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--border); }
.guardrails h3 { font-size: 12px; margin: 0 0 10px; }
.guardrails ul { margin: 0; padding-right: 18px; color: var(--muted); font-size: 10px; line-height: 2; }

@media (max-width: 980px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
  .workspace-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { padding: 0 16px; }
  .status-pill { display: none; }
  .shell { padding: 16px 12px 40px; }
  .hero-panel { padding: 28px 20px; border-radius: 22px; }
  .hero-panel h1 { font-size: 31px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metrics article { padding: 14px; }
  .panel { padding: 17px; border-radius: 20px; }
  .two-columns, .faq-row { grid-template-columns: 1fr; }
  .faq-row { position: relative; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
  .faq-row .icon-button { position: absolute; left: 7px; top: 7px; }
}

