@import url('https://googleapis.com');

:root {
  --bg: #06080d;
  --surface: rgba(15, 20, 30, 0.78);
  --surface-solid: #0e131d;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(56, 189, 248, 0.4);
  --accent: #38bdf8;
  --spark: #ff5a1f;
  --text: #f8fafc;
  --muted: #8b9bb4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

body {
  background: radial-gradient(circle at 15% 0%, #111c33 0%, #06080d 55%);
  color: var(--text);
  padding: 0 16px 120px;
  min-height: 100vh;
}

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; margin: 0 -16px 20px;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo { font-size: 19px; font-weight: 800; letter-spacing: -0.6px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
}
.logo span { color: var(--accent); font-weight: 700; }

.btn-top {
  background: rgba(255, 255, 255, 0.05); color: #fff;
  font-size: 12px; font-weight: 700; padding: 8px 14px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.btn-top:active { transform: scale(0.97); }

.btn-back {
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
  font-size: 12px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--border);
}

.hero { margin-bottom: 18px; }
.badge-ind {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 8px;
}
h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.15; margin-bottom: 6px; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.45; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(15, 20, 30, 0.9); padding: 4px;
  border-radius: 11px; border: 1px solid var(--border); margin-bottom: 16px;
}
.tabs button {
  padding: 11px; border: none; border-radius: 8px;
  font-weight: 700; font-size: 12px; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: 0.2s;
}
.tabs button.active {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.box {
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

label { font-size: 11px; font-weight: 600; color: var(--muted); display: block; margin-top: 12px; letter-spacing: 0.2px; }
label:first-child { margin-top: 0; }

textarea, input[type=number], input[type=text], select {
  width: 100%; background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; border-radius: 9px; padding: 11px 12px;
  font-size: 13px; margin-top: 5px; transition: 0.2s;
}
input[type=number] { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 700; font-size: 14px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }

.cad-preview {
  margin-top: 12px; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 8, 13, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex; align-items: center; justify-content: space-between;
}
.cad-info { font-size: 11px; color: var(--muted); }
.cad-info b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #fff; margin-top: 2px; }

.btn-ai {
  width: 100%; margin-top: 12px; padding: 11px;
  background: rgba(56, 189, 248, 0.1); color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 9px;
  font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-green {
  width: 100%; margin-top: 14px; padding: 13px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff; border: none; border-radius: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.ai-res {
  background: rgba(14, 165, 233, 0.08); border-left: 3px solid var(--accent);
  color: #e0f2fe; padding: 11px 12px; border-radius: 6px;
  font-size: 12px; margin-top: 10px; line-height: 1.5;
}

.dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.loc { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.loc input { width: 60%; }
.loc label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #cbd5e1; margin: 0; }

.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 12px; }
h2 { font-size: 13px; font-weight: 700; color: #cbd5e1; letter-spacing: 0.3px; }
.count-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); background: rgba(56, 189, 248, 0.1); padding: 3px 8px; border-radius: 6px; }

.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 13px; padding: 16px; margin-bottom: 12px;
  transition: 0.2s; position: relative;
}
.card.sel { border-color: var(--accent); background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), #0e131d); }
.card.unclaimed { border-style: dashed; border-color: rgba(255, 255, 255, 0.15); }

.ctop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cname { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.ver { color: #34d399; font-size: 11px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.claim-hint { color: #fbbf24; font-size: 11px; font-weight: 600; margin-top: 4px; }
.city { color: var(--muted); font-size: 12px; margin-top: 4px; }

.st-free { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.st-busy { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.st-claim { background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--border); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

.specs { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 10px; font-size: 12px; color: #cbd5e1; }
.mrow { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.mrow span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 600; font-size: 11px; }

.bar {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 25;
  background: rgba(14, 19, 29, 0.94); backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi); border-radius: 12px;
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}
.btn-send { background: var(--spark); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 12px; box-shadow: 0 4px 14px rgba(255, 90, 31, 0.4); }

.modal { position: fixed; inset: 0; background: rgba(6, 8, 13, 0.96); backdrop-filter: blur(16px); z-index: 50; padding: 16px; overflow-y: auto; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; margin: 3px 2px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.pill.on { background: rgba(56, 189, 248, 0.16); border-color: var(--accent); color: #fff; }
.plan { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.plan.hot { border-color: var(--accent); background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), var(--surface-solid)); }
.phead { display: flex; justify-content: space-between; margin-bottom: 4px; }
.price { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent); }
.live-ticker {
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.14), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff5a1f;
  box-shadow: 0 0 10px #ff5a1f; flex-shrink: 0;
}
.tabs-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px;
  background: rgba(15, 20, 30, 0.9); padding: 4px;
  border-radius: 11px; border: 1px solid var(--border); margin-bottom: 16px;
}
.tabs-3 button {
  padding: 10px 6px; border: none; border-radius: 8px;
  font-weight: 700; font-size: 11px; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.tabs-3 button.active {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
}
.calc-box {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.08), rgba(15, 20, 30, 0.95));
  border: 1px solid rgba(255, 90, 31, 0.3);
  border-radius: 14px; padding: 16px; margin-bottom: 18px;
}
.calc-val {
  font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800;
  color: #ff5a1f; margin: 6px 0;
}
.sms-mock {
  background: #020617; border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px; padding: 11px; margin-top: 10px; font-size: 11px; color: #cbd5e1;
}
