:root{
  --bg: #0b1220;
  --panel: rgba(15, 27, 51, 0.78);
  --panel2: rgba(12, 22, 43, 0.85);
  --text: #eaf0ff;
  --muted: #a9b6d6;
  --line: rgba(255,255,255,.10);

  --brand1: rgba(37,99,235,.35);
  --brand2: rgba(34,197,94,.20);

  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;

  --btn: #2563eb;
  --btn2: rgba(51,65,85,.75);

  --radius: 16px;
  --radius2: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, var(--brand1), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--brand2), transparent 55%),
    var(--bg);
}

a{ color:#9dc1ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1024px;
  margin: 0 auto;
  padding: 18px;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15,27,51,.65);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.brand{
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand:before{
  content:"";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37,99,235,.95), rgba(34,197,94,.75));
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.card{
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

h2{
  margin: 0 0 6px;
  font-size: 18px;
}
h3{
  margin: 0 0 8px;
  font-size: 15px;
}
hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
}
.badge.bad{
  color: #ffd0d0;
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}
.badge.ok{
  color: #c6ffd8;
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
}

.btn{
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(37,99,235,.95), rgba(29,78,216,.95));
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 38px;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: var(--btn2);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .header{ flex-direction: column; align-items:flex-start; }
}

.plan{
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: var(--radius);
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.plan:before{
  content:"";
  position:absolute;
  inset: -40px -40px auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.35), transparent 60%);
  transform: rotate(18deg);
}
.plan > *{ position: relative; }

.plan .muted{
  font-size: 12px;
}

.plan .price{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}

.footer{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15,27,51,.55);
  color: var(--muted);
}
.wifi-hero{
  display:flex;
  justify-content:center;
  margin-bottom: 12px;
}

.wifi-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #22c55e 0 6px, transparent 7px),
    radial-gradient(circle at center, transparent 0 14px, #22c55e 15px 18px, transparent 19px),
    radial-gradient(circle at center, transparent 0 26px, #22c55e 27px 30px, transparent 31px);
  opacity: .9;
}
/* ===== WIFI HERO ===== */
.wifi-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wifi-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.5rem;
  background: radial-gradient(circle at center, #22c55e 25%, #16a34a 26%);
  border-radius: 50%;
  position: relative;
}

.wifi-icon::before,
.wifi-icon::after {
  content: '';
  position: absolute;
  border: 3px solid #22c55e;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wifi-icon::before {
  width: 120px;
  height: 120px;
  opacity: 0.5;
}

.wifi-icon::after {
  width: 160px;
  height: 160px;
  opacity: 0.25;
}

.wifi-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.wifi-sub {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ===== PLAN CARDS ===== */
.plan {
  background: linear-gradient(160deg, #0f172a, #020617);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.plan-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto .75rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
}

.price {
  font-size: 1.4rem;
  font-weight: 900;
  margin: .4rem 0 .8rem;
}

/* ===== STATUS COLORS ===== */
.status-online {
  color: #22c55e;
  font-weight: 700;
}

.status-warn {
  color: #f59e0b;
  font-weight: 700;
}

.status-offline {
  color: #ef4444;
  font-weight: 700;
}
/* Layout */
.container {
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes buttons right */
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto; /* extra guarantee it stays right */
}

/* Card */
.card {
  border-radius: 18px;
  padding: 18px 18px 14px;
}

/* Hero */
.wifi-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.wifi-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-image: url('/public/wifi.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52px 52px;
  opacity: 0.95;
}

.wifi-hero-text {
  flex: 1;
}

.wifi-hero-title {
  font-size: 18px;
  font-weight: 800;
}

.wifi-hero-sub {
  margin-top: 2px;
  opacity: 0.8;
  font-size: 13px;
}

/* Plans grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 740px) {
  .grid { grid-template-columns: 1fr; }
}

/* Plan card */
.plan {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.plan h3 {
  margin: 0 0 6px 0;
}

.price {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 10px 0 12px;
}

/* icon in each plan (top-right) */
.plan-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-image: url('/public/wifi.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  opacity: 0.9;
}

/* Status */
.status {
  font-weight: 800;
}
.status.ok { color: #22c55e; }
.status.warn { color: #f59e0b; }
.status.bad { color: #ef4444; }
/* NUKE-PROOF: plan title size */
form.plan h3.plan-title,
.plan h3.plan-title,
.plan-title {
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: 0.2px !important;
}



/* Optional: make the hours text a little clearer */
.plan .muted {
  font-size: 14px;
}

/* Bigger wifi icon on each plan card */
.plan-icon {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 56px;          /* was 44px */
  height: 56px;         /* was 44px */
  border-radius: 16px;  /* scale with size */

  background-image: url('/public/wifi.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 50px; /* was 26px */
  opacity: 0.95;
}
