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

:root {
  --bg: #080810;
  --surface: #10101c;
  --surface-hover: #16162a;
  --border: #1c1c30;
  --border-hover: #6c63ff;
  --accent: #6c63ff;
  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.12);
  --green-border: rgba(34,197,94,0.3);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.12);
  --text: #eeeef8;
  --muted: #7070a0;
  --radius: 14px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 380px;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 36px;
}

.wifi-svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
  display: block;
  margin: 0 auto 14px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* States */
.state {
  display: none;
  text-align: center;
  animation: fadeUp 0.25s ease;
}

.state.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.badge-green {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.status-msg {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Icon circles */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.icon-warn {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid rgba(245,158,11,0.3);
}

.icon-err {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Plans */
.plans-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}

.plan-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.1s ease;
  color: var(--text);
  text-align: left;
}

.plan-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.plan-card:active {
  transform: translateY(0);
}

.plan-free {
  border-color: var(--green-border);
}

.plan-free:hover {
  border-color: var(--green);
  background: rgba(34,197,94,0.05);
}

.plan-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
}

.plan-duration {
  font-size: 12px;
  color: var(--muted);
}

.plan-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.plan-price-free {
  color: var(--green);
}

.plan-note {
  font-size: 11px;
  color: var(--muted);
}

/* Secondary button */
.btn-secondary {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

@media (max-width: 400px) {
  .container {
    padding: 0 4px;
  }
}
