/* =========================================
       WELCOME HERO
    ========================================= */

.welcome {
  position: relative;

  overflow: hidden;

  background: linear-gradient(120deg, #0758dc, #1687ef 60%, #08afd5);

  color: white;

  border-radius: 22px;

  padding: 27px 30px;

  margin-bottom: 22px;

  box-shadow: 0 16px 40px rgba(23, 105, 255, 0.16);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;
}

.welcome::before {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  border: 40px solid rgba(255, 255, 255, 0.06);

  border-radius: 50%;

  right: -90px;
  top: -150px;
}

.welcome::after {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  border: 25px solid rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  right: 120px;
  bottom: -125px;
}

.welcome-content {
  position: relative;

  z-index: 1;
}

.welcome-label {
  font-size: 10px;

  opacity: 0.72;

  margin-bottom: 8px;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.welcome h2 {
  font-size: 25px;

  font-weight: 800;

  letter-spacing: -0.7px;
}

.welcome p {
  margin-top: 7px;

  font-size: 11px;

  opacity: 0.82;

  line-height: 1.6;
}

.connection-status {
  position: relative;

  z-index: 2;

  flex-shrink: 0;

  padding: 13px 16px;

  min-width: 175px;

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.13);

  border: 1px solid rgba(255, 255, 255, 0.18);
}

.connection-status small {
  display: block;

  font-size: 8px;

  opacity: 0.7;

  margin-bottom: 7px;
}

.connection-status strong {
  display: flex;

  align-items: center;

  gap: 7px;

  font-size: 11px;
}

.online-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #52e0a8;

  box-shadow: 0 0 0 4px rgba(82, 224, 168, 0.13);
}

/* =========================================
       SUMMARY
    ========================================= */

.summary-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;

  margin-bottom: 22px;
}

.summary-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 20px;

  box-shadow: var(--shadow);
}

.summary-top {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;
}

.summary-icon {
  width: 40px;
  height: 40px;

  border-radius: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 16px;

  background: #edf4ff;

  color: var(--blue);
}

.summary-icon.green {
  background: #e9fbf3;

  color: var(--green);
}

.summary-icon.orange {
  background: #fff5e8;

  color: var(--orange);
}

.summary-icon.purple {
  background: #f1edff;

  color: var(--purple);
}

.summary-card small {
  display: block;

  color: var(--muted);

  font-size: 10px;

  margin-top: 16px;
}

.summary-card h2 {
  margin-top: 6px;

  font-size: 20px;

  letter-spacing: -0.5px;
}

.summary-card p {
  font-size: 9px;

  color: var(--muted);

  margin-top: 5px;
}

.positive {
  color: var(--green) !important;

  font-weight: 600;
}

.warning {
  color: var(--orange) !important;

  font-weight: 600;
}

/* =========================================
       GRID
    ========================================= */

.dashboard-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(300px, 0.85fr);

  gap: 20px;

  align-items: start;
}

.left-column,
.right-column {
  display: flex;

  flex-direction: column;

  gap: 20px;
}

.card {
  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  overflow: hidden;
}

.card-header {
  padding: 19px 22px;

  border-bottom: 1px solid var(--border);

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;
}

.card-title h3 {
  font-size: 14px;

  font-weight: 750;
}

.card-title p {
  color: var(--muted);

  font-size: 9px;

  margin-top: 4px;
}

.card-link {
  color: var(--blue);

  font-size: 9px;

  font-weight: 700;
}

.card-body {
  padding: 20px 22px;
}

/* =========================================
       INTERNET SERVICE
    ========================================= */

.service-box {
  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 15px;
}

.service-icon {
  width: 48px;
  height: 48px;

  border-radius: 14px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(135deg, #eaf2ff, #eefcff);

  color: var(--blue);

  font-size: 19px;
}

.service-main strong {
  display: block;

  font-size: 13px;

  font-weight: 750;
}

.service-main span {
  display: block;

  color: var(--muted);

  font-size: 9px;

  margin-top: 4px;
}

.service-price {
  text-align: right;
}

.service-price strong {
  display: block;

  font-size: 12px;
}

.service-price span {
  display: block;

  color: var(--muted);

  font-size: 8px;

  margin-top: 3px;
}

.service-progress {
  margin-top: 18px;

  padding-top: 17px;

  border-top: 1px solid var(--border);
}

.progress-head {
  display: flex;

  justify-content: space-between;

  margin-bottom: 8px;
}

.progress-head span {
  font-size: 9px;

  color: var(--muted);
}

.progress-head strong {
  font-size: 9px;
}

.progress-bar {
  height: 7px;

  background: #edf2f7;

  border-radius: 20px;

  overflow: hidden;
}

.progress-value {
  height: 100%;

  width: 76%;

  border-radius: inherit;

  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.service-meta {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 17px;
}

.meta-box {
  padding: 10px;

  border-radius: 10px;

  background: #f8faff;

  border: 1px solid #edf2f8;
}

.meta-box span {
  display: block;

  font-size: 8px;

  color: var(--muted);

  margin-bottom: 5px;
}

.meta-box strong {
  font-size: 10px;
}

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

.usage-content {
  display: grid;

  grid-template-columns: 155px 1fr;

  align-items: center;

  gap: 25px;
}

.speed-circle {
  width: 145px;
  height: 145px;

  border-radius: 50%;

  margin: auto;

  background: conic-gradient(
    var(--blue) 0deg,
    var(--cyan) 275deg,
    #edf2f7 275deg,
    #edf2f7 360deg
  );

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;
}

.speed-circle::after {
  content: "";

  position: absolute;

  width: 115px;
  height: 115px;

  background: white;

  border-radius: 50%;
}

.speed-value {
  position: relative;

  z-index: 1;

  text-align: center;
}

.speed-value strong {
  display: block;

  font-size: 23px;

  font-weight: 800;
}

.speed-value span {
  display: block;

  font-size: 8px;

  color: var(--muted);

  margin-top: 3px;
}

.usage-stats {
  display: flex;

  flex-direction: column;

  gap: 13px;
}

.usage-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--border);
}

.usage-row:last-child {
  border-bottom: none;

  padding-bottom: 0;
}

.usage-label {
  display: flex;

  align-items: center;

  gap: 8px;
}

.usage-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--blue);
}

.usage-dot.cyan {
  background: var(--cyan);
}

.usage-dot.green {
  background: var(--green);
}

.usage-label span {
  font-size: 9px;

  color: var(--muted);
}

.usage-row strong {
  font-size: 10px;
}

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

.billing-highlight {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 15px;

  border-radius: 12px;

  background: linear-gradient(135deg, #f4f8ff, #f7fcff);

  border: 1px solid #e5eefc;

  margin-bottom: 15px;
}

.billing-highlight span {
  display: block;

  color: var(--muted);

  font-size: 9px;
}

.billing-highlight strong {
  display: block;

  font-size: 17px;

  margin-top: 5px;
}

.billing-date {
  text-align: right;
}

.billing-date strong {
  font-size: 10px;

  color: var(--orange);
}

.billing-date span {
  margin-top: 3px;
}

.billing-action {
  display: flex;

  gap: 8px;
}

.btn {
  height: 36px;

  border-radius: 9px;

  padding: 0 13px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 9px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s;
}

.btn-primary {
  color: white;

  background: var(--blue);

  border: 1px solid var(--blue);
}

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

.btn-secondary {
  color: #657286;

  background: white;

  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #bfd2f4;

  color: var(--blue);
}

/* =========================================
       TICKETS
    ========================================= */

.ticket-item {
  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 12px;

  padding: 13px 0;

  border-bottom: 1px solid var(--border);
}

.ticket-item:last-child {
  border-bottom: none;

  padding-bottom: 0;
}

.ticket-icon {
  width: 34px;
  height: 34px;

  border-radius: 10px;

  background: #edf4ff;

  color: var(--blue);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 13px;
}

.ticket-info strong {
  display: block;

  font-size: 10px;
}

.ticket-info span {
  display: block;

  color: var(--muted);

  font-size: 8px;

  margin-top: 4px;
}

.ticket-status {
  padding: 5px 8px;

  border-radius: 20px;

  font-size: 8px;

  font-weight: 700;
}

.ticket-status.open {
  color: var(--blue);

  background: #edf4ff;
}

.ticket-status.progress {
  color: #a87312;

  background: #fff6e5;
}

.ticket-status.resolved {
  color: var(--green);

  background: #eafaf3;
}

/* =========================================
       ACTIVITY
    ========================================= */

.activity {
  position: relative;

  padding-left: 22px;
}

.activity::before {
  content: "";

  position: absolute;

  left: 4px;

  top: 5px;

  bottom: 5px;

  width: 1px;

  background: #dfe7f1;
}

.activity-item {
  position: relative;

  padding-bottom: 20px;
}

.activity-item:last-child {
  padding-bottom: 0;
}

.activity-dot {
  position: absolute;

  left: -22px;

  top: 3px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--blue);

  border: 2px solid white;

  box-shadow: 0 0 0 1px #cbd8ea;
}

.activity-dot.green {
  background: var(--green);
}

.activity-dot.orange {
  background: var(--orange);
}

.activity-item strong {
  display: block;

  font-size: 9px;
}

.activity-item span {
  display: block;

  color: var(--muted);

  font-size: 8px;

  margin-top: 4px;

  line-height: 1.5;
}

.activity-time {
  margin-top: 5px;

  color: #9aa6b5 !important;

  font-size: 7px !important;
}

/* =========================================
       QUICK ACTION
    ========================================= */

.quick-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 9px;
}

.quick-action {
  padding: 14px 12px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: #fff;

  transition: 0.2s;

  cursor: pointer;
}

.quick-action:hover {
  border-color: #bfd2f4;

  background: #f8fbff;

  transform: translateY(-1px);
}

.quick-action-icon {
  width: 31px;
  height: 31px;

  border-radius: 9px;

  background: #edf4ff;

  color: var(--blue);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  margin-bottom: 9px;
}

.quick-action strong {
  display: block;

  font-size: 9px;
}

.quick-action span {
  display: block;

  color: var(--muted);

  font-size: 7px;

  margin-top: 3px;

  line-height: 1.4;
}

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

.toast {
  position: fixed;

  right: 25px;

  bottom: 25px;

  background: #172230;

  color: white;

  padding: 13px 17px;

  border-radius: 10px;

  font-size: 10px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);

  transform: translateY(80px);

  opacity: 0;

  transition: 0.3s;

  z-index: 1000;
}

.toast.show {
  transform: translateY(0);

  opacity: 1;
}

/* =========================================
       MOBILE
    ========================================= */

.mobile-menu {
  display: none;

  width: 36px;
  height: 36px;

  border: 1px solid var(--border);

  border-radius: 9px;

  background: white;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  margin-right: 12px;
}

@media (max-width: 1150px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .sidebar {
    width: 250px;

    transform: translateX(-100%);

    transition: 0.25s ease;
  }

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

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .topbar {
    padding: 0 18px;
  }

  .page-heading {
    display: flex;

    align-items: center;
  }

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

  .user-info {
    display: none;
  }

  .notification {
    display: none;
  }
}

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

    gap: 10px;
  }

  .summary-card {
    padding: 15px;
  }

  .summary-card h2 {
    font-size: 17px;
  }

  .summary-icon {
    width: 34px;
    height: 34px;
  }

  .welcome {
    padding: 23px;

    align-items: flex-start;

    flex-direction: column;
  }

  .welcome h2 {
    font-size: 21px;
  }

  .connection-status {
    width: 100%;
  }

  .service-box {
    grid-template-columns: auto 1fr;
  }

  .service-price {
    grid-column: 2;

    text-align: left;
  }

  .usage-content {
    grid-template-columns: 1fr;
  }

  .service-meta {
    grid-template-columns: 1fr;
  }

  .billing-highlight {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .billing-date {
    text-align: left;
  }

  .billing-action {
    width: 100%;
  }

  .billing-action .btn {
    flex: 1;
  }
}
