/* Current profile and footer; typography and surfaces inherit the existing site. */
main .profile-current .kp-overview {
  --kp-text: #f0f0f3;
  --kp-muted: #a9a9b3;
  --kp-line: rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(0,1fr);
  gap: 16px;
  margin-bottom: 20px;
  color: var(--kp-text);
  text-align: left;
}
.kp-overview *, .kp-overview *::before, .kp-overview *::after { box-sizing: border-box; }
.kp-overview .kp-identity, .kp-overview .kp-finance { min-width: 0; padding: 20px; border-radius: 20px; background: #121217; border: 1px solid var(--kp-line); }
.kp-overview .kp-identity { display: flex; flex-direction: column; container-type: inline-size; }
.kp-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.kp-overview .kp-avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 18px; object-fit: cover; }
.kp-person-text { min-width: 0; flex: 1; }
.kp-overview h1 { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.kp-roles { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--kp-muted); font-size: .8125rem; line-height: 1.4; }
.kp-overview button, .kp-overview a { font: inherit; -webkit-tap-highlight-color: transparent; }
.kp-overview button { cursor: pointer; }
.kp-overview button:disabled { cursor: default; opacity: .5; }
.kp-overview svg { width: 18px; height: 18px; flex: 0 0 18px; }
.kp-overview .kp-text-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0; color: #cdced7; font-size: .875rem; background: transparent; border: 0; border-radius: 8px; text-decoration: none; }
.kp-overview .kp-edit-name { margin-top: 0; justify-content: flex-start; }
.kp-overview .kp-icon-action { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; justify-content: center; align-items: center; padding: 0; color: #cdced7; background: transparent; border: 0; border-radius: 10px; }
.kp-contacts { margin-top: 12px; min-width: 0; }
.kp-contact { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; min-width: 0; }
.kp-contacts > .kp-contact:first-child { justify-content: flex-start; gap: 4px; }
.kp-email { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.45; }
.kp-contact-secondary { flex-wrap: wrap; column-gap: 16px; }
.kp-telegram { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: 4px 8px; font-size: .875rem; line-height: 1.45; }
.kp-telegram > span { color: var(--kp-muted); }
.kp-telegram > strong { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.kp-editor:empty { display: none; }
.kp-editor > div { width: 100%; max-width: none; margin-top: 6px; margin-bottom: 8px; }
.kp-editor input { min-width: 0; }
.kp-editor button { min-height: 44px; }
.kp-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--kp-line); display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.kp-meta > div { display: flex; flex-direction: column; gap: 3px; }
.kp-caption { display: block; color: var(--kp-muted); font-size: .8125rem; line-height: 1.4; font-weight: 400; }
.kp-meta time { font-size: .875rem; line-height: 1.4; font-weight: 500; }
.kp-overview .kp-id { position: relative; padding: 0; min-height: 44px; display: grid; grid-template-columns: auto 18px; align-items: center; column-gap: 8px; color: var(--kp-text); background: transparent; border: 0; border-radius: 8px; }
.kp-id .kp-caption { grid-column: 1 / -1; text-align: left; }
.kp-id strong { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kp-id svg { width: 15px; height: 15px; color: var(--kp-muted); }
.kp-presence { display: inline-flex; align-items: center; gap: 6px; color: var(--kp-muted); font-size: .8125rem; line-height: 1.4; margin-left: auto; }
.kp-presence i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.kp-presence-online { color: #80cca6; }
.kp-presence-afk { color: #e6c179; }
.kp-overview .kp-finance { display: flex; flex-direction: column; }
.kp-overview h2 { font-size: 1rem; line-height: 1.4; font-weight: 600; margin: 0; }
.kp-wallets { margin-top: 4px; }
.kp-wallet { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; min-width: 0; flex-wrap: wrap; }
.kp-wallet + .kp-wallet { border-top: 1px solid var(--kp-line); }
.kp-wallet > div { min-width: 0; }
.kp-amount { display: block; margin-top: 3px; font-size: 1.5rem; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kp-overview .kp-topup { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border: 0; border-radius: 8px; color: #dbdbe2; text-decoration: none; font-size: .875rem; flex-shrink: 0; }
.kp-topup svg { width: 14px; height: 14px; flex-basis: 14px; }
.kp-stats { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--kp-line); }
.kp-overview .kp-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 52px; color: var(--kp-text); text-decoration: none; border-radius: 6px; }
.kp-stat > strong { font-size: 1.375rem; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kp-spent-values { display: grid; gap: 3px; min-width: 0; width: 100%; }
.kp-spent-money { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.kp-spent-money > span { font-size: .75rem; line-height: 1.5; color: var(--kp-muted); }
.kp-spent-money > strong { font-size: .9375rem; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.kp-overview a:hover, .kp-overview button:not(:disabled):hover { color: #fff; }
.kp-overview :is(a,button,input):focus-visible { outline: 2px solid #cccbd5; outline-offset: 3px; }
.kp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kp-name-dialog { width: min(400px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 24px; background: #17171c; color: #f0f0f3; border: 1px solid #42424c; border-radius: 20px; box-shadow: 0 24px 80px #0008; }
.kp-name-dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
.kp-name-dialog h2 { font-size: 1.25rem; margin: 0 0 20px; }
.kp-name-dialog label { display: block; font-size: .875rem; color: #b9b9c2; margin-bottom: 8px; }
.kp-name-dialog input { display: block; width: 100%; height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: #f0f0f3; border: 1px solid #585862; border-radius: 10px; background: #222228; }
.kp-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.kp-name-dialog .kp-dialog-actions button { min-height: 44px; padding: 8px; border: 1px solid #53535e; border-radius: 10px; background: #2b2b33; color: #ededf3; font-size: .9375rem; }
.kp-name-dialog .kp-dialog-actions button[type=submit] { background: #ececf2; color: #151519; border-color: #ececf2; font-weight: 600; }
main .profile-current .kp-recent-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 12px 16px; }
main .profile-current .kp-recent-heading h3 { min-width: 0; font-size: 1rem; line-height: 1.4; margin: 0; align-self: center; }
main .profile-current .kp-recent-heading > div { align-self: center; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
main .profile-current .kp-recent-heading h3 > svg { width: 18px; height: 18px; flex: 0 0 18px; }
main .profile-current .kp-all-rentals { min-height: 44px; gap: 4px; white-space: nowrap; border-radius: 8px; font-size: .875rem; color: #cdced7; align-items: center; }
main .profile-current .profile-shortcuts svg, main .profile-current .profile-recent svg { stroke-width: 1.7; }
main .profile-current .profile-shortcuts > a > div > div:first-child { background: #ffffff08; }
main .profile-current .profile-shortcuts > a > div > div:first-child svg { color: #b9b9c4; }
main .profile-current .profile-offline-link { gap: 12px; }
main .profile-current .profile-offline-link > svg:first-child { width: 20px; height: 20px; color: #b9b9c4; }
main .profile-current .profile-recent a:focus-visible, main .profile-current .profile-shortcuts a:focus-visible { outline: 2px solid #cccbd5; outline-offset: 3px; }
.site-footer { opacity: 1 !important; transform: none !important; }
.site-footer :is(.text-dark-400,.text-dark-500) { color: #a9a9b3; }
@media (max-width: 767px) {
  .site-footer .grid:has(> a[href="/faq"]):has(> a[href="/terms"]) { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 4px 12px; width: 100%; max-width: 360px; }
  .site-footer .grid > a { min-width: 0; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
}
@media (min-width: 768px) and (max-width: 1535px) {
  .site-footer > .max-w-7xl { padding-right: 152px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer > .max-w-7xl > .flex { flex-wrap: wrap; gap: 16px 24px; }
  .site-footer nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@container (max-width: 14rem) {
  .kp-person { flex-direction: column; align-items: flex-start; }
  .kp-person-text { width: 100%; }
  .kp-overview .kp-avatar { width: 56px; height: 56px; flex-basis: 56px; }
}
@media (max-width: 767px) {
  main .profile-current .kp-overview { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 16px; }
  .kp-overview .kp-identity, .kp-overview .kp-finance { padding: 16px; }
  .kp-meta { margin-top: 12px; }
  .kp-stats { grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
  .kp-person { gap: 14px; }
  .kp-overview .kp-avatar { width: 64px; height: 64px; flex-basis: 64px; border-radius: 16px; }
  .kp-overview h1 { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) { .kp-overview *, .kp-overview *::before { animation: none !important; transition: none !important; } }
.kp-copy-notice { position:fixed; left:50%; bottom:max(28px,env(safe-area-inset-bottom)); z-index:100; transform:translate(-50%,8px); opacity:0; pointer-events:none; max-width:calc(100vw - 32px); padding:10px 16px; border:1px solid #ffffff24; border-radius:12px; background:#242426; color:#f4f4f5; box-shadow:0 8px 28px #0005; font-size:14px; line-height:1.4; transition:opacity .14s,transform .14s; }
.kp-copy-notice[data-visible=true] { transform:translate(-50%,0); opacity:1; }
.kp-stats > div.kp-stat { cursor:default; }
.kp-stats > div.kp-stat:hover { background:transparent; }
@media(prefers-reduced-motion:reduce){.kp-copy-notice{transition:none;}}
