/* Membership tiles and existing account / UID modals (account.js). */
.access{display:grid;gap:11px;margin-top:17px}
.access-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #343a3b;border-radius:9px;padding:11px 12px}
.access-row b{font-size:12px}
.access-row small{display:block;font-size:10px;color:#8d979a;margin-top:4px}
.access-row span{font-size:10px;color:#f5b57b}
.providers{display:grid;gap:9px;margin:18px 0}
.provider{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#2d3337;border:1px solid #485053;border-radius:9px;color:#f5f5f2;padding:12px}
.provider:hover{border-color:#f49e5a}
html.light .access-row small{color:#6b787b}
html.light .access-row{background:#f8faf8;border-color:#e1e7e3}
html.light .provider{background:#f8faf8;border-color:#dbe2de;color:#344044}
.account-panel{margin-bottom:18px}
.status-badge{display:inline-block;font-size:11px;border-radius:100px;padding:6px 10px;border:1px solid #454a4a;color:#b8c0bf;background:#2b2d2e;margin:4px 0 4px}
.status-badge.ok{border-color:#3f6b4b;color:#9be0ae;background:#1e2d23}
.access-row.ok span{color:#9be0ae}
.provider{text-decoration:none;font-size:14px}
.provider:disabled{opacity:.5;cursor:not-allowed}
.provider:disabled:hover{border-color:#485053}
.provider-icon{width:20px;text-align:center;font-weight:800}
.provider-icon.google{color:#8ab4f8}
.provider-icon.telegram{color:#54b7e8}
.exchange-tabs{margin:16px 0 4px}
.exchange-entry-links{display:grid;grid-template-columns:1fr;gap:10px;margin:16px 0 14px}.exchange-entry-links .exchange-entry-button{display:flex;align-items:center;gap:14px;min-height:68px;width:100%;min-width:0;padding:12px 15px;border:1px solid;border-radius:11px;text-align:left;text-decoration:none;font:inherit;cursor:pointer;box-shadow:0 5px 15px #0002;transition:transform .18s,box-shadow .18s,border-color .18s}
.exchange-entry-links .register{background:linear-gradient(135deg,#174d3c,#18382e);border-color:#4aad83;color:#d8ffea}.exchange-entry-links .rebind{background:linear-gradient(135deg,#243f6b,#202f4a);border-color:#688fce;color:#e1ecff}.exchange-entry-button:hover{transform:translateY(-2px);box-shadow:0 7px 22px #0004}.exchange-entry-button:focus-visible{outline:3px solid #f5a35e;outline-offset:3px}.exchange-entry-button:disabled{opacity:.42;cursor:not-allowed;transform:none;box-shadow:none}
.exchange-entry-copy{display:flex;align-items:center;gap:6px 11px;min-width:0;flex-wrap:wrap}.exchange-entry-copy small{font-size:11px;line-height:1.3;opacity:.8}.exchange-entry-copy strong{display:flex;align-items:center;flex-wrap:wrap;gap:3px 5px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.exchange-fee-badge{font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;opacity:.95}.exchange-entry-arrow{font-size:20px;margin-left:auto;flex:none;opacity:.8}
.exchange-pointer{display:block;flex:none;width:46px;height:42px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-5%205%20280%20260%22%3E%3Cg%20transform%3D%22translate(0%2012)%20rotate(-15%20135%20135)%20translate(0%20270)%20scale(1%20-1)%20rotate(45%20130%20130)%20translate(260%200)%20scale(-1%201)%22%20fill%3D%22%23fff%22%20stroke%3D%22%234c4c4c%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M232%20183C249%20180%20251%20192%20239%20208C223%20229%20202%20244%20182%20244C171%20244%20163%20239%20162%20231Z%22%2F%3E%3Cpath%20d%3D%22M119%20183C112%20155%2083%20129%2061%20106C47%2092%2047%2075%2052%2061C57%2045%2071%2038%2081%2049L111%2089C126%2074%20144%2071%20160%2081C175%2071%20189%2074%20202%2084C226%20103%20242%20132%20241%20159C241%20184%20228%20207%20209%20221C187%20237%20165%20231%20143%20226L119%20224L90%20235C72%20242%2062%20236%2062%20220C60%20198%2075%20185%2095%20183Z%22%2F%3E%3Cpath%20d%3D%22M111%2089C121%20105%20130%20114%20142%20119M160%2081C168%2085%20175%2090%20181%2095%22%20fill%3D%22none%22%20stroke-width%3D%224.5%22%2F%3E%3Cpath%20d%3D%22M186%20151L204%20190M211%20147C216%20157%20220%20170%20221%20180M174%20178L191%20202%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation:exchange-point 2.8s ease-in-out infinite}.exchange-entry-button:disabled .exchange-pointer{animation:none}.exchange-entry-button.rebind .exchange-pointer{animation-delay:.35s}
@keyframes exchange-point{0%,70%,100%{transform:translateX(0)}80%,90%{transform:translateX(3px)}}
.exchange-referral-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 15px;font-size:12px;line-height:1.6;color:var(--muted,#aab3b4)}.exchange-referral-note code{display:inline-block;user-select:all;padding:3px 8px;border:1px solid var(--line,#444c4e);border-radius:5px;font-size:12px;overflow-wrap:anywhere;color:var(--orange,#f5b57b)}.exchange-code-copy{border:0;background:transparent;color:var(--orange,#f5b57b);padding:5px;cursor:pointer;font:inherit}.exchange-code-copy:focus-visible{outline:2px solid var(--orange,#f5b57b);border-radius:4px}
.exchange-uid-hint{padding:10px 12px;margin:0 0 12px;border-left:3px solid var(--orange,#f5a35e);background:#f5a35e0e;color:var(--text,#f2f1ed);font-size:13px;font-weight:600;line-height:1.6}.exchange-trial-hint{margin:0 0 10px;font-size:12px;line-height:1.6;color:var(--muted,#aab3b4)}.exchange-binding-confirm{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;color:var(--muted,#aab3b4);cursor:pointer}.exchange-binding-confirm input{width:16px;height:16px;margin:3px 0 0;flex:none;accent-color:var(--orange,#f5a35e)}
html.light .exchange-entry-links .register{background:linear-gradient(135deg,#d6f6e6,#eafaf1);border-color:#76bb98;color:#154b35}html.light .exchange-entry-links .rebind{background:linear-gradient(135deg,#deebff,#edf3ff);border-color:#8bace0;color:#244976}
@media(max-width:420px){.exchange-entry-links{gap:9px}.exchange-entry-links .exchange-entry-button{min-height:66px;padding:11px 12px;gap:9px}.exchange-pointer{width:41px;height:38px}.exchange-entry-copy{gap:4px 8px}.exchange-entry-copy strong{font-size:14px}.exchange-fee-badge{font-size:11px}}
@media(prefers-reduced-motion:reduce){.exchange-pointer{animation:none}.exchange-entry-links .exchange-entry-button{transition:none}}
.login-vpn[hidden]{display:none}
.login-vpn .exchange-entry-button{min-height:52px;padding-block:8px}
.login-vpn .exchange-pointer{width:36px;height:34px}
.verify-form{display:grid;gap:12px}
.field{display:grid;gap:6px;font-size:12px;color:#aab3b4}
.field input{font:inherit;font-size:14px;color:#f2f1ed;background:#16191c;border:1px solid #444c4e;border-radius:9px;padding:11px 12px;width:100%}
.field input:focus{outline:2px solid #fa995366;border-color:#fa9953}
.form-status{margin:0;font-size:12px;min-height:1em}
.form-status .ok{color:#9be0ae}
.form-status .error{color:#f2a3a3}
html.light .status-badge{background:#f1f4f2;border-color:#dee5e1;color:#566568}
html.light .status-badge.ok,html.light .access-row.ok span{background:#ecf8ef;border-color:#bfe3c8;color:#2d7a43}
html.light .access-row.ok span{background:none}
html.light .field{color:#5f6c70}
html.light .field input{background:#fff;border-color:#d8dfdc;color:#20292c}
html.light .form-status .ok{color:#2d7a43}
html.light .form-status .error{color:#b23b3b}
html.light .provider:disabled:hover{border-color:#dbe2de}

/* Account identity linking and the site's optional password. */
.account-heading{margin-bottom:8px;overflow-wrap:anywhere}
.account-security{margin:20px 0;padding:16px;border:1px solid var(--line,#444c4e);border-radius:12px;background:#11161a33}
.account-security h3{margin:0 0 6px;font-size:14px;line-height:1.5}
.account-security-row{display:flex;align-items:center;gap:11px;min-width:0;padding:14px 0;border-bottom:1px solid var(--line,#444c4e)}
.account-security-copy{display:grid;gap:4px;min-width:0;flex:1}.account-security-copy strong{font-size:13px;font-weight:600}.account-security-copy>span{font-size:12px;color:var(--muted,#aab3b4);overflow-wrap:anywhere}
.account-security-row>.ghost-btn{font-size:12px;padding:8px 10px;min-height:36px;flex:none;max-width:48%;white-space:normal;line-height:1.45}
.account-linked{color:#9be0ae;font-size:17px;padding:0 8px}.account-lock-icon{width:20px;text-align:center;font-size:23px;line-height:1;color:var(--muted,#aab3b4)}
.account-security-note,.account-form-note{font-size:12px;line-height:1.7;color:var(--muted,#aab3b4)}.account-security-note{margin:12px 0 0}.account-form-note{margin:10px 0 14px}
.account-auth-form{display:grid;gap:14px;margin-top:18px}.account-auth-form .field input{min-width:0;box-sizing:border-box}
.password-input{display:flex;align-items:stretch;border:1px solid #444c4e;border-radius:9px;background:#16191c;min-width:0;overflow:hidden}.password-input:focus-within{outline:2px solid #fa995366;border-color:#fa9953}
.field .password-input input{min-width:0;flex:1;width:0;border:0;border-radius:0;background:transparent;outline:none}
.password-visibility{flex:none;border:0;background:transparent;color:var(--orange,#f5b57b);font:inherit;font-size:12px;padding:8px 12px;cursor:pointer;min-width:52px}.password-visibility:focus-visible{outline:2px solid #fa9953;outline-offset:-4px;border-radius:7px}
.account-auth-notice{font-size:12px;line-height:1.7;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid #744a4a;background:#b14f4f0d;color:#f2a3a3;overflow-wrap:anywhere}.account-auth-notice.ok{border-color:#41724f;background:#42b9770c;color:#9be0ae}
.account-auth-form [data-auth-status]:empty{display:none}.account-auth-form .account-auth-notice{margin:0}
.account-back{margin-top:18px}.password-login-entry{margin-top:4px}.account-text-button{display:inline-block;margin:14px 0 0;padding:4px 0;background:transparent;border:0;color:var(--orange,#f5b57b);font:inherit;font-size:12px;line-height:1.6;cursor:pointer;text-align:left}.account-text-button:focus-visible{outline:2px solid #fa9953;outline-offset:3px;border-radius:3px}
.account-reauth{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--line,#444c4e)}.account-reauth>p{width:100%;font-size:12px;line-height:1.6;margin:0 0 2px}.account-reauth>.ghost-btn{font-size:12px}
html.light .account-security{background:#f8faf866}html.light .account-linked{color:#2d7a43}html.light .password-input{background:#fff;border-color:#d8dfdc}html.light .account-auth-notice{border-color:#e3bcbc;color:#a13939;background:#fff5f5}html.light .account-auth-notice.ok{border-color:#b6d5bd;background:#edf7ef;color:#2d7a43}
@media(max-width:360px){.account-security{padding:12px}.account-security-row{gap:8px}.account-security-row>.ghost-btn{padding:7px 8px}.password-visibility{padding:8px;min-width:46px}}

/* Compact membership column and CMS-backed community / shop entries. */
.account-panel,.membership-layout,.membership-chooser{--member-bg:#15181c;--member-border:#30373a;--member-text:#eeefeb;--member-muted:#929da1;--member-orange:#f5a35e}
.membership-layout{--member-type:clamp(14px,.85vw,16px);--member-small:clamp(12px,.72vw,14px);display:grid;grid-template-columns:minmax(460px,.9fr) minmax(0,1.7fr);align-items:start;gap:clamp(18px,1.5vw,28px)}
.membership-layout .account-panel{padding:clamp(18px,1.4vw,26px);margin:0;min-width:0}
.membership-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
.membership-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.membership-head h2{font-size:clamp(18px,1.1vw,21px);margin:0}
.membership-head>.cta,.membership-head>.ghost-btn{white-space:nowrap;font-size:var(--member-small);padding:9px 12px}
.membership-section-head{display:flex;align-items:baseline;gap:6px 10px;flex-wrap:wrap;margin-bottom:12px}
.membership-section-head h3,.membership-grid-label{margin:0;font-size:var(--member-type);font-weight:650}
.membership-section-head p{font-size:var(--member-small);line-height:1.6;color:var(--member-muted);margin:0}
.membership-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.membership-tile{display:flex;flex-direction:column;gap:8px;min-width:0;padding:13px;border:1px solid var(--member-border);border-radius:10px;background:var(--member-bg)}
.membership-tile-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}
.membership-tile h4,.membership-feature-link{font-size:var(--member-type);font-weight:650;line-height:1.5;margin:0;color:var(--member-text);overflow-wrap:anywhere}
.membership-tile p{font-size:var(--member-small);line-height:1.6;color:var(--member-muted);margin:0;overflow-wrap:anywhere}
.exchange-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:74px}
.exchange-identity{display:flex;align-items:center;gap:7px;min-width:0}.exchange-identity h4{white-space:nowrap;overflow-wrap:normal}
.exchange-logo{display:block;flex:none;width:30px;height:30px;object-fit:contain;border-radius:8px}
.exchange-tile .membership-verify{font-size:var(--member-small);padding:7px 10px;min-height:36px;max-width:84px;margin:0;white-space:normal;line-height:1.4}
.membership-verify.verified{color:#8ed5a1;border-color:#41724f;background:#42b97710}
.membership-verify:disabled{opacity:.5;cursor:not-allowed}.membership-verify:disabled:hover{border-color:var(--member-border)}
.membership-badge{display:inline-flex;align-items:center;flex-shrink:0;border:1px solid var(--member-border);background:#929da10c;color:var(--member-muted);border-radius:5px;padding:3px 7px;font-size:var(--member-small);line-height:1.5;white-space:nowrap}
.membership-badge.ok{color:#8ed5a1;background:#42b97710;border-color:#41724f}.membership-badge.pending{color:var(--member-orange);background:#f5a35e0c;border-color:#68452d}
.membership-grid-label{margin:20px 0 12px;padding-top:16px;border-top:1px solid var(--member-border)}
.benefit-tile{justify-content:center;min-height:58px}.membership-feature-link,.membership-feature-name{display:flex;align-items:center;gap:8px;min-width:0}.membership-feature-icon{display:flex;flex:none;color:var(--member-orange)}.membership-feature-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.membership-feature-link:hover{color:var(--member-orange);text-decoration:underline}.membership-feature-link:focus-visible,.membership-entry:focus-visible,.membership-choice:focus-visible{outline:2px solid var(--member-orange);outline-offset:3px;border-radius:4px}
/* Independent icon entries; the two choosers reuse the account modal shell. */
.membership-resources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1vw,20px);min-width:0;width:100%}
.membership-entry{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-width:0;min-height:clamp(164px,12vw,220px);padding:30px 16px 24px;color:var(--member-text);font:inherit;text-align:center;text-decoration:none;transition:background .18s,border-color .18s,transform .18s}
.membership-entry-icon{display:block;width:clamp(48px,3.3vw,64px);height:clamp(48px,3.3vw,64px);object-fit:contain;flex:none}.membership-emoji{font-size:clamp(43px,3vw,58px);line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.membership-entry-name{font-size:var(--member-type);line-height:1.55;font-weight:550;max-width:100%;text-wrap:balance;overflow-wrap:anywhere}
.membership-entry [data-resource-status],.membership-entry-more{position:absolute;top:12px;right:14px;color:var(--member-muted);font-size:var(--member-small);line-height:1.5}.membership-entry-more{font-size:18px;top:8px}
.membership-entry[data-ready=true] [data-resource-status]{color:var(--member-orange);font-size:16px;top:9px}
.membership-entry[aria-disabled=true]{cursor:default}.membership-entry:is(button,[data-ready=true]):hover{border-color:var(--member-orange);background:var(--member-bg);transform:translateY(-2px)}
.membership-chooser{max-width:520px}.membership-chooser-note{font-size:12px;line-height:1.7;color:var(--member-muted);margin:0 0 16px}
.membership-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.membership-choice{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:10px;padding:16px 10px;border:1px solid var(--member-border);border-radius:12px;background:var(--member-bg);color:var(--member-text);font-size:12px;line-height:1.5;text-align:center;min-height:122px;overflow-wrap:anywhere}
.membership-choice-icon{display:flex;align-items:center;justify-content:center;height:40px;min-width:40px;font-size:30px}.membership-choice-icon img{object-fit:contain;max-width:100%;width:36px;height:36px}.membership-xhs{font-size:13px;letter-spacing:-1px;font-weight:800;color:#fff;background:#ff2442;border-radius:10px;width:40px}.membership-wordmark{width:100px}.membership-wordmark img{width:100px;height:36px}.membership-choice [data-resource-status]{font-size:10px;color:var(--member-muted)}.membership-choice[data-ready=true]:hover{border-color:var(--member-orange)}.membership-choice[aria-disabled=true]{cursor:default}
@media(prefers-reduced-motion:reduce){.membership-entry{transition:none}.membership-entry:hover{transform:none}}
html.light .account-panel,html.light .membership-layout,html.light .membership-chooser{--member-bg:#f8faf8;--member-border:#dce3de;--member-text:#242b29;--member-muted:#65726e;--member-orange:#a85b23}html.light .membership-badge.ok,html.light .membership-verify.verified{color:#2d7a43;border-color:#b6d5bd;background:#edf7ef}html.light .membership-badge.pending{border-color:#e2c8b1;background:#fff5ec}
@media(max-width:1600px){.membership-resources{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1200px){.membership-layout{grid-template-columns:minmax(0,1fr)}.membership-resources{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.membership-resources{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.membership-layout{gap:18px}.membership-layout .account-panel{padding:15px}.membership-layout .exchange-grid{grid-template-columns:minmax(0,1fr)}.membership-head{margin-bottom:16px}.membership-grid{gap:10px}.membership-tile{padding:11px;gap:7px}.exchange-tile{min-height:64px}.exchange-tile .membership-verify{min-height:38px;min-width:62px}.membership-resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.membership-entry{min-height:150px;padding:28px 12px 20px;gap:14px}}
@media(max-width:360px){.membership-layout .membership-grid{grid-template-columns:minmax(0,1fr)}.membership-head{flex-wrap:wrap}.membership-choice{font-size:12px}}

.account-panel>.membership-trial-note{margin:0 0 14px}
.market-connections{display:grid;gap:12px}.market-connections p,.market-connections h3{margin:0;line-height:1.7}
.market-connections .status-badge{justify-self:start}.market-connections .modal-actions{margin:0;flex-wrap:wrap}
.market-connection-qr{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #59636455;border-radius:9px}.market-connection-qr p{width:100%}
.market-key-form{display:grid;gap:10px;margin-top:12px}.market-key-form label{display:grid;gap:7px;font-size:12px}.market-key-form input{box-sizing:border-box;min-width:0;width:100%;padding:11px;border:1px solid #59636477;border-radius:7px;background:transparent;color:inherit}.market-key-form button{justify-self:start}
.market-connection-entry{display:flex;justify-content:flex-end;margin:4px 0 8px}.market-connection-entry .ghost-btn{font-size:11px;padding:5px 9px}
.connection-title-logo{width:36px;height:36px;border-radius:9px;object-fit:contain;vertical-align:middle;margin-right:10px}.market-connections{padding-top:4px}
.market-registration-button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 13px;border:1px solid #a66b3b;border-radius:10px;color:#ffc087;background:#fa99530c;cursor:pointer;text-align:left;font:inherit;font-size:13px;margin-bottom:4px}.market-registration-button img{border-radius:7px;flex:none}.market-registration-button span:first-of-type{flex:1}.market-registration-button:hover{border-color:#fa9953;background:#fa99531a}.market-registration-button:focus-visible{outline:2px solid #fa9953;outline-offset:3px}
.market-registration-qr{display:block;max-width:min(100%,340px);height:auto;max-height:55dvh;object-fit:contain;margin:20px auto;background:#fff;border-radius:12px;padding:12px;box-sizing:border-box}.market-registration-empty{padding:38px 16px;border:1px dashed #59636477;border-radius:10px;text-align:center;margin:18px 0;color:#98a5a8;font-size:13px}
html.light .market-registration-button{color:#9d541d;background:#fff7ed;border-color:#dca775}
