.nav-link.active {
  color: #fff;
  background: linear-gradient(
    100deg,
    rgba(56, 200, 21, 0.28),
    rgba(56, 200, 21, 0.12)
  );
  box-shadow: inset 3px 0 0 var(--green);
}

.address-manager {
  margin-top: 24px;
}
.address-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #dce5ed;
}
.address-row p {
  margin: 5px 0;
  color: #60758a;
}
.address-row > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.danger-button {
  border: 0;
  border-radius: 9px;
  background: #cd3347;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .address-row {
    flex-direction: column;
  }
}
.address-manager .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.address-manager .form-field {
  display: grid;
  gap: 6px;
}
.address-manager .form-field.full {
  grid-column: 1/-1;
}
.address-manager input:not([type="checkbox"]) {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
}
.address-manager input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  accent-color: var(--green-dark);
}
.address-manager label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.address-location-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #dce8f0;
  border-radius: 11px;
  background: #f6fafc;
}
.address-location-tools .secondary-button {
  flex: 0 0 auto;
}
.address-location-tools .form-message {
  flex: 1;
  min-height: 0;
  margin: 0;
}
@media (max-width: 700px) {
  .address-manager .form-grid {
    grid-template-columns: 1fr;
  }
  .address-location-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: #ebfbe7;
}

.main-content {
  width: min(100% - 64px, 1000px);
  margin: 0 auto;
  padding: 50px 0 70px;
}

.page-heading {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.page-heading p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-summary {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 42px 28px;
  text-align: center;
  background: linear-gradient(155deg, #0a2948, #071c36);
  color: #fff;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #056bad);
  font-size: 2rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.profile-summary h2 {
  margin: 0;
  font-size: 1.02rem;
}

.profile-summary p {
  margin: 6px 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #bdf8ad;
  background: rgba(56, 200, 21, 0.14);
  font-size: 0.67rem;
  font-weight: 700;
}

.profile-form {
  padding: 36px 40px;
}

.profile-form header {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8eef3;
}

.profile-form h2 {
  margin: 0 0 7px;
  font-size: 1.05rem;
}

.profile-form header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #7e90a2;
  font-size: 0.85rem;
}

.input-wrapper input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 43px;
  outline: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 0.82rem;
  transition: 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 156, 229, 0.09);
}

.field-error {
  min-height: 16px;
  display: block;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.66rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.primary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(100deg, var(--green), var(--green-dark));
  box-shadow: 0 9px 20px rgba(42, 176, 16, 0.2);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-radius: 11px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

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

.toast.error {
  background: var(--danger);
}

.toast i {
  color: #78ef5c;
}

@media (max-width: 760px) {
  .main-content {
    width: min(100% - 30px, 1000px);
    padding-top: 32px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    padding: 30px;
  }

  .profile-avatar {
    width: 74px;
    height: 74px;
    font-size: 1.5rem;
  }

  .profile-form {
    padding: 27px 24px;
  }

  .user-summary > span:last-child {
    display: none;
  }
}

@media (max-width: 440px) {
  .topbar {
    padding: 0 16px;
  }

  .form-actions,
  .primary-button {
    width: 100%;
  }

  .toast {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
}
