/* =========================================================================
   Vexlip — konta: logowanie/rejestracja, Vexlip PRO, profil, ustawienia konta.
   Wspólne elementy nagłówka (menu konta, odznaka PRO) są w site.css.
   ========================================================================= */

/* ---------- Pola formularzy ---------- */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--dim); }
.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #11131A;
  color: var(--text);
  font-size: .98rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #6E7689; }
.input:focus { border-color: var(--c2); background: #141722; box-shadow: 0 0 0 3px rgba(47, 123, 255, .25); }
.input[aria-invalid="true"] { border-color: rgba(255, 77, 106, .7); box-shadow: 0 0 0 3px rgba(255, 77, 106, .15); }
.textarea { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 76px; }
.input-wrap.has-prefix .input { padding-left: 32px; padding-right: 14px; }
.input-prefix { position: absolute; left: 14px; color: var(--muted); font-weight: 600; pointer-events: none; }
.pw-toggle {
  position: absolute;
  right: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  color: var(--dim);
  font-size: .82rem;
  font-weight: 600;
}
.pw-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.field-hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.field-error { color: #FF8FA3; font-size: .82rem; font-weight: 550; }
.form-error, .acc-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
}
.form-error { margin-top: 16px; border: 1px solid rgba(255, 77, 106, .4); background: rgba(255, 77, 106, .1); color: #FFD3DB; }
.form-error .icon, .acc-msg .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.form-error .icon, .acc-msg.is-error .icon { color: var(--danger); }
.acc-msg { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--dim); }
.acc-msg.is-ok { border-color: rgba(34, 211, 154, .35); background: rgba(34, 211, 154, .08); color: #C8F5E5; }
.acc-msg.is-ok .icon { color: var(--ok); }
.acc-msg.is-error { border-color: rgba(255, 77, 106, .4); background: rgba(255, 77, 106, .1); color: #FFD3DB; }
.acc-msg a, .form-error a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logowanie / rejestracja ---------- */
.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + clamp(20px, 5vh, 56px)) 16px 56px;
}
.auth-page .aurora { opacity: .4; }
.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20, 22, 30, .94), rgba(13, 15, 20, .96));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.auth-card::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: .9;
}
.auth-head { text-align: center; }
.auth-logo { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 13px; box-shadow: 0 10px 30px -10px rgba(47, 123, 255, .8); }
.auth-head h1 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; }
.auth-sub { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.auth-tabs { display: flex; width: 100%; margin: 22px 0 20px; }
.auth-tabs .tab { flex: 1 1 0; justify-content: center; }
.auth-submit { width: 100%; margin-top: 22px; }
.auth-note { margin-top: 12px; text-align: center; color: var(--muted); font-size: .8rem; }
.auth-browser-box .btn { width: 100%; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--c1); font-weight: 600; }
.auth-foot a:hover { color: #7FE3FF; }
.auth-avatar.avatar { width: 72px; height: 72px; margin: 0 auto 14px; font-size: 1.3rem; }
.auth-done { display: grid; gap: 10px; margin-top: 22px; }
.auth-done .btn { width: 100%; }
.pw-meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--danger); transition: width .25s var(--ease), background-color .25s; }
.pw-meter[data-level="ok"] i { background: var(--warn); }
.pw-meter[data-level="strong"] i { background: var(--ok); }

/* ---------- Vexlip PRO ---------- */
.pro-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 8vh, 96px)) 0 clamp(48px, 8vh, 88px); }
.pro-hero .aurora { opacity: .5; }
.pro-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); align-items: center; gap: clamp(32px, 5vw, 80px); }
.pro-hero-copy h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.04; }
.pro-hero-copy .eyebrow .icon { width: 15px; height: 15px; }
.pro-lead { max-width: 560px; margin-top: 20px; color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.pro-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; list-style: none; color: var(--dim); font-size: .92rem; }
.pro-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.pro-hero-points .icon { color: var(--ok); }
.price-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 26px;
  border: 1px solid rgba(155, 61, 255, .35);
  background: radial-gradient(380px 200px at 100% 0%, rgba(155, 61, 255, .2), transparent 70%), radial-gradient(380px 220px at 0% 100%, rgba(0, 200, 255, .12), transparent 70%), #10121A;
  box-shadow: 0 40px 100px -40px rgba(110, 80, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.price-card-top .pro-badge { margin: 0; height: 24px; padding: 0 10px; font-size: .74rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; }
.price-amount { font: 850 clamp(3rem, 6vw, 4rem)/1 var(--font-display); letter-spacing: -.05em; }
.price-cur { font-weight: 800; font-size: 1.2rem; color: var(--dim); }
.price-per { color: var(--muted); font-size: 1rem; }
.price-note { margin-top: 8px; color: var(--muted); font-size: .86rem; }
.price-list { display: grid; gap: 10px; margin: 22px 0; padding: 18px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.price-list .icon { width: 17px; height: 17px; color: var(--c1); }
.price-actions { display: grid; gap: 10px; }
.price-buy { width: 100%; }
.price-login { color: var(--muted); font-size: .86rem; text-align: center; }
.price-login a { color: var(--c1); font-weight: 600; }
.price-status { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.45; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.price-status .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.price-status.is-ok { border-color: rgba(34, 211, 154, .35); background: rgba(34, 211, 154, .08); color: #C8F5E5; }
.price-status.is-ok .icon { color: var(--ok); }
.price-status.is-error { border-color: rgba(245, 184, 75, .4); background: rgba(245, 184, 75, .08); color: #FBE3B5; }
.price-status.is-error .icon { color: var(--warn); }
.price-fine { margin-top: 14px; color: #6E7689; font-size: .76rem; text-align: center; }

.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.perk p a { color: var(--c1); }
.perk:nth-child(-n+2) { border-color: rgba(155, 61, 255, .28); }

.plan-table { border-radius: var(--r-lg); border: 1px solid var(--line); background: #0E1015; overflow: hidden; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px; align-items: center; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row > span { padding: 14px clamp(12px, 2vw, 22px); min-width: 0; }
.plan-row > [role="rowheader"] { font-weight: 600; }
.plan-row > [role="cell"] { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--dim); font-size: .9rem; }
.plan-row > .is-pro { align-self: stretch; background: linear-gradient(180deg, rgba(47, 123, 255, .08), rgba(155, 61, 255, .07)); }
.plan-row small { display: block; color: var(--muted); font-size: .76rem; }
.plan-row .yes .icon { width: 20px; height: 20px; color: var(--ok); }
.plan-row .no .icon { width: 20px; height: 20px; color: #4A5063; }
.plan-row .yes.is-pro { color: #fff; font-weight: 600; }
.plan-row .pro-badge { margin: 0; }
.plan-head { background: #12141B; }
.plan-head > span { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-top: 12px; padding-bottom: 12px; }
.plan-head > span:not(:first-child) { text-align: center; }
.plan-head > .is-pro { color: #fff; position: relative; display: block; }
.plan-head > .is-pro::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.plan-foot { background: #11131A; }
.plan-foot b { color: #fff; font-size: 1.02rem; }
.plan-row:not(.plan-head):hover { background-color: rgba(255, 255, 255, .015); }
@media (max-width: 900px) {
  .pro-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .price-card { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .pro-hero { padding-top: calc(var(--nav-h) + 28px); }
  /* korzyści: ikona obok tekstu — krótsza lista na telefonie */
  .perk-grid { gap: 10px; }
  .perk.card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .perk .feature-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
  .perk h3 { font-size: 1.04rem; }
  .perk p { margin-top: 4px; font-size: .9rem; }
  .plan-row { grid-template-columns: minmax(0, 1fr) 76px 92px; }
  .plan-row > span { padding: 12px 10px; }
  .plan-row > [role="rowheader"] { padding-left: 14px; font-size: .88rem; line-height: 1.35; }
  .plan-row > [role="cell"] { font-size: .8rem; }
  .plan-head > span { font-size: .68rem; letter-spacing: .06em; }
}

/* ---------- Profil ---------- */
.profile-page { padding-top: var(--nav-h); }
.embed .profile-page { padding-top: 0; }
/* w aplikacji (tryb osadzony) nie ma paska strony — bez odstępu na niego */
.embed .account-page { padding-top: clamp(16px, 3vh, 28px); }
.embed .pro-hero { padding-top: clamp(28px, 6vh, 64px); }
.embed .auth-page { padding-top: clamp(16px, 4vh, 40px); }
.profile-banner {
  position: relative;
  height: clamp(150px, 22vw, 340px);
  max-width: var(--maxw-wide);
  margin: 0 auto;
  overflow: hidden;
  background: var(--tile, #13151C);
}
.profile-banner > .sk { position: absolute; inset: 0; border-radius: 0; }
.profile-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-banner.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(255, 255, 255, .22), transparent 70%),
    repeating-linear-gradient(-24deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 48px);
}
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 11, 15, .85), rgba(10, 11, 15, 0) 55%); }
.profile-banner.is-empty { height: 40px; background: none; }
.profile-banner.is-empty::after { display: none; }
@media (min-width: 2080px) { .profile-banner { border-radius: 0 0 24px 24px; } }

.profile-container { position: relative; padding-bottom: 48px; }
.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "avatar id actions" "avatar stats stats";
  column-gap: clamp(16px, 2.4vw, 28px);
  row-gap: 14px;
  align-items: start;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
.profile-head.is-state { display: block; margin-top: 24px; }
/* tylko avatar nachodzi na banner — nazwa i opis zaczynają się pod nim */
.profile-avatar-wrap { grid-area: avatar; align-self: start; margin-top: calc(clamp(104px, 12vw, 148px) * -.62 - 18px); padding: 5px; border-radius: 50%; background: var(--bg); }
.profile-head.is-pro .profile-avatar-wrap { background: var(--grad); padding: 4px; box-shadow: 0 16px 40px -12px rgba(110, 80, 255, .8); }
.profile-avatar.avatar, .profile-avatar.sk {
  display: grid;
  width: clamp(104px, 12vw, 148px);
  height: clamp(104px, 12vw, 148px);
  border-radius: 50%;
  font-size: clamp(2rem, 3vw, 2.8rem);
  box-shadow: 0 0 0 4px var(--bg);
}
.profile-id { grid-area: id; min-width: 0; padding-bottom: 4px; }
.profile-id h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.profile-id h1 .pro-badge { margin: 0; height: 24px; padding: 0 9px; font-size: .72rem; }
.profile-name { min-width: 0; overflow-wrap: anywhere; }
.profile-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: .95rem; }
.profile-handle > span:first-child { color: var(--dim); font-weight: 600; }
.profile-joined { display: inline-flex; align-items: center; gap: 6px; }
.profile-joined .icon { width: 15px; height: 15px; }
.profile-bio { margin-top: 12px; max-width: 64ch; color: var(--dim); white-space: pre-line; overflow-wrap: anywhere; }
.profile-bio.is-empty { color: var(--muted); font-style: italic; }
.profile-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.profile-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.profile-stats li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0F1117; color: var(--muted); font-size: .86rem; }
.profile-stats b { color: #fff; font: 700 1.02rem/1 var(--mono); }

.profile-body { margin-top: clamp(24px, 4vh, 36px); }
.profile-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tab-count { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); font: 600 .74rem/1.5 var(--mono); color: var(--dim); }
.tab-count:empty { display: none; }

/* pionowe karty Reels na profilu */
.preel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.preel { position: relative; display: block; border-radius: 16px; overflow: hidden; isolation: isolate; min-width: 0; }
.preel-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tile, #1A1D27);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.preel-thumb.sk { box-shadow: none; }
.preel-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.preel-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 48%); pointer-events: none; }
.preel:hover .preel-thumb { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0, 200, 255, .38), 0 20px 44px -18px rgba(47, 123, 255, .65); }
.preel:hover .preel-thumb img { transform: scale(1.04); }
.preel:hover .clip-play, .preel:focus-visible .clip-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preel-dur { right: 10px; top: 10px; }
.preel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px; pointer-events: none; }
.preel-title { font-weight: 650; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.preel-stats { display: flex; gap: 12px; margin-top: 6px; color: rgba(255, 255, 255, .85); font: 500 .76rem/1 var(--mono); }
.preel-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.preel-stats .icon { width: 13px; height: 13px; }
.preel.is-skeleton { pointer-events: none; }

@media (max-width: 760px) {
  .profile-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "avatar" "id" "stats" "actions";
    justify-items: start;
    margin-top: -52px;
  }
  .profile-avatar-wrap { margin-top: 0; }
  .profile-actions { justify-content: flex-start; width: 100%; }
  .profile-actions .btn { flex: 1 1 auto; }
  .profile-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .profile-stats li { flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; font-size: .72rem; text-align: center; }
  .profile-toolbar .tabs { flex: 1 1 100%; }
  .profile-toolbar .tab { flex: 1 1 0; justify-content: center; }
  .preel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .preel-info { padding: 10px; }
}

/* ---------- Ustawienia konta ---------- */
.account-page { padding-top: calc(var(--nav-h) + clamp(20px, 4vh, 40px)); padding-bottom: 56px; }
.account-container { max-width: 980px; }
.account-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.account-header h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.account-sub { margin-top: 6px; color: var(--muted); }
.account-grid { display: grid; gap: 18px; }
.acc-card { padding: clamp(18px, 2.4vw, 28px); }
.acc-card-head { margin-bottom: 18px; }
.acc-card-head h2 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; }
.acc-card-head p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.acc-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.acc-form-foot .acc-msg { margin-right: auto; }
.acc-form-foot .field-hint { margin-right: auto; max-width: 52ch; }

.acc-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(34, 211, 154, .35); background: rgba(34, 211, 154, .07); }
.acc-notice strong { display: block; font-size: 1.02rem; }
.acc-notice p { margin-top: 4px; color: var(--dim); font-size: .9rem; }
.acc-notice-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(34, 211, 154, .14); color: var(--ok); }
.acc-notice.is-pro { border-color: rgba(155, 61, 255, .45); background: radial-gradient(500px 160px at 0% 0%, rgba(155, 61, 255, .18), transparent 70%), rgba(47, 123, 255, .06); }
.acc-notice.is-pro .acc-notice-icon { background: var(--grad); color: #fff; }
.acc-notice.is-wait { border-color: rgba(245, 184, 75, .4); background: rgba(245, 184, 75, .07); }
.acc-notice.is-wait .acc-notice-icon { background: rgba(245, 184, 75, .14); color: var(--warn); }

/* podgląd banera i avatara */
.look-preview { border-radius: 18px; border: 1px solid var(--line-2); background: #0D0F14; overflow: hidden; }
.look-banner {
  position: relative;
  aspect-ratio: 3 / 1;
  max-height: 260px;
  width: 100%;
  overflow: hidden;
  background: var(--tile, #1A1D27);
}
.look-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-banner.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 20% 10%, rgba(255, 255, 255, .22), transparent 70%), repeating-linear-gradient(-24deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 40px);
}
.look-banner-actions { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; gap: 8px; }
.look-btn { background: rgba(10, 11, 15, .72); border-color: rgba(255, 255, 255, .16); }
.look-btn:hover { background: rgba(10, 11, 15, .9); }
.look-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 0 18px 18px; }
.look-avatar { position: relative; margin-top: -46px; padding: 4px; border-radius: 50%; background: #0D0F14; flex: none; }
.look-avatar.is-pro { background: var(--grad); }
.look-avatar-img.avatar { width: 96px; height: 96px; font-size: 1.8rem; box-shadow: 0 0 0 3px #0D0F14; }
.look-avatar-btn {
  position: absolute;
  right: 2px; bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #0D0F14;
  background: var(--c2);
  color: #fff;
}
.look-avatar-btn .icon { width: 16px; height: 16px; }
.look-avatar-btn:hover { background: var(--c3); }
.look-name { flex: 1 1 160px; min-width: 0; padding-bottom: 6px; }
.look-name strong { display: flex; align-items: center; font-size: 1.15rem; overflow-wrap: anywhere; }
.look-name small { color: var(--muted); }
.look-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.look-progress {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 15, .8);
  font-size: .8rem;
  font-weight: 600;
}
.look-avatar .look-progress { padding: 4px 8px; }
.is-uploading .look-banner-img, .is-uploading .avatar { opacity: .55; }
.is-drop { outline: 2px dashed var(--c1); outline-offset: -6px; }
.look-hints { display: grid; gap: 8px; margin-top: 16px; list-style: none; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.look-hints li { display: flex; gap: 10px; align-items: flex-start; }
.look-hints .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--c1); }
.look-hints b { color: var(--dim); }
.look-hints a { color: var(--c1); }
.acc-look .acc-msg { margin-top: 14px; }

/* subskrypcja */
.sub-status { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.sub-status.is-pro { border-color: rgba(155, 61, 255, .4); background: radial-gradient(400px 160px at 0% 0%, rgba(155, 61, 255, .14), transparent 70%), rgba(47, 123, 255, .04); }
.sub-status .pro-badge { margin: 2px 0 0; height: 24px; padding: 0 9px; font-size: .72rem; }
.sub-free { flex: none; margin-top: 2px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); font: 800 .66rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.sub-status strong { display: block; font-size: 1.02rem; }
.sub-status p { margin-top: 4px; color: var(--dim); font-size: .9rem; }
.sub-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px 16px; margin-top: 16px; list-style: none; font-size: .9rem; color: var(--dim); }
.sub-perks li { display: flex; align-items: center; gap: 8px; }
.sub-perks .icon { width: 16px; height: 16px; color: #B88CFF; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#subBody > .field-hint { margin-top: 10px; }
#subBody > .acc-msg { margin-top: 14px; }

.acc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 0; }
.acc-facts > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0F1117; min-width: 0; }
.acc-facts dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.acc-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .account-header .btn { width: 100%; }
  .look-row { padding: 0 14px 14px; }
  .look-avatar { margin-top: -40px; }
  .look-avatar-img.avatar { width: 80px; height: 80px; font-size: 1.5rem; }
  .look-avatar-actions { width: 100%; }
  .look-avatar-actions .btn { flex: 1 1 0; }
  .look-banner-actions { right: 8px; top: 8px; }
  .look-btn span { display: none; }
  .look-btn { width: 44px; padding: 0; }
  .sub-actions .btn, .acc-form-foot .btn { width: 100%; }
  .acc-form-foot .acc-msg { width: 100%; }
}

@media (pointer: coarse) {
  .input { height: 48px; font-size: 16px; }
  .textarea { height: auto; }
  .pw-toggle { height: 40px; }
}
