
:root {
  --bg: #09090b;
  --card: rgba(24, 24, 27, 0.6);
  --card-hover: rgba(39, 39, 42, 0.85);
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255,255,255,0.2);
  --focus: rgba(255, 255, 255, 0.2);
  --glow: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Ambient background ── */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(255,255,255,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 80%, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ── Particle canvas ── */
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

a { color: inherit; text-decoration: none; transition: 0.3s ease; }
a:hover { color: var(--muted); }

.container { max-width: 1000px; margin: 0 auto; padding: 24px; position: relative; z-index: 1; }

/* ── Header ── */
.header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeDown 0.6s ease-out;
}

.brand {
  font-weight: 900; font-size: 28px; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.25));
}

.nav { display: flex; gap: 12px; align-items: center; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Hero ── */
.hero {
  text-align: center; padding: 70px 20px 60px;
  animation: fadeUp 0.8s ease-out forwards;
}

h1 { font-size: 52px; font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, #777 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }

.row { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.row-left { justify-content: flex-start; }

/* ── Grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ── Animations ── */
.animate-delay-1 { opacity: 0; animation: fadeUp 0.7s ease-out 0.1s forwards; }
.animate-delay-2 { opacity: 0; animation: fadeUp 0.7s ease-out 0.2s forwards; }
.animate-delay-3 { opacity: 0; animation: fadeUp 0.7s ease-out 0.35s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  50%       { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Plan cards ── */
.plan-title { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }
.plan-price { font-size: 46px; font-weight: 900; margin: 12px 0 4px; letter-spacing: -2px; }
.plan-price sup { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.spacer { height: 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: #fff; color: #000;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: translateX(-100%); transition: none;
}
.btn:hover { background: #f0f0f0; transform: scale(1.02); box-shadow: 0 0 40px rgba(255,255,255,0.25); color: #000; }
.btn:hover::after { animation: shimmer 0.6s ease; }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; transform: scale(1.02); box-shadow: 0 0 20px rgba(255,255,255,0.05); }
.btn-ghost::after { display: none; }

.btn-block { width: 100%; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
label span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
input, select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4); color: var(--text); font-size: 15px;
  transition: all 0.3s ease; outline: none;
}
input:focus, select:focus { border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }

.alert { padding: 14px 16px; border-radius: 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ── Key/value ── */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; margin-top: 16px; align-items: center; }
.k { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.v code { background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; border: 1px solid var(--border); }

/* ── Footer ── */
.footer { margin-top: 80px; padding: 32px 0; border-top: 1px solid var(--border); text-align: center; font-size: 14px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 32px; padding-bottom: 0; }
.tab-btn {
  background: transparent; border: none; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 12px 20px; cursor: pointer; transition: all 0.25s;
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
  font-family: inherit;
}
.tab-btn.active { color: var(--text); border-bottom-color: #fff; background: rgba(255,255,255,0.04); }
.tab-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.04); }
.tab-content { display: none; animation: fadeUp 0.35s ease-out; }
.tab-content.active { display: block; }

/* ── Sub cards ── */
.sub-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 16px;
  transition: all 0.3s ease;
}
.sub-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.sub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.sub-name { font-size: 17px; font-weight: 700; }
.sub-badge {
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.25);
}
.sub-url-box {
  display: flex; gap: 8px; background: rgba(0,0,0,0.4); padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); align-items: center; margin-bottom: 14px;
}
.sub-url-box input {
  background: transparent; border: none; padding: 0; color: var(--muted);
  flex-grow: 1; font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.sub-url-box input:focus { box-shadow: none; }
.sub-actions { display: flex; gap: 10px; }

/* ── Plan selector ── */
.plan-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.plan-radio-card { display: block; position: relative; cursor: pointer; }
.plan-radio-card input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.plan-radio-content {
  display: flex; flex-direction: column; padding: 20px 16px; border-radius: 14px;
  border: 2px solid var(--border); background: rgba(0,0,0,0.3);
  transition: all 0.3s ease; text-align: center;
}
.plan-radio-card:hover .plan-radio-content { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.plan-radio-card input:checked ~ .plan-radio-content {
  border-color: #fff; background: rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(255,255,255,0.12);
}
.plan-radio-name { font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.plan-radio-card input:checked ~ .plan-radio-content .plan-radio-name { color: var(--text); }
.plan-radio-price { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -1px; }

/* ── Status indicator ── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; margin-right: 6px; box-shadow: 0 0 8px rgba(34,197,94,0.8); animation: pulse-glow 2s infinite; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .container { padding: 16px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 20px; }
  .hero { padding: 40px 0 32px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; border-radius: 16px; }
  .sub-actions { flex-direction: column; }
  .sub-header { flex-direction: column; align-items: flex-start; }
  .plan-selector { grid-template-columns: 1fr 1fr; }
  .tabs { overflow-x: auto; }
  .tab-btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .header { margin-bottom: 28px; }
  .brand { font-size: 22px; }
  .kv { grid-template-columns: 90px 1fr; }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
}
