/* =========================
           CONTENT
        ========================= */

.content {
  padding: 30px 32px 40px;
  max-width: 1450px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}

.breadcrumb span:last-child {
  color: var(--blue);
  font-weight: 600;
}

/* =========================
           PROFILE HERO
        ========================= */

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(115deg, #0d47c7 0%, #1769ff 55%, #08afd5 100%);
  padding: 28px 30px;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 15px 40px rgba(23, 105, 255, 0.16);
}

.profile-hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 45px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  right: -65px;
  top: -105px;
}

.profile-hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 30px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  right: 160px;
  bottom: -100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-large {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-info h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 5px;
}

.hero-info p {
  font-size: 12px;
  opacity: 0.78;
  margin-bottom: 12px;
}

.customer-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 10px;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 7px;
}

.status-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45e69c;
  box-shadow: 0 0 0 4px rgba(69, 230, 156, 0.12);
}

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

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 21px 23px 17px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.card-body {
  padding: 23px;
}

/* =========================
           FORM
        ========================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: #526174;
}

.form-control {
  width: 100%;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 13px;
  font-size: 12px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: 0.2s;
}

textarea.form-control {
  height: 92px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

.form-control:focus {
  border-color: rgba(23, 105, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.08);
}

.form-control:disabled {
  background: #f7f9fc;
  color: #7d8998;
  cursor: not-allowed;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b98a8;
}

.input-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.input-wrap .form-control {
  padding-left: 39px;
}

.input-note {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

.btn {
  height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.2s;
}

.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.btn-secondary {
  background: #f1f4f8;
  color: #5f6d7e;
}

.btn-secondary:hover {
  background: #e9eef5;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 105, 255, 0.18);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* =========================
           RIGHT CARDS
        ========================= */

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

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:first-child {
  padding-top: 0;
}

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

.info-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon.cyan {
  background: #e9fafd;
  color: var(--cyan);
}

.info-icon.green {
  background: #e9faf3;
  color: var(--green);
}

.info-icon.purple {
  background: #f0edff;
  color: var(--purple);
}

.info-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.info-text strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.info-text span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.info-value {
  font-size: 10px;
  font-weight: 600;
  color: #526174;
  text-align: right;
}

/* =========================
           SECURITY
        ========================= */

.security-card {
  margin-top: 22px;
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.security-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.security-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.security-text strong {
  font-size: 11px;
  display: block;
}

.security-text span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.security-status {
  font-size: 9px;
  font-weight: 600;
  color: var(--green);
  background: #eafaf3;
  padding: 5px 8px;
  border-radius: 7px;
}

.security-status.warning {
  color: #c77b16;
  background: #fff5e7;
}

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

.package-card {
  margin-top: 22px;
  overflow: hidden;
}

.package-box {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f7ff, #eefbfc);
  border: 1px solid #e2ebf7;
}

.package-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.package-name {
  font-size: 15px;
  font-weight: 700;
}

.package-code {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.badge-active {
  background: #e9faf3;
  color: var(--green);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 600;
}

.package-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.package-detail {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  padding: 11px;
}

.package-detail span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-bottom: 4px;
}

.package-detail strong {
  font-size: 11px;
}

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

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  min-width: 280px;
  max-width: 360px;
  padding: 13px 15px;
  background: #182230;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 2000;
}

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

.toast-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(24, 185, 121, 0.15);
  color: #45e69c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

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

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

  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
  }

  .security-card,
  .package-card {
    margin-top: 0;
  }
}

@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  }

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

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .topbar {
    padding: 0 20px;
  }

  .content {
    padding: 25px 20px 35px;
  }

  .right-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .topbar {
    height: 68px;
  }

  .page-title {
    font-size: 16px;
  }

  .page-subtitle {
    display: none;
  }

  .user-info {
    display: none;
  }

  .user-mini {
    border-left: 0;
    padding-left: 0;
  }

  .notification {
    display: none;
  }

  .content {
    padding: 20px 15px 30px;
  }

  .profile-hero {
    padding: 22px;
  }

  .hero-content {
    align-items: flex-start;
  }

  .profile-avatar-large {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 20px;
  }

  .hero-info h1 {
    font-size: 19px;
  }

  .hero-info p {
    font-size: 10px;
  }

  .status-online {
    display: block;
    margin: 8px 0 0;
  }

  .card-header {
    padding: 18px;
  }

  .card-body {
    padding: 18px;
  }

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

  .form-group.full {
    grid-column: auto;
  }

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

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .breadcrumb {
    margin-bottom: 13px;
  }
}

@media (max-width: 420px) {
  .hero-content {
    gap: 13px;
  }

  .profile-avatar-large {
    width: 55px;
    height: 55px;
  }

  .customer-id {
    font-size: 9px;
  }

  .info-item,
  .security-row {
    gap: 8px;
  }
}
