:root {
  --ink: #16222e; --mut: #5b6b7a; --line: #e3e9ef; --bg: #f6f8fa;
  --brand: #0b5cad; --brand-dk: #094a8c; --accent: #e8f1fa; --ok: #1a7f4e;
}
* { box-sizing: border-box; margin: 0; }
body { font: 16px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.top { border-bottom: 1px solid var(--line); padding: 14px 0; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.account { font-size: 14px; color: var(--mut); }
.account b { color: var(--ink); }

.hero { background: linear-gradient(180deg, var(--accent), #fff); padding: 56px 0 40px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.02em; line-height: 1.15; }
.hero .sub { color: var(--mut); max-width: 640px; margin: 14px 0 26px; }

.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar input[type=text] { flex: 1 1 280px; }
input, select, button, .btn {
  font: inherit; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line);
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: transparent; }
button, .btn { background: var(--brand); border-color: var(--brand); color: #fff;
  cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; text-align: center; }
button:hover, .btn:hover { background: var(--brand-dk); }
button.ghost, .btn.ghost { background: #fff; color: var(--brand); }
button.ghost:hover, .btn.ghost:hover { background: var(--accent); }
button:disabled { opacity: .55; cursor: wait; }
.error { color: #b3261e; margin-top: 10px; min-height: 1.4em; }

#results { padding: 34px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 26px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); }
.card .n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.card .l { font-size: 13px; color: var(--mut); }

.tablehead { margin-bottom: 10px; }
.tablehead h2 { font-size: 20px; }
.actions { display: flex; gap: 8px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 900px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); }
tr:last-child td { border-bottom: 0; }
td.locked { color: transparent; text-shadow: 0 0 7px rgba(22,34,46,.55); user-select: none; }
td.avail { color: var(--ok); font-weight: 600; }
td.na { color: #b9c3cc; }
.tablefoot { color: var(--mut); font-size: 14px; margin: 10px 2px 0; }

.pricing { padding: 48px 0 30px; }
.pricing h2 { text-align: center; margin-bottom: 26px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.tier.featured { border-color: var(--brand); box-shadow: 0 6px 24px rgba(11,92,173,.12); }
.tier h3 { font-size: 16px; }
.tier .price { font-size: 32px; font-weight: 800; margin: 6px 0 12px; }
.tier .price span { font-size: 15px; font-weight: 500; color: var(--mut); }
.tier ul { margin: 0 0 18px 18px; color: var(--mut); font-size: 14.5px; }
.tier ul li { margin: 5px 0; }
.tier .btn, .tier button { width: 100%; }

.foot { padding: 26px 20px 40px; color: var(--mut); font-size: 14px;
  border-top: 1px solid var(--line); margin-top: 30px; }

.modal { position: fixed; inset: 0; background: rgba(10,18,26,.55);
  display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal[hidden] { display: none; }
.box { background: #fff; border-radius: 14px; padding: 28px; width: min(440px, 92vw); position: relative; }
.box .x { position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--mut); font-size: 22px; padding: 4px 8px; }
.box .x:hover { background: none; color: var(--ink); }
.box h3 { margin-bottom: 8px; }
.box p { color: var(--mut); font-size: 15px; margin-bottom: 14px; }
.box form { display: flex; gap: 8px; flex-wrap: wrap; }
.box input { flex: 1 1 200px; }
.fine { font-size: 13px; margin-top: 12px; }
.paychoices { display: grid; gap: 10px; margin: 16px 0 4px; }
