/* Presentation only. Profile data and actions remain in account.js. */
body[data-page="profile"] {
  --pf-border: rgba(255, 255, 255, .09);
  --pf-soft: #a7a4b6;
  background:
    radial-gradient(ellipse 60% 28% at 90% 2%, rgba(230, 57, 70, .13), transparent 70%),
    radial-gradient(ellipse 46% 36% at 2% 44%, rgba(100, 72, 137, .09), transparent 75%),
    #0a0a12;
}

body[data-page="profile"] .pf {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin: 48px auto 100px;
  padding: 0;
}

body[data-page="profile"] .pf [hidden] { display: none !important; }

body[data-page="profile"] .pf > h1 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 204px;
  margin: 0 0 26px;
  padding: 34px clamp(26px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(230, 57, 70, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 12%, rgba(230, 57, 70, .22), transparent 31%),
    linear-gradient(115deg, #1e1725 0%, #15131f 53%, #25151e 100%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .06);
  color: #fff7fa;
  font-size: clamp(40px, 5.7vw, 70px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
}

body[data-page="profile"] .pf > h1::before {
  content: "KARMA  /  ACCOUNT";
  display: block;
  margin-bottom: 18px;
  color: #f09ca4;
  font: 750 11px/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .24em;
}

body[data-page="profile"] .pf > h1::after {
  content: "K";
  position: absolute;
  z-index: -1;
  right: 5%;
  top: -41%;
  color: rgba(255, 255, 255, .035);
  font: 900 clamp(240px, 36vw, 420px)/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.12em;
  transform: rotate(-8deg);
  pointer-events: none;
}

body[data-page="profile"] .pf-cols {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.35fr);
  gap: 22px;
  margin-top: 0;
}

body[data-page="profile"] .pf-side,
body[data-page="profile"] .pf-main { gap: 22px; }

body[data-page="profile"] .pf .card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.8vw, 29px);
  overflow: hidden;
  border: 1px solid var(--pf-border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 42%),
    #13131e;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .13), inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

body[data-page="profile"] .pf > .card { margin-top: 22px; }
body[data-page="profile"] .pf-side > .card,
body[data-page="profile"] .pf-main > .card { margin-top: 0; }

body[data-page="profile"] .pf .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, .78) 22%, rgba(230, 57, 70, .13) 66%, transparent);
  opacity: .7;
  pointer-events: none;
}

body[data-page="profile"] .pf .card[data-block="account"] {
  border-color: rgba(230, 57, 70, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 57, 70, .11), transparent 35%),
    #15141f;
}

body[data-page="profile"] .pf .card h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: #f2edf4;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.02em;
}

body[data-page="profile"] .pf .card h3::before {
  content: "";
  width: 7px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: linear-gradient(#ff777f, #d4293b);
  box-shadow: 0 0 18px rgba(230, 57, 70, .36);
}

body[data-page="profile"] .pf .card p:not(.msg):not(.kicker):not(.lede),
body[data-page="profile"] .pf .card .steps { line-height: 1.65; }

body[data-page="profile"] .pf .row,
body[data-page="profile"] .pf .sub-item {
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

body[data-page="profile"] .pf .row b,
body[data-page="profile"] .pf .sub-left span { color: var(--pf-soft); }

body[data-page="profile"] .pf .row span {
  min-width: 0;
  color: #f5f0f5;
  text-align: right;
  overflow-wrap: anywhere;
}

body[data-page="profile"] .pf .row:last-child,
body[data-page="profile"] .pf .sub-item:last-child { border-bottom: 0; }

body[data-page="profile"] .pf .sub-st.live { color: #70df97; }
body[data-page="profile"] .pf .sub-st.updating,
body[data-page="profile"] .pf .sub-st.soon { color: #82bdff; }

body[data-page="profile"] .pf .row-form { gap: 10px; margin-top: 14px; }
body[data-page="profile"] .pf .card input {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: #0d0e17;
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body[data-page="profile"] .pf .card input:focus-visible {
  outline: none;
  border-color: rgba(255, 104, 116, .78);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, .15);
}

body[data-page="profile"] .pf .btn {
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(130deg, #ef4b56, #c9293a);
  box-shadow: 0 8px 20px rgba(230, 57, 70, .16);
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body[data-page="profile"] .pf .btn.ghost {
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}

body[data-page="profile"] .pf .btn:focus-visible,
body[data-page="profile"] .pf a:focus-visible {
  outline: 2px solid #ff7b86;
  outline-offset: 3px;
}

body[data-page="profile"] .pf .actions-inline { gap: 10px; }
body[data-page="profile"] .pf .msg { line-height: 1.5; }

body[data-page="profile"] .pf .paid-pack {
  border-color: rgba(103, 221, 143, .31);
  background:
    radial-gradient(circle at 95% 0, rgba(103, 221, 143, .14), transparent 38%),
    #122019;
}

body[data-page="profile"] .pf .paid-pack::before {
  background: linear-gradient(90deg, transparent, #62d98d 24%, transparent);
}

body[data-page="profile"] .pf .nade-pf-row {
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #0e0f18;
}

body[data-page="profile"] .pf .buy-table th {
  padding-block: 11px;
  border-bottom-color: rgba(255, 255, 255, .14);
}

body[data-page="profile"] .pf .buy-table td {
  padding-block: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

body[data-page="profile"] .pf .buy-table tbody tr:hover { background: rgba(255, 255, 255, .025); }

body[data-page="profile"] .pf-notice,
body[data-page="profile"] .pf .site-banner:not([hidden]) {
  margin: 0 0 22px;
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .04);
}

@media (hover: hover) {
  body[data-page="profile"] .pf .card:hover {
    border-color: rgba(230, 57, 70, .32);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .22), 0 0 0 1px rgba(230, 57, 70, .045);
    transform: translateY(-3px);
  }
  body[data-page="profile"] .pf .btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
  body[data-page="profile"] .pf .btn.ghost:hover { border-color: rgba(255, 117, 127, .48); }
}

@keyframes pf-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="profile"] .pf > h1 { animation: pf-enter .65s backwards; }
  body[data-page="profile"] .pf .card { animation: pf-enter .56s backwards; }
  body[data-page="profile"] .pf-side > .card:nth-child(1),
  body[data-page="profile"] .pf-main > .card:nth-child(1) { animation-delay: .08s; }
  body[data-page="profile"] .pf-side > .card:nth-child(2),
  body[data-page="profile"] .pf-main > .card:nth-child(2) { animation-delay: .15s; }
  body[data-page="profile"] .pf-side > .card:nth-child(n+3),
  body[data-page="profile"] .pf-main > .card:nth-child(n+3),
  body[data-page="profile"] .pf > .card { animation-delay: .22s; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="profile"] .pf .card,
  body[data-page="profile"] .pf .btn,
  body[data-page="profile"] .pf .card input { transition: none; animation: none; }
}

@media (max-width: 900px) {
  body[data-page="profile"] .pf {
    width: min(680px, calc(100% - 32px));
    margin: 26px auto 70px;
  }
  body[data-page="profile"] .pf-cols { grid-template-columns: 1fr; }
  body[data-page="profile"] .pf > h1 { min-height: 166px; border-radius: 22px; }
}

@media (max-width: 520px) {
  body[data-page="profile"] .pf { width: calc(100% - 24px); }
  body[data-page="profile"] .pf > h1 { min-height: 148px; padding: 28px 24px; font-size: 42px; }
  body[data-page="profile"] .pf > h1::after { right: -5%; }
  body[data-page="profile"] .pf .card { padding: 20px 18px; border-radius: 18px; }
  body[data-page="profile"] .pf .row { gap: 14px; }
  body[data-page="profile"] .pf .row span { font-size: 12px; }
  body[data-page="profile"] .pf .row-form { grid-template-columns: 1fr; }
  body[data-page="profile"] .pf .row-form .btn { width: 100%; }
  body[data-page="profile"] .pf .buy-table { display: block; overflow-x: auto; }
}
