/* =========================
           SERVICE DETAILS
        ========================= */

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.detail-label {
  color: var(--muted);
  font-size: 11px;
}

.detail-value {
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.detail-value.blue {
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}

.badge.green {
  color: #119565;
  background: #e8fbf3;
}

.badge.blue {
  color: var(--blue);
  background: #edf4ff;
}

.badge.orange {
  color: #d67a1e;
  background: #fff4e7;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================
           PACKAGE
        ========================= */

.package-box {
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, #f4f8ff, #f8fcff);
  border: 1px solid #e5edf9;
}

.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}

.package-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.package-price {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.package-price strong {
  color: var(--text);
  font-size: 13px;
}

.speed-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 6px solid #dce9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.speed-circle strong {
  font-size: 15px;
  line-height: 1;
}

.speed-circle span {
  margin-top: 3px;
  font-size: 8px;
  color: var(--muted);
}

.package-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #526174;
}

.feature svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* =========================
           HEALTH
        ========================= */

.health-score {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 22px;
}

.health-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 99.98%, #e9eff5 99.98% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.health-circle::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: white;
}

.health-circle strong {
  position: relative;
  z-index: 2;
  font-size: 14px;
}

.health-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.health-text span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.metric-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
}

.metric-label {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 14px;
  font-weight: 750;
}

.metric-value span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

/* =========================
           USAGE
        ========================= */

.usage-card {
  padding: 21px;
}

.usage-item {
  margin-bottom: 21px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.usage-head span {
  color: var(--muted);
  font-size: 10px;
}

.usage-head strong {
  font-size: 11px;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: #edf1f6;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.usage-info {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

/* =========================
           CONTRACT / BILLING
        ========================= */

.contract-box {
  padding: 18px;
  border-radius: 14px;
  background: #fbfcfe;
  border: 1px solid var(--border);
}

.contract-number {
  margin-bottom: 15px;
}

.contract-number small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}

.contract-number strong {
  font-size: 14px;
}

.billing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.billing-summary small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 4px;
}

.billing-summary strong {
  font-size: 15px;
}

.action-link {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

/* =========================
           ACTIONS
        ========================= */

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

.btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  background: white;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-light {
  color: #526174;
}

.btn-light:hover {
  border-color: #cbd7e7;
  background: #f8fafc;
}

/* =========================
           TOAST
        ========================= */

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #182230;
  color: white;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================
           RESPONSIVE
        ========================= */

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

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .topbar {
    padding: 0 18px;
  }

  .content {
    padding: 22px 18px 35px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-number {
    width: 100%;
  }

  .user-info {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-actions {
    gap: 8px;
  }

  .page-heading p {
    display: none;
  }

  .page-heading h1 {
    font-size: 16px;
  }

  .service-hero {
    padding: 22px;
  }

  .hero-title {
    font-size: 22px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .package-features {
    grid-template-columns: 1fr;
  }

  .metric-list {
    grid-template-columns: 1fr 1fr;
  }

  .card-header {
    padding: 16px;
  }

  .card-body,
  .usage-card {
    padding: 16px;
  }

  .detail-row {
    align-items: flex-start;
  }

  .detail-value {
    max-width: 55%;
  }
}
