.premium-profile-wrapper {
  --details-line: #dce5f2;
  --details-ink: #172745;
  --details-blue: #2f56c0;
}
.premium-profile-wrapper .hp-profile-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border: 1px solid #293658;
  border-radius: 18px;
  background: linear-gradient(120deg,#2c3266,#101a35 70%);
  color: #fff;
}
.premium-profile-wrapper .hp-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  background: url("../images/dashboard-persian-texture.png?v=3") center / cover;
  filter: grayscale(1) invert(1) brightness(5.7) contrast(1.38);
  mix-blend-mode: screen;
  opacity: .20;
  pointer-events: none;
}
.hp-profile-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid #ffffff36;
  border-radius: 12px;
  background: #ffffff13;
  font-size: 15px;
}
.hp-profile-identity { min-width: 0; }
.hp-profile-identity h1 {
  margin: 0 0 3px;
  color: inherit;
  font-size: clamp(17px,2vw,22px);
  font-weight: 750;
}
.hp-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  color: #ced9ef;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.hp-profile-meta bdi { min-width: 0; }
.hp-profile-primary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.premium-profile-wrapper .premium-card {
  min-width: 0;
  margin: 0 0 14px;
  border: 1px solid var(--details-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 21px #17274309;
}
.premium-profile-wrapper .hp-profile-primary .premium-card { margin: 0; }
.premium-profile-wrapper .premium-card::before { content: none; }
.premium-profile-wrapper .premium-card-header {
  padding: 9px 13px;
  border-color: var(--details-line);
  background: #f5f8fd;
}
.premium-profile-wrapper .premium-card-header .icon-wrapper {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px !important;
}
.premium-profile-wrapper .premium-card-title {
  color: var(--details-ink);
  font-size: 14px;
  font-weight: 750;
}
.premium-profile-wrapper .premium-card-body { padding: 14px; }
.premium-profile-wrapper .premium-card-body > .row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.premium-profile-wrapper .hp-profile-primary .premium-card-body > .row {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.premium-profile-wrapper .premium-card-body > .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0 !important;
}
.premium-profile-wrapper .hp-profile-primary :is(.hp-profile-mobile-field,.form-group:has(#inputPhone,#inputAddress1,#inputAddress2)) {
  grid-column: 1 / -1;
}
.premium-profile-wrapper label {
  margin-bottom: 5px;
  color: #435675;
  font-size: 12px;
  font-weight: 650;
}
.premium-profile-wrapper :is(.premium-input,.premium-select-wrapper select,#inputState,.control .form-control) {
  max-width: 100%;
  min-height: 40px;
  border-color: #dce5f2;
  border-radius: 9px;
  font-size: 13px;
}
.premium-profile-wrapper select.premium-input { height: 40px; }
.premium-profile-wrapper .premium-switch-item {
  margin: 0;
  border-radius: 10px;
}
.premium-profile-wrapper .premium-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--details-line);
  border-radius: 13px;
  background: #fff;
}
.premium-profile-wrapper .premium-actions button {
  min-height: 40px;
  padding-inline: 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}
.premium-profile-wrapper .premium-actions button:hover { transform: none; }
.premium-profile-wrapper .premium-actions button:focus-visible {
  outline: 2px solid var(--details-blue);
  outline-offset: 2px;
}
@media (max-width: 1023px) {
  .premium-profile-wrapper .hp-profile-primary { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 650px) {
  .premium-profile-wrapper .hp-profile-hero { padding: 13px; }
  .premium-profile-wrapper .premium-card-body > .row,
  .premium-profile-wrapper .hp-profile-primary .premium-card-body > .row {
    grid-template-columns: minmax(0,1fr);
  }
  .premium-profile-wrapper .premium-actions button { flex: 1 1 auto; }
}

.premium-profile-wrapper .hp-profile-mobile-field:has(input[type="checkbox"]) {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px !important;
  border: 1px solid var(--details-line);
  border-radius: 9px;
  background: #f7f9fd;
}
.premium-profile-wrapper .hp-profile-mobile-field:has(input[type="checkbox"]) > label { margin: 0; }
.hp-profile-email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));
  gap: 7px;
  padding: 12px;
}
.premium-profile-wrapper .hp-profile-email-option {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--details-line);
  border-radius: 9px;
  background: #f8fafd;
  box-shadow: none;
}
.premium-profile-wrapper .hp-profile-email-option:has(input:checked) {
  border-color: #cbd9fa;
  background: #eef4ff;
}
.premium-profile-wrapper .hp-profile-newsletter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-color: #d6e0fa;
  background: linear-gradient(120deg,#f6f1ff,#f3f8ff);
}
.hp-profile-newsletter-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 11px;
  background: #e8e4fd;
  color: #5846a7;
}
.hp-profile-newsletter-copy { flex: 1 1 220px; min-width: 0; }
.hp-profile-newsletter-copy p { margin: 4px 0 0; color: #546380; font-size: 12px; }
.premium-profile-wrapper .hp-profile-newsletter-toggle {
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #d6e0fa;
  background: #fff;
  box-shadow: none;
}
