/* Profile-only polish. No account data or portal behavior is changed. */
.hk-container:has(> .portal-layout .portal-profile-grid) {
  padding-top: 52px !important;
  padding-bottom: 84px !important;
}

.hk-container:has(> .portal-layout .portal-profile-grid) > .no-print:first-child {
  margin-bottom: 22px !important;
  font-size: 13px !important;
  letter-spacing: .02em;
}

.portal-layout:has(.portal-profile-grid) {
  gap: clamp(24px, 3vw, 48px);
}

.portal-layout:has(.portal-profile-grid) .portal-customer-card {
  display: none;
}

.portal-layout:has(.portal-profile-grid) .portal-sidebar {
  padding-top: 22px;
  min-height: 0;
}

.portal-main:has(.portal-profile-grid) {
  max-width: 1060px;
}

.portal-main:has(.portal-profile-grid) .portal-page-title {
  font-size: clamp(32px, 3vw, 42px);
  letter-spacing: -.035em;
  margin-bottom: 6px;
}

.portal-main:has(.portal-profile-grid) .portal-page-title::after {
  content: "Manage your details and see your account at a glance.";
  display: block;
  font: 400 15px/1.5 var(--hk-font-body, sans-serif);
  letter-spacing: 0;
  color: var(--hk-gray);
  margin: 7px 0 28px;
}

.portal-profile-grid {
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 22px;
}

.portal-profile-grid .portal-card {
  border-color: rgba(255,255,255,.105);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

.portal-profile-grid > div:first-child > .portal-card:first-child {
  background: radial-gradient(circle at 50% 0, rgba(196,18,48,.16), transparent 55%), #1b1b1b;
  padding: 30px 24px 24px !important;
}

.portal-profile-grid > div:first-child > .portal-card:first-child > div:first-child {
  box-shadow: 0 0 0 7px rgba(196,18,48,.08);
  margin-bottom: 18px !important;
}

.portal-profile-grid > div:first-child > .portal-card:first-child h3 {
  font-size: 21px !important;
}

.portal-profile-grid > div:first-child > .portal-card:first-child p {
  overflow-wrap: anywhere;
}

.portal-profile-grid > div:first-child > .portal-card:first-child > div:last-child {
  gap: 10px !important;
  margin-top: 24px !important;
}

.portal-profile-grid > div:first-child > .portal-card:first-child > div:last-child > div {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px !important;
  padding: 15px 10px !important;
}

.portal-profile-grid > div:first-child > .portal-card:nth-child(2) {
  padding: 22px 24px;
}

.portal-profile-grid > div:first-child > .portal-card:nth-child(2) h4 {
  color: #f1b76b !important;
  letter-spacing: .1em !important;
}

.portal-profile-grid > div:first-child > .portal-card:nth-child(2) > div {
  gap: 12px;
  align-items: baseline;
  font-size: 13px !important;
  padding: 12px 0 !important;
}

.portal-profile-grid > div:first-child > .portal-card:nth-child(2) > div span:last-child {
  max-width: 58% !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child {
  padding: clamp(24px, 3vw, 34px);
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:first-child {
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding-bottom: 22px;
  margin-bottom: 8px !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child h3 {
  font-size: 22px !important;
}

.portal-profile-grid .portal-btn-sm {
  border-color: rgba(196,18,48,.5);
  color: #fff;
  background: rgba(196,18,48,.17);
  font-weight: 700;
  min-height: 38px;
}

.portal-profile-grid .portal-btn-sm:hover,
.portal-profile-grid .portal-btn-sm:focus-visible {
  background: #a50e26;
  border-color: #dc3450;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) {
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr) !important;
  column-gap: 30px !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) > div {
  padding: 18px 0 !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) > div > div:first-child {
  color: #aaa8a8 !important;
  letter-spacing: .09em !important;
  margin-bottom: 7px !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) > div > div:last-child {
  font-size: 15px !important;
  overflow-wrap: anywhere;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) > div:nth-child(2) > div:last-child {
  font-size: 14px !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child form > div:first-child > div:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:first-child form > div:first-child > div:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.portal-profile-grid form .hk-input {
  width: 100%;
  min-width: 0;
}

.portal-profile-grid > div:first-child > .portal-card:first-child > div:last-child > div:first-child > div:first-child {
  color: #fa405b !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:nth-child(2) {
  margin-top: 22px !important;
  padding: 25px 30px;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:nth-child(2) h3 {
  font-size: 17px !important;
  margin-bottom: 9px !important;
}

.portal-profile-grid > div:nth-child(2) > .portal-card:nth-child(2) p {
  font-size: 14px !important;
  margin-bottom: 0 !important;
}

/* Sign-out remains in the sidebar; avoid a duplicate destructive-looking action. */
.portal-profile-grid > div:nth-child(2) > .portal-card:nth-child(2) button {
  display: none !important;
}

@media (max-width: 1050px) {
  .portal-profile-grid { grid-template-columns: 1fr; }
  .portal-profile-grid > div:first-child { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; }
}

@media (max-width: 680px) {
  .hk-container:has(> .portal-layout .portal-profile-grid) { padding-top: 30px !important; }
  .portal-profile-grid > div:first-child { display: flex !important; }
  .portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) { grid-template-columns: 1fr !important; }
  .portal-profile-grid > div:nth-child(2) > .portal-card:first-child > div:nth-child(2) > div { grid-column: auto !important; }
  .portal-main:has(.portal-profile-grid) .portal-page-title::after { font-size: 14px; }
  .portal-profile-grid > div:nth-child(2) > .portal-card:first-child form > div:first-child { grid-template-columns: 1fr !important; }
  .portal-profile-grid > div:nth-child(2) > .portal-card:first-child form > div:first-child > div { grid-column: 1 !important; grid-row: auto !important; }
}
