/* MindVisuals / glass identity. Shared by every public HTML page. */
:root {
 --bg-dark:#060509; --text-main:#f4f1fa; --text-strong:#faf7ff; --text-muted:#9891aa; --text-body:#bdb5cd;
 --accent:#b79af7; --accent-hover:#ccb5ff; --accent-rgb:183,154,247; --on-accent:#180e2d;
 --glass-border:rgba(206,182,255,.13); --panel-top:rgba(24,19,35,.86); --panel-bottom:rgba(12,10,18,.94);
 --panel-solid-top:#1a1525; --panel-solid-bottom:#100d17; --input-bg:rgba(4,3,8,.55); --input-bg-focus:rgba(13,9,22,.9);
 --mv-panel:#100d17; --mv-line:rgba(206,182,255,.13); --mv-soft:rgba(183,154,247,.075);
}
[data-theme="light"] {
 --bg-dark:#f3f0f8; --text-main:#211b30; --text-strong:#171020; --text-muted:#6e647f; --text-body:#524660;
 --accent:#7651bb; --accent-hover:#6743a9; --accent-rgb:118,81,187; --on-accent:#fff;
 --glass-border:rgba(76,42,122,.15); --panel-top:rgba(255,255,255,.94); --panel-bottom:rgba(246,242,252,.95);
 --panel-solid-top:#fff; --panel-solid-bottom:#f7f3fc; --input-bg:#fff; --input-bg-focus:#fff;
 --mv-panel:#fdfbff; --mv-line:rgba(76,42,122,.15); --mv-soft:rgba(118,81,187,.065);
}
/* Freeze navbar tokens at their original values. Its layout and controls stay intact. */
header { --bg-dark:#07070b; --text-main:#f4f4fa; --text-muted:#a3a3b4; --accent:#ff3b4b; --accent-hover:#ff5260; --accent-rgb:255,59,75; --tint:255,255,255; --on-accent:#0b0b10; }
[data-theme="light"] header { --bg-dark:#f2f3f8; --text-main:#16171f; --text-muted:#61647a; --accent:#dd1f30; --accent-hover:#c11a29; --accent-rgb:221,31,48; --tint:18,20,32; --on-accent:#fff; }
body { background:var(--bg-dark); }
.atmosphere { background:radial-gradient(ellipse at 80% 0%,rgba(100,58,177,.15),transparent 50%),var(--bg-dark); }
.atmosphere-overlay { background:none; }
.atmosphere-radial { background:radial-gradient(ellipse at 70% 15%,rgba(117,74,191,.09),transparent 62%); }
.bg-grid,.bg-glow { opacity:.12; }
.cursor-shader-canvas { --shader-target-opacity:.09; }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.skip-link { position:fixed; top:8px; left:8px; z-index:1100; padding:12px 18px; background:var(--mv-panel); color:var(--text-main); transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.mv-heading { font-size:clamp(32px,5vw,58px); line-height:1.08; letter-spacing:-.045em; font-weight:600; text-wrap:balance; }
.mv-copy { color:var(--text-muted); line-height:1.7; max-width:58ch; }
.mv-panel { background:linear-gradient(150deg,var(--panel-top),var(--panel-bottom)); border:1px solid var(--mv-line); border-radius:22px; padding:28px; box-shadow:inset 0 1px 0 rgba(233,217,255,.06); min-width:0; }
.mv-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 18px; border:1px solid var(--mv-line); border-radius:10px; font:500 14px/1.3 var(--font-main); color:var(--text-main); background:var(--mv-soft); cursor:pointer; transition:background .16s,transform .16s; text-align:center; }
.mv-button.primary { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.mv-button.danger { color:var(--error); background:transparent; border-color:rgba(255,85,102,.25); }
.mv-button:hover { background:rgba(var(--accent-rgb),.14); }
.mv-button.primary:hover { background:var(--accent-hover); }
.mv-button:active { transform:scale(.98); }
.mv-button:disabled { opacity:.55; cursor:wait; }
.mv-button[aria-disabled="true"] { opacity:.5; pointer-events:none; }
.mv-avatar { width:58px; height:58px; border-radius:18px; background:linear-gradient(135deg,rgba(var(--accent-rgb),.3),var(--mv-soft)); border:1px solid var(--mv-line); color:var(--accent); font-size:24px; display:flex; align-items:center; justify-content:center; flex:none; overflow:hidden; }
.mv-avatar img { width:100%; height:100%; object-fit:cover; }
.mv-avatar.large { width:104px; height:104px; border-radius:28px; font-size:42px; }
.mv-empty { padding:36px 24px; background:var(--mv-soft); border:1px dashed var(--mv-line); border-radius:16px; color:var(--text-muted); line-height:1.65; text-align:center; }
.mv-feedback { color:var(--text-muted); font-size:13px; line-height:1.5; min-height:20px; }
.mv-feedback.error { color:var(--error); }
.mv-feedback.success { color:var(--success); }
.mv-small { font-size:12px; color:var(--text-muted); line-height:1.6; }
.mv-label { display:block; color:var(--text-body); font-size:13px; margin-bottom:8px; }
.mv-input { width:100%; min-height:46px; border:1px solid var(--mv-line); background:var(--input-bg); color:var(--text-main); border-radius:10px; padding:12px 14px; font:400 14px/1.5 var(--font-main); }
.mv-input:focus { outline:2px solid rgba(var(--accent-rgb),.3); border-color:var(--accent); }
textarea.mv-input { resize:vertical; min-height:112px; }
.mv-input::placeholder { color:var(--text-muted); opacity:.7; }
.mv-footer { width:min(1120px,calc(100% - 48px)); margin:56px auto 28px; padding-top:20px; border-top:1px solid var(--mv-line); display:flex; justify-content:space-between; gap:20px; color:var(--text-muted); font-size:12px; }
.mv-footer a:hover { color:var(--accent); }
/* Landing */
.hero { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; text-align:left; padding:80px 0 76px; min-height:650px; gap:20px; }
.hero-copy { position:relative; z-index:2; }
.hero-title { font-size:clamp(38px,5.4vw,76px); font-weight:600; letter-spacing:-.055em; line-height:1.06; margin:0; text-shadow:none; }
.hero-title .highlight { background:linear-gradient(105deg,#9863f5,#e2c9f4); background-clip:text; -webkit-background-clip:text; color:var(--accent); }
[data-theme="light"] .hero-title .highlight { background:none; -webkit-text-fill-color:var(--accent); }
.hero-subtitle { margin:24px 0 0; max-width:440px; font-size:16px; color:var(--text-muted); text-shadow:none; }
.hero-cta { justify-content:flex-start; margin-top:30px; }
.hero-art { position:relative; margin-right:0; min-width:0; }

.hero-art::before { content:none; }

.hero-notes { display:flex; gap:24px; border-top:1px solid var(--mv-line); padding-top:22px; margin-top:36px; font-size:11px; color:var(--text-muted); }
.hero-notes span { display:flex; align-items:center; gap:7px; }
.hero-notes i { width:4px; height:4px; border-radius:50%; background:var(--accent); }
.section-title { letter-spacing:-.04em; font-weight:600; }
.showcase-section { border-top:1px solid var(--mv-line); padding-top:72px; }
.pricing-section { padding-top:76px; }
.pricing-card { background:linear-gradient(155deg,var(--panel-top),var(--panel-bottom)); border-color:var(--mv-line); box-shadow:inset 0 1px 0 rgba(233,217,255,.07); border-radius:20px; }
.pricing-card.popular { border-color:rgba(var(--accent-rgb),.4); box-shadow:inset 0 1px 0 rgba(233,217,255,.15),0 20px 80px rgba(99,54,175,.1); }
.btn-primary,.btn-buy.primary { background:var(--accent); color:var(--on-accent); box-shadow:0 4px 24px rgba(var(--accent-rgb),.1); }
.btn-secondary { border-color:var(--mv-line); }
.plan-price { letter-spacing:-.05em; }
.plan-features { color:var(--text-body); }
.mv-community { margin:64px 0 0; padding:34px; display:flex; align-items:center; justify-content:space-between; gap:28px; border:1px solid var(--mv-line); border-radius:20px; background:var(--mv-soft); }
.mv-community h2 { margin:10px 0; font-size:28px; letter-spacing:-.035em; }
/* All existing utility pages */
.dash-container { max-width:1120px; margin:66px auto; padding:0 24px; }
.dash-card,.admin-card,.auth-card,.login-card { background:linear-gradient(145deg,var(--panel-top),var(--panel-bottom)); border:1px solid var(--mv-line); border-radius:22px; box-shadow:inset 0 1px 0 rgba(233,217,255,.07),0 25px 80px rgba(26,10,46,.12); }
.config-item { border-color:var(--mv-line); background:var(--mv-soft); }
.upload-area { background:var(--mv-soft); border-color:rgba(var(--accent-rgb),.25); }
.legal-page { background:linear-gradient(145deg,var(--panel-top),var(--panel-bottom)); padding:48px; border:1px solid var(--mv-line); border-radius:22px; margin-top:64px; overflow-wrap:anywhere; }
.legal-page h1 { letter-spacing:-.04em; }
.legal-page h2 { color:var(--text-main); }
.nf-inner { padding:44px; background:var(--mv-soft); border:1px solid var(--mv-line); border-radius:24px; }
.nf-code { text-shadow:0 0 70px rgba(var(--accent-rgb),.2); }
.auth-page .login-container { max-width:1120px; margin:auto; display:grid; grid-template-columns:1fr 440px; gap:80px; padding:60px 24px; }
.auth-page .login-card { max-width:440px; padding:36px; text-align:left; }
.auth-page .login-card h2 { letter-spacing:-.035em; }
.auth-glass-stage { position:relative; margin-top:20px; }

.auth-art h1 { margin:18px 0; font-size:clamp(36px,5vw,60px); letter-spacing:-.05em; line-height:1.06; }
.auth-art p { color:var(--text-muted); line-height:1.7; max-width:370px; }
.auth-art .auth-page .login-card>a img { width:38px; height:38px; }

/* Account & community */
.account-shell { width:min(1120px,calc(100% - 48px)); margin:60px auto 0; position:relative; z-index:2; }
.account-intro { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; margin-bottom:28px; }
.account-intro .mv-heading { margin:14px 0 8px; }
.account-tabs { display:flex; align-items:center; gap:8px; margin:0 0 32px; border-bottom:1px solid var(--mv-line); padding-bottom:14px; flex-wrap:wrap; }
.account-tabs a { padding:10px 16px; border-radius:8px; font-size:13px; color:var(--text-muted); }
.account-tabs a:hover { background:var(--mv-soft); color:var(--text-main); }
.account-tabs a[aria-current="page"] { background:var(--mv-soft); color:var(--accent); }
.account-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; }
.account-main { display:grid; gap:24px; min-width:0; }
.account-aside { display:flex; flex-direction:column; gap:24px; min-width:0; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.panel-heading h2 { font-size:20px; font-weight:550; letter-spacing:-.025em; }
.profile-summary { display:flex; align-items:center; gap:20px; }
.profile-summary h2 { font-size:27px; font-weight:600; letter-spacing:-.04em; overflow-wrap:anywhere; }
.profile-summary p { color:var(--text-muted); margin-top:6px; font-size:13px; }
.profile-form { display:grid; gap:20px; margin-top:28px; }
.profile-form .field-row { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; }
.profile-form .field-row .mv-label { margin:0; }
.profile-form-actions { display:flex; align-items:center; gap:16px; }
.avatar-actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.subscription-panel { position:relative; overflow:hidden; }
.subscription-panel::before { content:''; position:absolute; width:220px; height:220px; top:-120px; right:-40px; background:radial-gradient(circle,rgba(150,93,251,.17),transparent 70%); pointer-events:none; }
.subscription-value { font-size:30px; letter-spacing:-.045em; margin:12px 0 10px; }
.subscription-expiry { color:var(--text-muted); font-size:13px; line-height:1.6; }
.subscription-badge { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; background:var(--mv-soft); border:1px solid var(--mv-line); border-radius:8px; font-size:11px; color:var(--text-muted); }
.subscription-badge[data-state="active"] { color:var(--success); }
.subscription-badge[data-state="frozen"] { color:var(--accent); }
.subscription-badge[data-state="expired"] { color:var(--error); }
.subscription-panel .mv-button { margin-top:22px; width:100%; }
.subscription-panel .mv-small { margin-top:14px; }
.account-details { margin-top:24px; border-top:1px solid var(--mv-line); padding-top:20px; }
.account-details summary { font-size:13px; color:var(--text-muted); cursor:pointer; }
.account-details dl { margin-top:18px; display:grid; gap:16px; }
.account-details dt { font-size:11px; color:var(--text-muted); margin-bottom:6px; }
.account-details dd { font:12px/1.6 var(--font-mono); overflow-wrap:anywhere; }
.redeem-form { display:flex; gap:10px; margin-top:20px; }
.redeem-form .mv-input { min-width:0; }
.danger-panel { background:transparent; }
.danger-panel p { margin:12px 0 18px; }
.friend-preview { display:grid; gap:14px; margin-top:18px; }
.friend-preview a { display:flex; align-items:center; gap:12px; font-size:13px; overflow-wrap:anywhere; }
.friend-preview .mv-avatar { width:38px; height:38px; border-radius:12px; font-size:16px; }
.friends-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; }
.friend-filters { display:flex; gap:6px; flex-wrap:wrap; }
.friend-filter { display:flex; gap:8px; align-items:center; border:0; border-radius:9px; padding:11px 14px; color:var(--text-muted); background:transparent; cursor:pointer; font:500 13px var(--font-main); }
.friend-filter[aria-selected="true"] { color:var(--accent); background:var(--mv-soft); }
.friend-count { border-radius:5px; padding:2px 5px; font:10px var(--font-mono); background:var(--mv-soft); }
.friend-search { display:flex; gap:10px; margin-bottom:12px; }
.friend-search .mv-input { max-width:500px; }
.friends-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:26px; }
.friends-list>.mv-empty { grid-column:1/-1; }
.person-card { padding:24px; border-radius:18px; border:1px solid var(--mv-line); background:linear-gradient(145deg,var(--panel-top),var(--panel-bottom)); display:flex; flex-direction:column; gap:20px; min-width:0; }
.person-link { display:flex; gap:14px; align-items:center; }
.person-info { min-width:0; }
.person-info h3 { font-size:17px; font-weight:550; letter-spacing:-.025em; overflow-wrap:anywhere; }
.person-info p { color:var(--text-muted); font-size:12px; margin-top:6px; overflow-wrap:anywhere; }
.person-bio { font-size:13px; color:var(--text-muted); line-height:1.6; overflow-wrap:anywhere; white-space:pre-line; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.friend-actions { display:flex; flex-wrap:wrap; gap:8px; }
.friend-actions .mv-button { flex:1; font-size:12px; padding:10px 12px; }
.public-profile { max-width:820px; margin:0 auto; }
.profile-cover { height:175px; background:#08050e; border:1px solid var(--mv-line); border-radius:22px 22px 0 0; }
.public-profile .mv-panel { border-radius:0 0 22px 22px; border-top:0; padding:0 36px 36px; }
.public-profile .mv-avatar.large { margin-top:-40px; position:relative; background-color:var(--mv-panel); border:5px solid var(--mv-panel); width:112px; height:112px; }
.public-profile .profile-summary { align-items:flex-end; }
.public-profile .profile-summary>div:last-child { padding-bottom:10px; }
.public-profile .profile-bio { margin:28px 0; white-space:pre-line; color:var(--text-body); line-height:1.75; overflow-wrap:anywhere; }
.profile-meta { display:flex; gap:28px; padding:20px 0; margin-bottom:18px; border-block:1px solid var(--mv-line); font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
.profile-meta strong { font-weight:550; color:var(--text-main); }
.profile-share { margin-top:22px; display:flex; gap:12px; align-items:center; }
[hidden] { display:none !important; }
@media(max-width:960px) {
 .hero { min-height:550px; padding-top:60px; grid-template-columns:1.1fr .9fr; }
 .hero-art { margin-right:0; }
 .hero-title { font-size:clamp(38px,5.4vw,62px); }
 .account-grid { grid-template-columns:minmax(0,1fr) 280px; gap:18px; }
 .mv-panel { padding:24px; }
 .friends-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .auth-page .login-container { gap:36px; grid-template-columns:1fr 400px; }
 .auth-art h1 { font-size:44px; }
}
@media(max-width:700px) {
 .hero { grid-template-columns:1fr; padding:48px 0 40px; gap:8px; }
 .hero-title { font-size:clamp(40px,10.5vw,66px); }
 .hero-art { max-width:500px; width:100%; margin:0 auto; grid-row:2; }

  .hero-notes { gap:16px; flex-wrap:wrap; margin-top:28px; }
 .mv-community { flex-direction:column; align-items:flex-start; padding:26px; }
 .account-shell { width:calc(100% - 32px); margin-top:36px; }
 .account-grid { grid-template-columns:1fr; }
 .account-intro { align-items:flex-start; flex-direction:column; gap:16px; }
 .account-intro .mv-heading { font-size:36px; }
 .profile-summary { gap:16px; }
 .profile-summary h2 { font-size:24px; }
 .mv-avatar.large { width:80px; height:80px; border-radius:22px; }
 .mv-panel { padding:24px; border-radius:18px; }
 .account-aside { display:grid; grid-template-columns:1fr; }
 .redeem-form { flex-direction:column; }
 .friends-toolbar { flex-direction:column; align-items:flex-start; gap:14px; }
 .friends-list { grid-template-columns:1fr; }
 .friend-search .mv-button { padding:10px 15px; }
 .mv-footer { width:calc(100% - 32px); flex-direction:column; gap:12px; margin-top:36px; }
 .auth-page .login-container { grid-template-columns:1fr; gap:32px; min-height:auto; padding:40px 20px; }
 .auth-art { max-width:440px; margin:0 auto; width:100%; }
 .auth-glass-stage { width:min(100%,300px); margin:20px auto 0; }
 .auth-art h1 { font-size:36px; margin:14px 0; }
 .auth-art p { font-size:14px; }
 .auth-page .login-card { margin:0 auto; padding:28px; }
 .legal-page { padding:28px 22px; margin-top:36px; }
 .legal-page h1 { font-size:clamp(24px,5.5vw,32px); }
 .nf-inner { padding:30px 24px; }
 .public-profile .mv-panel { padding:0 24px 24px; }
 .profile-cover { height:150px; }
 .public-profile .profile-summary { align-items:flex-start; flex-direction:column; }
 .public-profile .profile-summary>div:last-child { padding:0; }
 .profile-share { align-items:flex-start; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }



.cursor-shader-canvas { mix-blend-mode:screen; }

/* Live Forma scenes: actual geometry and physical glass, rendered on the page. */
.glass-stage { isolation:isolate; }
.landing-page main { overflow-x:clip; }
.footer-links { display:flex; gap:16px; flex-wrap:wrap; min-width:0; }




.pricing-section { position:relative; isolation:isolate; }
.pricing-crystal { position:absolute; width:200px; height:200px; top:-110px; right:0; opacity:.8; }
.pricing-cards,.pricing-section>.section-title { position:relative; z-index:1; }

.profile-cover { position:relative; overflow:hidden; }

@media(max-width:960px) {


 .pricing-crystal { right:-20px; width:170px; }
}
@media(max-width:700px) {
 .hero-art { margin-top:26px; }



 .pricing-crystal { width:135px; height:135px; right:0; top:-100px; opacity:.65; }

}

.forma-stage { position:relative; pointer-events:none; isolation:isolate; overflow:hidden; }
.hero-art.forma-stage,.auth-glass-stage.forma-stage { aspect-ratio:4/3; width:100%; }
.forma-stage canvas { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.forma-stage.forma-unavailable::after { content:''; position:absolute; inset:25%; background:radial-gradient(ellipse,rgba(150,97,239,.12),transparent 70%); }
.pricing-crystal.forma-stage { position:absolute; }
@media(max-width:700px) { .auth-glass-stage.forma-stage { width:min(100%,300px); } }
.forma-motion-toggle { position:absolute; right:12px; bottom:12px; z-index:2; width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid var(--mv-line); border-radius:50%; background:var(--mv-panel); color:var(--text-muted); cursor:pointer; pointer-events:auto; opacity:.75; transition:opacity .16s; }
.forma-motion-toggle:focus-visible { opacity:1; color:var(--accent); }
@media(hover:hover) and (pointer:fine) { .forma-motion-toggle:hover { opacity:1; color:var(--accent); } }
@font-face {
 font-family:'Manrope'; font-style:normal; font-weight:700; font-display:swap;
 src:url('assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
}
.page-bottom-scene { position:relative; isolation:isolate; display:grid; place-items:center; width:100%; height:360px; margin-top:-30px; }
.page-bottom-crystals.forma-stage { position:absolute; inset:0; width:100%; height:100%; }
.mind-protection { --protection-width:290px; --protection-height:64px; --protection-cut:54px; position:relative; z-index:1; display:grid; justify-items:center; gap:0; font-family:'Manrope',sans-serif; font-weight:700; font-synthesis:none; }
.mind-protection-caption,.mind-protection-band { width:var(--protection-width); height:var(--protection-height); clip-path:polygon(var(--protection-cut) 0,100% 0,calc(100% - var(--protection-cut)) 100%,0 100%); }
.mind-protection-caption { display:grid; place-items:center; margin:0; background:#000; color:#fff; font-size:22px; line-height:1.2; letter-spacing:-.025em; }
.mind-protection-band { display:flex; align-items:center; justify-content:center; gap:8px; background:#fff; color:#000; font-size:32px; line-height:1; letter-spacing:-.025em; }
.mind-protection-mark { display:block; width:32px; height:27px; flex:none; }
@media(max-width:700px) {
 .page-bottom-scene { height:260px; margin-top:8px; }
 .mind-protection { --protection-width:clamp(150px,42vw,184px); --protection-height:44px; --protection-cut:37px; }
 .mind-protection-caption { font-size:15px; }
 .mind-protection-band { gap:6px; font-size:24px; }
 .mind-protection-mark { width:23px; height:20px; }
}

/* Circular avatars and shared profile identity. */
.mv-avatar,.mv-avatar.large,.friend-preview .mv-avatar { border-radius:50%; }
.profile-name { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-weight:700; letter-spacing:-.04em; line-height:1.25; overflow-wrap:anywhere; }
.profile-name-text { min-width:0; overflow-wrap:anywhere; }
.profile-uid { background:linear-gradient(110deg,#9362dc,#c7a4fc); background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent; font-weight:700; white-space:nowrap; }
[data-theme="light"] .profile-uid { background-image:linear-gradient(110deg,#7543bd,#a37add); }
.profile-crown { width:22px; height:22px; object-fit:contain; flex:none; }
.person-info .profile-name { font-size:16px; gap:6px; letter-spacing:-.025em; }
.person-info .profile-crown { width:17px; height:17px; }
