/*=========================================================
 CloudCore Network Enterprise Portal
 pages.css — Customer Portal, Bill Payment, Downloads,
 Network Status, Looking Glass
=========================================================*/

.page-banner{
  padding: 160px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner .tag{
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
}

.page-banner h1{
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 8px;
}

.page-banner p{
  color: var(--text);
  opacity: .8;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb-mini{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  opacity: .7;
  font-size: 13px;
  margin-bottom: 14px;
}

.breadcrumb-mini a{
  color: var(--text);
  text-decoration: none;
}

.breadcrumb-mini a:hover{ color: var(--primary); }

/* ---------- Generic glass panel ---------- */

.glass-panel{
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

/* ---------- Status pill (reused everywhere) ---------- */

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  border: 1px solid transparent;
}

.pill::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-online{
  color: #00d26a;
  background: rgba(0,210,106,.12);
  border-color: rgba(0,210,106,.4);
  animation: pillPulseGreen 2.6s infinite;
}
.pill-online::before{ background:#00d26a; box-shadow:0 0 8px 3px rgba(0,210,106,.85); }

.pill-warning{
  color: #ffb300;
  background: rgba(255,179,0,.12);
  border-color: rgba(255,179,0,.4);
  animation: pillPulseAmber 2.6s infinite;
}
.pill-warning::before{ background:#ffb300; box-shadow:0 0 8px 3px rgba(255,179,0,.85); }

.pill-danger{
  color: #ff4b5c;
  background: rgba(255,75,92,.12);
  border-color: rgba(255,75,92,.4);
}
.pill-danger::before{ background:#ff4b5c; box-shadow:0 0 8px 3px rgba(255,75,92,.85); }

.pill-idle{
  color: #8aa0bd;
  background: rgba(138,160,189,.10);
  border-color: rgba(138,160,189,.3);
}
.pill-idle::before{ background:#8aa0bd; }

@keyframes pillPulseGreen{
  0%{ box-shadow:0 0 0 0 rgba(0,210,106,.45); }
  70%{ box-shadow:0 0 0 9px rgba(0,210,106,0); }
  100%{ box-shadow:0 0 0 0 rgba(0,210,106,0); }
}
@keyframes pillPulseAmber{
  0%{ box-shadow:0 0 0 0 rgba(255,179,0,.4); }
  70%{ box-shadow:0 0 0 9px rgba(255,179,0,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,179,0,0); }
}

/* ---------- Auth / form cards (Customer Portal, Bill Payment) ---------- */

.auth-wrap{
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 30px 0 100px;
}

.auth-card{
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-card .icon-badge{
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,217,255,.3);
}

.auth-card h3{
  color: #fff;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-card .sub{
  color: var(--text);
  opacity: .75;
  font-size: 14px;
  margin-bottom: 26px;
}

.cc-input-group{ margin-bottom: 18px; }

.cc-input-group label{
  display: block;
  font-size: 13px;
  color: var(--text);
  opacity: .8;
  margin-bottom: 8px;
  font-weight: 500;
}

.cc-input-group .input-shell{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 0 16px;
  transition: var(--transition);
}

.cc-input-group .input-shell:focus-within{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,217,255,.15);
}

.cc-input-group .input-shell i{
  color: var(--primary);
  font-size: 14px;
}

.cc-input-group input,
.cc-input-group select{
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  padding: 13px 0;
  font-size: 14px;
}

.cc-input-group select option{ background:#0b1728; color:#fff; }

.cc-input-group input::placeholder{ color: rgba(215,227,245,.4); }

.form-row-split{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 22px;
}

.form-row-split a{ color: var(--primary); text-decoration: none; }
.form-row-split a:hover{ text-decoration: underline; }

.check-remember{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  opacity: .85;
}

.auth-foot{
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text);
  opacity: .8;
}

.auth-foot a{ color: var(--primary); font-weight: 600; text-decoration: none; }

/* ---------- Payment method cards ---------- */

.pay-methods{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.pay-method{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.pay-method:hover{ border-color: rgba(0,217,255,.4); transform: translateY(-3px); }

.pay-method.active{
  border-color: var(--primary);
  background: rgba(0,217,255,.1);
  box-shadow: 0 10px 25px rgba(0,217,255,.2);
}

.pay-method i{ font-size: 26px; color: var(--primary); margin-bottom: 10px; display:block; }

.pay-method span{ font-size: 13px; font-weight: 600; color: #fff; }

.receipt-check{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,210,106,.15);
  border: 2px solid rgba(0,210,106,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #00d26a;
  margin: 0 auto 20px;
}

.receipt-row{
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 14px;
}

.receipt-row span:first-child{ opacity: .7; }
.receipt-row span:last-child{ color: #fff; font-weight: 600; }

/* ---------- Dashboard (post-login preview) ---------- */

.dash-hidden{ display: none !important; }

.dash-topcard{
  background: linear-gradient(120deg, rgba(0,217,255,.14), rgba(91,92,255,.10));
  border: 1px solid rgba(0,217,255,.25);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 26px;
}

.dash-mini{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
}

.dash-mini h6{
  color: var(--text);
  opacity: .7;
  font-size: 12.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dash-mini h3{ color: #fff; font-weight: 800; margin: 0; }

.usage-bar{
  height: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 14px;
}

.usage-bar span{
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg,var(--primary),var(--secondary));
}

.invoice-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.invoice-row:last-child{ border-bottom: none; }

/* ---------- Downloads ---------- */

.dl-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dl-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,217,255,.4);
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.dl-card .dl-icon{
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: rgba(0,217,255,.12);
  color: var(--primary);
}

.dl-card h5{ color: #fff; font-weight: 700; margin-bottom: 6px; }

.dl-card p{ font-size: 13.5px; color: var(--text); opacity: .75; margin-bottom: 18px; }

.dl-card .meta{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: .55;
  margin-bottom: 18px;
}

.dl-search{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 46px;
}

.dl-search i{ color: var(--primary); }

.dl-search input{
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 14.5px;
}

.dl-filter-tabs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.dl-filter-tabs button{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.dl-filter-tabs button.active,
.dl-filter-tabs button:hover{
  background: linear-gradient(90deg,var(--primary),var(--secondary));
  color: #fff;
  border-color: transparent;
}

/* ---------- Network Status page ---------- */

.ns-summary{
  background: linear-gradient(120deg, rgba(0,210,106,.12), rgba(0,217,255,.08));
  border: 1px solid rgba(0,210,106,.3);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.ns-summary .status-dot-lg{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00d26a;
  box-shadow: 0 0 0 6px rgba(0,210,106,.18);
  animation: pillPulseGreen 2.6s infinite;
  flex-shrink: 0;
}

.node-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  height: 100%;
  transition: var(--transition);
}

.node-card:hover{ transform: translateY(-4px); border-color: rgba(0,217,255,.35); }

.node-card .top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.node-card .top .name{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.node-card .top .name i{ color: var(--primary); }

.node-mini-row{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 7px 0;
  border-top: 1px dashed rgba(255,255,255,.07);
  color: var(--text);
  opacity: .85;
}

.node-mini-row span:last-child{ color: #fff; font-weight: 600; }

.incident-item{
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.incident-item:last-child{ border-bottom: none; }

.incident-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ---------- Looking Glass ---------- */

.lg-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.lg-tabs button{
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.lg-tabs button i{ color: var(--primary); }

.lg-tabs button.active{
  background: linear-gradient(90deg,var(--primary),var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0,217,255,.25);
}

.lg-tabs button.active i{ color: #fff; }

.lg-panel{ display: none; }
.lg-panel.active{ display: block; animation: fadeInUp .5s ease; }

@keyframes fadeInUp{
  0%{ opacity: 0; transform: translateY(14px); }
  100%{ opacity: 1; transform: translateY(0); }
}

.lg-input-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.lg-input-row .input-shell{
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 0 16px;
}

.lg-input-row .input-shell:focus-within{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,217,255,.15);
}

.lg-input-row input,
.lg-input-row select{
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  padding: 13px 0;
  font-size: 14px;
}

.lg-input-row select option{ background:#0b1728; }

.lg-input-row i{ color: var(--primary); }

.terminal{
  background: #060c16;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
}

.terminal .terminal-head{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.terminal .dot{ width: 11px; height: 11px; border-radius: 50%; }
.terminal .dot.r{ background:#ff5f56; }
.terminal .dot.y{ background:#ffbd2e; }
.terminal .dot.g{ background:#27c93f; }

.terminal .terminal-title{
  margin-left: 8px;
  font-size: 12px;
  color: var(--text);
  opacity: .6;
}

.terminal pre{
  margin: 0;
  padding: 20px;
  font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #b9f6c9;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal pre .muted{ color: #6f8ba8; }
.terminal pre .accent{ color: #00d9ff; }
.terminal pre .warn{ color: #ffb300; }
.terminal pre .bad{ color: #ff4b5c; }

.lg-result-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 14px;
  margin-top: 18px;
}

.lg-result-grid .cell{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.lg-result-grid .cell .k{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  opacity: .55;
  margin-bottom: 6px;
}

.lg-result-grid .cell .v{
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.lg-note{
  font-size: 12.5px;
  color: var(--text);
  opacity: .6;
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.lg-note i{ color: var(--warning); margin-top: 2px; }

.qr-box{
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lg-loading{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
}

.lg-loading .spinner-border{ width: 14px; height: 14px; border-width: 2px; }

/* ---------- Responsive ---------- */

@media(max-width:768px){
  .page-banner h1{ font-size: 30px; }
  .auth-card{ padding: 28px 22px; }
  .ns-summary{ flex-direction: column; align-items: flex-start; }
}
