@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #071c2f;
  --bg-2: #0a2b45;
  --blue: #38bdf8;
  --blue-2: #0ea5e9;
  --blue-3: #075985;
  --panel: rgba(8, 28, 45, .76);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(148, 213, 255, .18);
  --line-strong: rgba(56, 189, 248, .45);
  --text: #eef8ff;
  --muted: #8fb5cc;
  --ok: #67e8f9;
  --warn: #fde68a;
  --shadow: 0 22px 70px rgba(0, 10, 22, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .22), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(14, 165, 233, .16), transparent 23%),
    linear-gradient(135deg, #061725 0%, #08243a 52%, #0b3554 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 70%);
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1024px, calc(100% - 28px)); margin: 0 auto; position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(4, 18, 30, .78);
  backdrop-filter: blur(20px);
}
.nav-inner { height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.04em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  color: #eaf8ff; font-size: 11px; font-weight: 900;
  background: linear-gradient(145deg, #38bdf8, #075985);
  box-shadow: 0 12px 28px rgba(56, 189, 248, .2);
}
.nav-links { display: flex; align-items: center; gap: 8px; color: #b9d7e8; font-size: 13px; }
.nav-links a { border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 7px 14px; background: rgba(255,255,255,.025); }
.pill {
  min-height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: 0 15px; border: 1px solid transparent;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8); color: #02111d; font-size: 12px; font-weight: 900;
}

.hero { min-height: calc(100vh - 55px); display: grid; align-items: center; padding: 34px 0 42px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 520px 466px; gap: 38px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  background: rgba(56, 189, 248, .1); color: #dff7ff; border-radius: 999px;
  padding: 7px 14px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: none;
}
.title {
  margin: 24px 0 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -.07em;
  font-weight: 900;
}
.accent { color: var(--blue); }
.lead { max-width: 430px; color: #bdd4e5; font-size: 16px; line-height: 1.55; margin: 20px 0 0; }
.lead strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.btn {
  min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; padding: 0 26px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 900;
}
.btn-primary { color: #02111d; background: linear-gradient(135deg, #7dd3fc, #38bdf8); box-shadow: 0 14px 36px rgba(56,189,248,.22); }
.btn-dark { color: var(--text); background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.11); }

.hud-shell, .price-card, .signup-card, .feature, .glass {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hud-shell { padding: 0; border-radius: 17px; background: rgba(11, 14, 30, .9); }
.hud { border-radius: 16px; padding: 18px; background: rgba(11, 14, 30, .9); min-height: 365px; }
.url-card { display:flex; align-items:center; justify-content:space-between; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; padding: 2px 0 18px; margin: 0 0 14px; }
.url-card small { display: block; color: #dbeafe; margin: 0; font-size: 12px; }
.url-card b { color: var(--blue); font-size: inherit; }
.live-stack { display: grid; gap: 8px; }
.live-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); }
.live-row b { display: block; font-size: 13px; }
.live-row span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.status-ok { color: var(--ok); font-weight: 900; font-size: 12px; }
.status-log { color: #fb7185; font-weight: 900; font-size: 12px; }
.ticker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.mini-card { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); border-radius: 9px; padding: 13px; }
.mini-card b { display: block; font-size: 20px; letter-spacing: -.04em; }
.mini-card span { color: var(--muted); font-size: 10px; }
.link-preview { margin-top: 32px; width: 396px; }
.link-preview small { display:block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 9px; }
.browser-line { height: 44px; display:flex; align-items:center; gap:7px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 8px; padding: 0 14px; color:#9fb4c7; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.browser-line i { width:9px; height:9px; border-radius: 50%; display:block; }
.browser-line i:nth-child(1){ background:#fb7185; }
.browser-line i:nth-child(2){ background:#fbbf24; }
.browser-line i:nth-child(3){ background:#38bdf8; }
.browser-line b { color: var(--blue); }

.section { padding: 18px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.06em; font-weight: 800; }
.section-head p { max-width: 410px; color: var(--muted); line-height: 1.45; margin: 0; font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.feature { padding: 15px; min-height: 142px; }
.icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #eaf8ff; background: linear-gradient(145deg, #38bdf8, #075985); font-size: 11px; font-weight: 900; margin-bottom: 11px; }
.tag { color: #7dd3fc; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; }
.feature h3, .glass h3 { margin: 6px 0 6px; font-size: 16px; letter-spacing: -.035em; }
.feature p, .glass p { margin: 0; color: var(--muted); line-height: 1.4; font-size: 12px; }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.glass { padding: 15px; min-height: 132px; }
.num { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: #02111d; background: #7dd3fc; font-weight: 900; margin-bottom: 11px; }

.price-layout { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.price-card, .signup-card { padding: 18px; }
.price-line { display: flex; align-items: end; gap: 4px; margin: 8px 0; }
.price-line .currency { color: #7dd3fc; font-size: 22px; font-weight: 900; }
.price-line .value { font-size: 54px; line-height: .86; font-weight: 900; letter-spacing: -.07em; }
.price-line .period { font-size: 18px; font-weight: 900; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.checks { display: grid; gap: 7px; margin-top: 12px; color: #e5f7ff; font-size: 13px; }
.checks span::before { content: "• "; color: #7dd3fc; font-weight: 900; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.field label { display: block; font-size: 10px; font-weight: 800; color: #cceeff; margin: 0 0 5px 2px; }
.input {
  min-height: 42px; display: flex; align-items: center; border-radius: 13px;
  border: 1px solid rgba(191, 230, 255, .14); background: rgba(255,255,255,.055); padding: 0 12px;
}
.input:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(56,189,248,.09); }
input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
input::placeholder { color: rgba(143,181,204,.64); }
.full { grid-column: 1 / -1; }
.terms { display: flex; align-items: flex-start; gap: 8px; margin: 11px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.terms input { width: 15px; height: 15px; accent-color: var(--blue); flex: 0 0 auto; }
.message { border-radius: 14px; padding: 10px 12px; font-size: 12px; line-height: 1.4; margin: 0 0 12px; }
.message.error { color: #ffdbe0; border: 1px solid rgba(255,94,114,.32); background: rgba(255,94,114,.1); }
.message.success { color: #dff7ff; border: 1px solid rgba(56,189,248,.35); background: rgba(56,189,248,.1); }
.footer { color: var(--muted); text-align: center; padding: 26px 0 36px; font-size: 12px; }

.compact-title { margin: 10px 0 14px; font-size: 23px; line-height: 1.1; letter-spacing: -.055em; }
.minimal-card { display: grid; gap: 8px; margin-top: 14px; }

@media (max-width: 920px) {
  .hero-grid, .price-layout { grid-template-columns: 1fr; }
  .feature-grid, .workflow, .ticker { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 20px, 1080px); }
  .nav-inner { height: 54px; }
  .hero { padding: 28px 0 38px; }
  .feature-grid, .workflow, .ticker, .form-grid { grid-template-columns: 1fr; }
  .section-head { display: grid; }
  .title { font-size: 32px; }
}

.nav-actions { display: flex; align-items: center; gap: 9px; }
.btn.compact { min-height: 34px; padding: 0 14px; font-size: 12px; }
.plan-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 189, 248, .32);
  border-radius: 999px;
  padding: 0 18px;
  color: #60a5fa;
  background: rgba(37, 99, 235, .16);
  font-weight: 900;
}
.create-square {
  width: 46px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #00d05f;
  color: #02111d;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 208, 95, .24);
}
.auth-layout { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.auth-card { width: min(430px, 100%); }
.form-grid.single { grid-template-columns: 1fr; }
.muted-link { color: var(--muted); font-size: 12px; text-align: center; margin: 13px 0 0; }
.muted-link a { color: var(--blue); font-weight: 900; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 466px; gap: 18px; align-items: start; }
.dashboard-url small { overflow-wrap: anywhere; }
.admin-dashboard { display: grid; gap: 10px; }
.compact-dashboard { width: min(1180px, calc(100vw - 14px)); }
.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.dashboard-head h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.06em;
}
.old-actions, .old-toolbar, .buttons-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.overview-line {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  padding: 2px 0 0;
}
.module-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: thin;
}
.module-strip button {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 213, 255, .18);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #dff7ff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.module-strip button:hover {
  border-color: var(--line-strong);
  color: #02111d;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}
.metric-grid-large {
  grid-template-columns: repeat(3, 1fr);
}
.metric-card {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 213, 255, .14);
  border-radius: 14px;
  background: rgba(13, 14, 30, .84);
  box-shadow: inset 0 -4px 0 var(--metric), var(--shadow);
}
.metric-card i {
  font-style: normal;
  font-size: 26px;
  line-height: 1;
}
.metric-card b {
  color: var(--metric);
  font-size: clamp(34px, 5vw, 50px);
  line-height: .95;
  letter-spacing: -.05em;
}
.metric-card span {
  color: #8f8ca8;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.metric-card.green { --metric: #22c55e; }
.metric-card.red { --metric: #fb7185; }
.metric-card.blue { --metric: #60a5fa; }
.metric-card.purple { --metric: #c084fc; }
.metric-card.yellow { --metric: #fbbf24; }
.metric-card.cyan { --metric: #22d3ee; }
.admin-panel {
  border: 1px solid var(--line);
  background: rgba(8, 28, 45, .76);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
}
.old-toolbar {
  justify-content: space-between;
  margin-bottom: 8px;
  color: #eaf8ff;
}
.table-shell {
  overflow: auto;
  border: 1px solid rgba(148, 213, 255, .16);
  border-radius: 10px;
  background: rgba(6, 18, 32, .55);
}
.smart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}
.smart-table th,
.smart-table td {
  border-bottom: 1px solid rgba(148, 213, 255, .12);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
.smart-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #081c2f;
  color: #7dd3fc;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.smart-table td {
  color: #d8eefc;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smart-table tr:hover td { background: rgba(56, 189, 248, .06); }
.smart-table a { color: #7dd3fc; font-weight: 800; }
.empty-row { text-align: center !important; color: var(--muted) !important; padding: 22px !important; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 999px;
  padding: 0 9px;
  color: #67e8f9;
  background: rgba(103, 232, 249, .08);
  font-size: 11px;
  font-weight: 900;
}
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: 7px;
  padding: 0 10px;
}
.flow-panel { display: grid; gap: 12px; }
.flow-panel h2 {
  margin: 8px 0;
  font-size: 24px;
  letter-spacing: -.04em;
}
.flow-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.flow-form .btn { margin-top: 13px; width: 100%; }
.chart-panel { padding: 14px; }
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}
.chart-head strong {
  color: #b7b4d9;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbeafe;
  font-weight: 900;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.dot.real { background: #22c55e; }
.dot.bots { background: #fb7185; }
#dailyChart {
  width: 100%;
  height: 180px;
  display: block;
}
.config-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.config-modal.show { display: flex; }
.config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 22, .72);
  backdrop-filter: blur(10px);
}
.config-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.module-dialog { width: min(760px, calc(100vw - 24px)); }
.module-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.module-internal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.module-internal-grid button {
  min-height: 42px;
  border: 1px solid rgba(148, 213, 255, .16);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  color: #eaf8ff;
  font-weight: 900;
  cursor: pointer;
}
.module-internal-grid button:hover {
  border-color: var(--line-strong);
  color: var(--blue);
}
.code-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid rgba(148, 213, 255, .16);
  border-radius: 10px;
  background: rgba(2, 10, 18, .62);
  color: #dff7ff;
  padding: 12px;
  font-size: 12px;
}
.modal-titlebar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.modal-titlebar h2 { margin: 6px 0 0; }
.icon-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: #eaf8ff;
  cursor: pointer;
  font-weight: 900;
}
.icon-close:hover { border-color: var(--line-strong); color: var(--blue); }

@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid-large { grid-template-columns: repeat(2, 1fr); }
  .dashboard-head { display: grid; }
}

@media (max-width: 620px) {
  .nav-actions { gap: 6px; }
  .btn.compact, .nav-actions .pill { padding: 0 10px; font-size: 11px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid-large { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 112px; }
  .metric-card span { font-size: 12px; }
  .chart-head { display: grid; }
  .module-internal-grid { grid-template-columns: 1fr; }
}
