@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* Site-wide service state screen, built from the same glass and accent language as MSP2 Tool. */
#maintenance-overlay{--service-a:#a78bfa;--service-b:#d71962;position:fixed;inset:0;z-index:999999;display:none;overflow:auto;padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:radial-gradient(circle at 18% 12%,color-mix(in srgb,var(--service-a) 18%,transparent),transparent 31%),radial-gradient(circle at 84% 88%,color-mix(in srgb,var(--service-b) 15%,transparent),transparent 34%),linear-gradient(145deg,#05060a 0%,#0a0810 52%,#07070b 100%);font-family:'Manrope','DM Sans',system-ui,sans-serif;color:#fff}
#maintenance-overlay[data-service-mode="safety"]{--service-a:#fb7185;--service-b:#f59e0b;background:radial-gradient(circle at 17% 12%,rgba(190,24,93,.19),transparent 33%),radial-gradient(circle at 86% 86%,rgba(245,158,11,.14),transparent 35%),linear-gradient(145deg,#080609,#10090b 52%,#090708 100%)}
#maintenance-overlay.active{display:grid!important;place-items:center}
body.maintenance-active{overflow:hidden}
body.maintenance-active #star-canvas,body.maintenance-active .app-shell{display:none!important}
.service-ambient{position:fixed;border:1px solid color-mix(in srgb,var(--service-a) 15%,transparent);border-radius:50%;pointer-events:none;animation:maintenance-orbit 28s linear infinite}
.service-ambient::before,.service-ambient::after{content:"";position:absolute;border-radius:50%}.service-ambient::before{inset:14%;border:1px dashed color-mix(in srgb,var(--service-b) 12%,transparent)}.service-ambient::after{inset:42%;background:color-mix(in srgb,var(--service-a) 8%,transparent);box-shadow:0 0 110px color-mix(in srgb,var(--service-a) 14%,transparent)}
.service-ambient-one{width:min(86vw,960px);height:min(86vw,960px);left:-18vw;top:-42vw}.service-ambient-two{width:min(64vw,760px);height:min(64vw,760px);right:-22vw;bottom:-37vw;animation-direction:reverse;animation-duration:22s}
.maintenance-shell{position:relative;z-index:1;width:min(100%,720px)}
.maintenance-brand{display:flex;align-items:center;gap:12px;margin:0 0 18px 18px}.maintenance-brand img{width:42px;height:42px;border-radius:13px;box-shadow:0 8px 26px color-mix(in srgb,var(--service-a) 22%,transparent)}.maintenance-brand div{display:grid;gap:1px}.maintenance-brand strong{font-size:13px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.maintenance-brand span{color:rgba(255,255,255,.38);font-size:8px;font-weight:900;letter-spacing:.22em}
.maintenance-card{position:relative;isolation:isolate;overflow:hidden;padding:clamp(30px,5.8vw,58px);border:1px solid color-mix(in srgb,var(--service-a) 25%,rgba(255,255,255,.08));border-radius:32px;background:linear-gradient(145deg,rgba(20,17,26,.94),rgba(8,9,13,.965));box-shadow:0 34px 100px rgba(0,0,0,.7),0 0 90px color-mix(in srgb,var(--service-b) 10%,transparent),inset 0 1px rgba(255,255,255,.085);backdrop-filter:blur(30px) saturate(1.35)}
.maintenance-card::before{content:"";position:absolute;z-index:-1;width:390px;height:390px;right:-175px;top:-190px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--service-a) 25%,transparent),color-mix(in srgb,var(--service-b) 10%,transparent) 43%,transparent 70%)}
.maintenance-card::after{content:"";position:absolute;z-index:-1;width:220px;height:220px;left:-140px;bottom:-150px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--service-b) 12%,transparent),transparent 70%)}
.maintenance-accent{position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,transparent 4%,var(--service-a) 32%,var(--service-b) 70%,transparent 96%);box-shadow:0 0 24px color-mix(in srgb,var(--service-a) 55%,transparent)}
.maintenance-icon{position:relative;display:grid;place-items:center;width:74px;height:74px;margin-bottom:27px;border:1px solid color-mix(in srgb,var(--service-a) 36%,transparent);border-radius:23px;background:linear-gradient(145deg,color-mix(in srgb,var(--service-a) 21%,transparent),color-mix(in srgb,var(--service-b) 14%,transparent));color:color-mix(in srgb,var(--service-a) 72%,white);box-shadow:0 18px 42px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.08)}
.maintenance-icon::after{content:"";position:absolute;inset:-7px;border:1px solid color-mix(in srgb,var(--service-b) 18%,transparent);border-radius:29px;animation:maintenance-breathe 2.8s ease-in-out infinite}
.service-icon-safety{display:none}#maintenance-overlay[data-service-mode="safety"] .service-icon-maintenance{display:none}#maintenance-overlay[data-service-mode="safety"] .service-icon-safety{display:block}
.maintenance-eyebrow{display:block;margin-bottom:15px;color:color-mix(in srgb,var(--service-a) 72%,white);font-size:10px;font-weight:950;letter-spacing:.19em;text-transform:uppercase}
.maintenance-card h1{max-width:580px;margin:0 0 17px;font-size:clamp(34px,7vw,54px);font-weight:900;line-height:1.02;letter-spacing:-.05em;background:linear-gradient(135deg,#fff 0%,color-mix(in srgb,var(--service-a) 47%,white) 52%,color-mix(in srgb,var(--service-b) 58%,white) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.maintenance-card>p{max-width:590px;margin:0;color:rgba(255,255,255,.63);font:600 14px/1.78 'DM Sans',sans-serif}
.maintenance-divider{display:grid;grid-template-columns:minmax(24px,86px) 6px 1fr;align-items:center;gap:9px;margin:27px 0 18px}.maintenance-divider span{height:1px;background:linear-gradient(90deg,color-mix(in srgb,var(--service-a) 52%,transparent),rgba(255,255,255,.04))}.maintenance-divider span:last-child{background:linear-gradient(90deg,rgba(255,255,255,.08),transparent)}.maintenance-divider i{width:6px;height:6px;border-radius:50%;background:var(--service-b);box-shadow:0 0 14px color-mix(in srgb,var(--service-b) 70%,transparent)}
.maintenance-card>.maintenance-footnote{margin:0 0 22px;color:rgba(255,255,255,.38);font-size:11px;line-height:1.55}
.maintenance-retry{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid color-mix(in srgb,var(--service-a) 34%,transparent);border-radius:16px;background:linear-gradient(115deg,color-mix(in srgb,var(--service-a) 20%,transparent),color-mix(in srgb,var(--service-b) 24%,transparent));color:#faf7fc;font:850 12px 'Manrope','DM Sans',sans-serif;cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.06);transition:transform .2s ease,border-color .2s ease,background .2s ease}.maintenance-retry:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--service-a) 62%,transparent);background:linear-gradient(115deg,color-mix(in srgb,var(--service-a) 29%,transparent),color-mix(in srgb,var(--service-b) 34%,transparent))}.maintenance-retry:disabled{opacity:.55;cursor:wait;transform:none}.maintenance-retry:disabled svg{animation:maintenance-orbit 1s linear infinite}
@keyframes maintenance-breathe{0%,100%{opacity:.52;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@keyframes maintenance-orbit{to{transform:rotate(360deg)}}
@media(max-width:620px){#maintenance-overlay{place-items:start center;padding-top:max(22px,env(safe-area-inset-top))}.maintenance-shell{margin:auto 0}.maintenance-brand{margin:0 0 14px 8px}.maintenance-brand img{width:38px;height:38px}.maintenance-card{padding:31px 23px;border-radius:25px}.maintenance-icon{width:64px;height:64px;margin-bottom:23px;border-radius:20px}.maintenance-card h1{font-size:clamp(33px,10vw,43px)}.maintenance-card>p{font-size:13px;line-height:1.7}.service-ambient-one{left:-50vw;top:-22vw}.service-ambient-two{right:-48vw;bottom:-18vw}}
@media(prefers-reduced-motion:reduce){.service-ambient,.maintenance-icon::after,.maintenance-retry:disabled svg{animation:none}}

:root {
  --theme-main: #5b174f;
  --theme-light: #b91c1c;
  --theme-soft: #c084fc;
  --theme-glow: rgba(190, 24, 93, 0.2);
  --theme-glow-strong: rgba(220, 38, 38, 0.34);
  --theme-bg-glow-a: rgba(109, 40, 217, 0.07);
  --theme-bg-glow-b: rgba(185, 28, 28, 0.055);
  --theme-bg-glow-c: rgba(192, 132, 252, 0.048);
  --theme-border: rgba(126, 34, 206, 0.14);
  --theme-border-soft: rgba(220, 38, 38, 0.24);
  --theme-accent: linear-gradient(135deg, #a78bfa 0%, #be185d 48%, #b91c1c 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.42), rgba(220, 38, 38, 0.24));
  --theme-badge: rgba(190, 24, 93, 0.08);
  --theme-badge-shadow: rgba(220, 38, 38, 0.15);
  --theme-label: rgba(216, 180, 254, 0.74);
  --theme-swatch: #be185d;
  --music-glow: rgba(127, 29, 29, 0.2);
  --music-glow-strong: rgba(153, 27, 27, 0.34);
  --bg-primary: #06070b;
  --panel-bg: rgba(10, 10, 14, 0.82);
  --panel-bg-strong: rgba(8, 9, 12, 0.92);
  --panel-border: rgba(139, 92, 246, 0.15);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-soft-border: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-divider: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-muted: rgba(255, 255, 255, 0.28);
  --text-dim: rgba(255, 255, 255, 0.42);
  --danger-soft: rgba(248, 113, 113, 0.14);
  --danger-border: rgba(248, 113, 113, 0.28);
  --danger-text: #fca5a5;
  --success-soft: rgba(74, 222, 128, 0.14);
  --success-border: rgba(74, 222, 128, 0.28);
  --shadow-panel:
    0 0 80px 0 rgba(153, 27, 27, 0.14),
    0 30px 60px 0 rgba(0, 0, 0, 0.6),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.msp-player-backdrop{z-index:1280;padding:18px;background:rgba(3,4,8,.82);backdrop-filter:blur(12px)}
.msp-player-window{width:min(1380px,calc(100vw - 36px));height:min(860px,calc(100vh - 36px));max-width:none;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(196,111,255,.24);border-radius:28px;background:rgba(8,9,14,.98);box-shadow:0 34px 100px rgba(0,0,0,.68)}
.msp-player-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(9,10,16,.96)}
.msp-player-brand{display:flex;align-items:center;gap:10px;font-weight:950;letter-spacing:.02em}.msp-player-brand i{width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#c46fff,#d71962);box-shadow:0 0 16px #d71962}.msp-player-brand small{padding:4px 7px;border:1px solid rgba(196,111,255,.25);border-radius:999px;color:#c9a2ee;font-size:9px}
.msp-player-head-actions,.msp-player-toolbar,.msp-player-dialog-actions{display:flex;align-items:center;gap:9px}
.msp-player-btn{min-height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04);color:#f5f2f8;cursor:pointer;font-weight:800}.msp-player-btn:hover{border-color:rgba(196,111,255,.45);background:rgba(196,111,255,.1)}.msp-player-btn.primary{border-color:rgba(215,25,98,.4);background:linear-gradient(115deg,rgba(196,111,255,.25),rgba(215,25,98,.32))}.msp-player-btn.icon{width:42px;padding:0;font-size:20px}.msp-player-btn:disabled{opacity:.5;cursor:not-allowed}
.msp-player-body{min-height:0;display:flex;flex:1;flex-direction:column;padding:18px 20px 20px}.msp-player-intro{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}.msp-player-intro span{color:#bd76e8;font-size:10px;font-weight:950;letter-spacing:.14em}.msp-player-intro h2{margin:5px 0 0;font-size:clamp(23px,3vw,36px);letter-spacing:-.03em}.msp-player-intro p{max-width:570px;margin:0;color:#918c9c;font-size:12px;line-height:1.55}
.msp-player-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 230px auto;margin-bottom:14px}.msp-player-input,.msp-player-select,.msp-player-textarea{width:100%;border:1px solid rgba(255,255,255,.09);outline:0;background:rgba(255,255,255,.035);color:#f7f5fa}.msp-player-input,.msp-player-select{height:43px;padding:0 13px;border-radius:13px}.msp-player-select option{background:#101117}.msp-player-input:focus,.msp-player-select:focus,.msp-player-textarea:focus{border-color:rgba(196,111,255,.55);box-shadow:0 0 0 3px rgba(196,111,255,.08)}
.msp-player-youtube-search{margin:-2px 0 14px;padding:12px;border:1px solid rgba(196,111,255,.18);border-radius:16px;background:linear-gradient(110deg,rgba(196,111,255,.07),rgba(215,25,98,.035))}.msp-player-youtube-search.hidden{display:none}.msp-player-youtube-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#c7a0df;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.msp-player-youtube-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:184px;overflow:auto;padding-right:3px}.msp-player-youtube-item{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr) 34px;align-items:center;gap:9px;padding:7px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(10,11,17,.78)}.msp-player-youtube-art{width:54px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#24192b}.msp-player-youtube-art img{width:100%;height:100%;object-fit:cover}.msp-player-youtube-copy{min-width:0}.msp-player-youtube-copy b,.msp-player-youtube-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msp-player-youtube-copy b{font-size:11px}.msp-player-youtube-copy small{margin-top:4px;color:#8f8998;font-size:9px}.msp-player-youtube-add{width:32px;height:32px;border:1px solid rgba(196,111,255,.35);border-radius:10px;background:linear-gradient(135deg,rgba(196,111,255,.24),rgba(215,25,98,.28));color:#fff;font-size:21px;line-height:1;cursor:pointer}.msp-player-youtube-add:hover{border-color:#d69cff;transform:translateY(-1px)}.msp-player-youtube-add.added,.msp-player-youtube-add:disabled{border-color:rgba(117,240,197,.25);background:rgba(117,240,197,.09);color:#75f0c5;cursor:default;transform:none}.msp-player-youtube-message{padding:14px;color:#aaa3b0;text-align:center;font-size:11px}.msp-player-youtube-message.error{color:#ff9bab}
.msp-player-workspace{min-height:0;display:grid;grid-template-columns:320px minmax(0,1fr);gap:14px;flex:1}.msp-player-list,.msp-player-stage{min-height:0;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(255,255,255,.018)}.msp-player-list{overflow:auto;padding:9px}.msp-player-list::-webkit-scrollbar,.msp-player-tracks::-webkit-scrollbar,.msp-player-edit-card::-webkit-scrollbar{width:9px}.msp-player-list::-webkit-scrollbar-thumb,.msp-player-tracks::-webkit-scrollbar-thumb,.msp-player-edit-card::-webkit-scrollbar-thumb{border:2px solid #0b0c12;border-radius:999px;background:linear-gradient(#bd70f1,#d71962)}
.msp-player-list-head{display:flex;justify-content:space-between;padding:8px 8px 12px;color:#8e8998;font-size:10px;font-weight:900;letter-spacing:.08em}.msp-player-profile-row{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px;border:1px solid transparent;border-radius:16px;background:transparent;color:#f6f3f8;text-align:left;cursor:pointer}.msp-player-profile-row:hover{background:rgba(255,255,255,.035)}.msp-player-profile-row.active{border-color:rgba(196,111,255,.3);background:linear-gradient(105deg,rgba(196,111,255,.14),rgba(215,25,98,.07))}
.msp-player-avatar{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border:2px solid rgba(196,111,255,.34);border-radius:50%;background:linear-gradient(145deg,#49225f,#9c2159);font-weight:950}.msp-player-avatar img{width:100%;height:100%;object-fit:cover}.msp-player-row-copy{min-width:0}.msp-player-row-copy b,.msp-player-row-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msp-player-row-copy small{margin-top:4px;color:#8f8a98;font-size:11px}.msp-player-server{padding:5px 7px;border:1px solid rgba(255,255,255,.09);border-radius:8px;color:#b8b2bf;font-size:9px;font-weight:900}.msp-player-verified{display:inline-grid;place-items:center;width:16px;height:16px;margin-left:4px;border-radius:50%;background:#64ddb7;color:#07130f;font-size:10px;font-style:normal;font-weight:1000;vertical-align:2px;box-shadow:0 0 10px rgba(100,221,183,.35)}
.msp-player-stage{overflow:auto}.msp-player-cover{position:relative;min-height:230px;display:flex;align-items:end;padding:24px;background:linear-gradient(to top,rgba(7,8,12,.98),rgba(7,8,12,.12) 75%),radial-gradient(circle at 70% 20%,rgba(215,25,98,.55),transparent 31%),linear-gradient(120deg,#24162f,#111723 55%,#33121f);background-position:center;background-size:cover}.msp-player-identity{display:flex;align-items:end;gap:16px}.msp-player-identity .msp-player-avatar{width:86px;height:86px;border-width:3px;font-size:28px;box-shadow:0 14px 36px rgba(0,0,0,.5)}.msp-player-identity h3{margin:0;font-size:clamp(27px,4vw,44px);letter-spacing:-.035em}.msp-player-identity p{margin:6px 0 0;color:#c5c0cb;font-size:12px;font-weight:750}.msp-player-profile-body{padding:21px 24px}.msp-player-about{display:flex;align-items:start;justify-content:space-between;gap:18px}.msp-player-about p{max-width:760px;margin:0;color:#aaa5b1;font-size:13px;line-height:1.62}.msp-player-stats{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.msp-player-stat{padding:7px 10px;border:1px solid rgba(255,255,255,.08);border-radius:10px;color:#97919e;font-size:10px}.msp-player-stat strong{color:#f4f1f6}.msp-player-section-title{display:flex;justify-content:space-between;gap:12px;margin:18px 0 10px}.msp-player-section-title h4{margin:0}.msp-player-section-title span{color:#8f8997;font-size:10px}.msp-player-tracks{display:grid;gap:7px;max-height:270px;overflow:auto;padding-right:4px}.msp-player-track{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:9px 11px;border:1px solid transparent;border-radius:13px;background:rgba(255,255,255,.027);color:#f5f2f7;text-align:left;cursor:pointer}.msp-player-track:hover,.msp-player-track.playing{border-color:rgba(196,111,255,.28);background:rgba(196,111,255,.075)}.msp-player-track-index{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(140deg,rgba(196,111,255,.22),rgba(215,25,98,.16));font-weight:900}.msp-player-track-copy{min-width:0}.msp-player-track-copy b,.msp-player-track-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msp-player-track-copy small{margin-top:3px;color:#8e8996;font-size:10px}.msp-player-source{color:#aaa4b1;font-size:9px;font-weight:900;text-transform:uppercase}.msp-player-empty{padding:28px 15px;border:1px dashed rgba(255,255,255,.1);border-radius:15px;color:#85808d;text-align:center;font-size:12px}
.msp-player-embed{position:fixed;right:24px;bottom:24px;z-index:1320;width:min(430px,calc(100vw - 38px));overflow:hidden;border:1px solid rgba(196,111,255,.26);border-radius:18px;background:#0d0e14;box-shadow:0 25px 75px rgba(0,0,0,.72);opacity:1;visibility:visible;transform:translateY(0) scale(1);transform-origin:bottom right;transition:opacity .2s ease,visibility .2s ease,transform .2s ease}.msp-player-embed.minimized{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px) scale(.96)}.msp-player-embed-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:850}.msp-player-embed-actions{display:flex;align-items:center;gap:7px}.msp-player-embed-actions .msp-player-btn.icon{width:40px;height:40px}.msp-player-embed iframe{display:block;width:100%;height:240px;border:0}.msp-player-embed iframe.spotify{height:352px}.msp-player-embed audio{display:block;width:calc(100% - 24px);margin:18px 12px}.msp-player-restore{position:relative;flex:0 0 40px;width:40px;height:40px;display:inline-grid;place-items:center;margin-right:auto;border:1px solid color-mix(in srgb,var(--theme-light,#c47aff) 38%,transparent);border-radius:13px;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-main,#a855f7) 25%,#111219),rgba(215,25,98,.15));color:var(--theme-soft,#d8b4fe);box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 18px color-mix(in srgb,var(--theme-main,#a855f7) 18%,transparent);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.msp-player-restore:hover,.msp-player-restore:focus-visible{border-color:var(--theme-soft,#d8b4fe);outline:none;transform:translateY(-1px);box-shadow:0 10px 28px rgba(0,0,0,.34),0 0 24px color-mix(in srgb,var(--theme-main,#a855f7) 30%,transparent)}.msp-player-restore.hidden{display:none}.msp-player-restore-pulse{position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#75f0c5;box-shadow:0 0 0 0 rgba(117,240,197,.6);animation:msp-player-restore-pulse 1.8s ease-out infinite}@keyframes msp-player-restore-pulse{0%{box-shadow:0 0 0 0 rgba(117,240,197,.55)}70%,100%{box-shadow:0 0 0 7px rgba(117,240,197,0)}}body.old-layout-active .msp-player-restore{border-radius:9px;background:linear-gradient(145deg,rgba(196,111,255,.2),rgba(215,25,98,.12))}body:not(.old-layout-active) .msp-player-restore{border-radius:14px}
.msp-player-jam-button{display:inline-flex;align-items:center;gap:7px}.msp-player-jam-live{width:8px;height:8px;border-radius:50%;background:#6b6670;box-shadow:0 0 0 0 transparent}.msp-player-jam-button.active{border-color:rgba(117,240,197,.42);color:#9ef4d6;background:rgba(80,210,165,.1)}.msp-player-jam-button.active .msp-player-jam-live{background:#75f0c5;animation:msp-player-restore-pulse 1.8s ease-out infinite}.msp-player-jam-modal{z-index:1360;padding:18px;background:rgba(0,0,0,.78);backdrop-filter:blur(12px)}.msp-player-jam-card{width:min(560px,100%);overflow:hidden;border:1px solid rgba(196,111,255,.24);border-radius:24px;background:linear-gradient(145deg,#0f1018,#090a0f);box-shadow:0 32px 95px rgba(0,0,0,.74),0 0 55px rgba(160,65,220,.1)}.msp-player-jam-kicker{display:block;margin-bottom:5px;color:#bd76e8;font-size:9px;font-weight:950;letter-spacing:.16em}.msp-player-jam-card h3{margin:0;font-size:21px}.msp-player-jam-body{display:grid;gap:18px;padding:20px}.msp-player-jam-body>p{margin:0;color:#a8a2af;font-size:12px;line-height:1.6}.msp-player-jam-create{width:100%;min-height:54px;font-size:14px}.msp-player-jam-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:16px 0;color:#6f6975;font-size:9px}.msp-player-jam-divider span{height:1px;background:rgba(255,255,255,.08)}.msp-player-jam-room{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:15px;border:1px solid rgba(196,111,255,.2);border-radius:16px;background:rgba(196,111,255,.06)}.msp-player-jam-room>span{color:#b891d1;font-size:10px;font-weight:900;text-transform:uppercase}.msp-player-jam-room>strong{grid-column:1;letter-spacing:.18em;font-size:27px}.msp-player-jam-room>.msp-player-btn{grid-column:2;grid-row:1/3}.msp-player-jam-status{display:flex;align-items:center;gap:11px;margin-top:12px;padding:13px;border:1px solid rgba(255,190,90,.16);border-radius:14px;background:rgba(255,190,90,.04)}.msp-player-jam-status.connected{border-color:rgba(117,240,197,.16);background:rgba(117,240,197,.045)}.msp-player-jam-status-dot{width:10px;height:10px;border-radius:50%;background:#ffbe5a;box-shadow:0 0 16px rgba(255,190,90,.45)}.msp-player-jam-status.connected .msp-player-jam-status-dot{background:#75f0c5;box-shadow:0 0 16px rgba(117,240,197,.55)}.msp-player-jam-status b,.msp-player-jam-status small{display:block}.msp-player-jam-status small{margin-top:3px;color:#918b99;font-size:10px}.msp-player-jam-help{min-height:18px;margin:12px 0;color:#aaa4b0;font-size:11px}.msp-player-jam-card .msp-player-dialog-actions{margin-top:14px}.msp-player-btn.danger{border-color:rgba(255,91,122,.32);background:rgba(255,58,98,.09);color:#ff93aa}.msp-player-jam-card .hidden{display:none}
.msp-player-edit{z-index:1340;padding:18px;background:rgba(0,0,0,.76);backdrop-filter:blur(10px)}.msp-player-edit-card{width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:#0d0e14;box-shadow:0 30px 90px rgba(0,0,0,.72)}.msp-player-edit-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(13,14,20,.96)}.msp-player-edit-head h3{margin:0}.msp-player-edit-body{display:grid;gap:14px;padding:19px}.msp-player-field{display:grid;gap:7px;color:#cbc6d1;font-size:11px;font-weight:850}.msp-player-textarea{min-height:105px;padding:12px;border-radius:13px;resize:vertical}.msp-player-cover-upload{display:grid;place-items:center;min-height:135px;padding:17px;border:1px dashed rgba(196,111,255,.35);border-radius:16px;background:linear-gradient(120deg,rgba(196,111,255,.12),rgba(215,25,98,.08));background-position:center;background-size:cover;text-align:center;cursor:pointer}.msp-player-cover-upload input{display:none}.msp-player-cover-upload small{display:block;margin-top:5px;color:#96909e}.msp-player-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.msp-player-hint{padding:11px 13px;border:1px solid rgba(100,221,183,.18);border-radius:12px;background:rgba(100,221,183,.05);color:#b5dfd4;font-size:10px;line-height:1.55}.msp-player-drafts{display:grid;gap:7px}.msp-player-draft{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px}.msp-player-draft b,.msp-player-draft small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msp-player-draft small{margin-top:3px;color:#8d8795}.msp-player-dialog-actions{justify-content:flex-end}.msp-player-status{min-height:18px;color:#aaa4b0;font-size:11px}.msp-player-status.error{color:#ff839b}.msp-player-status.success{color:#7be2bf}
.msp-player-playlist-picker{display:grid;gap:10px;padding:12px;border:1px solid rgba(196,111,255,.22);border-radius:15px;background:rgba(196,111,255,.045)}.msp-player-playlist-picker.hidden{display:none}.msp-player-playlist-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.msp-player-playlist-head b,.msp-player-playlist-head small{display:block}.msp-player-playlist-head small{margin-top:4px;color:#918b99;font-size:10px}.msp-player-playlist-head>div:last-child{display:flex;gap:7px}.msp-player-playlist-items{display:grid;gap:6px;max-height:310px;overflow:auto;padding-right:4px}.msp-player-playlist-items::-webkit-scrollbar{width:8px}.msp-player-playlist-items::-webkit-scrollbar-thumb{border:2px solid #111019;border-radius:999px;background:linear-gradient(#bd70f1,#d71962)}.msp-player-playlist-item{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025)}.msp-player-playlist-item.selected{border-color:rgba(100,221,183,.22);background:rgba(100,221,183,.045)}.msp-player-playlist-item b,.msp-player-playlist-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msp-player-playlist-item small{margin-top:3px;color:#8d8795;font-size:10px}.msp-player-playlist-item .msp-player-btn.selected{border-color:rgba(100,221,183,.22);color:#7be2bf;opacity:1}
.msp-player-track{grid-template-columns:58px minmax(0,1fr) auto}.msp-player-track-art{display:grid;place-items:center;width:56px;height:42px;overflow:hidden;border-radius:9px;background:linear-gradient(140deg,rgba(196,111,255,.22),rgba(215,25,98,.16));font-weight:900}.msp-player-track-art img{width:100%;height:100%;object-fit:cover}.msp-player-draft{grid-template-columns:52px minmax(0,1fr) auto}.msp-player-draft-art{display:grid;place-items:center;width:50px;height:38px;overflow:hidden;border-radius:8px;background:rgba(196,111,255,.12);color:#c989f2;font-weight:900}.msp-player-draft-art img{width:100%;height:100%;object-fit:cover}.msp-player-embed.single-youtube{width:min(360px,calc(100vw - 38px))}.msp-player-embed.single-youtube iframe{height:203px}.msp-player-embed.playlist-player{width:min(560px,calc(100vw - 38px))}.msp-player-embed.playlist-player iframe{height:315px}.msp-player-embed.audio-player{width:min(430px,calc(100vw - 38px))}
@media(max-width:850px){.msp-player-window{width:calc(100vw - 20px);height:calc(100vh - 20px)}.msp-player-intro p{display:none}.msp-player-workspace{grid-template-columns:1fr}.msp-player-list{max-height:210px}.msp-player-stage{min-height:420px}.msp-player-toolbar{grid-template-columns:1fr 1fr}.msp-player-toolbar .msp-player-btn{grid-column:1/-1}.msp-player-youtube-items{grid-template-columns:repeat(2,minmax(0,1fr))}.msp-player-cover{min-height:190px}}
@media(max-width:560px){.msp-player-backdrop{padding:0}.msp-player-window{width:100vw;height:100vh;border:0;border-radius:0}.msp-player-head{padding:13px}.msp-player-head-actions .msp-player-btn:not(.icon){font-size:0;width:42px;padding:0}.msp-player-head-actions .msp-player-btn:not(.icon)::after{content:'✎';font-size:17px}.msp-player-body{padding:12px}.msp-player-intro{margin-bottom:10px}.msp-player-intro h2{font-size:22px}.msp-player-toolbar{grid-template-columns:1fr}.msp-player-toolbar .msp-player-btn{grid-column:auto}.msp-player-youtube-items{grid-template-columns:1fr;max-height:240px}.msp-player-list{max-height:180px}.msp-player-cover{padding:17px}.msp-player-identity .msp-player-avatar{width:67px;height:67px}.msp-player-profile-body{padding:17px 14px}.msp-player-about{flex-direction:column}.msp-player-about .msp-player-btn{width:100%}.msp-player-track{grid-template-columns:36px minmax(0,1fr)}.msp-player-source{display:none}.msp-player-link-row{grid-template-columns:1fr}}
@media(max-width:560px){.msp-player-jam-button{font-size:0!important}.msp-player-jam-button::after{content:'♫'!important;font-size:18px!important}.msp-player-jam-button .msp-player-jam-live{position:absolute;margin:-24px 0 0 26px}.msp-player-jam-modal{padding:10px}.msp-player-jam-card{border-radius:19px}.msp-player-jam-body{padding:16px}.msp-player-jam-room{grid-template-columns:1fr}.msp-player-jam-room>.msp-player-btn{grid-column:1;grid-row:auto;width:100%}.msp-player-jam-card .msp-player-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.msp-player-jam-card .msp-player-dialog-actions .msp-player-btn{width:100%}}
@media(max-width:560px){.msp-player-track{grid-template-columns:54px minmax(0,1fr)}.msp-player-track-art{width:52px;height:40px}.msp-player-draft{grid-template-columns:46px minmax(0,1fr)}.msp-player-draft-art{width:44px;height:36px}.msp-player-draft .msp-player-btn{grid-column:1/-1;width:100%}.msp-player-embed.single-youtube,.msp-player-embed.playlist-player{right:10px;bottom:10px;width:calc(100vw - 20px)}.msp-player-restore{flex-basis:34px;width:34px;height:34px;border-radius:10px}.msp-player-restore svg{width:15px;height:15px}}
@media(max-width:560px){.msp-player-playlist-head{align-items:stretch;flex-direction:column}.msp-player-playlist-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.msp-player-playlist-item{grid-template-columns:44px minmax(0,1fr)}.msp-player-playlist-item .msp-player-btn{grid-column:1/-1;width:100%}}

.msp-player-verified{display:inline-block;width:20px;height:20px;margin-left:5px;border:0;border-radius:0;background:transparent;object-fit:contain;vertical-align:-5px;box-shadow:none;filter:drop-shadow(0 0 7px rgba(215,25,98,.42))}
.msp-player-jam-button{justify-content:center}.msp-player-jam-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:850px){.msp-player-body{overflow-y:auto;overscroll-behavior:contain}.msp-player-workspace{display:flex;flex:none;flex-direction:column;min-height:auto}.msp-player-list{flex:none;max-height:none;overflow:hidden}.msp-player-list-head{padding-bottom:8px}.msp-player-list #msp-player-profile-list{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;padding:1px 1px 7px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#bd70f1 #12131a}.msp-player-list #msp-player-profile-list::-webkit-scrollbar{height:7px}.msp-player-list #msp-player-profile-list::-webkit-scrollbar-thumb{border-radius:999px;background:linear-gradient(90deg,#bd70f1,#d71962)}.msp-player-profile-row{flex:0 0 250px;scroll-snap-align:start}.msp-player-stage{flex:none;min-height:420px;overflow:visible}.msp-player-tracks{max-height:none;overflow:visible}}
@media(max-width:560px){.msp-player-window{height:100dvh}.msp-player-head{gap:8px;padding:11px 10px}.msp-player-brand{gap:7px;white-space:nowrap}.msp-player-brand small{padding:3px 5px}.msp-player-head-actions{gap:6px}.msp-player-head-actions .msp-player-btn:not(.icon){width:40px;min-height:40px}.msp-player-list{max-height:none;border-radius:16px;padding:8px}.msp-player-list-head{padding:5px 5px 9px}.msp-player-profile-row{flex-basis:215px;grid-template-columns:42px minmax(0,1fr);gap:9px;padding:8px}.msp-player-profile-row .msp-player-avatar{width:42px;height:42px}.msp-player-profile-row .msp-player-server{grid-column:2;justify-self:start;padding:3px 6px}.msp-player-stage{min-height:0;border-radius:16px}.msp-player-cover{min-height:210px}.msp-player-identity{gap:12px}.msp-player-identity h3{font-size:29px}.msp-player-verified{width:22px;height:22px;vertical-align:-6px}.msp-player-jam-button{position:relative;display:grid!important;place-items:center;font-size:0!important}.msp-player-jam-button::after{content:none!important}.msp-player-jam-button .msp-player-jam-icon{display:block;width:20px;height:20px}.msp-player-jam-button .msp-player-jam-live{position:absolute;top:6px;right:6px;width:6px;height:6px;margin:0}}

.msp-player-mini{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 18px;padding:9px 18px 11px;border-top:1px solid rgba(255,255,255,.08);background:rgba(5,6,10,.98);box-shadow:0 -12px 35px rgba(0,0,0,.28)}.msp-player-mini.hidden{display:none}.msp-player-mini-title{overflow:hidden;color:#a9a4b0;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.msp-player-mini-buttons{display:flex;align-items:center;justify-content:center;gap:9px}.msp-player-mini-buttons button{width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#aaa6af;cursor:pointer;transition:color .16s ease,background .16s ease,transform .16s ease}.msp-player-mini-buttons button:hover,.msp-player-mini-buttons button.active{background:rgba(196,111,255,.11);color:#f6f3f8}.msp-player-mini-buttons button:active{transform:scale(.93)}.msp-player-mini-buttons svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.msp-player-mini-buttons .msp-player-mini-toggle{width:42px;height:42px;background:#f7f5f8;color:#090a0e}.msp-player-mini-buttons .msp-player-mini-toggle:hover{background:#fff;color:#090a0e}.msp-player-mini-toggle .msp-player-mini-play{display:block;fill:currentColor;stroke:none}.msp-player-mini-toggle .msp-player-mini-pause{display:none}.msp-player-mini-toggle.playing .msp-player-mini-play{display:none}.msp-player-mini-toggle.playing .msp-player-mini-pause{display:block}.msp-player-mini-progress{grid-column:1/-1;display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;color:#bab5c0;font-size:10px;font-variant-numeric:tabular-nums}.msp-player-mini-progress span:last-child{text-align:right}.msp-player-mini-progress input{width:100%;height:4px;margin:0;accent-color:#c46fff;cursor:pointer}
@media(max-width:560px){.msp-player-jam-button .msp-player-jam-icon{position:absolute;left:50%;top:50%;width:19px;height:19px;transform:translate(calc(-50% + 1px),-50%)}.msp-player-jam-button .msp-player-jam-live{display:none;top:5px;right:5px}.msp-player-jam-button.active .msp-player-jam-live{display:block}.msp-player-mini{grid-template-columns:1fr;padding:7px 12px 9px}.msp-player-mini-title{display:none}.msp-player-mini-buttons{gap:12px}.msp-player-mini-buttons button{width:32px;height:32px}.msp-player-mini-buttons .msp-player-mini-toggle{width:40px;height:40px}.msp-player-mini-progress{grid-column:1;grid-template-columns:34px minmax(0,1fr) 34px;gap:6px}}

[data-theme="blue"] {
  --theme-main: #426f9f;
  --theme-light: #93c5fd;
  --theme-soft: #bfdbfe;
  --theme-glow: rgba(147, 197, 253, 0.17);
  --theme-glow-strong: rgba(125, 211, 252, 0.3);
  --theme-border: rgba(147, 197, 253, 0.13);
  --theme-border-soft: rgba(191, 219, 254, 0.24);
  --theme-accent: linear-gradient(135deg, #bfdbfe 0%, #7dd3fc 52%, #c4b5fd 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(191, 219, 254, 0.38), rgba(125, 211, 252, 0.22), rgba(196, 181, 253, 0.2));
  --theme-badge: rgba(147, 197, 253, 0.08);
  --theme-badge-shadow: rgba(125, 211, 252, 0.13);
  --theme-label: rgba(191, 219, 254, 0.76);
  --theme-swatch: #7dd3fc;
}

[data-theme="pink"] {
  --theme-main: #9d628e;
  --theme-light: #f0abfc;
  --theme-soft: #fbcfe8;
  --theme-glow: rgba(251, 207, 232, 0.18);
  --theme-glow-strong: rgba(240, 171, 252, 0.3);
  --theme-border: rgba(251, 207, 232, 0.13);
  --theme-border-soft: rgba(240, 171, 252, 0.24);
  --theme-accent: linear-gradient(135deg, #fbcfe8 0%, #f0abfc 48%, #c4b5fd 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(251, 207, 232, 0.4), rgba(240, 171, 252, 0.24), rgba(196, 181, 253, 0.2));
  --theme-badge: rgba(251, 207, 232, 0.08);
  --theme-badge-shadow: rgba(240, 171, 252, 0.13);
  --theme-label: rgba(251, 207, 232, 0.78);
  --theme-swatch: #f0abfc;
}

[data-theme="cyan"] {
  --theme-main: #4e8d91;
  --theme-light: #67e8f9;
  --theme-soft: #ccfbf1;
  --theme-glow: rgba(204, 251, 241, 0.16);
  --theme-glow-strong: rgba(103, 232, 249, 0.28);
  --theme-border: rgba(153, 246, 228, 0.13);
  --theme-border-soft: rgba(204, 251, 241, 0.23);
  --theme-accent: linear-gradient(135deg, #ccfbf1 0%, #67e8f9 52%, #a7f3d0 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(204, 251, 241, 0.34), rgba(103, 232, 249, 0.22), rgba(167, 243, 208, 0.18));
  --theme-badge: rgba(153, 246, 228, 0.08);
  --theme-badge-shadow: rgba(103, 232, 249, 0.13);
  --theme-label: rgba(204, 251, 241, 0.76);
  --theme-swatch: #67e8f9;
}

[data-theme="orange"] {
  --theme-main: #97725e;
  --theme-light: #fdba74;
  --theme-soft: #fed7aa;
  --theme-glow: rgba(254, 215, 170, 0.16);
  --theme-glow-strong: rgba(253, 186, 116, 0.28);
  --theme-border: rgba(254, 215, 170, 0.13);
  --theme-border-soft: rgba(253, 186, 116, 0.23);
  --theme-accent: linear-gradient(135deg, #fed7aa 0%, #fdba74 48%, #f9a8d4 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(254, 215, 170, 0.34), rgba(253, 186, 116, 0.22), rgba(249, 168, 212, 0.18));
  --theme-badge: rgba(254, 215, 170, 0.08);
  --theme-badge-shadow: rgba(253, 186, 116, 0.13);
  --theme-label: rgba(254, 215, 170, 0.78);
  --theme-swatch: #fdba74;
}

[data-theme="rock"] {
  --theme-main: #7f1d1d;
  --theme-light: #dc2626;
  --theme-soft: #f87171;
  --theme-glow: rgba(248, 113, 113, 0.22);
  --theme-glow-strong: rgba(220, 38, 38, 0.42);
  --theme-border: rgba(127, 29, 29, 0.18);
  --theme-border-soft: rgba(248, 113, 113, 0.28);
  --theme-accent: linear-gradient(135deg, #f87171 0%, #dc2626 55%, #991b1b 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(248, 113, 113, 0.5), rgba(220, 38, 38, 0.22));
  --theme-badge: rgba(248, 113, 113, 0.09);
  --theme-badge-shadow: rgba(248, 113, 113, 0.16);
  --theme-label: rgba(252, 165, 165, 0.82);
  --theme-swatch: #dc2626;
  --panel-border: rgba(248, 113, 113, 0.16);
}

[data-theme="dream"] {
  --theme-main: #075985;
  --theme-light: #38bdf8;
  --theme-soft: #bae6fd;
  --theme-glow: rgba(125, 211, 252, 0.2);
  --theme-glow-strong: rgba(56, 189, 248, 0.34);
  --theme-border: rgba(14, 116, 144, 0.15);
  --theme-border-soft: rgba(186, 230, 253, 0.28);
  --theme-accent: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 48%, #c4b5fd 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(186, 230, 253, 0.44), rgba(196, 181, 253, 0.2));
  --theme-badge: rgba(125, 211, 252, 0.08);
  --theme-badge-shadow: rgba(125, 211, 252, 0.15);
  --theme-label: rgba(186, 230, 253, 0.82);
  --theme-swatch: #7dd3fc;
  --panel-border: rgba(186, 230, 253, 0.16);
}

[data-theme="rainbow"] {
  --theme-main: #8b5cf6;
  --theme-light: #ec4899;
  --theme-soft: #c084fc;
  --theme-glow: rgba(192, 132, 252, 0.22);
  --theme-glow-strong: rgba(192, 132, 252, 0.38);
  --theme-bg-glow-a: rgba(139, 92, 246, 0.08);
  --theme-bg-glow-b: rgba(34, 211, 238, 0.06);
  --theme-border: rgba(168, 85, 247, 0.16);
  --theme-border-soft: rgba(192, 132, 252, 0.28);
  --theme-accent: linear-gradient(135deg, #fb923c 0%, #ec4899 35%, #a78bfa 68%, #22d3ee 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(251, 146, 60, 0.45), rgba(236, 72, 153, 0.25), rgba(167, 139, 250, 0.22), rgba(34, 211, 238, 0.22));
  --theme-badge: rgba(192, 132, 252, 0.1);
  --theme-badge-shadow: rgba(192, 132, 252, 0.16);
  --theme-label: rgba(216, 180, 254, 0.84);
  --theme-swatch: #c084fc;
}

[data-theme="pixel"] {
  --theme-main: #0f766e;
  --theme-light: #22c55e;
  --theme-soft: #86efac;
  --theme-glow: rgba(34, 197, 94, 0.2);
  --theme-glow-strong: rgba(45, 212, 191, 0.38);
  --theme-bg-glow-a: rgba(20, 184, 166, 0.07);
  --theme-bg-glow-b: rgba(34, 197, 94, 0.05);
  --theme-bg-glow-c: rgba(132, 204, 22, 0.045);
  --theme-border: rgba(34, 197, 94, 0.15);
  --theme-border-soft: rgba(134, 239, 172, 0.26);
  --theme-accent: linear-gradient(135deg, #86efac 0%, #22c55e 48%, #14b8a6 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(134, 239, 172, 0.38), rgba(20, 184, 166, 0.22));
  --theme-badge: rgba(34, 197, 94, 0.08);
  --theme-badge-shadow: rgba(34, 197, 94, 0.16);
  --theme-label: rgba(134, 239, 172, 0.84);
  --theme-swatch: #22c55e;
  --panel-border: rgba(134, 239, 172, 0.18);
  --music-glow: rgba(34, 197, 94, 0.18);
  --music-glow-strong: rgba(20, 184, 166, 0.34);
}

[data-theme="gold"] {
  --theme-main: #b8860b;
  --theme-light: #d4a843;
  --theme-soft: #c8a030;
  --theme-glow: rgba(200, 160, 48, 0.28);
  --theme-glow-strong: rgba(240, 200, 80, 0.42);
  --theme-bg-glow-a: rgba(184, 134, 11, 0.08);
  --theme-bg-glow-b: rgba(200, 160, 48, 0.065);
  --theme-bg-glow-c: rgba(212, 168, 67, 0.055);
  --theme-border: rgba(200, 160, 48, 0.18);
  --theme-border-soft: rgba(212, 168, 67, 0.32);
  --theme-accent: linear-gradient(135deg, #c8a030 0%, #d4a843 48%, #f0c850 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(200, 160, 48, 0.38), rgba(212, 168, 67, 0.28), rgba(240, 200, 80, 0.2));
  --theme-badge: rgba(200, 160, 48, 0.1);
  --theme-badge-shadow: rgba(184, 134, 11, 0.2);
  --theme-label: rgba(240, 200, 80, 0.88);
  --theme-swatch: #c8a030;
  --panel-border: rgba(200, 160, 48, 0.22);
  --music-glow: rgba(127, 90, 0, 0.2);
  --music-glow-strong: rgba(153, 110, 0, 0.34);
}

[data-theme="aurora"] {
  --theme-main: #18564f;
  --theme-light: #7cf5c4;
  --theme-soft: #b7f7ff;
  --theme-glow: rgba(71, 243, 187, 0.18);
  --theme-glow-strong: rgba(118, 245, 198, 0.36);
  --theme-bg-glow-a: rgba(34, 211, 238, 0.075);
  --theme-bg-glow-b: rgba(74, 222, 128, 0.065);
  --theme-bg-glow-c: rgba(167, 139, 250, 0.06);
  --theme-border: rgba(110, 231, 183, 0.16);
  --theme-border-soft: rgba(125, 245, 196, 0.28);
  --theme-accent: linear-gradient(135deg, #b7f7ff 0%, #7cf5c4 42%, #8b5cf6 100%);
  --theme-accent-soft: linear-gradient(135deg, rgba(183, 247, 255, 0.4), rgba(124, 245, 196, 0.24), rgba(139, 92, 246, 0.2));
  --theme-badge: rgba(110, 231, 183, 0.08);
  --theme-badge-shadow: rgba(124, 245, 196, 0.16);
  --theme-label: rgba(183, 247, 255, 0.84);
  --theme-swatch: #7cf5c4;
  --panel-border: rgba(110, 231, 183, 0.18);
}

[data-theme="pixel"] .login-card,
[data-theme="pixel"] .dashboard-frame,
[data-theme="pixel"] .fm-window,
[data-theme="pixel"] .about-card,
[data-theme="pixel"] .guide-card,
[data-theme="pixel"] .music-panel {
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(134, 239, 172, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.54);
}

[data-theme="pixel"] button,
[data-theme="pixel"] input,
[data-theme="pixel"] select,
[data-theme="pixel"] textarea {
  border-radius: 8px;
}

[data-theme="pixel"] .site-brand,
[data-theme="pixel"] .about-mini-brand,
[data-theme="pixel"] .hero-title {
  text-shadow: 0 0 0 transparent, 2px 2px 0 rgba(34, 197, 94, 0.2);
}

[data-theme="gold"] .login-card,
[data-theme="gold"] .dashboard-frame,
[data-theme="gold"] .fm-window,
[data-theme="gold"] .about-card,
[data-theme="gold"] .guide-card,
[data-theme="gold"] .music-panel {
  box-shadow:
    0 0 38px rgba(200, 160, 48, 0.16),
    0 0 70px rgba(184, 134, 11, 0.1),
    0 28px 66px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="gold"] .site-brand,
[data-theme="gold"] .about-mini-brand,
[data-theme="gold"] .hero-title,
[data-theme="gold"] .tbar-stat-val,
[data-theme="gold"] .tbar-xp-cur {
  text-shadow:
    0 0 12px rgba(200, 160, 48, 0.34),
    0 0 22px rgba(240, 200, 80, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #010204 0%, #05060a 48%, #010204 100%);
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background:
    radial-gradient(circle at 18% 28%, var(--theme-bg-glow-a), transparent 34%),
    radial-gradient(circle at 84% 20%, var(--theme-bg-glow-b), transparent 30%),
    radial-gradient(circle at 50% 78%, var(--theme-bg-glow-c), transparent 34%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 140% 140%, 150% 150%, 130% 130%, 220px 220px;
  animation: ambient-field-drift 44s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 42%, var(--theme-bg-glow-a), transparent 36%),
    radial-gradient(circle at 88% 34%, var(--theme-bg-glow-b), transparent 34%),
    radial-gradient(circle at 58% 10%, var(--theme-bg-glow-c), transparent 28%);
  filter: blur(22px) saturate(0.92);
  opacity: 0.45;
  animation: ambient-glow-loop 58s linear infinite;
}

@keyframes ambient-field-drift {
  0%,
  100% {
    background-position: 0% 0%, 100% 12%, 50% 100%, 0 0;
  }

  50% {
    background-position: 10% 8%, 88% 22%, 58% 90%, 18px 12px;
  }
}

@keyframes ambient-glow-loop {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(22px) saturate(0.92);
  }

  50% {
    transform: translate3d(2.4%, -1.6%, 0) scale(1.035);
    filter: blur(24px) saturate(1.02);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(22px) saturate(0.92);
  }
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.toast-stack {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(34, 197, 94, 0.36);
  border-radius: 14px;
  background: rgba(10, 11, 17, 0.96);
  color: var(--text-primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transform: translateX(calc(100% + 18px));
  will-change: transform, opacity;
  transition:
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #86efac;
  box-shadow: none;
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.36);
}

.toast.success::before {
  background: #86efac;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.42);
  color: var(--text-primary);
}

.toast.error::before {
  background: #f87171;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(420px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 520px) {
  .toast-stack {
    top: 10px;
    right: 10px;
    width: min(300px, calc(100vw - 20px));
  }

  .toast {
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .toast::before {
    width: 8px;
    height: 8px;
  }
}

#star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.78) 100%);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--theme-accent);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 26px var(--theme-glow);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--theme-accent);
  box-shadow: 0 0 14px var(--theme-glow-strong);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--theme-glow-strong);
  }

  50% {
    transform: scale(1.14);
    box-shadow: 0 0 18px var(--theme-glow-strong);
  }
}

#profile-info {
  display: flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition:
    max-width 0.45s ease,
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

#profile-info.visible {
  max-width: 370px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.tbar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.tbar-avatar-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 62px;
  flex: 0 0 62px;
}

.tbar-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.account-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.account-switch-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.account-switch-btn.active {
  transform: rotate(180deg);
  color: var(--theme-light);
}

.account-switcher-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 130;
  width: 260px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(9, 10, 14, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.account-switcher-panel.hidden {
  display: none;
}

.account-switcher-head {
  padding: 4px 6px 8px;
  color: var(--text-secondary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-switcher-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.account-switcher-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.account-switcher-row:hover {
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
}

.account-switcher-row.current {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

.account-switcher-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 900;
}

.account-switcher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-switcher-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.account-switcher-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-switcher-meta {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}

.account-switcher-current-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--theme-badge);
  color: var(--theme-light);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-switcher-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.account-switcher-remove:hover {
  color: var(--danger-text);
  background: var(--danger-soft);
}

.account-switcher-empty {
  padding: 10px 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.account-switcher-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.account-switcher-add:hover {
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tbar-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  padding: 2px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--theme-soft);
  box-shadow: 0 0 0 2px var(--theme-glow);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbar-avatar::before {
  content: none;
}

.tbar-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.tbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
  background: transparent;
}

.tbar-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbar-username {
  display: block;
  max-width: 62px;
  color: var(--text-primary);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tbar-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 92px;
  flex-wrap: wrap;
}

.tbar-badge-icon {
  width: 17px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.verified-badge-btn,
.verified-badge-inline {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.verified-badge-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(125, 211, 252, 0.34));
}

[data-theme="pixel"] .verified-badge-img {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.34));
}

.verified-info-popover {
  position: fixed;
  z-index: 1200;
  max-width: min(240px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.94);
  color: var(--text-primary);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38), 0 0 20px rgba(125, 211, 252, 0.08);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  pointer-events: none;
}

.tbar-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  flex-shrink: 0;
}

.tbar-row2,
.tbar-row3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tbar-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tbar-stat-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.tbar-stat-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0;
}

.tbar-fame-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.tbar-fame-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tbar-fame-level {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}

.tbar-xp-wrap {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tbar-xp-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tbar-xp-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-accent);
  box-shadow: 0 0 12px var(--theme-glow-strong);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.tbar-xp-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tbar-xp-cur,
.tbar-xp-max {
  font-size: 9px;
  font-weight: 600;
}

.tbar-xp-cur {
  color: var(--theme-soft);
}

.tbar-xp-max {
  color: var(--text-muted);
}

.topbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-online-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  min-width: 42px;
  padding: 0 9px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background: var(--theme-badge);
  color: var(--text-primary);
  box-shadow: 0 0 16px 0 var(--theme-badge-shadow);
  font-size: 10px;
  font-weight: 800;
}

.topbar-online-badge svg {
  color: var(--theme-soft);
}

.topbar-boost-badge {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.08);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.topbar-boost-badge:hover,
.topbar-boost-badge:focus-visible {
  border-color: rgba(251, 191, 36, 0.7);
  outline: none;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.18);
}

.topbar-boost-badge svg {
  color: #fbbf24;
}

.btn-support,
.btn-updates,
.btn-logout {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.btn-support {
  color: var(--text-primary);
}

.btn-support svg,
.btn-updates svg {
  color: var(--theme-soft);
}

.support-label {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-badge,
.support-unread-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff5b7e;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 91, 126, 0.38);
}

.support-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.updates-unread-badge,
.updates-menu-unread-badge {
  display: none;
  border-radius: 999px;
  background: #ff3b75;
  box-shadow: 0 0 0 3px rgba(255, 59, 117, 0.14), 0 0 16px rgba(255, 59, 117, 0.72);
}

.updates-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
}

.updates-menu-unread-badge {
  width: 8px;
  height: 8px;
  margin-left: auto;
}

.updates-unread-badge.is-visible,
.updates-menu-unread-badge.is-visible {
  display: block;
  animation: updates-unread-pulse 1.8s ease-in-out infinite;
}

@keyframes updates-unread-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.72; }
}

.btn-support:hover,
.btn-updates:hover,
.btn-logout:hover {
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn-hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.btn-hamburger:hover {
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
}
.btn-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
}
.btn-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.btn-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
}
.hamburger-line {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(10, 10, 14, 0.96);
  backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hamburger-dropdown.active {
  display: flex;
}
.hmenu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--theme-accent);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.hmenu-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.06);
}
.hmenu-online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
button.hmenu-online-badge {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
button.hmenu-online-badge:hover {
  background: rgba(255, 255, 255, 0.07);
}
.hmenu-online-badge svg {
  color: var(--theme-soft);
  flex-shrink: 0;
}
.hmenu-online-label {
  color: var(--text-secondary);
  font-size: 10px;
}
.hmenu-online-count {
  margin-left: auto;
  font-weight: 800;
  font-size: 11px;
}
.hmenu-limit-bar-wrap {
  padding: 0 10px 6px;
}
.hmenu-limit-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hmenu-limit-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.85), rgba(34, 211, 238, 0.75));
  transition: width 0.4s ease, background 0.3s ease;
}
.hmenu-limit-fill.low {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.85), rgba(239, 68, 68, 0.75));
}
.hmenu-limit-fill.critical {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.8));
}
.hmenu-limit-resets {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}
.hmenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.hmenu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.hmenu-item svg {
  flex-shrink: 0;
  color: var(--theme-soft);
}
.hmenu-logout {
  color: rgba(248, 113, 113, 0.85);
}
.hmenu-logout:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}
.hmenu-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: #ff5b7e;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}
.hmenu-badge.hidden {
  display: none;
}

.usage-limit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 10px;
  padding: 8px 12px;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.limit-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.limit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-soft);
}
.limit-title {
  flex: 1;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.limit-value {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.limit-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.limit-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.85), rgba(34, 211, 238, 0.75));
  transition: width 0.4s ease, background 0.3s ease;
}
.limit-fill.low {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.85), rgba(239, 68, 68, 0.75));
}
.limit-fill.critical {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.8));
}
.limit-resets {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

#main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 20px 24px 34px;
}

body.app-has-panel #main {
  align-items: flex-end;
}

#login-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

#login-panel.hiding {
  opacity: 0;
  transform: scale(0.96) translateY(-12px);
  pointer-events: none;
}

.login-card {
  position: relative;
  width: min(100%, 356px);
  padding: 24px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-bg);
  backdrop-filter: blur(34px) saturate(1.4);
  box-shadow: var(--shadow-panel);
}

.login-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, var(--theme-glow-strong) 0%, rgba(0, 0, 0, 0) 42%),
    radial-gradient(circle at 66% 62%, var(--theme-bg-glow-b) 0%, rgba(0, 0, 0, 0) 52%);
  opacity: 0.5;
  animation: panel-glow-flow 34s ease-in-out infinite;
}

.login-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes panel-glow-flow {
  0%,
  100% {
    transform: translate3d(-4px, -2px, 0) scale(1);
  }

  50% {
    transform: translate3d(9px, 7px, 0) scale(1.07);
  }
}

.card-top,
.card-heading,
.login-form,
.creator-signature {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-badge);
  box-shadow: 0 0 20px 0 var(--theme-badge-shadow);
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-soft);
}

.status-count {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.card-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  box-shadow: 0 0 18px var(--theme-badge-shadow);
  cursor: default;
}

.card-heading {
  margin: 28px 0 24px;
  text-align: center;
}

.card-title {
  margin: 0 0 8px;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--theme-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.login-about-link:hover {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  color: var(--text-primary);
}

.login-form {
  display: flex;
  flex-direction: column;
}

.field {
  position: relative;
  width: 100%;
  min-height: 56px;
  border-bottom: 1px solid var(--line-soft);
}

.field + .field {
  margin-top: 10px;
}

.field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--theme-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field-label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--theme-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.field-control,
.field-select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
}

.field-control {
  min-height: 54px;
  padding: 20px 0 8px;
}

.field:has(.password-toggle) .field-control {
  padding-right: 34px;
}

.field-control::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.field-select {
  min-height: 54px;
  padding: 24px 28px 8px 0;
  appearance: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.32);
}

.field-select.has-value {
  color: var(--text-primary);
}

.field-select option {
  background: #0a0b10;
  color: #fff;
}

.select-arrow {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.password-toggle:hover {
  color: var(--theme-soft);
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(167, 139, 250, 0.12);
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle.showing .eye-open {
  display: none;
}

.password-toggle.showing .eye-closed {
  display: block;
}

.password-break-slot {
  position: relative;
  min-height: 56px;
  margin-top: 10px;
  perspective: 760px;
}

.password-break-surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.password-break-surface.login-password-tension {
  animation: login-password-tension 0.72s ease-in-out both;
}

@keyframes login-password-tension {
  0%, 100% { transform: translateX(0); filter: brightness(1); }
  35% { transform: translateX(-1px) skewX(-0.4deg); filter: brightness(1.14); }
  52% { transform: translateX(1.5px) skewX(0.5deg); }
  70% { transform: translateX(-1px); filter: brightness(1.3); }
}

.login-password-shard {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  opacity: 0;
  clip-path: polygon(var(--shard-clip));
  border: 1px solid color-mix(in srgb, var(--theme-soft) 42%, rgba(255,255,255,.18));
  background:
    linear-gradient(to bottom, transparent calc(100% - 1px), var(--line-soft) calc(100% - 1px)),
    linear-gradient(112deg,
      color-mix(in srgb, var(--panel-bg) 74%, var(--theme-soft) 26%),
      color-mix(in srgb, var(--panel-bg) 84%, var(--theme-accent) 16%));
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--theme-glow-strong) 24%, transparent),
    0 5px 14px rgba(0,0,0,.2);
  pointer-events: none;
  will-change: transform, opacity;
}

.login-password-shard::before {
  content: attr(data-mask);
  position: absolute;
  top: 23px;
  left: 0;
  width: 100%;
  padding-right: 38px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

.password-break-surface.login-password-breaking {
  overflow: visible;
  border-bottom-color: transparent;
}

.password-break-surface.login-password-breaking::after,
.password-break-surface.login-password-breaking > :not(.login-password-shard) {
  opacity: 0;
}

.password-break-surface.login-password-breaking .login-password-shard {
  opacity: 1;
  animation: login-password-shard-fall var(--shard-fall, 1.15s) cubic-bezier(.34,.02,.76,.5) forwards;
  animation-delay: var(--shard-wait, 0s);
}

@keyframes login-password-shard-fall {
  0% { transform: translate3d(0,0,0) rotate(0deg); opacity: 1; }
  14% { transform: translate3d(0,5px,0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--shard-x), calc(215px + var(--shard-y)), 0) rotate(var(--shard-rotate)); opacity: 0; }
}

.password-break-surface.login-password-gone {
  opacity: 0;
}

.password-break-surface.login-password-rebuild {
  animation: login-password-return 0.7s cubic-bezier(.16,.8,.25,1) both;
}

@keyframes login-password-return {
  0% { opacity: 0; transform: translateY(18px) scale(.84,.15); filter: blur(8px) brightness(2); }
  52% { opacity: .8; transform: translateY(-2px) scale(1.02,.92); filter: blur(1px) brightness(1.32); }
  100% { opacity: 1; transform: none; filter: none; }
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.remember-row input {
  width: 19px;
  height: 19px;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.remember-row input:checked {
  border-color: rgba(167, 139, 250, 0.9);
  background:
    linear-gradient(135deg, var(--theme-accent), var(--theme-soft));
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16);
}

.remember-row input:checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  margin: 3px 0 0 6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.error-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  line-height: 1.45;
}

.error-msg.show {
  display: block;
}

.login-lock-window {
  width: min(100%, 440px);
  max-height: none;
}

.login-lock-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
}

.login-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--danger-border);
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger-text);
}

.login-lock-body h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.login-lock-copy {
  margin: -4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.login-lock-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.login-lock-time {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.login-lock-time strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.login-lock-time span {
  display: block;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
}

.login-lock-ok {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--theme-border);
  border-radius: 13px;
  background: var(--theme-accent);
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.region-support-window {
  width: min(100%, 480px);
}

.region-support-icon {
  border-color: var(--theme-border-strong);
  background: var(--theme-badge);
  color: var(--theme-soft);
  box-shadow: 0 0 28px var(--theme-badge-shadow);
}

.region-support-code {
  margin-top: -8px;
  padding: 5px 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 999px;
  color: var(--theme-soft);
  background: var(--theme-badge);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.region-support-reason {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.region-support-reason.hidden { display: none; }

.region-support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.login-lock-ok.secondary {
  background: rgba(255, 255, 255, .045);
  color: var(--text-primary);
}

.submit-wrap {
  position: relative;
  margin-top: 26px;
}

.submit-glow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  opacity: 0;
  background: var(--theme-accent-soft);
  filter: blur(8px);
  transition: opacity 0.22s ease;
}

.submit-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: var(--theme-accent);
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.35;
  cursor: not-allowed;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.submit-button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.submit-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.submit-button:not(:disabled):hover + .submit-glow,
.submit-wrap:hover .submit-glow {
  opacity: 1;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

.submit-button .spinner {
  display: none;
  width: 18px;
  height: 18px;
}

.submit-button.loading {
  cursor: progress;
}

.submit-button.loading .spinner {
  display: block;
}

.submit-button.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 0.8s linear infinite;
}

.creator-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  user-select: none;
}

.creator-signature span {
  color: rgba(255, 255, 255, 0.36);
}

.creator-signature strong {
  color: var(--theme-soft);
  font-weight: 900;
  text-shadow: 0 0 16px var(--theme-glow-strong);
}

.creator-signature::before,
.creator-signature::after {
  content: '';
  width: 28px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--theme-border-soft), transparent);
  opacity: 0.8;
}

#main-panel {
  width: min(1120px, 100%);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#main-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-frame {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: rgba(10, 10, 14, 0.74);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-panel);
}

.dashboard-frame::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--theme-glow-strong) 0%, rgba(0, 0, 0, 0) 72%);
  opacity: 0.45;
  pointer-events: none;
}

.dashboard-menu-frame {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 16px;
}

.dashboard-menu-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: min(360px, calc(100% - 56px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.dashboard-hero,
.mp-tabs,
.mp-content {
  position: relative;
  z-index: 1;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 999px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 10px;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-text {
  margin: 0;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 320px);
}

.hero-stat {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hero-stat-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-stat strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.mp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-divider);
}

.mp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.mp-tab.active,
.mp-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mp-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
  overflow-x: auto;
  scrollbar-width: none;
}

.mp-category-tabs::-webkit-scrollbar {
  display: none;
}

.mp-category-tab {
  flex: 1 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.mp-category-tab.active,
.mp-category-tab:hover {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  color: var(--theme-soft);
}

.mp-quick-area {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.mp-search-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mp-search-wrap span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mp-search-wrap input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 14px;
  background: rgba(5, 8, 16, 0.72);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mp-search-wrap input:focus {
  border-color: var(--theme-border);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14);
}

.mp-quick-actions {
  display: flex;
  align-items: end;
  gap: 7px;
  min-width: 0;
  padding-top: 17px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mp-quick-actions::-webkit-scrollbar {
  display: none;
}

.mp-quick-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mp-quick-btn:hover {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

.main-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 2px;
}

.mp-tool-section {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.mp-tool-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}

.mp-tool-section-head h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.mp-tool-section-head span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.mp-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.main-actions-grid .hidden-by-filter {
  display: none;
}

.mp-action-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 14, 0.7);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.mp-action-btn::after {
  display: none;
}

.mp-action-btn:hover {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.mp-action-btn:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.mp-action-btn.daily-task-success .mp-action-icon {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.mp-action-btn.daily-task-error .mp-action-icon {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.mp-action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mp-action-badge-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--panel-bg-strong, #0a0a0e);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
  animation: mp-badge-pulse 1.8s ease-in-out infinite;
}

@keyframes mp-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.mp-action-label {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.mp-action-desc {
  max-width: 220px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.25;
}

.mp-square-action {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  aspect-ratio: auto;
  min-height: 66px;
  padding: 10px 100px 10px 12px;
  border-radius: 14px;
  text-align: left;
}

.mp-square-action::after {
  display: none;
}

.mp-square-action .mp-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.mp-square-action .mp-action-label {
  flex: 0 0 auto;
  padding-right: 0;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.15;
}

.mp-square-action .mp-action-desc {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin-left: -2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.mp-risk-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.74);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.mp-vip-action .mp-risk-badge {
  right: 14px;
  z-index: 3;
}

.mp-risk-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.risk-safe {
  color: #86efac;
}

.risk-low {
  color: #fde68a;
}

.risk-medium {
  color: #fdba74;
}

.risk-high {
  color: #fca5a5;
}

.layout-choice-window {
  width: min(100%, 520px);
}

.layout-choice-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.layout-choice-card {
  display: grid;
  gap: 16px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 14, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.layout-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-soft);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.layout-choice-card-new {
  border-color: rgba(167, 139, 250, 0.32);
  background:
    radial-gradient(circle at 82% 16%, rgba(167, 139, 250, 0.22), transparent 34%),
    rgba(10, 10, 14, 0.9);
}

.layout-choice-name {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.layout-choice-preview {
  display: block;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.035);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.layout-preview-old {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.05), rgba(5, 8, 16, 0.42)),
    url("assets/layout-old-preview.png");
}

.layout-preview-new {
  background-image:
    linear-gradient(180deg, rgba(5, 8, 16, 0.05), rgba(5, 8, 16, 0.42)),
    url("assets/layout-new-preview.png");
}

.layout-old {
  width: min(100%, 620px);
  padding: 14px 18px 18px;
}

.old-start-shell {
  display: none;
}

.old-layout-active .old-start-shell {
  position: fixed;
  left: 24px;
  bottom: 18px;
  z-index: 2147481000;
  display: block;
}

.old-start-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.old-start-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.26));
}

.old-layout-active .old-start-shell.is-open .old-start-button,
.old-start-button:hover {
  transform: translateY(-2px);
  filter:
    drop-shadow(0 0 16px rgba(167, 139, 250, 0.5))
    drop-shadow(0 0 28px rgba(34, 211, 238, 0.24));
}

.old-start-menu {
  position: fixed;
  left: 22px;
  bottom: 82px;
  width: min(370px, calc(100vw - 52px));
  max-height: min(520px, 68vh);
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.12), transparent 34%),
    rgba(8, 11, 18, 0.96);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.94);
  transform-origin: left bottom;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.old-layout-active .old-start-shell.is-open .old-start-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.old-start-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.old-start-head img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.old-start-tools {
  display: grid;
  gap: 7px;
  max-height: min(420px, 52vh);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.old-start-tools::-webkit-scrollbar {
  width: 10px;
}

.old-start-tools::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.old-start-tools::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 11, 18, 0.96);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--theme-soft), var(--theme-light));
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

.old-start-tools::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, var(--theme-light), var(--theme-soft));
}

.old-start-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.old-start-item:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
}

.old-start-item-icon {
  display: grid;
  place-items: center;
}

.old-start-item-icon .mp-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.old-start-item-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.old-start-item-text strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.old-start-item-text small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

.layout-old .mp-quick-area {
  display: none;
}

.layout-old .mp-category-tabs {
  margin-bottom: 0;
}

.layout-old .main-actions-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 0 12px;
  overflow-x: auto;
  contain: layout paint style;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.layout-old .main-actions-grid::-webkit-scrollbar {
  height: 7px;
}

.layout-old .main-actions-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.layout-old .main-actions-grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 10, 14, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--theme-soft), var(--theme-light));
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

body.old-panel-scroll-active::before,
body.old-panel-scroll-active::after {
  animation-play-state: paused !important;
}

body.old-panel-scroll-active .layout-old .mp-action-btn,
body.old-panel-scroll-active .layout-old .mp-action-icon,
body.old-panel-scroll-active .layout-old .mp-risk-badge,
body.old-panel-scroll-active .layout-old .mp-action-badge-dot {
  transition: none !important;
  animation-play-state: paused !important;
  box-shadow: none !important;
}

body.old-panel-scroll-active .layout-old .main-actions-grid::-webkit-scrollbar-thumb {
  box-shadow: none;
}

.layout-old .mp-tool-section {
  display: contents;
  padding: 0;
  border: 0;
  background: transparent;
}

.layout-old .mp-tool-section-head {
  display: none;
}

.layout-old .mp-tool-grid {
  display: contents;
}

.layout-old .mp-square-action {
  flex: 0 0 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 108px;
  aspect-ratio: 1 / 1;
  min-height: 108px;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
}

.layout-old .mp-square-action .mp-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.layout-old .mp-square-action .mp-action-label {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout-old .mp-square-action .mp-action-desc {
  display: none;
}

.layout-old .mp-risk-badge {
  top: 9px;
  right: 9px;
  display: grid;
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  transform: none;
  border-color: currentColor;
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
}

.layout-old .mp-risk-badge span:last-child { display: none; }
.layout-old .mp-risk-badge .mp-risk-dot { width: 4px; height: 4px; background: #090a0e; box-shadow: none; }

.old-start-item { position: relative; }
.old-start-risk-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.layout-new.dashboard-menu-frame {
  width: min(100%, 1280px);
  padding: 20px;
  border-color: color-mix(in srgb, var(--theme-soft) 32%, transparent);
  background:
    radial-gradient(circle at 86% 5%, color-mix(in srgb, var(--theme-light) 15%, transparent), transparent 29%),
    radial-gradient(circle at 7% 100%, rgba(34, 211, 238, .08), transparent 30%),
    rgba(7, 8, 14, .9);
}

.layout-new .mp-content { min-height: 650px; }
.layout-new #mp-section-menu { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px 18px; }
.layout-new .mp-new-welcome { grid-column: 1 / -1; display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 122px; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); overflow: hidden; }
.layout-new .mp-new-profile { display: flex; align-items: center; gap: 12px; }
.mp-new-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border: 2px solid var(--theme-border-soft); border-radius: 20px; background: var(--theme-badge); color: var(--theme-soft); font-size: 24px; font-weight: 950; overflow: hidden; box-shadow: 0 0 24px var(--theme-glow); }
.mp-new-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-new-profile > div:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.mp-new-profile small,.mp-new-kicker { color: var(--theme-soft); font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.mp-new-profile strong { overflow: hidden; color: var(--text-primary); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.mp-new-welcome-copy h2 { margin: 4px 0; color: var(--text-primary); font-size: 25px; }
.mp-new-welcome-copy p { margin: 0; color: var(--text-secondary); font-size: 12px; font-weight: 750; }
.mp-risk-legend { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 12px; }
.mp-risk-legend span { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; }
.mp-risk-legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.layout-new .mp-category-tabs { grid-column: 1; grid-row: 2 / span 3; display: flex; align-self: start; flex-direction: column; gap: 7px; padding: 11px; border-radius: 20px; background: rgba(255,255,255,.025); overflow: visible; }
.layout-new .mp-category-tab { flex: 0 0 auto; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; text-align: left; }
.layout-new .mp-category-tab.active { background: linear-gradient(110deg, color-mix(in srgb, var(--theme-main) 35%, transparent), color-mix(in srgb, var(--theme-light) 15%, transparent)); box-shadow: inset 3px 0 0 var(--theme-soft); }
.layout-new .mp-quick-area,.layout-new .main-actions-grid { grid-column: 2; }
.layout-new .mp-quick-area { margin: 0; }
.layout-new .main-actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 2px; }
.layout-new .mp-tool-section { border-radius: 20px; background: rgba(255,255,255,.022); }
.layout-new .mp-action-btn { min-height: 92px; align-items: flex-start; padding: 14px 78px 14px 14px; overflow: hidden; }
.layout-new .mp-action-btn::before { content: ''; position: absolute; inset: auto -20% -62% 22%; height: 90%; background: radial-gradient(circle, color-mix(in srgb, var(--theme-light) 22%, transparent), transparent 68%); pointer-events: none; }
.layout-new .mp-action-btn:nth-child(3n+2)::before { background: radial-gradient(circle, rgba(236,72,153,.18), transparent 68%); }
.layout-new .mp-action-btn:nth-child(3n)::before { background: radial-gradient(circle, rgba(34,211,238,.18), transparent 68%); }
.layout-new .mp-action-desc { display: block; }
.layout-new .mp-risk-badge { top: 12px; right: 12px; transform: none; }

.feature-suite-window { width: min(100%, 720px); }
.feature-suite-body { display: grid; gap: 16px; padding: 20px; }
.health-score-card { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.035); }
.health-score-ring { --health-score: 0deg; display: grid; place-content: center; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle closest-side, #10121a 78%, transparent 80%), conic-gradient(#52e7b3 var(--health-score), rgba(255,255,255,.08) 0); text-align: center; }
.health-score-ring strong { color: #fff; font-size: 27px; line-height: 1; }.health-score-ring span { color: var(--text-secondary); font-size: 10px; font-weight: 900; }
.health-score-card h3 { margin: 0 0 6px; font-size: 17px; }.health-score-card p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.health-result-list { display: grid; gap: 8px; }.health-result { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }.health-result > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; font-weight: 950; }.health-result.ok > span { background: rgba(52,211,153,.13); color: #6ee7b7; }.health-result.warn > span { background: rgba(251,191,36,.13); color: #fde68a; }.health-result strong { font-size: 12px; }.health-result small { color: var(--text-secondary); font-size: 10px; font-weight: 800; }
.quick-actions-modal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.quick-actions-modal-grid button { display: grid; place-items: center; gap: 9px; min-height: 118px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.02)); color: var(--text-primary); cursor: pointer; }.quick-actions-modal-grid button:hover { transform: translateY(-2px); border-color: var(--theme-border-soft); }.quick-actions-modal-grid svg { width: 24px; height: 24px; color: var(--theme-soft); }.quick-actions-modal-grid span { font-size: 12px; font-weight: 900; }

.andormeda-profile-entry {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--theme-soft) 42%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-main) 18%, rgba(10, 11, 17, .86));
  color: var(--theme-soft);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.andormeda-profile-entry:hover { transform: translateY(-2px); border-color: var(--theme-soft); background: var(--theme-badge); }
.layout-new .mp-new-profile { position: relative; padding-right: 52px; }

.andormeda-extension-window { width: min(100%, 900px); max-height: min(88vh, 860px); }
.andormeda-extension-body { display: grid; gap: 16px; padding: 20px; overflow: auto; }
.andormeda-extension-hero { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 18px; padding: 20px; border: 1px solid color-mix(in srgb, var(--theme-soft) 24%, transparent); border-radius: 22px; background: radial-gradient(circle at 6% 10%, color-mix(in srgb, var(--theme-light) 19%, transparent), transparent 42%), linear-gradient(125deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.andormeda-extension-mark { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--theme-border-soft); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--theme-main) 42%, #11121a), color-mix(in srgb, var(--theme-light) 18%, #08090d)); color: #fff; font-family: 'Manrope','DM Sans',sans-serif; font-size: 30px; font-weight: 950; box-shadow: 0 0 30px var(--theme-glow); }
.andormeda-extension-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.andormeda-extension-kicker { color: var(--theme-soft); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.andormeda-extension-hero h3 { margin: 6px 0 7px; color: var(--text-primary); font-size: clamp(20px,3vw,28px); line-height: 1.15; }
.andormeda-extension-hero p { margin: 0; color: var(--text-secondary); font-size: 12px; font-weight: 750; line-height: 1.55; }
.andormeda-extension-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.andormeda-extension-stats > span { display: grid; place-items: center; gap: 3px; min-height: 70px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.025); text-align: center; }
.andormeda-extension-stats strong { color: var(--text-primary); font-size: 18px; }
.andormeda-extension-stats small { color: var(--text-secondary); font-size: 10px; font-weight: 850; }
.andormeda-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.andormeda-feature-grid article { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; min-height: 126px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.015)); }
.andormeda-feature-grid article > span { display: grid; place-items: center; align-self: start; width: 36px; height: 36px; border-radius: 12px; background: var(--theme-badge); color: var(--theme-soft); font-size: 10px; font-weight: 950; }
.andormeda-feature-grid h4 { margin: 1px 0 6px; color: var(--text-primary); font-size: 13px; }
.andormeda-feature-grid p { margin: 0; color: var(--text-secondary); font-size: 11px; font-weight: 700; line-height: 1.55; }
.andormeda-extension-note,.andormeda-extension-warning { padding: 13px 15px; border-radius: 15px; font-size: 11px; font-weight: 800; line-height: 1.5; }
.andormeda-extension-note { border: 1px solid rgba(56,189,248,.2); background: rgba(56,189,248,.07); color: #bae6fd; }
.andormeda-extension-warning { border: 1px solid rgba(251,191,36,.22); background: rgba(251,191,36,.07); color: #fde68a; }
.andormeda-download-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border: 1px solid var(--theme-border-soft); border-radius: 16px; background: linear-gradient(110deg,color-mix(in srgb,var(--theme-main) 66%,#18111f),color-mix(in srgb,var(--theme-light) 31%,#31101f)); color: #fff; font-size: 13px; font-weight: 950; text-decoration: none; box-shadow: 0 14px 34px color-mix(in srgb,var(--theme-main) 22%,transparent); transition: transform .18s ease, filter .18s ease; }
.andormeda-download-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.andormeda-install-section { display: grid; gap: 14px; padding: 17px; border: 1px solid color-mix(in srgb,var(--theme-soft) 22%,transparent); border-radius: 20px; background: rgba(255,255,255,.025); }
.andormeda-install-heading { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; }
.andormeda-install-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--theme-badge); color: var(--theme-soft); font-size: 17px; font-weight: 950; }
.andormeda-install-heading h3 { margin: 0 0 3px; color: var(--text-primary); font-size: 16px; }
.andormeda-install-heading p { margin: 0; color: var(--text-secondary); font-size: 11px; font-weight: 750; line-height: 1.45; }
.andormeda-install-steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.andormeda-install-steps li { display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 10px; min-height: 96px; padding: 13px; border: 1px solid rgba(255,255,255,.065); border-radius: 15px; background: rgba(0,0,0,.14); }
.andormeda-install-steps li > span { display: grid; place-items: center; align-self: start; width: 29px; height: 29px; border-radius: 10px; background: color-mix(in srgb,var(--theme-main) 24%,transparent); color: var(--theme-soft); font-size: 11px; font-weight: 950; }
.andormeda-install-steps strong { display: block; margin: 1px 0 5px; color: var(--text-primary); font-size: 12px; }
.andormeda-install-steps p { margin: 0; color: var(--text-secondary); font-size: 10px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.andormeda-install-tip { margin: 0; padding: 11px 13px; border-radius: 13px; background: color-mix(in srgb,var(--theme-main) 9%,rgba(0,0,0,.18)); color: var(--text-secondary); font-size: 10px; font-weight: 800; line-height: 1.5; }

@media (max-width: 900px) {
  .layout-new #mp-section-menu { grid-template-columns: 1fr; }
  .layout-new .mp-new-welcome,.layout-new .mp-category-tabs,.layout-new .mp-quick-area,.layout-new .main-actions-grid { grid-column: 1; }
  .layout-new .mp-category-tabs { grid-row: auto; flex-direction: row; overflow-x: auto; }
  .layout-new .mp-category-tab { width: auto; }
  .layout-new .main-actions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .layout-new .mp-new-welcome { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .layout-new .main-actions-grid,.quick-actions-modal-grid,.andormeda-feature-grid,.andormeda-install-steps { grid-template-columns: 1fr; }.health-score-card { grid-template-columns: 1fr; }.mp-risk-legend { display: none; }.andormeda-extension-body { padding: 14px; }.andormeda-extension-hero { grid-template-columns: 54px minmax(0,1fr); padding: 15px; }.andormeda-extension-mark { width: 52px; height: 52px; border-radius: 17px; font-size: 24px; }.andormeda-extension-stats { gap: 6px; }.andormeda-extension-stats > span { min-height: 62px; padding: 8px 4px; }.andormeda-feature-grid article,.andormeda-install-steps li { min-height: 0; }.andormeda-extension-window { max-height: calc(100vh - 18px); }.andormeda-install-section { padding: 14px; } }

.layout-old .mp-new-welcome {
  display: none !important;
}

.layout-old .mp-risk-badge,
.layout-old .mp-vip-action > .mp-risk-badge {
  top: 8px;
  right: 8px;
  display: block;
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.layout-old .mp-risk-badge > span {
  display: none !important;
}

.layout-new.dashboard-menu-frame {
  width: min(100%, 1380px);
  min-height: 680px;
  padding: 22px;
  overflow: visible;
}

.layout-new #mp-section-menu {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 16px 20px;
}

.layout-new .mp-new-welcome {
  display: contents;
}

.layout-new .mp-new-profile {
  grid-column: 1;
  grid-row: 1;
  min-height: 116px;
  padding: 18px 52px 18px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--theme-light) 15%, transparent), transparent 48%),
    rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.layout-new .mp-new-welcome-copy {
  grid-column: 2;
  grid-row: 1;
  min-height: 116px;
  padding: 22px 260px 20px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--theme-light) 19%, transparent), transparent 34%),
    linear-gradient(112deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.layout-new .mp-new-welcome-copy h2 {
  max-width: 680px;
  margin: 7px 0 7px;
  overflow: hidden;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-new .mp-new-welcome-copy p {
  max-width: 650px;
  line-height: 1.55;
}

.layout-new .mp-risk-legend {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  align-self: center;
  justify-self: end;
  margin-right: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(5,7,12,.54);
  backdrop-filter: blur(12px);
}

.layout-new .mp-category-tabs {
  grid-column: 1;
  grid-row: 2 / span 2;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 390px;
  padding: 12px;
  overflow: visible;
  border-radius: 22px;
  background: rgba(7,9,15,.78);
}

.layout-new .mp-category-tab {
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  text-align: left;
}

.layout-new .mp-quick-area {
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  margin: 0;
  padding: 0;
}

.layout-new .main-actions-grid {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  min-width: 0;
  padding: 0 0 4px;
}

.layout-new .mp-tool-section,
.layout-new .mp-tool-grid {
  display: contents;
}

.layout-new .mp-tool-section.hidden-by-filter {
  display: none;
}

.layout-new .mp-tool-section-head {
  display: none;
}

.layout-new .mp-action-btn,
.layout-new .mp-square-action {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  min-width: 0;
  min-height: 142px;
  padding: 16px;
  padding-right: 88px;
  overflow: hidden;
  border-radius: 19px;
  text-align: left;
}

.layout-new .mp-action-icon,
.layout-new .mp-square-action .mp-action-icon {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.layout-new .mp-action-label,
.layout-new .mp-square-action .mp-action-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-new .mp-action-desc,
.layout-new .mp-square-action .mp-action-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  display: -webkit-box;
  max-width: none;
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.layout-new .mp-risk-badge,
.layout-new .mp-vip-action > .mp-risk-badge {
  top: 16px;
  right: 14px;
  z-index: 4;
  transform: none;
  white-space: nowrap;
}

.layout-new .mp-action-btn::before {
  inset: auto -12% -58% 16%;
  height: 86%;
  opacity: .72;
}

.layout-new .mp-vip-action {
  min-height: 142px;
}

@media (max-width: 1120px) {
  .layout-new .main-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-new .mp-new-welcome-copy { padding-right: 24px; }
  .layout-new .mp-risk-legend { display: none; }
}

@media (max-width: 780px) {
  .layout-new #mp-section-menu { grid-template-columns: 1fr; grid-template-rows: auto; }
  .layout-new .mp-new-profile,
  .layout-new .mp-new-welcome-copy,
  .layout-new .mp-category-tabs,
  .layout-new .mp-quick-area,
  .layout-new .main-actions-grid { grid-column: 1; grid-row: auto; }
  .layout-new .mp-new-profile { min-height: 92px; }
  .layout-new .mp-category-tabs { position: static; flex-direction: row; min-height: 0; overflow-x: auto; }
  .layout-new .mp-category-tab { width: auto; }
  .layout-new .mp-quick-area { grid-template-columns: 1fr; }
  .layout-new .mp-quick-actions { padding-top: 0; }
}

@media (max-width: 560px) {
  .layout-new .main-actions-grid { grid-template-columns: 1fr; }
  .layout-new .mp-action-btn,
  .layout-new .mp-square-action { min-height: 128px; }
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(6, 7, 12, .92);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(6, 7, 12, .92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 3px solid rgba(6, 7, 12, .92);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--theme-soft), var(--theme-light));
  box-shadow: 0 0 14px var(--theme-glow-strong);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

.login-showcase {
  display: none;
}

@media (min-width: 1050px) {
  #login-panel {
    display: grid;
    grid-template-columns: minmax(380px, 430px) minmax(520px, 650px);
    align-items: stretch;
    justify-content: center;
    gap: clamp(28px, 4vw, 66px);
    width: min(100%, 1200px);
  }

  #login-panel .login-card {
    align-self: center;
    width: 100%;
    max-width: 430px;
    padding: 28px 30px;
  }

  .login-showcase {
    position: relative;
    display: flex;
    min-height: 650px;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--theme-soft) 28%, transparent);
    border-radius: 32px;
    background:
      radial-gradient(circle at 86% 4%, color-mix(in srgb, var(--theme-light) 24%, transparent), transparent 31%),
      radial-gradient(circle at 8% 95%, rgba(34,211,238,.11), transparent 34%),
      linear-gradient(150deg, rgba(18,20,31,.96), rgba(7,8,14,.96));
    box-shadow:
      0 30px 80px rgba(0,0,0,.48),
      inset 0 1px 0 rgba(255,255,255,.07);
    isolation: isolate;
  }

  .login-showcase-glow {
    position: absolute;
    right: -100px;
    bottom: -120px;
    z-index: -1;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--theme-glow-strong), transparent 68%);
    filter: blur(10px);
    opacity: .72;
  }

  .login-showcase-head,
  .login-showcase-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .login-showcase-brand,
  .login-showcase-live,
  .login-showcase-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 900;
  }

  .login-showcase-brand {
    color: var(--theme-soft);
    letter-spacing: .09em;
  }

  .login-showcase-brand i,
  .login-showcase-live > i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-accent);
    box-shadow: 0 0 12px var(--theme-glow-strong);
  }

  .login-showcase-live {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(52,211,153,.25);
    border-radius: 999px;
    background: rgba(16,185,129,.08);
    color: #8cf2cb;
  }

  .login-showcase-live > i {
    width: 7px;
    height: 7px;
    background: #52e7b3;
    box-shadow: 0 0 10px #52e7b3;
  }

  .login-showcase-copy {
    display: grid;
    gap: 9px;
    transition: opacity .48s ease, transform .48s ease, filter .48s ease;
  }

  .login-showcase-kicker {
    color: var(--theme-soft);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .16em;
  }

  .login-showcase-copy h2 {
    max-width: 520px;
    margin: 0;
    color: #f7f8fc;
    font-family: 'Manrope','DM Sans',sans-serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
  }

  .login-showcase-copy p {
    max-width: 510px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
  }

  .login-preview-window {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 285px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: rgba(3,5,10,.68);
    box-shadow:
      0 22px 48px rgba(0,0,0,.38),
      inset 0 1px 0 rgba(255,255,255,.04);
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
    transition: opacity .48s ease, transform .48s ease, filter .48s ease;
  }

  .login-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,.06);
  }

  .login-preview-sidebar span {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.075);
  }

  .login-preview-sidebar span.active {
    height: 30px;
    background: linear-gradient(110deg, var(--theme-badge), color-mix(in srgb, var(--theme-light) 18%, transparent));
    box-shadow: inset 3px 0 0 var(--theme-soft);
  }

  .login-preview-main {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  .login-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .login-preview-top span {
    width: 34%;
    height: 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
  }

  .login-preview-top span:last-child { width: 18%; background: var(--theme-badge); }

  .login-preview-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
  }

  .login-preview-grid article {
    position: relative;
    display: grid;
    grid-template-columns: 35px minmax(0,1fr);
    align-items: center;
    gap: 9px;
    min-height: 88px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--theme-light) 13%, transparent), transparent 58%),
      rgba(255,255,255,.03);
  }

  .login-preview-grid article > i {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: var(--theme-badge);
    color: var(--theme-soft);
    font-style: normal;
    font-size: 17px;
  }

  .login-preview-grid b {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .login-preview-grid small {
    grid-column: 1 / -1;
    width: 72%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.075);
  }

  .login-showcase-foot {
    justify-content: flex-start;
    gap: 18px;
    transition: opacity .48s ease, transform .48s ease;
  }

  .login-showcase.showcase-changing .login-showcase-copy,
  .login-showcase.showcase-changing .login-preview-window,
  .login-showcase.showcase-changing .login-showcase-foot {
    opacity: 0;
    filter: blur(5px);
  }

  .login-showcase.showcase-changing .login-showcase-copy {
    transform: translateY(10px);
  }

  .login-showcase.showcase-changing .login-preview-window {
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(12px) scale(.985);
  }

  .login-showcase.showcase-changing .login-showcase-foot {
    transform: translateY(6px);
  }

  .login-preview-grid article.showcase-card-active {
    border-color: color-mix(in srgb, var(--theme-soft) 36%, transparent);
    box-shadow: 0 0 26px color-mix(in srgb, var(--theme-glow-strong) 18%, transparent);
  }

  .login-showcase-foot i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
  }
}

@media (min-width: 1050px) and (max-height: 820px) {
  #login-panel .login-card { padding-top: 22px; padding-bottom: 22px; transform: scale(.94); }
  .login-showcase { min-height: 590px; padding: 26px; }
  .login-preview-window { min-height: 245px; }
}

@media (prefers-reduced-motion: reduce) {
  .password-break-surface,
  .login-password-shard,
  .login-showcase-copy,
  .login-preview-window,
  .login-showcase-foot {
    animation: none !important;
    transition: none !important;
  }
}

.mp-vip-action {
  overflow: hidden;
  border-color: rgba(250, 204, 21, 0.38);
  background:
    radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(80, 45, 9, 0.78), rgba(31, 17, 36, 0.78));
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.16),
    0 0 22px rgba(250, 204, 21, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.mp-vip-action::before {
  content: '';
  position: absolute;
  top: -36%;
  bottom: -36%;
  left: -70%;
  z-index: 0;
  width: 48%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: vip-action-shine 3.8s ease-in-out infinite;
}

.mp-vip-action > * {
  position: relative;
  z-index: 1;
}

.mp-vip-action > .mp-risk-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 3;
  transform: translateY(-50%);
}

.mp-vip-action:hover {
  border-color: rgba(253, 224, 71, 0.7);
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.22),
    0 0 30px rgba(250, 204, 21, 0.28),
    0 20px 45px rgba(0, 0, 0, 0.38);
}

.mp-vip-icon {
  background: rgba(250, 204, 21, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 20px rgba(250, 204, 21, 0.26);
}

.mp-vip-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.7));
}

@keyframes vip-action-shine {
  0%, 48% {
    left: -78%;
    opacity: 0;
  }
  58% {
    opacity: 0.7;
  }
  76%, 100% {
    left: 132%;
    opacity: 0;
  }
}

.fm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 3, 6, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.fm-backdrop.visible {
  opacity: 1;
}

#status-detail-modal {
  z-index: 220;
}

#profile-status-history-modal {
  z-index: 210;
}

.fm-window {
  width: min(100%, 560px);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(9, 10, 14, 0.92);
  backdrop-filter: blur(26px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.28s ease;
}

.fm-backdrop.visible .fm-window {
  transform: scale(1) translateY(0);
}

.fm-header,
.fm-tabs,
.fm-sub-filters,
.fm-pagination {
  flex-shrink: 0;
}

.fm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-divider);
}

.fm-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.fm-header-actions {
  display: flex;
  gap: 8px;
}

.fm-icon-btn,
.fm-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.fm-icon-btn:hover,
.fm-page-btn:hover:not(:disabled) {
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

#messages-download-all {
  position: relative;
}

#messages-download-all.is-exporting svg {
  animation: spin 0.8s linear infinite;
}

#messages-download-all[data-progress]::after {
  content: attr(data-progress);
  position: absolute;
  right: -7px;
  bottom: -7px;
  min-width: 20px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--accent, #c45cff);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  white-space: nowrap;
}

.fm-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--line-divider);
  overflow-x: auto;
  scrollbar-width: none;
}

.fm-tabs::-webkit-scrollbar {
  display: none;
}

.fm-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.fm-tab.active,
.fm-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.fm-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.fm-tab.active .fm-badge {
  background: var(--theme-badge);
  color: var(--theme-soft);
}

.fm-sub-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
}

.fm-filter-btn,
.fm-delete-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.fm-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.fm-filter-btn:hover,
.fm-filter-btn.active {
  border-color: var(--theme-border-soft);
  color: var(--theme-soft);
  background: var(--theme-badge);
}

.fm-delete-all-btn {
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.fm-delete-all-btn:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
}

.fm-delete-all-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

#friends-loading,
#friends-error,
#gifts-loading,
#gifts-error {
  margin: 0 18px 14px;
  border-radius: 16px;
}

#friends-loading,
#gifts-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

#friends-error,
#gifts-error {
  display: none;
  padding: 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

#friends-list-wrap,
#gifts-list-wrap {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.gifts-toolbar {
  flex-shrink: 0;
  padding: 0 18px 12px;
}

.gifts-open-all-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.gifts-open-all-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--theme-soft);
  background: var(--theme-glow);
}

.gifts-open-all-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.fm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.fm-list::-webkit-scrollbar {
  width: 6px;
}

.fm-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.fm-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.fm-card:hover {
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.fm-username-line {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.fm-friend-vip {
  width: 19px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.62));
}

.message-vip-icon {
  width: 20px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.56));
}

.friends-confirm-window {
  width: min(100%, 440px);
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.confirm-cancel-btn,
.confirm-danger-btn {
  min-height: 42px;
  border-radius: 13px;
  cursor: pointer;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.confirm-cancel-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
}

.confirm-danger-btn {
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.messages-window {
  width: min(100%, 720px);
  height: min(84vh, 760px);
  position: relative;
}

.messages-header {
  position: relative;
}

.msg-back-btn {
  flex-shrink: 0;
}

.msg-error {
  margin: 0 18px 14px;
  border-radius: 16px;
}

.msg-loading {
  display: none;
  position: absolute;
  inset: 98px 18px 78px;
  z-index: 12;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  color: var(--text-secondary);
  background: rgba(11, 12, 17, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.messages-window.messages-is-loading .messages-view {
  visibility: hidden;
  pointer-events: none;
}

.msg-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.messages-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.messages-list::-webkit-scrollbar,
.messages-thread::-webkit-scrollbar {
  width: 6px;
}

.messages-list::-webkit-scrollbar-thumb,
.messages-thread::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.message-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.message-card:hover {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
}

.message-card-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.message-card-avatar {
  width: 52px;
  height: 52px;
}

.message-card-username {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.message-card-username > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
}

.message-card-id,
.message-card-user {
  color: var(--text-secondary);
  font-size: 11px;
}

.message-card-content p {
  margin: 4px 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.message-card-content time {
  align-self: flex-end;
  color: var(--text-muted);
  font-size: 10px;
}

.status-window {
  width: min(100%, 760px);
  height: min(82vh, 720px);
}

.status-menu {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px;
}

.status-menu-btn {
  min-height: 56px;
  border: 1px solid color-mix(in srgb, var(--accent, #c45cff) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 11%, var(--panel));
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.status-menu-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
}

.status-change-apply {
  min-height: 46px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-soft);
  color: #07070b;
  font: 800 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.status-change-apply:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--theme-border);
  background: var(--theme-light);
}

.status-change-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.status-change-panel.hidden {
  display: none;
}

.status-change-input {
  width: 100%;
  min-height: 132px;
  resize: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  outline: none;
  padding: 13px 14px;
  font: 600 13px/1.45 Inter, system-ui, sans-serif;
}

.status-change-input:focus {
  border-color: var(--theme-border);
  box-shadow: 0 0 0 3px var(--theme-glow);
}

.status-change-meta {
  display: flex;
  justify-content: flex-end;
}

.status-change-counter {
  color: var(--text-muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.status-change-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-change-apply {
  width: 142px;
}

.status-change-apply:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.status-no-censore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font: 800 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.status-no-censore input {
  width: 16px;
  height: 16px;
  accent-color: var(--theme-soft);
}

.status-change-message {
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  font: 800 12px/1.35 Inter, system-ui, sans-serif;
}

.status-change-message.success {
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.12);
}

.status-change-message.error {
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.12);
}

.status-loading,
.status-error {
  margin: 0 18px 14px;
  border-radius: 16px;
}

.status-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(min(82vh, 720px) - 92px);
  color: var(--text-secondary);
  background: transparent;
}

.status-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.status-content {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.status-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.status-list::-webkit-scrollbar {
  width: 6px;
}

.status-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.32);
}

.status-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 150px;
  grid-template-rows: auto auto;
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(125, 211, 252, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.status-person {
  grid-row: 1 / span 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.status-avatar {
  width: 58px;
  height: 58px;
}

.status-username {
  max-width: 82px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-main {
  min-width: 0;
  align-self: center;
}

.status-id {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-main p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.status-date {
  align-self: start;
  justify-self: end;
  max-width: 150px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.status-stats {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-stats-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.status-apply-btn.status-boost-btn {
  color: var(--text-primary);
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

#status-like-boost-modal { z-index: 12000; padding: 18px; }
.status-boost-window { width: min(100%, 440px); max-height: calc(100dvh - 36px); }
.status-boost-body { padding: 22px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.status-boost-preview { margin: 0; font-weight: 700; overflow-wrap: anywhere; max-height: 100px; overflow-y: auto; }
.status-boost-id { color: var(--text-secondary); overflow-wrap: anywhere; font-size: 11px; }
.status-boost-body label { color: var(--text-primary); font-weight: 700; }
.status-boost-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
.status-boost-stepper input {
  width: 100%; min-width: 0; padding: 10px; border-radius: 12px; text-align: center; font: inherit;
  background: var(--input-bg, rgba(255,255,255,.04)); color: var(--text-primary);
  border: 1px solid var(--glass-border, rgba(255,255,255,.15)); font-size: 20px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.status-boost-stepper input::-webkit-inner-spin-button,
.status-boost-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.status-boost-stepper button { min-width: 0; height: 46px; padding: 0; font-size: 24px; }
.status-boost-body > .status-apply-btn { min-height: 42px; height: auto; padding: 10px 14px; }
.status-boost-note { color: var(--text-secondary); font-size: 12px; line-height: 1.55; margin: 0; }
.status-boost-result { margin: 0; color: var(--text-primary); line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; }
.status-boost-result[data-state="success"] { color: #86efac; }
.status-boost-result[data-state="partial"] { color: #fcd34d; }
.status-boost-progress { width: 100%; accent-color: var(--theme-soft); height: 10px; }
#status-like-boost-modal [hidden] { display: none !important; }
#status-like-boost-modal :focus-visible { outline: 2px solid var(--theme-soft); outline-offset: 3px; }
@media (max-width: 520px) {
  .status-stats { flex-wrap: wrap; }
  .status-stats-actions { gap: 7px; }
  .status-boost-body { padding: 16px; }
}

.status-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.status-stat-btn {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.status-stat-btn:hover:not(:disabled) {
  filter: brightness(1.16);
  transform: translateY(-1px);
}

.status-stat-btn:disabled {
  cursor: default;
  opacity: 0.55;
}

.status-apply-btn {
  min-width: 68px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(96, 165, 250, 0.1));
  color: #dff8ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.status-apply-btn:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(96, 165, 250, 0.18));
  transform: translateY(-1px);
}

.status-apply-btn:disabled {
  cursor: default;
  opacity: 0.62;
}

.status-stat:first-child,
.status-love-btn {
  color: #fb7185;
}

.status-stat:last-child,
.status-comment-btn {
  color: #93c5fd;
}

.status-detail-window {
  width: min(100%, 660px);
  height: min(78vh, 620px);
}

#status-detail-vip-filter img {
  width: 20px;
  height: auto;
  display: block;
}

#status-detail-vip-filter.active {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.status-detail-loading,
.status-detail-error {
  margin: 0 18px 14px;
  border-radius: 16px;
}

.status-detail-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(min(78vh, 620px) - 92px);
  color: var(--text-secondary);
  background: transparent;
}

.status-detail-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.status-detail-content {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.status-detail-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 14px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.status-detail-list::-webkit-scrollbar {
  width: 6px;
}

.status-detail-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.32);
}

.status-detail-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px 14px;
  min-height: 86px;
  padding: 11px 12px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(125, 211, 252, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.status-detail-card-comment {
  grid-template-columns: 90px minmax(0, 1fr);
}

.status-detail-card-comment .status-detail-main {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}

.status-detail-card-comment .status-detail-date {
  display: block;
  margin-top: 8px;
}

.status-detail-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.status-detail-avatar {
  width: 54px;
  height: 54px;
}

.status-detail-vip {
  flex: 0 0 auto;
  width: 19px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.status-detail-vip-until {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.status-detail-username {
  max-width: 82px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.status-detail-username span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-detail-main {
  min-width: 0;
}

.status-detail-main p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.status-detail-main-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.status-detail-main-user span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-detail-date {
  justify-self: end;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.status-comments-window {
  width: min(100%, 780px);
  height: min(82vh, 700px);
}

.status-comments-loading,
.status-comments-error {
  margin: 0 18px 14px;
  border-radius: 16px;
}

.status-comments-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: calc(min(82vh, 700px) - 92px);
  color: var(--text-secondary);
  background: transparent;
}

.status-comments-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.status-comments-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.status-comments-list::-webkit-scrollbar {
  width: 6px;
}

.status-comments-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.32);
}

.status-comment-card {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 54px 14px 14px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(125, 211, 252, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.status-comment-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
}

.status-comment-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.status-comment-username {
  max-width: 100%;
  overflow: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.status-comment-username span {
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}

.status-comment-vip {
  width: 18px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.status-comment-message {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}

.status-comment-message p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-comment-message time {
  display: block;
  margin-top: 8px;
  color: #67e8f9;
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.status-comment-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--danger-border);
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger-text);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.status-comment-delete-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.17);
}

.status-comment-confirm-window {
  width: min(100%, 520px);
}

.status-comment-confirm-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.status-comment-confirm-body p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.status-comment-confirm-body blockquote {
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
  padding: 13px 14px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status-comment-confirm-actions {
  display: grid;
  grid-template-columns: 0.85fr 0.75fr minmax(0, 1.4fr);
  gap: 10px;
}

.status-comment-delete-all-btn {
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
}

.account-security-window {
  width: min(100%, 520px);
}

.account-security-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  padding: 24px 22px 28px;
}

.account-security-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.account-security-option h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.account-security-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 156px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.account-security-toggle:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
}

.account-security-toggle.is-on {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}

.account-security-toggle:disabled {
  cursor: default;
  opacity: 0.65;
}

.account-security-toggle-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.14);
}

.account-security-toggle.is-on .account-security-toggle-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16), 0 0 16px rgba(52, 211, 153, 0.35);
}

.account-security-copy,
.account-security-state {
  max-width: 400px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}

.account-security-state {
  min-height: 20px;
  color: #67e8f9;
}

.account-security-alert-window {
  width: min(100%, 660px);
  max-height: min(82vh, 690px);
}

.account-security-alert-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.account-security-alert-body p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.account-security-alert-list {
  display: flex;
  max-height: 390px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.account-security-alert-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(248, 113, 113, 0.12), rgba(125, 211, 252, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.account-security-alert-avatar {
  width: 52px;
  height: 52px;
}

.account-security-alert-name {
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-security-alert-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.account-security-alert-error {
  display: none;
  padding: 11px 12px;
  border: 1px solid var(--danger-border);
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.account-security-alert-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inbox-spam-alert-message {
  max-height: 100px;
  margin: 0;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.messages-chat-profile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line-divider);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.messages-chat-avatar {
  width: 58px;
  height: 58px;
}

.messages-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.message-bubble-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  max-width: 86%;
}

.message-bubble-row.mine {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 70px;
}

.message-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.message-bubble-row.mine .message-author {
  order: 2;
}

.message-author-avatar {
  width: 40px;
  height: 40px;
}

.message-author span {
  max-width: 68px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-bubble {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.055);
}

.message-bubble-row.mine .message-bubble {
  border-color: var(--theme-border-soft);
  border-radius: 16px 16px 6px 16px;
  background: var(--theme-badge);
}

.message-bubble p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-bubble time {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.messages-send-form {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-divider);
}

.messages-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
}

.messages-input:focus {
  border-color: var(--theme-border-soft);
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.messages-send-btn {
  min-height: 42px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 13px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.messages-send-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.fm-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--theme-border-soft);
  box-shadow: 0 0 0 3px var(--theme-glow);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-weight: 700;
}

.fm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fm-username {
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-level {
  color: var(--text-secondary);
  font-size: 12px;
}

.gift-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.gift-date {
  color: var(--text-secondary);
  font-size: 11px;
}

.gift-vip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.11);
  color: #facc15;
  font-size: 10px;
  font-weight: 800;
}

.gift-avatar-vip {
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15), 0 0 22px rgba(251, 191, 36, 0.16);
}

.fm-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fm-card-actions:empty {
  display: none;
}

.fm-action-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.fm-del-btn,
.fm-reject-btn {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.08);
}

.fm-del-btn:hover,
.fm-reject-btn:hover {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.38);
}

.fm-accept-btn {
  color: #4ade80;
  border-color: var(--success-border);
  background: var(--success-soft);
}

.fm-accept-btn:hover {
  background: rgba(74, 222, 128, 0.22);
  border-color: rgba(74, 222, 128, 0.4);
}

.gift-open-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 10px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.gift-open-btn:hover:not(:disabled) {
  border-color: var(--theme-soft);
  background: var(--theme-glow);
  color: var(--text-primary);
}

.gift-open-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.mood-window {
  width: min(100%, 430px);
}

.mood-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 22px;
}

.mood-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 260px;
  max-height: min(46vh, 420px);
  overflow: visible;
}

.mood-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 280px);
  max-height: min(46vh, 420px);
  object-fit: contain;
}

.mood-name {
  display: none;
}

.mood-controls {
  display: grid;
  grid-template-columns: 40px minmax(64px, auto) 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mood-nav-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--theme-soft);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.mood-nav-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-glow);
  color: var(--text-primary);
}

.mood-counter {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.mood-apply-btn {
  width: min(100%, 260px);
  min-height: 40px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.mood-apply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--theme-glow);
}

.mood-apply-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

#mood-message {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

#mood-message.success {
  display: block;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: #86efac;
}

#mood-message.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.autograph-window {
  width: min(100%, 440px);
}

.autograph-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.autograph-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.autograph-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.autograph-input:focus {
  border-color: var(--theme-border-soft);
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.autograph-actions {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.autograph-send-btn,
.autograph-stop-btn,
.profile-info-search-btn,
.profile-info-nav-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.autograph-stop-btn {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.gift-vip-icon {
  width: 28px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.autograph-send-btn:hover:not(:disabled),
.profile-info-search-btn:hover:not(:disabled),
.profile-info-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--theme-glow);
}

.autograph-stop-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(248, 113, 113, 0.18);
}

.autograph-send-btn:disabled,
.autograph-stop-btn:disabled,
.profile-info-search-btn:disabled,
.profile-info-nav-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

#autograph-message {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

#autograph-message.success {
  display: block;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: #86efac;
}

#autograph-message.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.profile-info-window {
  width: min(100%, 580px);
}

.profile-info-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  max-height: min(74vh, 760px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.62) rgba(10, 12, 21, 0.72);
}

.profile-info-body::-webkit-scrollbar {
  width: 10px;
}

.profile-info-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(10, 12, 21, 0.72);
}

.profile-info-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10, 12, 21, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.88), rgba(168, 85, 247, 0.72));
}

.profile-info-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.95), rgba(192, 132, 252, 0.84));
}

.profile-info-search {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: end;
}

.profile-info-search .autograph-label {
  grid-column: 1 / -1;
}

.profile-info-nav-btn {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 44px;
  padding: 0;
}

.profile-info-nav-btn.hidden {
  display: none;
}

.profile-info-search.is-detail {
  grid-template-columns: 52px 1fr auto 52px;
  align-items: center;
}

.profile-info-search.is-detail .autograph-label,
.profile-info-search.is-detail #profile-info-input,
.profile-info-search.is-detail #profile-info-search-btn {
  display: none;
}

.profile-info-search.is-detail .profile-info-back {
  display: grid;
  grid-column: 1;
  grid-row: 1;
}

.profile-info-search.is-detail .profile-info-refresh {
  display: grid;
  grid-column: 4;
  grid-row: 1;
}

.profile-info-send-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent, #c45cff) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, #c45cff) 13%, rgba(12, 13, 18, 0.94));
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-info-search.is-detail .profile-info-send-message {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.profile-info-send-message:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #c45cff) 72%, white 8%);
  background: color-mix(in srgb, var(--accent, #c45cff) 22%, rgba(12, 13, 18, 0.94));
}

.profile-info-send-message.hidden {
  display: none !important;
}

.profile-message-window {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: hidden;
}

.profile-message-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-message-recipient {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-message-recipient-avatar,
.profile-message-own-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.profile-message-recipient small,
.profile-message-recipient strong {
  display: block;
}

.profile-message-recipient small {
  margin-bottom: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.profile-message-thread {
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(3, 5, 10, 0.42);
}

.profile-message-row.mine {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.profile-message-content {
  max-width: min(78%, 390px);
  text-align: right;
}

.profile-message-content strong {
  display: block;
  margin: 0 4px 5px;
  color: var(--text-secondary);
  font-size: 11px;
}

.profile-message-bubble {
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #c45cff) 46%, transparent);
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #c45cff) 30%, #161821), color-mix(in srgb, var(--accent, #c45cff) 16%, #101117));
  color: var(--text-primary);
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.profile-message-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(6, 8, 13, 0.68);
  color: var(--text-primary);
  font: inherit;
  outline: none;
}

.profile-message-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent, #c45cff) 66%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #c45cff) 13%, transparent);
}

.profile-message-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

#profile-message-counter {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 750;
}

#profile-message-submit {
  min-width: 112px;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent, #c45cff) 55%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent, #c45cff) 24%, #14151c);
  color: var(--text-primary);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

#profile-message-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.profile-message-status {
  min-height: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.profile-message-status.success { color: #66e0a3; }
.profile-message-status.error { color: #ff7f91; }

#profile-info-message {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

#profile-info-message.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.profile-info-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-info-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}

.profile-info-candidate-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 170px;
  padding: 15px 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-info-candidate-card:hover:not(:disabled),
.profile-info-candidate-card:focus-visible {
  border-color: rgba(125, 211, 252, 0.5);
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.14), rgba(168, 85, 247, 0.08));
  transform: translateY(-2px);
  outline: none;
}

.profile-info-candidate-card:disabled {
  opacity: 0.68;
  cursor: wait;
}

.profile-info-candidate-avatar {
  width: 78px;
  height: 78px;
}

.profile-info-candidate-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-info-candidate-name > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-info-candidate-vip {
  width: 20px;
  height: auto;
  flex: 0 0 auto;
}

.profile-info-candidate-verified,
.profile-info-verified {
  width: 18px;
  height: 18px;
}

.profile-info-rel-verified,
.status-detail-verified {
  width: 15px;
  height: 15px;
}

.profile-info-candidate-meta {
  max-width: 100%;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-info-hero,
.profile-info-panel,
.profile-info-media-panel {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.profile-info-hero {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  width: min(100%, 500px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 16px;
}

.profile-info-avatar {
  width: 74px;
  height: 74px;
}

.profile-info-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-info-name {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-info-vip {
  width: 23px;
  height: auto;
  flex: 0 0 auto;
}

.profile-info-sub {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.profile-info-xp {
  margin-top: 12px;
  width: min(100%, 320px);
}

.profile-info-xp-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
}

.profile-info-xp-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-info-xp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd3fc, #facc15);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(100%, 500px);
  margin: 4px auto 0;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.profile-info-row:last-child {
  border-bottom: 0;
}

.profile-info-row strong {
  color: var(--text-primary);
  text-align: right;
  max-width: 58%;
  overflow-wrap: anywhere;
}

.profile-info-row-btn {
  border: 0;
  background: transparent;
  color: #67e8f9;
  font: inherit;
  font-weight: 950;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.profile-info-row-btn:hover:not(:disabled) {
  color: #bae6fd;
}

.profile-info-row-btn:disabled {
  color: var(--text-primary);
  cursor: default;
  text-decoration: none;
}

.profile-info-section-title {
  margin: 10px 0 4px;
  padding: 0 12px 7px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-info-section-title:first-child {
  margin-top: 12px;
}

.profile-info-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-info-rel-card {
  min-width: 0;
  text-align: center;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 900;
}

.profile-info-rel-card:empty {
  min-height: 168px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.profile-info-rel-empty {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.profile-info-rel-panel {
  padding: 14px;
}

.profile-info-rel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.profile-info-rel-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-info-rel-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 950;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), rgba(168, 85, 247, 0.1));
}

.profile-info-rel-icon {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(6, 7, 12, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #facc15;
  font-size: 15px;
  line-height: 1;
}

.profile-info-rel-icon.heart {
  color: #fb7185;
}

.profile-info-rel-date,
.profile-info-rel-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info-rel-date {
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 850;
}

.profile-info-rel-name {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
}

.profile-info-rel-vip {
  width: 18px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.profile-info-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(100%, 500px);
  margin: 0 auto;
}

.profile-info-media-panel {
  padding: 14px;
}

.profile-info-media-title {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.profile-info-full-avatar,
.profile-info-home-img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.16);
}

.profile-info-full-avatar {
  width: min(100%, 310px);
  max-height: 430px;
}

.profile-info-home-img {
  width: 100%;
  max-height: 430px;
}

.support-window {
  width: min(720px, calc(100vw - 28px));
  max-height: min(92vh, 820px);
}

.support-body {
  flex: 1 1 auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.34) transparent;
}

.support-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.support-email-card {
  display: grid;
  gap: 5px;
  min-height: 62px;
  align-content: center;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-primary);
  text-decoration: none;
}

.support-email-card span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.support-email-card strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.support-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.support-tab.active {
  border-color: var(--theme-border-strong);
  background: var(--theme-badge);
  color: var(--text-primary);
  box-shadow: 0 0 18px var(--theme-badge-shadow);
}

.support-panel,
.support-ticket-form,
.support-ticket-list,
.support-ticket-card,
.support-reply {
  display: grid;
}

.support-panel,
.support-ticket-form,
.support-ticket-list {
  gap: 12px;
}

.support-panel {
  min-height: 0;
}

.support-ticket-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.support-field-wide,
.support-submit-btn,
.support-create-message {
  grid-column: 1 / -1;
}

.support-start-btn,
.support-submit-btn {
  min-height: 48px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: var(--theme-accent);
  color: #0b0d12;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.support-ticket-form label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.support-ticket-form input,
.support-ticket-form select,
.support-ticket-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.support-ticket-form select {
  appearance: none;
  color-scheme: dark;
  padding-right: 38px;
  background:
    linear-gradient(45deg, transparent 50%, var(--theme-soft) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--theme-soft) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.045);
}

.support-ticket-form select option {
  background: #10131b;
  color: #f5f7fb;
}

.support-ticket-form textarea {
  min-height: 118px;
  padding-top: 11px;
  resize: vertical;
  line-height: 1.5;
}

.support-file-row input {
  padding: 10px 12px;
}

.support-file-status {
  min-height: 20px;
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.support-file-status.error {
  color: #ff9a9a;
}

.support-ticket-list {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.support-ticket-card {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.support-ticket-card.unread {
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.1);
}

.support-ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.support-ticket-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.support-ticket-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.support-ticket-unread {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--theme-soft);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.support-ticket-meta,
.support-empty {
  color: var(--text-muted);
}

.support-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.support-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.support-progress span {
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.support-progress span.active {
  border-color: var(--theme-border-strong);
  color: var(--text-primary);
  background: var(--theme-badge);
}

.support-reply {
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 13px;
  background: rgba(125, 211, 252, 0.07);
}

.support-reply strong {
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.support-inline-reply {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}

.support-inline-reply textarea {
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  padding: 10px 11px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  outline: none;
}

.support-inline-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.support-reply-file,
.support-reply-submit {
  min-height: 38px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 950;
}

.support-reply-file {
  display: inline-grid;
  align-items: center;
  padding: 0 11px;
  cursor: pointer;
  overflow: hidden;
}

.support-reply-file input {
  display: none;
}

.support-reply-submit {
  padding: 0 16px;
  background: var(--theme-accent);
  color: #0b0d12;
  cursor: pointer;
}

.support-reply-message {
  min-height: 18px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.support-reply-message.success {
  color: #90f7b7;
}

.support-reply-message.error {
  color: #ff9a9a;
}

.support-ticket-card > img,
.support-reply img {
  width: min(180px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.24);
}

.feature-message.success {
  color: #90f7b7;
}

.feature-message.error {
  color: #ff9a9a;
}

.ban-appeal-window {
  width: min(100%, 560px);
}

.ban-appeal-window .login-lock-body {
  padding-inline: clamp(22px, 5vw, 36px);
}

.ban-appeal-start {
  width: min(100%, 360px);
  margin-inline: auto;
}

.ban-appeal-form {
  width: 100%;
  grid-template-columns: 1fr;
  text-align: left;
}

.ban-appeal-form label,
.ban-appeal-form button {
  grid-column: 1 / -1;
}

.ban-appeal-form textarea {
  min-height: 110px;
}

.support-ticket-form input[readonly],
.ban-appeal-form input[readonly] {
  cursor: not-allowed;
  opacity: 0.82;
}

.about-page {
  width: min(920px, 100%);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.about-page.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-page.closing {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
}

body.about-view #login-panel,
body.about-view #main-panel,
body.about-view #guide-page {
  display: none !important;
}

body.about-view .app-shell {
  background-image:
    linear-gradient(180deg, rgba(4, 5, 9, 0.36) 0%, rgba(4, 5, 9, 0.64) 58%, rgba(4, 5, 9, 0.82) 100%),
    url('./assets/about.png');
  background-position: center 60px;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body.about-view #star-canvas {
  opacity: 0.28;
}

.about-card {
  position: relative;
  width: min(100%, 760px);
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(6, 7, 11, 0.82), rgba(6, 7, 11, 0.9));
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(1.25);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 18px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 38%, var(--theme-glow-strong), transparent 66%),
    radial-gradient(circle at 64% 62%, var(--theme-bg-glow-b), transparent 72%);
  filter: blur(26px);
  opacity: 0.22;
  transform: translate3d(0, 0, 0);
}

.about-card-top,
.about-content {
  position: relative;
  z-index: 1;
}

.about-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.about-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--theme-accent);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  cursor: pointer;
  box-shadow: 0 0 18px var(--theme-badge-shadow);
}

.about-content {
  display: grid;
  gap: 18px;
}

.about-kicker {
  margin: 0;
  color: var(--theme-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-content h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

.about-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.68;
}

.about-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 18px var(--theme-badge-shadow);
}

.about-guide-link:hover {
  border-color: var(--theme-border-strong);
  color: var(--theme-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-info-block {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.about-info-block h3 {
  margin: 0 0 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

.about-info-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.58;
}

.service-access-block {
  border-color: var(--theme-border-strong);
  background: linear-gradient(135deg, var(--theme-badge), rgba(255, 255, 255, .025));
  scroll-margin-top: 28px;
}

.service-access-block:target {
  box-shadow: 0 0 0 1px var(--theme-border-strong), 0 0 34px var(--theme-badge-shadow);
}

.about-policy {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(5, 8, 14, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.about-policy-head {
  display: grid;
  gap: 8px;
}

.about-policy-kicker {
  margin: 0;
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.about-policy h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 950;
}

#about-policy-updated,
#about-policy-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.65;
}

#about-policy-updated {
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 900;
}

.about-policy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-policy-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.about-policy-item h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

.about-policy-item p,
.about-policy-item li {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.58;
}

.about-policy-item p {
  margin: 0;
}

.about-policy-item ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.about-policy-item li {
  position: relative;
  padding-left: 14px;
}

.about-policy-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--theme-soft);
  box-shadow: 0 0 10px var(--theme-glow-strong);
}

.about-email-card {
  display: grid;
  gap: 5px;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  padding: 8px 0 0;
  color: var(--text-primary);
  text-align: center;
}

.about-email-card span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.about-email-card a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.about-email-card a:hover {
  color: var(--theme-soft);
}

.guide-page {
  width: min(1080px, 100%);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.guide-page.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.guide-page.closing {
  opacity: 0;
  transform: translateY(12px) scale(0.99);
}

body.guide-view #login-panel,
body.guide-view #main-panel,
body.guide-view #about-page {
  display: none !important;
}

.guide-card {
  width: min(100%, 980px);
  max-height: none;
  overflow: visible;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: rgba(6, 7, 11, 0.92);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(1.25);
}

.guide-card-top {
  position: static;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 30px 30px 0 0;
  background: rgba(6, 7, 11, 0.88);
  backdrop-filter: blur(18px);
}

.guide-mini-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--theme-border-soft);
  border-radius: 13px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  cursor: pointer;
  box-shadow: 0 0 18px var(--theme-badge-shadow);
}

.guide-nav-btn:hover {
  border-color: var(--theme-border-strong);
  color: var(--text-primary);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 22px;
  padding: 26px 28px 18px;
}

.guide-hero-copy {
  display: grid;
  gap: 12px;
}

.guide-hero h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 950;
  line-height: 1.1;
}

.guide-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.7;
}

.guide-hero-media,
.guide-section-media {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--theme-border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-hero-media img,
.guide-section-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
}

.guide-panel-preview,
.guide-tool-preview {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  background:
    radial-gradient(circle at 85% 5%, var(--theme-badge), transparent 34%),
    linear-gradient(145deg, rgba(8, 9, 16, .98), rgba(16, 10, 22, .96));
  color: var(--text-primary);
}

.guide-preview-head,
.guide-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 4px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--theme-soft);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.guide-preview-head i,
.guide-tool-top i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--theme-soft);
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

.guide-preview-layout,
.guide-tool-body {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 188px;
}

.guide-preview-layout aside,
.guide-tool-side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 9px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.guide-preview-layout aside span,
.guide-tool-side span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
}

.guide-preview-layout aside span.active,
.guide-tool-side span.active {
  height: 27px;
  background: linear-gradient(180deg, var(--theme-soft), var(--theme-accent));
  box-shadow: 0 0 16px var(--theme-badge-shadow);
}

.guide-preview-main,
.guide-tool-stage {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 17px;
}

.guide-preview-bar,
.guide-tool-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.guide-preview-bar span,
.guide-tool-title small {
  width: 42%;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
}

.guide-preview-bar i {
  width: 38px;
  height: 15px;
  border-radius: 99px;
  background: var(--theme-badge);
}

.guide-preview-cards,
.guide-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.guide-preview-cards article,
.guide-tool-grid span {
  min-height: 61px;
  padding: 10px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), var(--theme-badge));
}

.guide-preview-cards article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.guide-preview-cards em { color: var(--theme-soft); font-style: normal; font-size: 17px; }
.guide-preview-cards b { font-size: 10px; }
.guide-preview-cards small { grid-column: 2; width: 70%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .09); }

.guide-tool-preview { min-height: 100%; padding: 11px; }
.guide-tool-top b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--theme-badge); font-size: 16px; }
.guide-tool-title strong { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.guide-tool-grid span { min-height: 42px; }
.guide-tool-action { width: 42%; height: 24px; margin-left: auto; border-radius: 9px; background: linear-gradient(135deg, var(--theme-soft), var(--theme-accent)); opacity: .75; }

.guide-section-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
}

.guide-section-media img {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.guide-sections {
  display: grid;
  gap: 14px;
  padding: 10px 28px 28px;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(220px, 0.96fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-section.no-media {
  grid-template-columns: 1fr;
}

.guide-section-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.guide-section-kicker {
  color: var(--theme-soft);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-section h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

.guide-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.66;
}

.guide-section ul {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.guide-section li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.58;
}

.guide-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--theme-soft);
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

body.standalone-guide #main {
  align-items: center;
  min-height: 100vh;
  padding: 46px 24px 44px;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}

body.standalone-guide .guide-page {
  width: min(1020px, 100%);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity .34s ease, transform .34s cubic-bezier(.2,.8,.2,1);
}

body.standalone-guide .guide-card {
  width: 100%;
  border-radius: 32px;
}

body.standalone-guide .guide-card-top {
  position: static;
  border-radius: 32px 32px 0 0;
}

body.standalone-guide .guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  padding: 26px 30px 16px;
}

body.standalone-guide .guide-hero-media {
  display: block;
}

body.standalone-guide .guide-section {
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.92fr);
}

body.standalone-guide .guide-hero-media img,
body.standalone-guide .guide-section-media img {
  max-height: 360px;
}

.guide-section-icon-media {
  place-items: center;
  align-content: center;
}

.guide-section-icon-media img {
  width: min(170px, 100%);
  max-height: 170px !important;
  margin: 0 auto;
}

body.standalone-guide .guide-section.icon-media-section {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}

body.standalone-guide.guide-ready .guide-page,
body.standalone-guide[data-guide-ready="1"] .guide-page,
body.standalone-guide .guide-page.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

body.standalone-guide.guide-exiting .guide-page,
body.page-leaving #main {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.992) !important;
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}

.updates-window {
  width: min(100%, 460px);
}

.updates-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent) rgba(255, 255, 255, 0.055);
}

.updates-body::-webkit-scrollbar {
  width: 10px;
}

.updates-body::-webkit-scrollbar-track {
  margin: 8px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px var(--theme-border-soft);
}

.updates-body::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid rgba(9, 10, 17, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 92%, white), var(--theme-accent));
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

.updates-body::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

.updates-entry {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.updates-entry h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 950;
}

.updates-entry p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.updates-entry ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates-entry li {
  position: relative;
  padding-left: 18px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
}

.updates-entry li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--theme-accent);
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

.security-warning-icon {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.security-warning-copy {
  max-width: 380px;
  line-height: 1.65;
}

.msp-ai-window {
  position: relative;
  width: min(100%, 620px);
  height: min(72vh, 620px);
  overflow: hidden;
}

.msp-ai-window::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(125, 211, 252, 0.08) 38%, transparent 62%),
    radial-gradient(circle at 18% 0%, rgba(167, 139, 250, 0.14), transparent 34%);
  opacity: 0.58;
  transform: translateX(-35%);
  animation: msp-ai-window-sheen 9s ease-in-out infinite;
}

.msp-ai-body {
  display: flex;
  min-height: 0;
  height: calc(100% - 70px);
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.msp-ai-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.msp-ai-messages::-webkit-scrollbar {
  width: 6px;
}

.msp-ai-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.32);
}

.msp-ai-message {
  max-width: 92%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  animation: msp-ai-message-in 0.28s ease both;
}

.msp-ai-message.user {
  align-self: flex-end;
  border-color: rgba(125, 211, 252, 0.26);
  background: rgba(37, 99, 235, 0.16);
}

.msp-ai-message.assistant {
  align-self: flex-start;
}

.msp-ai-message.profile-details {
  max-width: 96%;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.msp-ai-message.loading {
  display: grid;
  gap: 8px;
  min-width: 132px;
  color: var(--text-secondary);
}

.msp-ai-loading-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.msp-ai-loading-text {
  white-space: nowrap;
}

.msp-ai-loader {
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
  align-items: center;
}

.msp-ai-loader span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--theme-soft);
  box-shadow: 0 0 12px var(--theme-ring);
  animation: msp-ai-dot-wave 1.05s ease-in-out infinite;
  animation-delay: calc(var(--dot-index, 0) * 120ms);
}

.msp-ai-message.typing::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 999px;
  background: var(--theme-soft);
  animation: msp-ai-caret 0.9s steps(2, end) infinite;
}

@keyframes msp-ai-caret {
  50% {
    opacity: 0;
  }
}

@keyframes msp-ai-message-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes msp-ai-window-sheen {
  0%, 100% {
    transform: translateX(-35%);
    opacity: 0.46;
  }

  45% {
    transform: translateX(32%);
    opacity: 0.68;
  }
}

@keyframes msp-ai-dot-wave {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msp-ai-window::before,
  .msp-ai-message,
  .msp-ai-loader span,
  .msp-ai-command-chip,
  .msp-ai-message.typing::after {
    animation: none;
  }
}

.msp-ai-message.error {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.msp-ai-rich {
  display: grid;
  width: 100%;
  gap: 8px;
}

.msp-ai-paragraph,
.msp-ai-section-title {
  margin: 0;
}

.msp-ai-paragraph {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.58;
}

.msp-ai-section-title {
  margin-top: 2px;
  color: var(--theme-soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.msp-ai-label-row {
  display: grid;
  gap: 4px;
  border-left: 2px solid var(--theme-border-soft);
  padding-left: 10px;
}

.msp-ai-label {
  color: var(--theme-soft);
  font-size: 12px;
  font-weight: 950;
}

.msp-ai-label-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.56;
}

.msp-ai-bullets {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.msp-ai-bullets li {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.52;
}

.msp-ai-table-wrap {
  width: min(100%, 860px);
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.msp-ai-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text-primary);
  table-layout: fixed;
}

.msp-ai-table th,
.msp-ai-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.msp-ai-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 14, 18, 0.96);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 950;
}

.msp-ai-table tr:last-child td {
  border-bottom: 0;
}

.msp-ai-research-panel {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  padding-top: 8px;
}

.msp-ai-research-toggle {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto auto;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  padding: 4px 8px 4px 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
}

.msp-ai-research-toggle:hover {
  border-color: var(--theme-border-soft);
  background: rgba(37, 99, 235, 0.14);
}

.msp-ai-research-count {
  min-width: 18px;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(125, 211, 252, 0.13);
  color: var(--theme-soft);
  text-align: center;
}

.msp-ai-research-arrow {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--theme-soft);
  font-size: 17px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.msp-ai-research-panel.is-open .msp-ai-research-arrow {
  transform: rotate(-90deg);
}

.msp-ai-research-body {
  display: grid;
  gap: 9px;
}

.msp-ai-research-body[hidden] {
  display: none;
}

.msp-ai-research-section-title {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 950;
}

.msp-ai-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.msp-ai-source-chip,
.msp-ai-source-card {
  color: var(--text-primary);
  text-decoration: none;
}

.msp-ai-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 900;
}

.msp-ai-source-cards {
  display: grid;
  gap: 7px;
}

.msp-ai-source-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.msp-ai-source-card:hover,
.msp-ai-source-chip:hover {
  border-color: var(--theme-border-soft);
  background: rgba(37, 99, 235, 0.12);
}

.msp-ai-source-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  background: rgba(125, 211, 252, 0.12);
}

.msp-ai-source-icon.is-empty {
  background: var(--theme-ring);
}

.msp-ai-source-card-body {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.msp-ai-source-title,
.msp-ai-source-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msp-ai-source-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
}

.msp-ai-source-url {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
}

.msp-ai-intro {
  display: grid;
  align-self: flex-start;
  width: min(100%, 430px);
  gap: 8px;
}

.msp-ai-intro-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.msp-ai-intro-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.msp-ai-command-grid {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.msp-ai-command-chip {
  min-height: 38px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: msp-ai-chip-in 0.42s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.msp-ai-command-chip:hover {
  border-color: var(--theme-border-soft);
  background: rgba(37, 99, 235, 0.12);
}

@keyframes msp-ai-chip-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msp-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 10px;
}

.msp-ai-input {
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-weight: 800;
  outline: none;
}

.msp-ai-input:focus {
  border-color: var(--theme-border);
  box-shadow: 0 0 0 4px var(--theme-ring);
}

.msp-ai-send {
  height: 50px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.msp-ai-send:disabled {
  cursor: default;
  opacity: 0.6;
}

.agent-window {
  width: min(100%, 680px);
  height: min(76vh, 680px);
}

.agent-body {
  display: flex;
  min-height: 0;
  height: calc(100% - 70px);
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.agent-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.agent-input {
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-weight: 800;
  outline: none;
}

.agent-input:focus {
  border-color: var(--theme-border);
  box-shadow: 0 0 0 4px var(--theme-ring);
}

.agent-connect,
.agent-disconnect {
  height: 50px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-primary);
  font-weight: 900;
  cursor: pointer;
}

.agent-disconnect {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.18);
}

.agent-connect:disabled,
.agent-disconnect:disabled {
  cursor: default;
  opacity: 0.55;
}

.agent-state {
  min-height: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.agent-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.32) transparent;
}

.agent-messages::-webkit-scrollbar {
  width: 6px;
}

.agent-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.32);
}

.agent-empty,
.agent-system {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.agent-system.error {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.agent-chat-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.agent-user-cell {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.agent-avatar-wrap {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.agent-avatar,
.agent-avatar-fallback {
  width: 100%;
  height: 100%;
}

.agent-avatar {
  object-fit: cover;
}

.agent-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 950;
  background: linear-gradient(135deg, rgba(83, 52, 131, 0.95), rgba(56, 189, 248, 0.28));
}

.agent-name {
  max-width: 72px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-bubble {
  position: relative;
  min-height: 54px;
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 16px;
  padding: 11px 12px 22px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.agent-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .profile-info-search,
  .profile-info-hero,
  .profile-info-grid,
  .profile-info-media-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-search.is-detail {
    grid-template-columns: 52px 1fr 52px;
  }

  .profile-info-search.is-detail .profile-info-send-message {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-info-search.is-detail .profile-info-refresh {
    grid-column: 3;
    grid-row: 1;
  }

  .profile-info-rel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .autograph-actions {
    grid-template-columns: 1fr;
  }

  .msp-ai-form {
    grid-template-columns: 1fr;
  }

  .msp-ai-window {
    height: min(82vh, 640px);
  }

  .msp-ai-message {
    max-width: 100%;
  }

  .msp-ai-research-toggle {
    max-width: 100%;
  }

  .msp-ai-source-chip,
  .msp-ai-source-card {
    max-width: 100%;
  }

  .agent-form {
    grid-template-columns: 1fr;
  }

  .agent-chat-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .agent-avatar-wrap {
    width: 40px;
    height: 40px;
  }
}

.daily-reward-window {
  width: min(100%, 640px);
}

.daily-reward-loading,
.daily-reward-error {
  margin: 0 18px 18px;
  border-radius: 16px;
}

.daily-reward-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 250px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.daily-reward-error {
  display: none;
  padding: 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.daily-reward-content {
  display: none;
  padding: 0 18px 18px;
}

.daily-reward-list {
  display: flex;
  max-height: min(58vh, 520px);
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.daily-reward-list::-webkit-scrollbar {
  width: 6px;
}

.daily-reward-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.daily-reward-list::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.45);
  border-radius: 999px;
}

.daily-reward-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(125, 211, 252, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.daily-reward-avatar-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.daily-reward-avatar {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.15);
}

.daily-reward-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-reward-avatar b {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 900;
}

.daily-reward-avatar-coin {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.1);
}

.daily-reward-avatar-coin img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(245, 158, 11, 0.28));
}

.daily-reward-profile-name {
  width: 72px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-reward-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.daily-reward-name {
  overflow: hidden;
  color: #f472b6;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-reward-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.daily-reward-day {
  color: #f472b6;
  font-size: 12px;
  font-weight: 900;
}

.daily-reward-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}

.daily-reward-amounts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 20px;
  flex-wrap: wrap;
}

.daily-reward-amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.daily-reward-amount strong {
  line-height: 1;
  font-weight: 900;
}

.daily-reward-mini-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.daily-reward-mini-star {
  color: #c084fc;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.daily-reward-mini-diamond {
  color: #67e8f9;
  font-size: 17px;
  line-height: 1;
}

.daily-reward-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.8);
}

.daily-reward-amount-empty {
  color: var(--text-muted);
}

.daily-reward-claim {
  width: 92px;
  min-height: 34px;
  border: 1px solid rgba(134, 239, 172, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, #6ee74f 0%, #18b72c 100%);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 20px rgba(34, 197, 94, 0.18);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.daily-reward-claim:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.daily-reward-claim:disabled {
  opacity: 0.55;
  cursor: default;
}

#daily-reward-message {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

#daily-reward-message.success {
  display: block;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: #86efac;
}

#daily-reward-message.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.settings-window {
  width: min(100%, 520px);
}

.settings-body {
  padding: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 210px));
  justify-content: center;
  gap: 14px;
}

.privacy-window {
  width: min(720px, calc(100vw - 28px));
  max-height: min(92vh, 860px);
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.privacy-body {
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.privacy-body::-webkit-scrollbar {
  width: 10px;
}

.privacy-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.privacy-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 9, 14, 0.96);
  border-radius: 999px;
  background: var(--theme-soft);
}

.privacy-body::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}

.privacy-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.privacy-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.privacy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.privacy-section-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
}

.privacy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.privacy-toggle-row:first-of-type {
  border-top: 0;
}

.privacy-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.privacy-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy-slider {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.privacy-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, background 0.18s ease;
}

.privacy-switch input:checked + .privacy-slider {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

.privacy-switch input:checked + .privacy-slider::after {
  transform: translateX(18px);
  background: var(--theme-soft);
}

@media (max-width: 720px) {
  .privacy-content {
    grid-template-columns: 1fr;
  }
}

.settings-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 14, 0.72);
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.settings-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
}

.settings-action-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.settings-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settings-gender-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.settings-gender-btn .settings-action-icon {
  width: 58px;
  height: 58px;
}

.custom-home-window {
  width: min(100%, 980px);
  max-height: min(86vh, 820px);
}

.custom-home-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  min-height: 0;
}

.custom-home-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(86vh - 132px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.58) rgba(255, 255, 255, 0.055);
}

.custom-home-categories::-webkit-scrollbar {
  width: 10px;
}

.custom-home-categories::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.custom-home-categories::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 9, 14, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.92), rgba(34, 211, 238, 0.68));
}

.custom-home-categories::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.98), rgba(125, 211, 252, 0.82));
}

.custom-home-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-home-category-title {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.custom-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.custom-home-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(118, 213, 245, 0.22);
  border-radius: 8px;
  background: rgba(16, 19, 25, 0.88);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.custom-home-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(118, 213, 245, 0.46);
  filter: brightness(1.08);
}

.custom-home-card:disabled {
  opacity: 0.62;
  cursor: default;
}

.custom-home-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-home-preview-empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.custom-home-card-title {
  display: block;
  padding: 9px 2px 1px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-window {
  width: min(760px, calc(100vw - 28px));
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 22px 14px;
}

.studio-tab {
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.studio-tab.active,
.studio-tab:hover {
  border-color: var(--theme-border-strong);
  background: var(--theme-surface);
  color: var(--text-primary);
}

.studio-divider {
  height: 1px;
  margin: 0 22px 16px;
  background: linear-gradient(90deg, transparent, var(--theme-border-strong), transparent);
}

.studio-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  color: var(--text-muted);
  font-weight: 850;
}

.studio-error {
  display: none;
  margin: 0 22px 14px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(127, 29, 29, 0.16);
  color: #fecaca;
  font-weight: 850;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-height: min(520px, 58vh);
  overflow: auto;
  padding: 0 22px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.studio-grid::-webkit-scrollbar {
  width: 10px;
}

.studio-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.studio-grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 11, 18, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--theme-soft), var(--theme-light));
}

.studio-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  padding: 9px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.studio-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.studio-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--studio-ratio, 4 / 3);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(6, 9, 15, 0.82);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
}

.studio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(6, 9, 15, 0.86);
}

.studio-card strong {
  display: block;
  overflow: hidden;
  margin-top: 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-empty {
  grid-column: 1 / -1;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 34px 14px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 900;
}

.studio-library-window { width: min(980px, calc(100vw - 28px)); max-height: min(820px, calc(100dvh - 28px)); }
.studio-library-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--theme-border-soft); }
.studio-library-tab { min-height: 44px; border: 1px solid var(--theme-border-soft); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--text-muted); font-weight: 900; cursor: pointer; }
.studio-library-tab.active { border-color: var(--theme-border-strong); background: var(--theme-surface); color: var(--text-primary); box-shadow: 0 0 18px var(--theme-badge-shadow); }
.studio-library-body { min-height: 260px; overflow: hidden; }
.studio-library-loading { display: flex; min-height: 250px; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-weight: 800; }
.studio-library-error { display: none; margin: 16px 20px 0; padding: 12px 14px; border: 1px solid rgba(248,113,113,.3); border-radius: 12px; background: rgba(127,29,29,.14); color: #fecaca; }
.studio-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; max-height: min(650px, 68dvh); overflow: auto; padding: 18px 20px 22px; scrollbar-width: thin; scrollbar-color: var(--theme-soft) rgba(255,255,255,.05); }
.studio-library-card { min-width: 0; padding: 10px; border: 1px solid var(--theme-border-soft); border-radius: 17px; background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.studio-library-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: rgba(4,7,13,.82); color: var(--text-muted); font-size: 12px; }
.studio-library-thumb img { width: 100%; height: 100%; object-fit: contain; background: rgba(4,7,13,.92); }
.studio-library-look-card .studio-library-thumb { aspect-ratio: 599 / 1000; }
.studio-library-card-copy { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px 8px; }
.studio-library-card-copy strong { overflow: hidden; color: var(--text-primary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.studio-library-card-copy small { color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.studio-library-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.studio-library-stat { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--theme-border-soft); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 900; }
button.studio-library-stat { cursor: pointer; }
button.studio-library-stat:hover { border-color: var(--theme-border-strong); color: var(--theme-soft); }
.studio-library-stat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.studio-library-love svg { fill: currentColor; stroke: none; color: #fb7185; }
.studio-library-boost { width: 100%; margin-top: 8px; }

body.restricted-features-locked #panel-btn-profile-picture,
body.restricted-features-locked #settings-profile-picture,
body.restricted-features-locked #panel-btn-custom-image,
body.restricted-features-locked #settings-custom-image,
body.restricted-features-locked [data-status-boost],
body.restricted-features-locked [data-studio-boost] {
  opacity: 0.48;
  filter: grayscale(0.55);
  cursor: not-allowed;
}

body.restricted-features-locked #panel-btn-profile-picture::after,
body.restricted-features-locked #settings-profile-picture::after,
body.restricted-features-locked #panel-btn-custom-image::after,
body.restricted-features-locked #settings-custom-image::after,
body.restricted-features-locked [data-status-boost]::after,
body.restricted-features-locked [data-studio-boost]::after {
  content: '\1F512';
  margin-left: 0.4rem;
  font-size: 0.78em;
}
.studio-library-create-card { cursor: pointer; color: var(--text-primary); }
.studio-library-create-card:hover { border-color: var(--theme-border-strong); background: var(--theme-surface); }
.studio-library-create-card .studio-library-thumb { gap: 10px; border: 1px dashed var(--theme-border-strong); }
.studio-library-create-plus { color: var(--theme-soft); font-size: 42px; font-weight: 400; line-height: 1; }
.studio-library-create-card strong { font-size: 14px; }
.studio-library-empty { grid-column: 1/-1; padding: 54px 18px; border: 1px dashed var(--theme-border-soft); border-radius: 16px; color: var(--text-muted); text-align: center; }
.boost-token-info-window { width: min(470px, calc(100vw - 28px)); }
.boost-token-info-body { padding: 22px; color: var(--text-muted); line-height: 1.6; }
.boost-token-info-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.boost-token-info-count span { color: #fbbf24; font-size: 34px; font-weight: 950; }
.boost-token-info-count small { font-weight: 850; }
.boost-token-info-body ul { margin: 14px 0 0; padding-left: 20px; }
#boost-capacity-modal { z-index: 12100; padding: 14px; }
#boost-capacity-modal .status-apply-btn { width: 100%; min-height: 44px; margin-top: 14px; }
.boost-policy-window { width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); }
.boost-policy-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; color: var(--text-secondary); line-height: 1.55; }
.boost-policy-body p { margin: 0; }
.boost-policy-rule { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid rgba(74, 222, 128, .24); border-radius: 13px; background: rgba(74, 222, 128, .06); }
.boost-policy-rule strong { color: #86efac; }
.boost-policy-rule.danger { border-color: rgba(251, 113, 133, .28); background: rgba(251, 113, 133, .07); }
.boost-policy-rule.danger strong { color: #fda4af; }
.boost-policy-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); cursor: pointer; }
.boost-policy-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--theme-soft); flex: 0 0 auto; }
.boost-policy-error { min-height: 20px; color: #fda4af; font-size: 12px; }
.boost-policy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boost-policy-actions button { min-height: 44px; }
.boost-policy-decline-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.boost-policy-decline-btn:hover,
.boost-policy-decline-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
#boost-notice-modal .status-apply-btn { width: 100%; }
.studio-look-create-window { width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); }
.studio-look-create-body { padding-bottom: 22px; overflow-y: auto; }
.studio-look-create-window { --studio-ratio: 599 / 1000; --studio-preview-width: 270px; --studio-preview-max-height: 52vh; }
.studio-look-create-drop { margin-top: 18px; }
.studio-look-create-label { display: grid; width: min(360px, calc(100% - 44px)); gap: 9px; margin: 0 auto; padding: 0 0 16px; color: var(--text-primary); font-weight: 850; }
.studio-look-create-label .studio-title-input { min-height: 46px; padding: 11px 14px; border-radius: 13px; font-size: 15px; }
.studio-look-create-body > .studio-apply-btn { display: block; width: min(360px, calc(100% - 44px)); min-height: 46px; margin: 0 auto; }
.studio-look-create-body > .feature-message { margin: 12px 22px 0; }

#status-comments-modal { z-index: 2147483000 !important; }
#status-comment-confirm-modal { z-index: 2147483646 !important; }

@media (max-width: 760px) {
  .studio-library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 500px) {
  .studio-library-window { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); }
  .studio-library-tabs { padding: 12px; }
  .studio-library-tab { min-height: 40px; font-size: 12px; }
  .studio-library-grid { grid-template-columns: 1fr; padding: 12px; }
}

.studio-preview-window {
  width: min(620px, calc(100vw - 28px));
  max-height: min(92vh, 760px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.studio-preview-drop {
  display: grid;
  place-items: center;
  width: min(100% - 44px, var(--studio-preview-width, 512px));
  aspect-ratio: var(--studio-ratio, 4 / 3);
  max-height: min(45vh, var(--studio-preview-max-height, 330px));
  margin: 22px auto 12px;
  overflow: hidden;
  border: 1px dashed var(--theme-border-strong);
  border-radius: 16px;
  background: rgba(6, 9, 15, 0.86);
  color: var(--text-muted);
  cursor: pointer;
}

.studio-preview-drop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(6, 9, 15, 0.86);
}

.studio-preview-drop span {
  font-size: 15px;
  font-weight: 950;
}

.studio-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 850;
}

.studio-preview-meta strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-title-edit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: calc(100% - 44px);
  margin: 0 auto 14px;
}

.studio-title-input {
  min-width: 0;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: rgba(6, 9, 15, 0.72);
  color: var(--text-primary);
  outline: none;
  padding: 0 13px;
  font: 850 13px/1 Inter, system-ui, sans-serif;
}

.studio-title-input:focus {
  border-color: var(--theme-border);
  box-shadow: 0 0 0 3px var(--theme-glow);
}

.studio-title-apply {
  min-height: 44px;
  border: 1px solid var(--theme-border-strong);
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--text-primary);
  padding: 0 16px;
  font: 950 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.studio-title-apply:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.studio-apply-btn {
  display: grid;
  place-items: center;
  width: calc(100% - 44px);
  min-height: 54px;
  margin: 0 auto 18px;
  border: 1px solid var(--theme-border-strong);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--text-primary);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.studio-apply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--theme-light);
  background: rgba(167, 139, 250, 0.2);
}

.studio-apply-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#studio-message {
  width: calc(100% - 44px);
  margin: -8px auto 18px;
  text-align: center;
}

#custom-home-message {
  min-height: 18px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#custom-home-message.success {
  color: #7dd3fc;
}

#custom-home-message.error {
  color: #fb7185;
}

.password-window {
  width: min(100%, 460px);
}

.password-body,
.picture-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.picture-window {
  width: min(100%, 460px);
}

.custom-image-window {
  width: min(100%, 500px);
}

.custom-image-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
}

.custom-image-body > .risk-warning-card {
  width: 100%;
  flex: 0 0 100%;
  order: 1;
}

.custom-image-body > .custom-image-choice {
  flex: 1 1 calc(50% - 7px);
  min-width: 140px;
  order: 0;
}

.custom-image-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 14, 0.72);
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.custom-image-choice:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.06);
}

.home-image-window {
  width: min(100%, 520px);
  max-height: min(92vh, 760px);
}

.home-image-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.password-profile-avatar,
.picture-avatar {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.home-image-dropzone {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: min(100%, var(--home-image-preview-width, 520px));
  aspect-ratio: var(--home-image-preview-ratio, 4 / 3);
  max-height: min(42vh, var(--home-image-preview-max-height, 340px));
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--theme-soft);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.home-image-dropzone:hover:not(:disabled),
.home-image-dropzone.drag-over {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.home-image-dropzone:disabled {
  opacity: 0.6;
  cursor: default;
}

.home-image-dropzone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(6, 9, 15, 0.86);
}

.picture-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-soft);
  background: var(--theme-badge);
}

.picture-avatar {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.picture-avatar:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
  box-shadow: 0 0 0 4px var(--theme-glow), 0 0 34px var(--theme-glow);
}

.picture-avatar:disabled {
  opacity: 0.6;
  cursor: default;
}

.password-profile-avatar img,
.picture-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.password-profile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-soft);
  background: var(--theme-badge);
}

.password-profile-name,
.picture-profile-name {
  max-width: 100%;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
}

.password-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  padding: 13px 14px;
  font: inherit;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.password-input:focus {
  border-color: var(--theme-border-soft);
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.status-text-style-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.status-text-section-title {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.status-text-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-text-style-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.status-text-style-card:hover {
  transform: translateY(-1px);
  border-color: var(--theme-border-soft);
}

.status-text-style-card.active {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  box-shadow: inset 0 0 0 1px var(--theme-glow);
}

.status-text-style-card > input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.status-text-style-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.status-text-style-copy strong {
  color: var(--text-primary);
  font-size: 12px;
}

.status-text-style-copy small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-text-style-check {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
}

.status-text-style-card.active .status-text-style-check {
  border-color: transparent;
  background: var(--theme-accent, #c026d3);
  color: #fff;
}

.status-text-perfect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.status-text-perfect-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.status-text-perfect-copy strong {
  color: var(--text-primary);
  font-size: 12px;
}

.status-text-perfect-copy small {
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.status-text-perfect-row > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-text-perfect-toggle {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.status-text-perfect-toggle::after {
  content: '✓';
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.status-text-perfect-row > input:checked + .status-text-perfect-toggle {
  border-color: #60a5fa;
  background: #3b82f6;
  color: #fff;
}

.status-text-preview {
  display: flex;
  min-height: 56px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px dashed var(--theme-border-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.status-text-preview > span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-text-preview > strong {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .status-text-style-grid {
    grid-template-columns: 1fr;
  }

  .status-text-style-card {
    min-height: 58px;
  }
}

.password-apply-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.password-apply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--theme-glow);
}

.password-apply-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

#password-message {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

#picture-message,
#home-image-message,
#home-name-message,
#status-text-message {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

#password-message.success,
#picture-message.success,
#home-image-message.success,
#home-name-message.success,
#status-text-message.success {
  display: block;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: #86efac;
}

#password-message.error,
#picture-message.error,
#home-image-message.error,
#home-name-message.error,
#status-text-message.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.home-name-color-label {
  margin: 2px 0 -8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.home-name-preview {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9px 14px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-name-preview span {
  max-width: 100%;
  overflow: hidden;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .01em;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(90deg, #f87171, #67e8f9, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px var(--theme-glow-strong));
}

.home-name-color-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.home-name-color-choice {
  min-height: 35px;
  padding: 5px 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.home-name-color-choice:hover,
.home-name-color-choice.active {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  color: var(--text-primary);
  box-shadow: 0 0 12px var(--theme-badge-shadow);
}

.home-name-color-choice:active {
  transform: scale(.96);
}

#settings-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

#settings-status.success {
  display: block;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: #86efac;
}

#settings-status.error {
  display: block;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
}

.vip-window {
  width: min(96vw, 1080px);
  max-height: min(90vh, 860px);
  border-color: rgba(244, 114, 182, 0.28);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(236, 72, 153, 0.12);
}

.scheduled-tasks-window {
  width: min(96vw, 440px);
}

.scheduled-tasks-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-soft) rgba(255, 255, 255, 0.055);
}

.scheduled-tasks-body::-webkit-scrollbar,
.account-switcher-list::-webkit-scrollbar {
  width: 8px;
}

.scheduled-tasks-body::-webkit-scrollbar-track,
.account-switcher-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.scheduled-tasks-body::-webkit-scrollbar-thumb,
.account-switcher-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 10, 14, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--theme-soft), var(--theme-light));
  box-shadow: 0 0 10px var(--theme-glow-strong);
}

.scheduled-tasks-body::-webkit-scrollbar-thumb:hover,
.account-switcher-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--theme-light), var(--theme-soft));
}

.scheduled-tasks-intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.scheduled-tasks-status {
  padding: 10px 12px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 14px;
  background: var(--theme-badge);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.scheduled-tasks-status.hidden {
  display: none;
}

.scheduled-tasks-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheduled-tasks-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.scheduled-tasks-check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--theme-light);
  cursor: pointer;
}

.scheduled-tasks-hour-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.scheduled-tasks-hour-row select,
.scheduled-tasks-hour-row input {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}


.scheduled-tasks-message {
  min-height: 0;
  padding: 0 2px;
  color: var(--danger-text);
  font-size: 12px;
  font-weight: 800;
}

.scheduled-tasks-message.success {
  color: #4ade80;
}

.scheduled-tasks-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheduled-tasks-save {
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: var(--theme-accent);
  color: #0a0a0e;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.scheduled-tasks-save:hover {
  transform: translateY(-1px);
}

.scheduled-tasks-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scheduled-tasks-disable {
  padding: 11px;
  border: 1px solid var(--danger-border);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.16s ease;
}

.scheduled-tasks-disable:hover {
  background: rgba(239, 68, 68, 0.2);
}

.scheduled-tasks-disable.hidden {
  display: none;
}

.vip-header {
  background:
    radial-gradient(circle at 12% 45%, rgba(250, 204, 21, 0.13), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.vip-title-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(250, 204, 21, 0.78));
}

.vip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #f97316);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.vip-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.vip-game-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 20px 36px;
}

.vip-game-choice-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.vip-game-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 820px;
}

.vip-game-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 220px;
  padding: 14px 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(155deg, rgba(168, 85, 247, 0.2), rgba(10, 10, 18, 0.96) 68%);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.vip-game-option:hover {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35), 0 0 28px rgba(168, 85, 247, 0.18);
}

.vip-game-option-msp {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(155deg, rgba(236, 72, 153, 0.26), rgba(10, 10, 18, 0.96) 68%);
}

.vip-game-option-bsp {
  background:
    radial-gradient(circle at 50% 14%, rgba(103, 232, 249, 0.2), transparent 42%),
    linear-gradient(155deg, rgba(14, 165, 233, 0.26), rgba(10, 10, 18, 0.96) 68%);
}

.vip-game-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 132px;
  margin-bottom: 3px;
}

.vip-game-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.vip-game-option:hover .vip-game-logo {
  transform: scale(1.07);
}

.vip-game-option-title {
  font-size: 18px;
  font-weight: 900;
}

.vip-game-option-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .vip-game-options {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .vip-game-option {
    min-height: 154px;
    padding: 10px 14px 14px;
  }

  .vip-game-logo-wrap {
    height: 86px;
  }
}

.vip-error {
  display: none;
  margin: 14px 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--danger-border);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-size: 12px;
  text-align: center;
}

.vip-content {
  display: block;
  padding: 14px 18px 18px;
}

.vip-shop-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 9% 50%, rgba(244, 114, 182, 0.18), transparent 34%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

#vip-modal[data-vip-game="bsp"] .vip-shop-hero {
  background:
    radial-gradient(circle at 9% 50%, rgba(34, 211, 238, 0.2), transparent 34%),
    linear-gradient(100deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.018));
}

.vip-shop-logo {
  width: 82px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.vip-shop-heading {
  min-width: 0;
  flex: 1;
}

.vip-shop-heading > strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-shop-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
  font-size: 9px;
  font-weight: 950;
}

.vip-shop-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 9px rgba(74, 222, 128, 0.9);
}

.vip-meta {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.vip-filter-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.vip-filter-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.vip-filter-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.52);
  background: rgba(250, 204, 21, 0.16);
}

.vip-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 1px 2px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.58) rgba(255, 255, 255, 0.06);
  scroll-behavior: smooth;
}

.vip-filters::-webkit-scrollbar,
.vip-offers::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.vip-filters::-webkit-scrollbar-track,
.vip-offers::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.vip-filters::-webkit-scrollbar-thumb,
.vip-offers::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.68), rgba(244, 114, 182, 0.52));
}

.vip-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.vip-filter-btn strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 10px;
}

.vip-filter-btn.active,
.vip-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.12);
  color: var(--text-primary);
}

.vip-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  max-height: min(58vh, 590px);
  padding: 2px 8px 10px 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.58) rgba(255, 255, 255, 0.06);
}

.vip-offer-card {
  --vip-card-a: #0891b2;
  --vip-card-b: #164e63;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  min-height: 286px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--vip-card-a) 62%, white 12%);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--vip-card-a) 58%, transparent), transparent 48%),
    linear-gradient(155deg, color-mix(in srgb, var(--vip-card-a) 78%, #111827), var(--vip-card-b));
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.vip-offer-card:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.38), 0 0 28px color-mix(in srgb, var(--vip-card-a) 34%, transparent);
}

.vip-theme-cyan,
.vip-theme-aqua {
  --vip-card-a: #06b6d4;
  --vip-card-b: #075985;
}

.vip-theme-violet,
.vip-theme-elite {
  --vip-card-a: #a855f7;
  --vip-card-b: #581c87;
}

.vip-theme-rose,
.vip-theme-star {
  --vip-card-a: #f43f5e;
  --vip-card-b: #9f1239;
}

.vip-theme-gold,
.vip-theme-welcome {
  --vip-card-a: #fbbf24;
  --vip-card-b: #a16207;
}

.vip-theme-topup {
  --vip-card-a: #22c55e;
  --vip-card-b: #166534;
}

.vip-card-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.28) 38%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
  transform: translateX(-34%);
  transition: transform 0.35s ease;
}

.vip-offer-card:hover .vip-card-glow {
  transform: translateX(18%);
}

.vip-card-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.vip-card-header-no-vip {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vip-card-crown {
  width: 44px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.38));
}

.vip-card-duration {
  overflow: visible;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.15;
  text-align: left;
  text-overflow: clip;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  white-space: normal;
  overflow-wrap: anywhere;
}

.vip-offer-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 2px;
}

.vip-offer-title {
  display: block;
  overflow: visible;
  min-height: 37px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.vip-offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 900;
}

.vip-offer-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.vip-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 30px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.19);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.vip-metric img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.36));
}

.vip-metric strong {
  color: #fff;
  font-weight: 900;
}

.vip-metric-items {
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
}

.vip-bonus-items {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}

.vip-bonus-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--vip-card-a);
  font-size: 14px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.vip-bonus-items small {
  margin-left: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
}

.vip-offer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  margin: auto -7px -7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9a8, #facc15 54%, #eab308 55%, #ca8a04);
  color: #3f2d05;
  font-size: 17px;
  font-weight: 950;
  text-align: right;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.vip-offer-price small {
  color: rgba(63, 45, 5, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fm-empty {
  padding: 44px 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.fm-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-divider);
}

.fm-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.fm-page-info {
  min-width: 64px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.music-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 121;
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(9, 10, 14, 0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.music-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.quick-settings-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-settings-tab {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.quick-settings-tab.active {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
  color: var(--text-primary);
  box-shadow: 0 0 16px var(--theme-badge-shadow);
}

.quick-settings-section {
  display: none;
}

.quick-settings-section.active {
  display: grid;
  gap: 8px;
}

.quick-settings-section[data-settings-panel="theme"].active {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 480px) {
  .quick-settings-section[data-settings-panel="theme"].active {
    grid-template-columns: 1fr;
  }
}

.music-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.music-track-row + .music-track-row {
  margin-top: 8px;
}

.quick-settings-section.active .music-track-row + .music-track-row {
  margin-top: 0;
}

.music-track-row:hover,
.music-track-row.active {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

.music-track-info {
  min-width: 0;
}

.music-track-title {
  display: block;
  color: var(--text-primary);
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.music-track-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.music-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--theme-border-soft);
  border-radius: 12px;
  background: var(--theme-badge);
  color: var(--theme-soft);
  cursor: pointer;
}

.music-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.music-row-pause {
  display: none;
}

.music-toggle-btn.playing .music-row-play {
  display: none;
}

.music-toggle-btn.playing .music-row-pause {
  display: block;
}

.theme-option-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.theme-option-row:hover,
.theme-option-row.active {
  border-color: var(--theme-border-soft);
  background: var(--theme-badge);
}

.theme-option-row.active {
  box-shadow: 0 0 0 4px var(--theme-glow);
}

.theme-option-swatch {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px var(--theme-badge-shadow);
}

.theme-option-galaxy {
  background:
    radial-gradient(circle at 34% 28%, #c4b5fd, transparent 30%),
    radial-gradient(circle at 72% 70%, #dc2626, transparent 31%),
    linear-gradient(135deg, #090a14, #5b174f 48%, #7f1d1d);
}

.theme-option-pixel {
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px),
    linear-gradient(135deg, #86efac, #14b8a6);
  background-size: 8px 8px, 8px 8px, 100% 100%;
}

.theme-option-gold {
  background:
    radial-gradient(circle at 28% 28%, #c8a030, transparent 26%),
    radial-gradient(circle at 72% 70%, #d4a843, transparent 30%),
    linear-gradient(135deg, #0a0800, #1a1404);
}

.theme-option-blue {
  background:
    radial-gradient(circle at 30% 28%, #bfdbfe, transparent 28%),
    radial-gradient(circle at 72% 70%, #7dd3fc, transparent 32%),
    linear-gradient(135deg, #071019, #0c2a4a);
}

.theme-option-pink {
  background:
    radial-gradient(circle at 30% 28%, #fbcfe8, transparent 28%),
    radial-gradient(circle at 72% 70%, #f0abfc, transparent 32%),
    linear-gradient(135deg, #170a16, #4a123f);
}

.theme-option-cyan {
  background:
    radial-gradient(circle at 30% 28%, #ccfbf1, transparent 28%),
    radial-gradient(circle at 72% 70%, #67e8f9, transparent 32%),
    linear-gradient(135deg, #051414, #0a3a38);
}

.theme-option-orange {
  background:
    radial-gradient(circle at 30% 28%, #fed7aa, transparent 28%),
    radial-gradient(circle at 72% 70%, #fdba74, transparent 32%),
    linear-gradient(135deg, #170e05, #4a2a0c);
}

.theme-option-rock {
  background:
    radial-gradient(circle at 30% 28%, #f87171, transparent 28%),
    radial-gradient(circle at 72% 70%, #dc2626, transparent 32%),
    linear-gradient(135deg, #0f0505, #3a0a0a);
}

.theme-option-dream {
  background:
    radial-gradient(circle at 30% 28%, #bae6fd, transparent 28%),
    radial-gradient(circle at 72% 70%, #38bdf8, transparent 32%),
    linear-gradient(135deg, #05131a, #073a54);
}

.theme-option-rainbow {
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 35%, #a78bfa 68%, #22d3ee 100%);
}

.theme-option-aurora {
  background:
    radial-gradient(circle at 24% 22%, #b7f7ff, transparent 28%),
    radial-gradient(circle at 74% 72%, #7cf5c4, transparent 33%),
    linear-gradient(135deg, #061719, #0b3f36 52%, #37245f);
}

.theme-option-custom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(from 0deg, #f87171, #fbbf24, #4ade80, #22d3ee, #818cf8, #e879f9, #f87171);
}

.theme-option-custom-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.theme-option-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.theme-option-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-option-sub {
  display: none;
}

#audio-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.8);
  color: var(--text-secondary);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

#audio-player:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
}

#audio-player.panel-open {
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
}

#audio-player svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

[data-theme="rainbow"] .site-brand,
[data-theme="rainbow"] .about-mini-brand,
[data-theme="rainbow"] .hero-title,
[data-theme="rainbow"] .tbar-stat-val,
[data-theme="rainbow"] .tbar-xp-cur {
  background: linear-gradient(90deg, #fb923c, #ec4899, #a78bfa, #22d3ee, #4ade80, #fb923c);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-slide 18s linear infinite;
}

[data-theme="rainbow"] .tbar-xp-fill,
[data-theme="rainbow"] .brand-dot,
[data-theme="rainbow"] .login-lock-ok {
  background: linear-gradient(90deg, #fb923c, #ec4899, #a78bfa, #22d3ee, #4ade80, #fb923c);
  background-size: 260% auto;
  animation: rainbow-slide 18s linear infinite;
}

[data-theme="rainbow"] .submit-button {
  border: 1px solid rgba(216, 180, 254, 0.34);
  background:
    linear-gradient(rgba(8, 10, 18, 0.88), rgba(8, 10, 18, 0.88)) padding-box,
    repeating-linear-gradient(
      110deg,
      #f0abfc 0 16px,
      #93c5fd 16px 32px,
      #67e8f9 32px 48px,
      #fbcfe8 48px 64px,
      #f0abfc 64px 80px
    ) border-box;
  color: var(--text-primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 24px rgba(192, 132, 252, 0.14);
}

[data-theme="rainbow"] .submit-glow {
  background: linear-gradient(90deg, rgba(240, 171, 252, 0.38), rgba(147, 197, 253, 0.24), rgba(103, 232, 249, 0.22));
}

[data-theme="rainbow"] .login-card {
  border-color: rgba(216, 180, 254, 0.26);
  box-shadow:
    0 0 88px 0 rgba(192, 132, 252, 0.16),
    0 30px 60px 0 rgba(0, 0, 0, 0.6),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

[data-theme="rainbow"] .login-card::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.42), transparent 42%),
    radial-gradient(circle at 70% 58%, rgba(34, 211, 238, 0.26), transparent 48%);
  animation: rainbow-glow-drift 20s ease-in-out infinite alternate;
}

html[data-theme="rainbow"] body {
  animation: rainbow-page-glow 30s ease-in-out infinite;
}

[data-theme="rainbow"] .status-badge,
[data-theme="rainbow"] .topbar-online-badge {
  border-color: rgba(216, 180, 254, 0.34);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text-primary);
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.18);
}

[data-theme="rainbow"] .status-badge svg,
[data-theme="rainbow"] .topbar-online-badge svg {
  color: #e9d5ff;
}

@keyframes rainbow-slide {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 260% center;
  }
}

@keyframes rainbow-glow-drift {
  0% {
    transform: translate3d(-8px, -4px, 0) scale(1);
    opacity: 0.42;
  }

  100% {
    transform: translate3d(10px, 8px, 0) scale(1.08);
    opacity: 0.64;
  }
}

@keyframes rainbow-page-glow {
  0%,
  100% {
    background:
      radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), transparent 34%),
      radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.06), transparent 28%),
      linear-gradient(180deg, #05060a 0%, #090b12 48%, #05060a 100%);
  }

  33% {
    background:
      radial-gradient(circle at top left, rgba(236, 72, 153, 0.07), transparent 34%),
      radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.06), transparent 28%),
      linear-gradient(180deg, #05060a 0%, #090b12 48%, #05060a 100%);
  }

  66% {
    background:
      radial-gradient(circle at top left, rgba(34, 211, 238, 0.06), transparent 34%),
      radial-gradient(circle at 85% 20%, rgba(192, 132, 252, 0.07), transparent 28%),
      linear-gradient(180deg, #05060a 0%, #090b12 48%, #05060a 100%);
  }
}

@media (max-width: 760px), (pointer: coarse) {
  body::before {
    display: none;
  }

  body::after {
    display: none;
  }

  #star-canvas {
    display: none;
  }

  #top-bar,
  .tbar-card,
  .main-panel,
  .fm-backdrop,
  .fm-window,
  .login-card,
  .about-card,
  .support-email-card,
  .music-panel {
    backdrop-filter: none !important;
  }

  .login-card::before,
  .about-card::before {
    display: none;
  }

  .login-card,
  .about-card,
  .guide-card,
  .main-panel,
  .fm-window {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  .support-window {
    width: min(100%, calc(100vw - 18px));
    max-height: calc(100vh - 18px);
  }

  .support-body {
    padding: 14px;
  }

  .support-tabs,
  .support-ticket-form,
  .support-progress {
    grid-template-columns: 1fr;
  }

  html[data-theme="rainbow"] body {
    animation: none;
  }

  [data-theme="rainbow"] .login-card::before {
    animation: none;
  }

  [data-theme="rainbow"] .site-brand,
  [data-theme="rainbow"] .about-mini-brand,
  [data-theme="rainbow"] .hero-title,
  [data-theme="rainbow"] .tbar-stat-val,
  [data-theme="rainbow"] .tbar-xp-cur,
  [data-theme="rainbow"] .tbar-xp-fill,
  [data-theme="rainbow"] .brand-dot,
  [data-theme="rainbow"] .login-lock-ok {
    animation: none;
  }
}

@media (max-width: 960px) {
  #top-bar {
    min-height: 56px;
    padding: 6px 12px;
  }

  .dashboard-hero {
    flex-direction: column;
  }

  .hero-side {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .layout-choice-body {
    grid-template-columns: 1fr;
  }

  .main-actions-grid {
    grid-template-columns: 1fr;
  }

  .mp-quick-area {
    grid-template-columns: 1fr;
  }

  .mp-quick-actions {
    padding-top: 0;
  }

  .mp-tool-grid {
    grid-template-columns: 1fr;
  }

  #top-bar {
    gap: 8px;
  }

  .site-brand {
    font-size: 14px;
    gap: 8px;
  }

  #profile-info.visible {
    max-width: 320px;
  }

  .tbar-card {
    gap: 8px;
    padding: 6px 8px 6px 6px;
  }

  .tbar-avatar-block {
    width: 56px;
    flex-basis: 56px;
  }

  .tbar-avatar {
    width: 40px;
    height: 40px;
  }

  .tbar-username {
    max-width: 56px;
    font-size: 7px;
  }

  .tbar-row2,
  .tbar-row3 {
    gap: 8px;
  }

  .tbar-stat-val {
    font-size: 12px;
  }

  .login-card,
  .dashboard-frame {
    padding: 24px;
    border-radius: 26px;
  }

  .card-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .fm-window {
    width: 100%;
    max-height: 82vh;
  }

  .guide-card {
    max-height: none;
  }

  .guide-hero,
  .guide-section {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    padding: 22px 20px 14px;
  }

  .guide-sections {
    padding: 8px 20px 22px;
  }
}

@media (max-width: 560px) {
  #top-bar {
    min-height: 54px;
    padding: 6px 8px;
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 0;
  }

  #profile-info {
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
  }

  #profile-info.visible {
    max-width: calc(100% - 96px);
    flex-basis: auto;
  }

  .tbar-card {
    width: auto;
    max-width: 100%;
    gap: 7px;
    padding: 6px 7px 6px 5px;
  }

  .tbar-avatar-block {
    width: 48px;
    flex-basis: 48px;
  }

  .tbar-avatar {
    width: 34px;
    height: 34px;
  }

  .tbar-username {
    max-width: 48px;
    font-size: 7px;
  }

  .tbar-xp-wrap {
    display: flex;
    min-width: 62px;
  }

  .tbar-xp-cur,
  .tbar-xp-max {
    font-size: 7px;
  }

  .tbar-stat-icon {
    width: 11px;
    height: 11px;
  }

  .tbar-stat-val {
    font-size: 9px;
  }

  .tbar-fame-wrap {
    width: 20px;
    height: 20px;
  }

  .tbar-fame-level {
    font-size: 7px;
  }

  .btn-support,
  .btn-updates,
  .btn-logout {
    align-self: center;
    min-height: 28px;
    padding: 0 8px;
    font-size: 8px;
  }

  .support-label {
    display: none;
  }

  .about-card {
    padding: 18px;
    border-radius: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-policy-list {
    grid-template-columns: 1fr;
  }

  .about-guide-link {
    width: 100%;
  }

  .guide-card {
    border-radius: 22px;
  }

  .guide-card-top {
    padding: 12px 14px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .guide-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .guide-hero {
    padding: 18px 16px 12px;
  }

  .guide-hero h2 {
    font-size: 24px;
  }

  .guide-sections {
    padding: 6px 14px 18px;
  }

  .guide-section {
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
  }

  .guide-section h3 {
    font-size: 17px;
  }

  .about-card-top {
    margin-bottom: 18px;
  }

  .topbar-actions {
    margin-left: auto;
    gap: 5px;
  }

  .topbar-online-badge {
    min-width: 34px;
    padding: 0 7px;
    font-size: 8px;
  }

  .site-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
    font-size: 11px;
    padding-top: 0;
  }

  #main {
    padding: 16px 12px 34px;
  }

  .login-card {
    width: 100%;
    padding: 22px 18px;
  }

  .dashboard-frame {
    padding: 16px;
    border-radius: 22px;
  }

  .dashboard-hero {
    gap: 16px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-stat {
    min-height: 84px;
    padding: 14px;
    border-radius: 18px;
  }

  .mp-grid {
    grid-template-columns: 1fr;
  }

  .main-actions-grid {
    padding-top: 12px;
  }

  .mp-action-btn {
    min-height: 62px;
    padding: 12px;
    border-radius: 16px;
  }

  .mp-square-action {
    width: 100%;
    min-height: 62px;
    padding: 10px 78px 10px 12px;
  }

  .mp-square-action .mp-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .mp-square-action .mp-action-label {
    font-size: 13px;
  }

  .layout-old .main-actions-grid {
    scrollbar-width: none;
  }

  .old-layout-active .old-start-shell {
    display: none;
  }

  .old-start-button {
    display: none;
  }

  .old-start-button img {
    display: none;
  }

  .old-start-menu {
    left: 12px;
    bottom: 78px;
    width: min(330px, calc(100vw - 24px));
  }

  .layout-old .main-actions-grid::-webkit-scrollbar {
    display: none;
  }

  .layout-old .mp-square-action {
    flex-basis: 100px;
    width: 100px;
    min-height: 100px;
    padding: 10px;
  }

  .layout-old .mp-square-action .mp-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .layout-old .mp-square-action .mp-action-label {
    font-size: 11px;
  }

  .status-window {
    width: 100%;
    height: 86vh;
  }

  .status-detail-window {
    width: 100%;
    height: 82vh;
  }

  .status-comments-window {
    width: 100%;
    height: 82vh;
  }

  .status-list {
    padding: 12px 14px 14px;
  }

  .status-detail-list {
    padding: 12px 14px 14px;
  }

  .status-comments-list {
    padding: 12px 14px 14px;
  }

  .status-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .status-detail-card {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
      "person main"
      "person date";
    align-items: start;
    gap: 4px 10px;
    min-height: 108px;
    height: auto;
    padding: 12px;
  }

  .status-detail-card-comment {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas: "person main";
    gap: 10px;
    min-height: 126px;
    padding: 14px;
  }

  .status-detail-card-comment .status-detail-main {
    align-self: stretch;
    min-height: 92px;
    padding: 12px 14px;
  }

  .status-detail-card-comment .status-detail-date {
    margin-top: 8px;
    text-align: right;
  }

  .status-detail-person {
    grid-area: person;
  }

  .status-detail-main {
    grid-area: main;
    align-self: start;
    width: 100%;
    min-width: 0;
  }

  .status-detail-main p {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .status-detail-date {
    grid-area: date;
    justify-self: end;
    align-self: end;
    max-width: 100%;
    margin-top: 6px;
    text-align: right;
  }

  .status-comment-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 44px 12px 12px;
  }

  .status-comment-delete-btn {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .status-comment-avatar {
    width: 38px;
    height: 38px;
  }

  .status-comment-username {
    max-width: 100%;
    font-size: 10px;
  }

  .status-comment-message {
    padding: 10px 12px;
  }

  .status-comment-message p {
    font-size: 13px;
  }

  .status-date {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .status-stats {
    grid-column: 1 / -1;
  }

  .status-avatar {
    width: 50px;
    height: 50px;
  }

  .status-detail-avatar {
    width: 50px;
    height: 50px;
  }

  .status-comment-confirm-actions {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-action-btn {
    min-height: 126px;
    border-radius: 18px;
    font-size: 13px;
  }

  .settings-action-icon {
    width: 52px;
    height: 52px;
  }

  .settings-gender-icons {
    gap: 7px;
  }

  .settings-gender-btn .settings-action-icon {
    width: 44px;
    height: 44px;
  }

  .custom-image-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .custom-image-choice {
    min-height: 112px;
    border-radius: 16px;
    font-size: 13px;
  }

  .home-image-body {
    padding: 14px;
  }

  .home-image-dropzone {
    max-width: min(100%, var(--home-image-preview-width, 520px));
  }

  .custom-home-window {
    width: 100%;
    max-height: 88vh;
  }

  .custom-home-body {
    padding: 14px;
  }

  .custom-home-categories {
    max-height: calc(88vh - 126px);
  }

  .custom-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .studio-tabs {
    gap: 7px;
    padding: 16px 16px 12px;
  }

  .studio-tab {
    min-height: 42px;
    font-size: 12px;
  }

  .studio-divider {
    margin-inline: 16px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 18px;
  }

  .studio-preview-drop {
    width: min(calc(100% - 32px), var(--studio-preview-width, 512px));
  }

  .studio-preview-meta {
    padding-inline: 16px;
  }

  .vip-window {
    width: 100%;
    max-height: 88vh;
  }

  .vip-content {
    padding: 10px;
  }

  .vip-shop-hero {
    min-height: 60px;
    gap: 10px;
    padding: 8px 10px;
  }

  .vip-shop-logo {
    width: 60px;
    height: 42px;
  }

  .vip-shop-heading > strong {
    font-size: 14px;
  }

  .vip-shop-live {
    display: none;
  }

  .vip-title-icon {
    width: 24px;
    height: 24px;
  }

  .vip-filter-row {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .vip-filter-nav {
    width: 30px;
    height: 30px;
  }

  .vip-filters {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 7px;
  }

  .vip-filter-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .vip-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: 55vh;
    padding-right: 4px;
  }

  .vip-offer-card {
    gap: 8px;
    min-height: 250px;
    padding: 10px;
    border-radius: 16px;
  }

  .vip-offer-title {
    min-height: 32px;
    font-size: 11px;
  }

  .vip-card-header {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px;
  }

  .vip-card-header-no-vip {
    grid-template-columns: minmax(0, 1fr);
  }

  .vip-card-crown {
    width: 32px;
    height: 30px;
  }

  .vip-card-duration {
    font-size: 15px;
  }

  .vip-card-header .vip-offer-badge {
    display: none;
  }

  .vip-metric {
    min-height: 27px;
    padding: 3px 7px 3px 4px;
    font-size: 11px;
  }

  .vip-metric img {
    width: 20px;
    height: 20px;
  }

  .vip-bonus-tile {
    width: 26px;
    height: 26px;
  }

  .vip-bonus-items small {
    display: none;
  }

  .vip-offer-price {
    min-height: 36px;
    margin: auto -5px -5px;
    padding: 0 9px;
    font-size: 13px;
  }

  .vip-offer-price small {
    font-size: 8px;
  }

  .mood-window {
    width: 100%;
    max-height: 86vh;
  }

  .mood-body {
    gap: 10px;
    padding: 14px 14px 16px;
  }

  .mood-preview {
    min-height: 220px;
    max-height: 50vh;
  }

  .mood-preview img {
    max-width: min(100%, 220px);
    max-height: 50vh;
  }

  .mood-controls {
    grid-template-columns: 34px minmax(54px, auto) 34px;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mood-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .mood-counter {
    font-size: 12px;
  }

  .mood-apply-btn {
    width: min(100%, 220px);
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }

  .daily-reward-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    min-height: 108px;
    padding: 12px;
  }

  .daily-reward-avatar {
    width: 54px;
    height: 54px;
  }

  .daily-reward-avatar-coin img {
    width: 48px;
    height: 48px;
  }

  .daily-reward-profile-name {
    width: 64px;
  }

  .daily-reward-side {
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
  }

  .daily-reward-amounts {
    justify-content: flex-start;
  }

  .daily-reward-claim {
    width: 92px;
  }

  .fm-backdrop {
    padding: 14px;
  }

  .login-lock-body {
    padding: 22px 16px;
  }

  .login-lock-countdown {
    gap: 6px;
  }

  .login-lock-time {
    padding: 10px 4px;
    border-radius: 12px;
  }

  .login-lock-time strong {
    font-size: 17px;
  }

  .login-lock-time span {
    font-size: 9px;
  }

  .fm-header,
  .fm-tabs,
  .fm-sub-filters,
  .fm-list,
  .fm-pagination {
    padding-left: 14px;
    padding-right: 14px;
  }

  #friends-loading,
  #friends-error,
  #gifts-loading,
  #gifts-error,
  .msg-loading,
  .msg-error {
    margin-left: 14px;
    margin-right: 14px;
  }

  .messages-window {
    height: 86vh;
  }

  .messages-window .msg-loading {
    inset: 92px 14px 74px;
    margin: 0;
  }

  .gifts-toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .messages-list,
  .messages-thread {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .message-card-avatar {
    width: 44px;
    height: 44px;
  }

  .message-card-content {
    padding: 9px 10px;
  }

  .message-card-content p,
  .message-bubble p {
    font-size: 13px;
  }

  .message-bubble-row {
    max-width: 100%;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .message-bubble-row.mine {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .message-author-avatar {
    width: 34px;
    height: 34px;
  }

  .message-author span {
    max-width: 52px;
    font-size: 9px;
  }

  .messages-send-form {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
    padding: 10px 14px 14px;
  }

  .messages-send-btn {
    font-size: 12px;
  }

  #audio-player {
    right: 16px;
    bottom: 16px;
  }

  .music-panel {
    right: 16px;
    bottom: 78px;
    width: min(300px, calc(100vw - 28px));
  }

  .btn-hamburger {
    display: flex;
  }
  .site-brand {
    display: none;
  }
  .topbar-actions .btn-support,
  .topbar-actions .btn-updates,
  .topbar-actions .btn-logout {
    display: none;
  }
  .topbar-actions .btn-notifications {
    display: none;
  }
  .topbar-online-badge {
    display: none;
  }
  .topbar-actions {
    position: relative;
  }
  .usage-limit-card {
    display: none !important;
  }
}

@media (min-width: 561px) {
  .btn-hamburger,
  .hamburger-dropdown {
    display: none !important;
  }
}

.btn-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.btn-notifications svg {
  color: var(--theme-soft);
}

.btn-notifications:hover {
  border-color: var(--theme-border-soft);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.smart-tool-window {
  width: min(100%, 560px);
}

.smart-tool-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.smart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 850;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--theme-accent);
  box-shadow: 0 0 12px var(--theme-glow-strong);
}

.activity-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.activity-item small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.security-score-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--theme-border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.security-score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--theme-border-soft);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 24px var(--theme-glow);
}

.security-score-ring span {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 950;
}

.security-score-card h3,
.security-score-card p {
  margin: 0;
}

.security-score-card h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 950;
}

.security-score-card p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.security-score-risk {
  border-color: rgba(255, 91, 126, 0.35);
}

.security-score-attention {
  border-color: rgba(253, 186, 116, 0.35);
}

.risk-warning-card {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(253, 186, 116, 0.22);
  border-radius: 14px;
  background: rgba(253, 186, 116, 0.07);
}

.risk-warning-card strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

.risk-warning-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.privacy-preview-btn {
  width: 100%;
}

.privacy-preview-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.privacy-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
}

.privacy-preview-section {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.privacy-preview-section h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 950;
}

.privacy-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.privacy-preview-row:first-of-type {
  border-top: 0;
}

.privacy-preview-row strong {
  font-size: 11px;
  font-weight: 950;
}

.privacy-preview-row .is-hidden {
  color: #ff8fa3;
}

.privacy-preview-row .is-visible {
  color: #8bf6c8;
}

@media (max-width: 720px) {
  .privacy-preview-list {
    grid-template-columns: 1fr;
  }

  .smart-tool-window {
    width: min(100%, calc(100vw - 24px));
  }
}
.feature-hub-window{max-width:900px;width:min(900px,calc(100vw - 28px))}.feature-hub-body{padding:22px;display:grid;gap:16px;max-height:min(72vh,720px);overflow:auto}.feature-hub-note{margin:0;color:var(--text-muted,#9b9ba5);line-height:1.55}.feature-hub-toolbar,.compare-search-row{display:flex;gap:12px;align-items:center}.feature-hub-toolbar .autograph-input,.compare-search-row .autograph-input{flex:1;min-width:0}.feature-hub-primary{width:100%;min-height:50px;border:1px solid color-mix(in srgb,var(--accent,#c45cff) 50%,transparent);border-radius:15px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent,#c45cff) 20%,#111218),rgba(122,22,55,.22));color:#fff;font:800 15px inherit;cursor:pointer}.feature-hub-primary:disabled{opacity:.55;cursor:wait}.daily-center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.daily-center-card{padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.035);display:grid;gap:8px}.daily-center-card span{color:#aaa;font-size:13px}.daily-center-card strong{font-size:15px}.daily-center-card.loading{border-color:rgba(192,132,252,.35)}.daily-center-card.success strong{color:#86efac}.daily-center-card.error strong{color:#fca5a5}.compare-vs{font-weight:900;color:var(--accent,#c45cff)}.profile-compare-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.compare-profile-card{padding:18px;border:1px solid rgba(255,255,255,.09);border-radius:20px;background:rgba(255,255,255,.035)}.compare-profile-head{display:flex;gap:13px;align-items:center;margin-bottom:16px}.compare-profile-head h3{margin:0 0 5px;font-size:18px}.compare-avatar{width:58px;height:58px}.compare-profile-card dl{margin:0;display:grid;gap:9px}.compare-profile-card dl div{display:grid;grid-template-columns:minmax(90px,.7fr) 1.3fr;gap:10px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07)}.compare-profile-card dt{color:#8f8f9a;font-size:12px}.compare-profile-card dd{margin:0;text-align:right;overflow-wrap:anywhere}.feature-hub-window .fm-icon-btn{font-size:24px;line-height:1}@media(max-width:680px){.daily-center-grid,.profile-compare-result{grid-template-columns:1fr}.compare-search-row{display:grid;grid-template-columns:1fr}.compare-vs{text-align:center}.feature-hub-toolbar{align-items:stretch;flex-direction:column}}

.feature-hub-window {
  overflow: hidden;
  max-height: min(86vh, 780px);
  border-color: color-mix(in srgb, var(--theme-primary, #c45cff) 25%, rgba(255, 255, 255, .08));
}
.feature-hub-body {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary, #c45cff) rgba(255, 255, 255, .045);
}
.feature-hub-body::-webkit-scrollbar { width: 9px; }
.feature-hub-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, .035); border-radius: 99px; }
.feature-hub-body::-webkit-scrollbar-thumb {
  border: 2px solid #0d0e13;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--theme-primary, #c45cff), var(--theme-secondary, #e11d62));
}
.feature-hub-note { color: var(--text-secondary, #a7a7b1); font-size: 14px; }
.feature-hub-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.feature-hub-toolbar .autograph-input { width: 100%; min-width: 0; min-height: 46px; }
.feature-hub-toolbar .profile-info-search-btn { width: auto; min-width: 118px; padding-inline: 22px; }
@media (max-width:680px) {
  .feature-hub-toolbar { grid-template-columns: 1fr; }
  .feature-hub-toolbar .profile-info-search-btn { width: 100%; }
}

[data-theme="desktop"] { --theme-main:#1d4ed8;--theme-light:#60a5fa;--theme-soft:#bfdbfe;--theme-glow:rgba(59,130,246,.2);--theme-glow-strong:rgba(96,165,250,.36);--theme-border:rgba(96,165,250,.16);--theme-border-soft:rgba(147,197,253,.3);--theme-accent:linear-gradient(135deg,#60a5fa,#2563eb);--theme-accent-soft:linear-gradient(135deg,rgba(96,165,250,.4),rgba(37,99,235,.2));--theme-badge:rgba(59,130,246,.1);--theme-badge-shadow:rgba(59,130,246,.18);--theme-label:#bfdbfe;--theme-swatch:#60a5fa; }
[data-theme="spaceship"] { --theme-main:#164e63;--theme-light:#22d3ee;--theme-soft:#a5f3fc;--theme-glow:rgba(34,211,238,.18);--theme-glow-strong:rgba(34,211,238,.38);--theme-border:rgba(34,211,238,.18);--theme-border-soft:rgba(103,232,249,.34);--theme-accent:linear-gradient(135deg,#67e8f9,#0891b2);--theme-accent-soft:linear-gradient(135deg,rgba(34,211,238,.38),rgba(8,145,178,.2));--theme-badge:rgba(34,211,238,.09);--theme-badge-shadow:rgba(34,211,238,.17);--theme-label:#a5f3fc;--theme-swatch:#22d3ee; }

.theme-option-desktop { background:linear-gradient(145deg,#2563eb 0 62%,#0f172a 62%);box-shadow:inset 0 -7px 0 #60a5fa; }
.theme-option-spaceship { background:radial-gradient(circle,#67e8f9 0 8%,transparent 9%),conic-gradient(from 45deg,#083344,#155e75,#020617,#0891b2,#083344);clip-path:polygon(50% 0,100% 28%,88% 100%,12% 100%,0 28%); }

[data-theme="desktop"] body { background:linear-gradient(135deg,#07152d,#123a69 52%,#07152d); }
[data-theme="desktop"] #top-bar { top:auto;bottom:0;border-top:1px solid rgba(255,255,255,.16);border-bottom:0;background:rgba(8,20,40,.82);box-shadow:0 -12px 35px rgba(0,0,0,.35); }
[data-theme="desktop"] #main { padding-bottom:92px; }
[data-theme="desktop"] .dashboard-frame,[data-theme="desktop"] .fm-window,[data-theme="desktop"] .login-card { border-radius:9px;border:1px solid rgba(147,197,253,.42);background:rgba(8,17,32,.88);box-shadow:0 22px 55px rgba(0,0,0,.42); }
[data-theme="desktop"] .fm-header { min-height:38px;background:linear-gradient(90deg,#1d4ed8,#2563eb); }
[data-theme="desktop"] .layout-new .main-actions-grid { grid-template-columns:repeat(5,minmax(120px,1fr)); }
[data-theme="desktop"] .layout-new .mp-action-btn { min-height:126px;padding:14px;grid-template-columns:1fr;text-align:center;border:1px solid transparent;background:transparent; }
[data-theme="desktop"] .layout-new .mp-action-btn:hover { border-color:rgba(147,197,253,.3);background:rgba(96,165,250,.1); }
[data-theme="desktop"] .layout-new .mp-action-icon,[data-theme="desktop"] .layout-new .mp-action-label { grid-column:1;justify-self:center; }
[data-theme="desktop"] .layout-new .mp-action-desc { display:none; }

[data-theme="spaceship"] body { background:radial-gradient(circle at 50% -10%,#164e63 0,transparent 35%),#02070c; }
[data-theme="spaceship"] body::after { background-image:linear-gradient(rgba(34,211,238,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(34,211,238,.035) 1px,transparent 1px);background-size:42px 42px; }
[data-theme="spaceship"] .dashboard-frame,[data-theme="spaceship"] .fm-window,[data-theme="spaceship"] .login-card { clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);border-radius:0;background:linear-gradient(145deg,rgba(4,17,24,.96),rgba(5,37,46,.9)); }
[data-theme="spaceship"] .layout-new .main-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
[data-theme="spaceship"] .layout-new .mp-action-btn { min-height:112px;border-radius:2px;clip-path:polygon(0 0,94% 0,100% 28%,100% 100%,6% 100%,0 72%);background:linear-gradient(110deg,rgba(34,211,238,.11),rgba(2,6,23,.82)); }
[data-theme="spaceship"] .mp-category-tab { border-left:3px solid #22d3ee;border-radius:0;letter-spacing:.08em;text-transform:uppercase; }
[data-theme="spaceship"] .fm-header::after { content:'SYSTEM ONLINE';margin-left:auto;color:#67e8f9;font:700 9px monospace;letter-spacing:.16em; }


@media (max-width:900px) {
  [data-theme="desktop"] #top-bar { top:0;bottom:auto;border-top:0;border-bottom:1px solid rgba(255,255,255,.12); }
  [data-theme="desktop"] #main { padding-bottom:0; }
  [data-theme="desktop"] .layout-new .main-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:560px) {
  [data-theme="desktop"] .layout-new .main-actions-grid,[data-theme="spaceship"] .layout-new .main-actions-grid { grid-template-columns:1fr; }
  [data-theme="desktop"] .layout-new .mp-action-btn,[data-theme="spaceship"] .layout-new .mp-action-btn { min-height:128px;clip-path:none;transform:none; }
}
.msp-player-youtube-item{cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.msp-player-youtube-item:hover,.msp-player-youtube-item:focus-visible{border-color:rgba(196,111,255,.35);outline:none;background:rgba(196,111,255,.08);transform:translateY(-1px)}
.msp-player-reset-profile{margin-right:auto}
@media(max-width:560px){.msp-player-edit .msp-player-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.msp-player-edit .msp-player-reset-profile{grid-column:1/-1;width:100%;margin-right:0}.msp-player-edit .msp-player-dialog-actions .msp-player-btn{width:100%}}
/* Avatar color viewer */
.avatar-colors-window {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: hidden;
}

.avatar-colors-body {
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: auto;
  max-height: calc(100dvh - 115px);
}

.avatar-colors-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.avatar-colors-search .feature-hub-primary {
  width: auto;
  min-width: 148px;
  margin: 0;
}

.avatar-colors-results {
  display: grid;
  gap: 14px;
}

.avatar-colors-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(192, 132, 252, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .13), rgba(236, 72, 153, .07));
}

.avatar-colors-profile div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.avatar-colors-profile small {
  color: var(--muted, #9894a4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.avatar-colors-profile strong {
  overflow: hidden;
  color: var(--text, #f7f4ff);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-colors-profile code {
  max-width: 52%;
  overflow: hidden;
  color: #d8b4fe;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-colors-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  background: rgba(5, 6, 11, .48);
}

.avatar-colors-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted, #9894a4);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.avatar-colors-tab b {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
}

.avatar-colors-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, .8), rgba(190, 24, 93, .72));
  color: #fff;
  box-shadow: 0 9px 25px rgba(124, 58, 237, .18);
}

.avatar-colors-list {
  display: grid;
  gap: 10px;
}

.avatar-color-item {
  display: grid;
  grid-template-columns: 96px minmax(145px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.avatar-color-preview {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 42%, rgba(192, 132, 252, .12), transparent 68%),
    rgba(4, 5, 10, .58);
}

.avatar-color-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(0, 0, 0, .32));
}

.avatar-color-preview.is-loading::before {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, .1);
  border-top-color: #c084fc;
  border-radius: 50%;
  content: '';
  animation: avatar-preview-spin .8s linear infinite;
}

.avatar-color-preview.is-loading span {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
}

.avatar-color-preview.is-empty span {
  padding: 8px;
  color: var(--muted, #9894a4);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

@keyframes avatar-preview-spin {
  to { transform: rotate(360deg); }
}

.avatar-color-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.avatar-color-item-copy small {
  color: #c084fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.avatar-color-item-copy strong {
  overflow-wrap: anywhere;
  color: var(--text, #f7f4ff);
  font-size: 14px;
}

.avatar-color-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.avatar-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(3, 4, 8, .58);
  color: #ded9e7;
  font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.avatar-color-swatch::before {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: var(--avatar-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .15);
  content: '';
}

.avatar-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 132, 252, .55);
  background: rgba(124, 58, 237, .12);
}

.avatar-color-empty {
  color: var(--muted, #9894a4);
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 620px) {
  .avatar-colors-window { width: min(100% - 16px, 760px); max-height: calc(100dvh - 16px); }
  .avatar-colors-body { padding: 16px; max-height: calc(100dvh - 92px); }
  .avatar-colors-search { grid-template-columns: 1fr; }
  .avatar-colors-search .feature-hub-primary { width: 100%; }
  .avatar-colors-profile { align-items: flex-start; flex-direction: column; }
  .avatar-colors-profile code { max-width: 100%; }
  .avatar-color-item { grid-template-columns: 78px minmax(0, 1fr); align-items: start; }
  .avatar-color-preview { width: 78px; height: 78px; grid-row: 1 / span 2; }
  .avatar-color-swatches { grid-column: 1 / -1; }
  .avatar-color-swatches { justify-content: flex-start; }
}

/* Two-sided item trade */
.trade-menu-badge{position:absolute;top:9px;right:9px;display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;border:2px solid #120d18;border-radius:999px;background:#ec4899;color:#fff;font-size:10px;font-weight:900}.trade-window{width:min(980px,calc(100vw - 26px));height:min(850px,calc(100dvh - 26px));overflow:hidden}.trade-header{justify-content:space-between}.trade-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.trade-new-btn,.trade-back,.trade-action,.trade-load-more{border:1px solid rgba(192,132,252,.28);border-radius:10px;background:rgba(124,58,237,.12);color:#eee8f7;font:700 12px inherit;cursor:pointer}.trade-new-btn{min-height:34px;padding:0 14px}.trade-body{height:calc(100% - 58px);padding:18px;overflow:auto}.trade-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:5px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(3,4,8,.48)}.trade-tabs button,.trade-scope-tabs button,.trade-chip-row button{border:0;border-radius:10px;background:transparent;color:#9894a4;font:750 13px inherit;cursor:pointer}.trade-tabs button{display:flex;min-height:42px;align-items:center;justify-content:center;gap:7px}.trade-tabs button b{display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;border-radius:999px;background:rgba(255,255,255,.08);font-size:10px}.trade-tabs button.active,.trade-scope-tabs button.active,.trade-chip-row button.active{background:linear-gradient(135deg,#7c3aed,#be185d);color:#fff;box-shadow:0 8px 22px rgba(124,58,237,.2)}.trade-list{display:grid;gap:10px;margin-top:14px}.trade-card{display:grid;grid-template-columns:minmax(130px,.6fr) minmax(220px,1fr) auto;align-items:center;gap:15px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025)}.trade-user{display:flex;align-items:center;gap:10px;min-width:0}.trade-user strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trade-avatar{display:grid;width:46px;height:46px;flex:0 0 46px;overflow:hidden;place-items:center;border:1px solid rgba(192,132,252,.3);border-radius:50%;background:rgba(124,58,237,.13);color:#d8b4fe;font-weight:900}.trade-avatar img{width:100%;height:100%;object-fit:cover}.trade-item-mini{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:11px;min-width:0}.trade-item-mini>div:last-child{display:grid;gap:2px;min-width:0}.trade-item-mini small,.trade-target-card small{color:#c084fc;font-size:9px;font-weight:850;letter-spacing:.1em}.trade-item-mini strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trade-item-mini span{color:#9894a4;font-size:10px}.trade-item-image{display:grid;width:66px;height:66px;overflow:hidden;place-items:center;border:1px solid rgba(192,132,252,.18);border-radius:12px;background:radial-gradient(circle,rgba(124,58,237,.12),rgba(3,4,8,.65));color:#77717f;font-size:10px;text-align:center}.trade-item-image img{width:100%;height:100%;object-fit:contain}.trade-item-image.loading{font-weight:900;letter-spacing:.12em}.trade-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.trade-action{min-height:36px;padding:0 12px}.trade-action.primary{border-color:rgba(236,72,153,.4);background:linear-gradient(135deg,#7c3aed,#be185d);color:#fff}.trade-wait{color:#b8b2c0;font-size:11px}.trade-empty{grid-column:1/-1;padding:36px 18px;color:#918b99;text-align:center}.trade-empty.error,.trade-message.error{color:#fca5a5}.trade-message{min-height:22px;margin-top:12px;color:#b8b2c0;font-size:13px}.trade-message.success{color:#86efac}.trade-back{min-height:36px;padding:0 13px;margin-bottom:16px}.trade-step h3{margin:0 0 13px;font-size:18px}.trade-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.trade-search .feature-hub-primary{width:auto;min-width:110px;margin:0}.trade-profile-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.trade-profile{display:flex;align-items:center;gap:10px;min-height:62px;padding:9px 12px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.025);color:#f5f0fa;cursor:pointer}.trade-profile:hover{border-color:rgba(192,132,252,.42);background:rgba(124,58,237,.09)}.trade-profile>span{display:grid;width:42px;height:42px;overflow:hidden;place-items:center;border-radius:50%;background:rgba(124,58,237,.15);color:#d8b4fe;font-weight:900}.trade-profile img{width:100%;height:100%;object-fit:cover}.trade-target-card{display:flex;align-items:center;gap:11px;margin-bottom:12px;padding:12px 14px;border:1px solid rgba(192,132,252,.2);border-radius:14px;background:linear-gradient(135deg,rgba(124,58,237,.13),rgba(190,24,93,.06))}.trade-target-card>div:last-child{display:grid;gap:3px}.trade-scope-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:5px;border:1px solid rgba(255,255,255,.08);border-radius:14px}.trade-scope-tabs button{min-height:40px}.trade-chip-row{display:flex;gap:7px;margin-top:9px;padding-bottom:5px;overflow-x:auto;scrollbar-width:thin}.trade-chip-row button{flex:0 0 auto;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025)}.trade-inventory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px}.trade-inventory-item{display:grid;gap:7px;min-width:0;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);color:#f5f0fa;text-align:left;cursor:pointer}.trade-inventory-item:hover,.trade-inventory-item.selected{border-color:rgba(192,132,252,.55);background:rgba(124,58,237,.12)}.trade-inventory-item.selected{box-shadow:0 0 0 2px rgba(192,132,252,.16)}.trade-inventory-item .trade-item-image{width:100%;height:auto;aspect-ratio:1}.trade-inventory-item strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.trade-inventory-item small{color:#9c94a5;font-size:9px;text-transform:uppercase}.trade-load-more{display:block;min-height:39px;margin:14px auto 0;padding:0 18px}.trade-submit{position:sticky;bottom:-1px;width:100%;margin:14px 0 0;box-shadow:0 -10px 28px rgba(5,4,9,.8)}.trade-submit:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.trade-window{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.trade-body{padding:12px}.trade-tabs{grid-template-columns:repeat(2,1fr)}.trade-card{grid-template-columns:1fr}.trade-card-actions{justify-content:flex-start}.trade-profile-results{grid-template-columns:1fr}.trade-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-search{grid-template-columns:1fr}.trade-search .feature-hub-primary{width:100%}.trade-new-btn{padding:0 9px}.trade-user{border-bottom:1px solid rgba(255,255,255,.06);padding-bottom:9px}}
.trade-warning{color:#fca5a5}
.trade-new-btn,.trade-back,.trade-action,.trade-load-more{font-family:inherit;font-size:12px;font-weight:700}
.trade-tabs button,.trade-scope-tabs button,.trade-chip-row button{font-family:inherit;font-size:13px;font-weight:750}
