/* Minimal account and split-screen authentication. */
.profile-page { padding-bottom: 80px; }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 22px; align-items: start; max-width: 1220px; }
.profile-sidebar { position: sticky; top: 100px; display: grid; gap: 16px; }
.profile-identity { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 25px; background: #101013; }
.profile-avatar { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 30% 20%,#ff7d99,#9b1f39); font-size: 20px; color: #ffeff3; }
.profile-identity strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.profile-identity > div { display: grid; min-width: 0; line-height: 1.35; }
.profile-identity > div > span { font-size: 13px; color: #84848e; }
.profile-identity b { font-weight: 400; }
.profile-identity__link { margin-left: auto; color: #797981; font-size: 19px; }
.profile-nav { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 26px; background: #101013; }
.profile-nav button, .profile-nav > a { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px 15px; min-height: 46px; color: #81818d; border-radius: 16px; font-size: 16px; transition: background .2s,color .2s; }
.profile-nav button[aria-selected="true"] { color: #e9e5ef; background: #1d1d22; }
.profile-nav button:hover, .profile-nav > a:hover { color: #e9e5ef; background: #ffffff06; }
.profile-nav svg { width: 17px; height: 17px; flex-shrink: 0; }
.profile-nav small { margin-left: auto; font-size: 10px; color: #9b7b85; background: #ffffff04; padding: 2px 5px; border-radius: 5px; }
.profile-nav__divider { height: 1px; margin: 10px 15px; background: #ffffff07; }
.profile-content { min-width: 0; }
.profile-card { padding: 28px; border-radius: 26px; background: #101013; margin-bottom: 18px; min-width: 0; }
.profile-card h1, .profile-card h2 { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.profile-card > p, .profile-card__head p { font-size: 15px; color: #81818d; line-height: 1.5; margin-top: 6px; }
.profile-card__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.profile-card__head h1, .profile-card__head h2 { margin: 0; }
.profile-subtle { color: #666670; font-size: 13px; }
.profile-info { display: grid; }
.profile-info > div { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff06; padding: 12px 0; font-size: 16px; }
.profile-info > div:last-child { border: 0; padding-bottom: 0; }
.profile-info dt { color: #81818d; }
.profile-info dd { text-align: right; color: #9e9ea7; overflow-wrap: anywhere; }
.profile-info .profile-role { color: #d94760; }
.profile-key { padding: 0; }
.profile-key summary { padding: 16px 24px; font-size: 15px; text-align: center; list-style: none; color: #888892; cursor: pointer; }
.profile-key summary::-webkit-details-marker { display: none; }
.profile-key .profile-inline { padding: 0 22px 22px; }
.profile-loader .btn { width: 100%; }
.profile-loader .btn__face { min-height: 54px; border-radius: 20px; }
.profile-loader .btn--ghost .btn__face { background: #101013; box-shadow: none; }
.profile-loader > p { margin-top: 9px; text-align: center; color: #686873; font-size: 12px; }
.profile-content input:not([type="checkbox"]):not([type="file"]), .profile-content select, .profile-content textarea, .profile-readonly { display: block; width: 100%; min-width: 0; background: #0d0d10; border: 1px solid #28282e; color: #ddd9e3; font-size: 15px; border-radius: 15px; padding: 12px 16px; outline-offset: 3px; }
.profile-content input::placeholder, .profile-content textarea::placeholder { color: #686873; }
.profile-content input:focus, .profile-content textarea:focus { border-color: #a63048; }
.profile-content textarea { resize: vertical; }
.profile-inline { display: flex; gap: 12px; margin-top: 20px; }
.profile-inline input { flex: 1; }
.profile-inline .btn { flex-shrink: 0; }
.profile-content .btn { font-size: 14px; }
.profile-content .btn__face { min-height: 45px; padding-inline: 18px; }
.profile-guest { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-radius: 18px; margin-bottom: 18px; border: 1px solid #ffffff09; color: #84848d; font-size: 13px; }
.profile-guest a { color: #e7b0bc; }
.profile-error { padding: 15px 20px; background: #54162844; border: 1px solid #f6446730; border-radius: 16px; color: #efaabc; margin-bottom: 18px; font-size: 14px; }
.profile-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-wallet { display: flex; flex-direction: column; padding: 28px; border-radius: 27px; margin-bottom: 18px; min-height: 215px; background: radial-gradient(ellipse at 90% 0,#ff779b,#0000 60%),radial-gradient(ellipse at 30% 90%,#d3306b,#0000 65%),linear-gradient(130deg,#8f1730,#461125); color: #fce3eb; }
.profile-wallet > span { font-size: 15px; }
.profile-wallet > strong { font-size: 46px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 25px; }
.profile-wallet > div { margin-top: auto; padding-top: 18px; border-top: 1px solid #ffffff30; display: flex; justify-content: space-between; gap: 15px; font-size: 14px; }
.profile-wallet-grid .profile-card .btn { margin-top: 24px; }
.profile-wallet-grid .profile-card p { font-size: 14px; }
.profile-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 210px; gap: 14px; color: #696975; text-align: center; padding: 24px 10px; }
.profile-empty > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #ffffff04; }
.profile-empty svg { width: 20px; height: 20px; }
.profile-empty p { max-width: 400px; font-size: 14px; line-height: 1.5; }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; width: 100%; text-align: left; border-bottom: 1px solid #ffffff07; }
.profile-row:last-child { border-bottom: 0; }
.profile-row > div { min-width: 0; }
.profile-row strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.profile-row span { display: block; color: #777783; font-size: 13px; margin-top: 4px; }
.profile-row b { font-size: 15px; white-space: nowrap; font-weight: 500; }
.profile-row__actions { display: flex; gap: 12px; }
.profile-row__actions button { width: 30px; height: 30px; display: grid; place-items: center; color: #8b8b96; }
.profile-row__actions svg { width: 17px; height: 17px; }
.profile-accent { color: #e47c94; font-size: 14px; }
.profile-library-tools { margin-bottom: 18px; }
.profile-search { flex: 1; }
.profile-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.profile-settings-grid label { display: block; color: #84848d; font-size: 14px; margin-bottom: 7px; }
.profile-readonly { color: #9b9ba6; text-align: left; }
button.profile-readonly { display: flex; justify-content: space-between; align-items: center; }
.profile-readonly span { color: #e4dce8; font-size: 13px; }
.profile-password { display: grid; gap: 14px; margin-top: 22px; }
.profile-password > label { display: grid; gap: 8px; font-size: 14px; color: #8e8e98; }
.profile-password > .btn { justify-self: start; }
.profile-service { display: flex; align-items: center; justify-content: space-between; background: #0d0d10; border: 1px solid #28282e; border-radius: 15px; padding: 13px 16px; color: #888892; margin-top: 20px; }
.profile-pill { padding: 4px 9px; border-radius: 8px; background: #ffffff04; color: #a3a3af; font-size: 12px; white-space: nowrap; }
.profile-toggle { display: flex; position: relative; align-items: center; gap: 15px; padding: 19px 0; border-bottom: 1px solid #ffffff06; color: #94949e; font-size: 15px; }
.profile-toggle:last-child { border: 0; padding-bottom: 0; }
.profile-toggle input { position: absolute; right: 0; opacity: 0; width: 44px; height: 28px; cursor: pointer; }
.profile-toggle i { display: block; margin-left: auto; width: 40px; height: 24px; border-radius: 30px; border: 1px solid #33333b; background: #17171c; pointer-events: none; }
.profile-toggle i::after { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: #efebf3; margin: 2.5px; transition: transform .2s; }
.profile-toggle input:checked + i { background: #c7254a; border-color: #c7254a; }
.profile-toggle input:checked + i::after { transform: translateX(15px); }
.profile-toggle input:focus-visible + i { outline: 2px solid #ff7b98; outline-offset: 4px; }
.profile-toggle input:disabled + i { opacity: .4; }
.profile-coming { min-height: 360px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 16px; text-align: center; }
.profile-coming__icon { font-size: 40px; color: #e87a93; }
.profile-coming > p { color: #f1c8d2; font-size: 20px; }
.profile-coming > span:last-of-type { max-width: 430px; color: #72727e; font-size: 14px; }
.profile-coming .btn { margin-top: 10px; }
.referral-profile { position: relative; overflow: hidden; }
.referral-profile h1 { position: relative; font-size: 29px; }
.referral-profile > p { max-width: 490px; margin-top: 14px; }
.referral-profile > label { display: block; margin-top: 30px; font-size: 13px; color: #96929e; }
.referral-rate { position: absolute; right: 25px; top: -12px; font-size: 115px; line-height: 1; letter-spacing: -.08em; font-weight: 700; color: #ff2d420a; pointer-events: none; }
.referral-profile .profile-inline { margin-top: 9px; }
.profile-content [data-referral-url] { font-size: 13px; color: #b5aab6; }
.referral-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; padding-top: 23px; border-top: 1px solid #ffffff08; }
.referral-metrics div { display: grid; gap: 4px; }
.referral-metrics span { font-size: 13px; color: #7e7e8b; }
.referral-metrics strong { font-size: 26px; font-weight: 500; }
.referral-rules ol { list-style: decimal; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; color: #93939f; margin-top: 20px; }
.referral-rules > p { margin-top: 25px; font-size: 13px; }
.ticket-form { display: grid; gap: 20px; margin-top: 22px; }
.ticket-form > label { display: grid; gap: 8px; font-size: 14px; color: #8b8b98; }
.ticket-attachment input { width: 100%; border: 1px dashed #303039; border-radius: 15px; padding: 15px; font-size: 13px; color: #a8a2ae; }
.ticket-attachment small { font-size: 12px; color: #656570; }
.profile-back { display: inline-block; color: #85818f; font-size: 14px; margin: 0 0 18px 5px; }
.profile-ticket:hover strong { color: #ef91a7; }
.ticket-message { border: 1px solid #ffffff08; background: #ffffff02; border-radius: 15px; padding: 17px; margin-bottom: 12px; }
.ticket-message > span { font-size: 12px; color: #777785; }
.ticket-message p { font-size: 15px; color: #b4adb9; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 9px; }
.ticket-message small { display: block; margin-top: 12px; color: #8c8292; }

.auth { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(460px,1fr); min-height: 100svh; background: #09090b; }
.auth__panel { order: 2; min-width: 0; padding: 50px 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth__top { width: 100%; max-width: 400px; padding: 0; margin-bottom: 26px; }
.auth__top .logo__word { font-size: 18px; }
.auth__top .logo__word > span { display: none; }
.auth__top-actions { gap: 13px; }
.auth__top-actions [data-lang-switch] { display: none; }
.auth__top-actions > a { font-size: 12px; color: #6f6f7d; }
.auth__body { max-width: 400px; margin: 0; padding: 0; }
.auth__body h1 { font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.auth__body .lead { font-size: 14px; line-height: 1.55; margin-top: 14px; color: #777785; }
.auth__body .form { margin-top: 30px; gap: 16px; }
.auth__body .field { gap: 6px; }
.auth__body .field__label { font-size: 14px; font-weight: 400; color: #7f7c88; }
.auth__body .input-wrap { border-radius: 16px; background: #0d0d10; box-shadow: inset 0 0 0 1px #29272f; }
.auth__body .input { min-height: 46px; font-size: 14px; padding: 12px 15px; }
.auth__body .input-wrap__btn { font-size: 11px; color: #9e8e9f; padding: 0 12px; }
.auth__body .field__hint { font-size: 11px; color: #5e5a65; }
.auth__body .check { font-size: 12px; line-height: 1.45; color: #a19aa7; }
.auth__body .btn__face { min-height: 48px; font-size: 14px; border-radius: 18px; }
.auth__switch { margin-top: 18px; font-size: 13px; color: #78717e; }
.auth__switch a { color: #b54d69; text-decoration: none; font-weight: 400; }
.auth__foot { max-width: 400px; width: 100%; font-size: 11px; margin-top: 30px; }
.auth__visual { order: 1; position: relative; min-height: 100svh; border: 0; background: radial-gradient(ellipse at 60% 30%,#67102d 0,transparent 60%),#10080e; }
.auth__visual .auth__silk { position: absolute; width: 150%; height: 150%; inset: -25%; transform: rotate(-22deg); opacity: .75; }
.auth__visual::after { background: linear-gradient(180deg,#0a070b10 30%,#0a070b99); }
.auth__visual-shade { position: absolute; inset: 0; background: linear-gradient(120deg,#0000 40%,#09090b99); }
.auth__quote { max-width: 530px; font-size: clamp(34px,3.4vw,54px); font-weight: 400; line-height: 1.15; bottom: 7%; left: 7%; right: 6%; letter-spacing: -.035em; }
.auth__quote span { color: #ff3356; }
@media(max-width:1000px) {
  .profile-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; }
  .profile-nav { padding: 10px; }
  .profile-nav button, .profile-nav > a { font-size: 14px; padding: 12px; }
  .profile-card { padding: 22px; }
  .profile-wallet-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-card__head { flex-wrap: wrap; }
  .profile-wallet { min-height: 200px; }
  .auth { display: block; }
  .auth__visual { display: none; }
  .auth__panel { min-height: 100svh; }
}
@media(max-width:760px) {
  .profile-page { padding-top: 105px; }
  .profile-layout { grid-template-columns: 1fr; gap: 18px; }
  .profile-sidebar { position: static; gap: 12px; min-width: 0; }
  .profile-identity { padding: 15px 20px; border-radius: 20px; }
  .profile-nav { flex-direction: row; overflow-x: auto; gap: 5px; padding: 7px; border-radius: 17px; }
  .profile-nav button, .profile-nav > a { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 10px 12px; font-size: 13px; min-height: 40px; }
  .profile-nav__divider { display: none; }
  .profile-nav small { margin-left: 0; }
  .profile-card { border-radius: 22px; padding: 23px 21px; }
  .profile-card h1, .profile-card h2 { font-size: 23px; }
  .profile-info > div { font-size: 14px; }
  .profile-key { padding: 0; }
  .profile-inline { flex-wrap: wrap; }
  .profile-inline input { flex-basis: 100%; }
  .profile-settings-grid { grid-template-columns: 1fr; }
  .profile-library-tools { flex-wrap: nowrap; gap: 10px; }
  .profile-library-tools .btn__face { padding-inline: 12px; font-size: 12px; }
  .profile-wallet > strong { font-size: 42px; }
  .profile-coming { min-height: 320px; }
  .profile-row strong { font-size: 14px; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .auth__panel { padding: 36px 24px; min-height: 100svh; }
  .auth__top { margin-bottom: 34px; }
  .auth__body h1 { font-size: 30px; }
}
.profile-discord { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 8px; }
.profile-discord__identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.profile-discord__identity svg { width: 25px; height: 25px; color: #a29deb; }
.profile-discord__identity strong { font-size: 14px; font-weight: 500; }
.profile-discord__identity div > span { display: block; font-size: 12px; color: #88818e; margin-top: 3px; overflow-wrap: anywhere; }
.profile-discord__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.profile-service-button { border: 1px solid #332c37; border-radius: 12px; padding: 8px 12px; font-size: 12px; color: #ded5e1; background: #17131c; cursor: pointer; }
.profile-service-button:disabled { opacity: .45; cursor: not-allowed; }
.profile-discord-note { font-size: 12px !important; margin: 6px 0 20px !important; }
@media (max-width: 480px) { .profile-discord { flex-wrap: wrap; gap: 14px; } .profile-discord__actions { justify-content: flex-start; } }
.avatar-card { scroll-margin-top: 110px; }
.avatar-presets { display: flex; gap: 12px; margin: 22px 0; }
.avatar-presets button { display: grid; gap: 8px; justify-items: center; border: 1px solid #2b2631; background: #141117; border-radius: 18px; padding: 12px; min-width: 96px; font-size: 11px; color: #aaa1b2; }
.avatar-presets img { border-radius: 16px; }
.avatar-presets button[aria-pressed="true"] { border-color: #ee4265; background: #3b1826; color: #ffe3eb; }
.avatar-presets button:disabled { opacity: .45; }
.avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar-actions .btn__face { min-height: 42px; font-size: 13px; }
.avatar-status { font-size: 12px !important; color: #e59aae !important; margin-top: 12px !important; overflow-wrap: anywhere; }
@media(max-width:480px) { .avatar-presets { gap: 8px; } .avatar-presets button { min-width: 0; flex: 1; padding: 9px 6px; } .avatar-presets img { width: 50px; height: 50px; } }
.js .is-account-loading .profile-layout { display: none; }
.no-js [data-account-loading] { display: none; }
