/* ================================
   styles.css (Improved ISP-style)
   - Lively background + glass cards
   - Better typography, spacing, modern look
   ================================= */
:root{
  --bg1:#06112a;
  --bg2:#061f3c;
  --bg3:#0a2b4f;

  --card:#ffffff;
  --text:#0b1220;
  --muted:#5b6b84;
  --border: rgba(15, 23, 42, 0.10);

  --brand:#0b5bd3;
  --brand2:#0ea5e9;
  --accent:#22c55e;

  --shadow: 0 18px 60px rgba(2, 8, 23, 0.22);
  --shadow2: 0 10px 24px rgba(2, 8, 23, 0.12);
  --shadowGlow: 0 18px 40px rgba(14,165,233,0.18);

  --radius: 18px;
  --radius2: 14px;

  --glass: rgba(255,255,255,0.85);
  --glassBorder: rgba(255,255,255,0.40);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: var(--text);
  overflow-x:hidden;
}

/* Lively background */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(14,165,233,0.35), transparent 60%),
              radial-gradient(1100px 700px at 80% 20%, rgba(34,197,94,0.25), transparent 60%),
              radial-gradient(900px 600px at 30% 90%, rgba(11,91,211,0.30), transparent 60%),
              linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
}

.bg-gradient{
  position:absolute; inset:-40%;
  background: conic-gradient(from 220deg, rgba(14,165,233,0.16), rgba(34,197,94,0.12), rgba(11,91,211,0.18), rgba(14,165,233,0.16));
  filter: blur(22px);
  animation: spin 18s linear infinite;
  opacity: .7;
}

.bg-orb{
  position:absolute;
  width: 420px; height: 420px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: .6;
  animation: float 10s ease-in-out infinite;
}
.orb-1{ left: -120px; top: 120px; background: rgba(14,165,233,0.45); }
.orb-2{ right: -140px; top: 80px; background: rgba(34,197,94,0.35); animation-delay: -2s; }
.orb-3{ left: 30%; bottom: -180px; background: rgba(11,91,211,0.40); animation-delay: -4s; }

.bg-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 35% 30%, rgba(0,0,0,1), rgba(0,0,0,0));
  opacity: .6;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}
@keyframes float{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-18px); }
}

/* Layout */
.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.card{
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
  position: relative;
}

.glass{
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glassBorder);
  box-shadow: var(--shadow);
}

/* Top bar */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 14px;
  max-width: 1120px;
  width: 100%;
  margin: 10px auto 0;
}

.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:46px; height:46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,91,211,0.95), rgba(14,165,233,0.95));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 40px rgba(11,91,211,0.25);
}
.logo img{
  width: 100%;
  height: 100%;
  display:block;
  border-radius: inherit;
}
.logo-mark{ font-weight:900; color:white; letter-spacing: .5px; }

.brand-name{ font-weight:900; font-size: 16px; color: rgba(255,255,255,0.92); }
.brand-tagline{ margin-top:2px; font-size: 12px; color: rgba(255,255,255,0.72); }

.top-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.pill{
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}
.pill.outline{
  background: transparent;
}

/* Main layout grid */
.layout{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  max-width: 1120px;
  width: 100%;
  margin: 10px auto;
  padding: 0 12px;
}

.main{ padding: 18px; }
.side{ padding: 18px; height: fit-content; }

/* Headings */
h1{ margin: 6px 0 10px; font-size: 28px; letter-spacing: -0.3px; }
.section-title{ margin: 0; font-size: 16px; }
h2{ margin: 0 0 10px; font-size: 18px; }
h3{ margin: 0 0 10px; font-size: 16px; }

.muted{ color: var(--muted); margin: 0 0 14px; }
.tiny{ font-size: 12px; }

/* Header row */
.header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
}

.trust{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.trust-item{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11,91,211,0.10);
  border: 1px solid rgba(11,91,211,0.18);
  color: rgba(11,91,211,0.95);
  font-weight: 900;
  font-size: 12px;
}

/* Tabs */
.tabs{ display:flex; gap:10px; margin: 12px 0 18px; flex-wrap:wrap; }
.tab{
  border:1px solid rgba(11,91,211,0.20);
  background: rgba(255,255,255,0.72);
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:900;
  color: rgba(11,91,211,0.92);
}
.tab.active{
  border-color: rgba(11, 91, 211, .45);
  background: linear-gradient(135deg, rgba(11,91,211,.12), rgba(14,165,233,.10));
}

.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* Plans */
.plans-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap:wrap;
}

.plan-summary{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap:wrap;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.86);
}
.badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.18);
  color: rgba(21, 128, 61, 0.95);
  font-size: 12px;
  font-weight: 900;
}
.plan-picked{ font-weight: 900; }

.plans{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.pppoe-plans{ display:block; }
.plan-group{ margin:0 0 18px; }
.plan-group-head{ margin:0 0 9px; }
.plan-group-head h4{ margin:0; font-size:16px; font-weight:950; }
.plan-group-head p{ margin:3px 0 0; color:var(--muted); font-size:12px; }
.plan-group-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.plan-benefits{ margin-top:9px; padding-top:8px; border-top:1px dashed rgba(2,8,23,.13); color:#155e75; font-size:12px; font-weight:800; }
.corporate-offer{ cursor:default; border-color:rgba(180,83,9,.3); background:linear-gradient(145deg,#fffaf0,#fff7ed); }
.corporate-offer:hover{ transform:none; border-color:rgba(180,83,9,.5); }
.corporate-request-btn{ position:relative; z-index:1; margin-top:11px; width:100%; }

.plan{
  border:1px solid rgba(2, 8, 23, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.78));
  padding: 12px;
  border-radius: 16px;
  cursor:pointer;
  text-align:left;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
  overflow: visible;
}
.plan:hover{ transform: translateY(-2px); border-color: rgba(11,91,211,0.35); }
.plan.selected{
  border-color: rgba(11, 91, 211, 0.55);
  background: linear-gradient(135deg, rgba(11,91,211,.10), rgba(14,165,233,.08));
  box-shadow: var(--shadowGlow);
}
.plan::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 120px at 20% 10%, rgba(14,165,233,0.18), transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.plan:hover::after{ opacity: .9; }

.plan-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-title{
  font-weight: 950;
  font-size: 15px;
  line-height: 1.25;
  word-break: break-word;
  flex: 1 1 100%;
}
.chip{
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.72);
  white-space:nowrap;
  margin-top: 4px;
}

.plan-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-top: 12px;
}
.price{ font-weight: 950; font-size: 16px; }
.meta{ color: rgba(15,23,42,0.55); font-weight: 800; font-size: 12px; }

/* Split cards */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inner{
  padding: 14px;
  box-shadow:none;
  background: rgba(255,255,255,0.86);
}

/* Card header helpers */
.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.mini-pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.18);
  color: rgba(3, 105, 161, 0.95);
  font-weight: 950;
  font-size: 12px;
}
.mini-pill.outline{
  background: transparent;
}

/* Forms */
.form{ margin-top: 8px; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label{
  display:block;
  font-size: 13px;
  font-weight: 950;
  margin: 10px 0 6px;
}
input{
  width:100%;
  padding: 12px 12px;
  border:1px solid rgba(2,8,23,0.14);
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,0.92);
}
input:focus{
  border-color: rgba(11, 91, 211, .55);
  box-shadow: 0 0 0 4px rgba(11, 91, 211, .10);
}

.hint{
  display:block;
  margin-top: 6px;
  color: rgba(15,23,42,0.55);
  font-size: 12px;
  font-weight: 700;
}

.btn{
  width:100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(2, 8, 23, 0.14);
  background: rgba(255,255,255,0.86);
  cursor:pointer;
  font-weight: 950;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(11,91,211,0.30); }
.btn.primary{
  border-color: rgba(11, 91, 211, 0.30);
  background: linear-gradient(135deg, rgba(11,91,211,.14), rgba(14,165,233,.12));
  color: rgba(11, 91, 211, 0.98);
}
.btn-icon{ font-weight: 950; }

.btn-row{ display:flex; gap:10px; margin-top: 6px; }
.btn-row .btn{ width:auto; flex:1; }

.notice{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2, 8, 23, 0.10);
  background: rgba(2, 8, 23, 0.02);
  font-size: 12px;
  color: rgba(15,23,42,0.72);
  font-weight: 700;
}
.notice.subtle{
  background: transparent;
  border-style: dashed;
  color: rgba(15,23,42,0.62);
}

/* PPPoE layout */
.pppoe-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.list{ margin: 8px 0 0; padding-left: 18px; color: rgba(15,23,42,0.70); }
.list li{ margin: 8px 0; }

.tips{ display:grid; gap: 8px; margin-top: 10px; }
.tip{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,0.16);
  background: rgba(34,197,94,0.08);
  font-weight: 850;
  color: rgba(21, 128, 61, 0.95);
}

/* Aside blocks */
.kv{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 10px;
  font-size: 14px;
}
.k{ color: rgba(15,23,42,0.58); font-weight: 800; }
.v{ font-weight: 950; color: rgba(15,23,42,0.88); }

.mini-card{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,91,211,0.14);
  background: rgba(11,91,211,0.06);
}
.mini-title{ font-weight: 950; margin-bottom: 6px; color: rgba(11,91,211,0.95); }
.mini-text{ font-weight: 750; }

/* Divider */
.divider{
  height:1px;
  background: rgba(2,8,23,0.10);
  margin: 14px 0;
  border-radius: 999px;
}

/* Links */
.link{
  color: rgba(11,91,211,0.98);
  text-decoration:none;
  font-weight: 950;
}
.dot{ opacity: .7; }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(2, 8, 23, 0.62);
  padding: 16px;
  z-index: 20;
}
.modal.show{ display:flex; }
.modal-card{
  width: min(560px, 100%);
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(2, 8, 23, 0.12);
  box-shadow: var(--shadow);
}
.modal-title{ font-weight: 950; font-size: 18px; margin-bottom: 6px; }
.modal-text{ color: rgba(15,23,42,0.70); font-weight: 750; }
.modal-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.modal-actions .btn{
  width:auto;
  margin-top: 0;
}

/* Footer */
.footer{
  max-width: 1120px;
  width: 100%;
  margin: auto auto 14px;
  padding: 0 12px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.88);
}
.footer-brand{ font-weight: 950; }
.footer-muted{ font-size: 12px; color: rgba(255,255,255,0.70); margin-top: 2px; }
.footer-links{ display:flex; align-items:center; gap: 10px; flex-wrap:wrap; }
.footer-right{ font-weight: 850; display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }
.credit{ font-weight: 950; }

/* Responsive */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .plans{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .pppoe-grid{ grid-template-columns: 1fr; }
  .header-row{ flex-direction:column; }
  .trust{ justify-content:flex-start; }
  .brand-name, .brand-tagline{ color: rgba(255,255,255,0.92); }
  .plan-group-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px){
  .plans{ grid-template-columns: 1fr; }
  .plan{ padding: 14px; }
  .plan-bottom{ flex-direction:column; align-items:flex-start; gap: 6px; }
  .plan-group-grid{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .form-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
}
