:root {
  --bg0: #071018;
  --bg1: #0b1220;
  --bg2: #121a2b;
  --line: rgba(34, 211, 238, 0.18);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --text: #e8eef7;
  --muted: #8b9bb4;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --ok: #34d399;
  --warn-bg: rgba(251, 191, 36, 0.14);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #05080f 100%);
  background-attachment: fixed;
}

a { color: var(--cyan); text-decoration: none; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.4; }
.hidden { display: none !important; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 16, 24, 0.72);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.top nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #04202a; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 8px 14px;
}
.btn-green { background: #10b981; color: #042016; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

#app { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; }

.hero {
  min-height: calc(100vh - 140px);
  display: grid;
  align-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.35), transparent 55%),
    conic-gradient(from 120deg, transparent, rgba(34, 211, 238, 0.2), transparent 40%);
  filter: blur(2px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  position: relative;
}
.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  position: relative;
}
.hero p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  position: relative;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; position: relative; }

.section { margin-top: 48px; }
.section h2 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 8px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  .top { padding: 14px 16px; }
  .top nav a:not(.btn) { display: none; }
}

.panel {
  background: linear-gradient(160deg, rgba(18, 26, 43, 0.9), rgba(11, 18, 32, 0.85));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.panel h3 { margin: 0 0 8px; font-size: 18px; }
.panel p { margin: 0; color: var(--muted); line-height: 1.5; }

.form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}
.toolbar label { min-width: 160px; flex: 1; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(11, 18, 32, 0.7);
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.25);
}
tr.needs-attention { background: rgba(251, 191, 36, 0.16); }
tr.needs-attention td:first-child { box-shadow: inset 3px 0 0 #fbbf24; }

.trial-banner {
  background: linear-gradient(90deg, #0e3a44, #12304a);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.trial-banner button {
  border: 0;
  background: var(--cyan);
  color: #04202a;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal-card {
  width: min(440px, 100%);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.price-card {
  margin: 18px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--cyan-dim);
  border: 1px solid var(--line);
}
.price-label { color: var(--muted); font-size: 13px; }
.price-value { font-family: var(--display); font-size: 36px; font-weight: 800; margin: 4px 0; }
.price-note { color: var(--muted); font-size: 12px; }

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}
.error { color: var(--danger); font-size: 13px; }
.hours-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  cursor: help;
}
html[dir="rtl"] .top nav { flex-direction: row-reverse; }
html[dir="rtl"] .hero-cta { flex-direction: row-reverse; }
