:root{--app-logo:none;--bg:#070912;--bg-soft:#0d1020;--panel:rgba(18,24,46,0.72);--panel-strong:rgba(24,31,58,0.9);--line:rgba(255,255,255,0.12);--text:#f5f7ff;--muted:#a8b0cf;--dim:#667093;--cyan:#FF6B35;--green:#FFD60A;--pink:#ff4fd8;--violet:#9a6cff;--amber:#ffd166;--red:#ff6578;--accent-1:#FF6B35;--accent-2:#FFD60A;--accent-3:#ff4fd8;--accent-4:#9a6cff;--accent-gradient:linear-gradient(135deg,var(--accent-1),var(--accent-2));--accent-gradient-wide:linear-gradient(115deg,var(--accent-1),var(--accent-2),var(--accent-3),var(--accent-4));--accent-glow:rgba(255,107,53,.34);--shadow:0 18px 56px rgba(0,0,0,0.42);--radius:8px;--sidebar:252px;--ease:cubic-bezier(.2,.8,.2,1)}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{min-height:100vh;color:var(--text);background:radial-gradient(circle at 15% 10%,rgba(255,107,53,.18),transparent 26%),radial-gradient(circle at 85% 18%,rgba(255,79,216,.13),transparent 28%),radial-gradient(circle at 50% 95%,rgba(255,214,10,.1),transparent 28%),var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;overflow-x:hidden}body.light{--bg:#eef3ff;--bg-soft:#ffffff;--panel:rgba(255,255,255,.72);--panel-strong:rgba(255,255,255,.94);--line:rgba(18,24,46,.13);--text:#11182e;--muted:#425071;--dim:#65708e;background:radial-gradient(circle at 15% 10%,rgba(255,107,53,.2),transparent 26%),radial-gradient(circle at 85% 18%,rgba(255,79,216,.15),transparent 28%),radial-gradient(circle at 50% 95%,rgba(255,214,10,.16),transparent 28%),var(--bg)}body.reduce-neon{--cyan:#70d9e7;--green:#7ee3aa;--pink:#e585d4;--violet:#9d94df}button,input,select{font:inherit}button{border:0;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.68}a{color:inherit;text-decoration:none}.background-grid,.orbital-lights,.scanline{pointer-events:none;position:fixed;inset:0;z-index:-3}.background-grid{background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 75%);animation:gridFloat 18s linear infinite}.orbital-lights::before,.orbital-lights::after{content:"";position:absolute;width:42vw;height:42vw;min-width:360px;min-height:360px;border-radius:999px;filter:blur(70px);opacity:.28;animation:drift 16s var(--ease) infinite alternate}.orbital-lights::before{left:-12vw;top:8vh;background:conic-gradient(from 160deg,var(--cyan),var(--violet),transparent,var(--green))}.orbital-lights::after{right:-14vw;bottom:-10vh;background:conic-gradient(from 40deg,var(--pink),var(--amber),transparent,var(--cyan));animation-delay:-7s}.scanline{z-index:50;opacity:.05;background:repeating-linear-gradient(to bottom,transparent 0 5px,#fff 6px);mix-blend-mode:overlay}@keyframes gridFloat{from{transform:translateY(0)}to{transform:translateY(54px)}}@keyframes drift{from{transform:translate3d(0,0,0) rotate(0deg)}to{transform:translate3d(5vw,-3vh,0) rotate(22deg)}}@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.82}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}@keyframes shimmer{from{background-position:0% 50%}to{background-position:200% 50%}}@keyframes pop{from{transform:translateY(18px) scale(.92);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes xpRise{from{transform:translate(-50%,0) scale(.9);opacity:0}20%{opacity:1}to{transform:translate(-50%,-80px) scale(1.12);opacity:0}}@keyframes unlockRing{from{transform:scale(.4);opacity:.8}to{transform:scale(2.4);opacity:0}}@keyframes loadingSweep{from{transform:translateX(-100%)}to{transform:translateX(240%)}}@keyframes lineFlow{from{stroke-dashoffset:32}to{stroke-dashoffset:0}}@keyframes nodeAura{0%,100%{box-shadow:0 18px 48px rgba(0,0,0,.26),0 0 0 rgba(255,107,53,0)}50%{box-shadow:0 24px 60px rgba(0,0,0,.34),0 0 34px rgba(255,107,53,.18)}}@keyframes xpParticle{from{transform:translate(0,0) scale(.8);opacity:1}to{transform:translate(var(--tx),var(--ty)) scale(.05);opacity:0}}@keyframes xpCelebrationFade{0%,78%{opacity:1}100%{opacity:0}}@keyframes xpCardPop{0%{transform:translateY(24px) scale(.72) rotate(-2deg);opacity:0;filter:blur(8px)}16%{transform:translateY(-5px) scale(1.08) rotate(1deg);opacity:1;filter:blur(0)}35%{transform:translateY(0) scale(1);opacity:1}74%{transform:translateY(-18px) scale(1.02);opacity:1}100%{transform:translateY(-70px) scale(.9);opacity:0}}@keyframes xpRing{0%{transform:scale(.24);opacity:.9}52%{opacity:.72}100%{transform:scale(1.9);opacity:0}}@keyframes xpParticleBurst{0%{transform:translate(-50%,-50%) scale(.65) rotate(0deg);opacity:0}18%{opacity:1}100%{transform:translate(calc(-50%+var(--tx)),calc(-50%+var(--ty))) scale(.08) rotate(var(--rot));opacity:0}}@keyframes xpMagnetPulse{0%{transform:translateY(10px) scale(.86);opacity:0}18%,72%{transform:translateY(0) scale(1);opacity:1}100%{transform:translateY(-8px) scale(.96);opacity:0}}@keyframes xpHeaderHit{0%{box-shadow:0 0 0 color-mix(in srgb,var(--accent-2) 0%,transparent)}35%{transform:translateY(-2px) scale(1.015);box-shadow:0 0 34px color-mix(in srgb,var(--accent-2) 42%,transparent)}100%{transform:translateY(0) scale(1);box-shadow:0 0 0 color-mix(in srgb,var(--accent-2) 0%,transparent)}}.loading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#060814;transition:opacity .45s var(--ease),visibility .45s var(--ease)}.loading.hidden{opacity:0;visibility:hidden}.loader-card{width:min(440px,calc(100vw - 42px));padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:rgba(13,16,32,.84);box-shadow:var(--shadow);backdrop-filter:blur(22px);text-align:center}.loader-logo{width:74px;height:74px;margin:0 auto 18px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(135deg,var(--cyan),var(--pink));color:#06101c;font-weight:950;font-size:28px;box-shadow:0 0 44px rgba(255,107,53,.38);animation:pulse 1.8s ease-in-out infinite}.loader-bar{position:relative;height:8px;margin-top:20px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.1)}.loader-bar::before{content:"";position:absolute;inset:0;width:46%;border-radius:inherit;background:linear-gradient(90deg,transparent,var(--cyan),var(--green),transparent);animation:loadingSweep 1.1s infinite}.landing{display:block}.app{display:none;min-height:100vh}body.is-auth .landing{display:none}body.is-auth .app{display:grid;grid-template-columns:var(--sidebar) 1fr}.glass{border:1px solid var(--line);background:var(--panel);box-shadow:0 18px 64px rgba(0,0,0,.28);backdrop-filter:blur(22px);border-radius:var(--radius)}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px clamp(18px,4vw,54px);backdrop-filter:blur(20px);background:linear-gradient(to bottom,rgba(7,9,18,.78),rgba(7,9,18,.28));border-bottom:1px solid rgba(255,255,255,.08)}body.light .topbar{background:linear-gradient(to bottom,rgba(238,243,255,.84),rgba(238,243,255,.34))}.brand{display:inline-flex;align-items:center;gap:12px;font-weight:900;letter-spacing:0}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,rgba(255,107,53,.98),rgba(255,79,216,.92));color:#06101c;box-shadow:0 0 28px rgba(255,107,53,.38)}.brand span:last-child{font-size:20px}.landing-nav{display:flex;gap:8px;align-items:center}.nav-link{padding:10px 12px;color:var(--muted);border-radius:var(--radius);transition:.25s var(--ease);background:transparent}.nav-link:hover{color:var(--text);background:rgba(255,255,255,.08)}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:11px 16px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.07);color:var(--text);transition:transform .22s var(--ease),background .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease);overflow:hidden;white-space:nowrap}.btn:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.22);box-shadow:0 16px 34px rgba(0,0,0,.25);background:rgba(255,255,255,.1)}.btn.primary{color:#06101c;font-weight:850;border-color:transparent;background:linear-gradient(135deg,var(--cyan),var(--green));box-shadow:0 0 28px rgba(255,107,53,.28),0 14px 34px rgba(0,0,0,.28)}.btn.pink{color:white;border-color:transparent;background:linear-gradient(135deg,var(--pink),var(--violet))}.btn.danger{color:white;background:rgba(255,101,120,.16);border-color:rgba(255,101,120,.38)}.btn.icon{width:42px;padding:0;aspect-ratio:1}.hero{min-height:calc(100vh - 78px);display:grid;align-items:center;padding:48px clamp(18px,5vw,72px) 28px;position:relative}.hero-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:clamp(28px,5vw,70px);align-items:center;max-width:1260px;margin:0 auto;width:100%}.eyebrow{display:inline-flex;align-items:center;gap:9px;width:max-content;padding:8px 12px;border:1px solid rgba(255,107,53,.28);border-radius:99px;background:rgba(255,107,53,.08);color:var(--cyan);font-size:13px;font-weight:780;margin-bottom:18px}.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 16px var(--green)}h1{font-size:clamp(48px,8vw,116px);line-height:.92;letter-spacing:0;max-width:880px}.gradient-text{color:transparent;background:linear-gradient(90deg,#fff,var(--cyan),var(--green),var(--pink),#fff);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;animation:shimmer 7s linear infinite;text-shadow:0 0 54px rgba(255,107,53,.22)}.hero p{max-width:690px;margin-top:24px;color:var(--muted);font-size:clamp(18px,2vw,22px);line-height:1.55}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:34px;max-width:720px}.stat-pill{padding:14px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.06)}.stat-pill strong{display:block;font-size:24px;color:var(--text)}.stat-pill span{display:block;margin-top:3px;color:var(--muted);font-size:13px}.hero-preview{position:relative;min-height:610px}.phone-shell{position:absolute;right:0;top:24px;width:min(390px,90vw);border-radius:34px;border:1px solid rgba(255,255,255,.17);padding:12px;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.04));box-shadow:var(--shadow),0 0 70px rgba(154,108,255,.18);animation:float 6s ease-in-out infinite}.phone-screen{border-radius:24px;min-height:560px;padding:18px;background:radial-gradient(circle at 15% 10%,rgba(255,107,53,.14),transparent 35%),linear-gradient(180deg,rgba(20,26,50,.98),rgba(8,10,22,.98));overflow:hidden;position:relative}.floating-card{position:absolute;z-index:2;width:min(280px,46vw);padding:16px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.14);background:rgba(12,16,32,.75);backdrop-filter:blur(18px);box-shadow:0 20px 48px rgba(0,0,0,.28);animation:float 5s ease-in-out infinite}.floating-card.left{left:-28px;bottom:84px;animation-delay:-1.8s}.floating-card.top{right:210px;top:6px;animation-delay:-3s}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.mini-title{font-weight:850}.mini-muted{color:var(--muted);font-size:13px}.progress{height:10px;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.08)}.progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--green));box-shadow:0 0 20px rgba(255,107,53,.45);transition:width .5s var(--ease)}.preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#06101c;font-weight:950;background:linear-gradient(135deg,var(--cyan),var(--green));box-shadow:0 0 28px rgba(255,214,10,.22);flex:0 0 auto}.preview-skilltree{position:relative;height:280px;margin-top:20px;border-radius:20px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);overflow:hidden}.preview-line{position:absolute;height:2px;transform-origin:left center;background:linear-gradient(90deg,var(--cyan),var(--pink));box-shadow:0 0 12px rgba(255,107,53,.4);opacity:.78}.p-node{position:absolute;width:46px;height:46px;display:grid;place-items:center;border-radius:16px;color:#06101c;font-weight:900;background:linear-gradient(135deg,var(--cyan),var(--green));box-shadow:0 0 24px rgba(255,107,53,.3)}.p-node.locked{color:var(--muted);background:rgba(255,255,255,.08);box-shadow:none}.section{padding:72px clamp(18px,5vw,72px)}.section-inner{width:min(1260px,100%);margin:0 auto}.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.section h2{font-size:clamp(32px,4vw,56px);letter-spacing:0;line-height:1}.section p.lead{color:var(--muted);max-width:680px;line-height:1.6;margin-top:12px;font-size:17px}.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.feature-card,.preview-panel,.auth-card,.app-card{position:relative;overflow:hidden;border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);box-shadow:0 18px 58px rgba(0,0,0,.22);backdrop-filter:blur(20px)}.feature-card{min-height:218px;padding:22px;transition:transform .24s var(--ease),border-color .24s var(--ease),background .24s var(--ease)}.feature-card:hover{transform:translateY(-6px);border-color:rgba(255,107,53,.32);background:rgba(255,255,255,.08)}.feature-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;margin-bottom:18px;background:linear-gradient(135deg,rgba(255,107,53,.22),rgba(255,79,216,.18));color:var(--cyan);box-shadow:inset 0 0 20px rgba(255,255,255,.05)}.feature-card h3{margin-bottom:10px;font-size:19px}.feature-card p{color:var(--muted);line-height:1.55;font-size:14px}.showcase-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.preview-panel{padding:20px;min-height:340px}.leader-preview{display:grid;gap:10px;margin-top:16px}.rank-line{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:12px;border-radius:var(--radius);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.rank-badge{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.1);color:var(--amber);font-weight:850}.auth-section{min-height:100vh;display:none;place-items:center;padding:90px 18px 42px}body.auth-open .auth-section{display:grid}body.auth-open .landing-main{display:none}.auth-card{width:min(980px,100%);display:grid;grid-template-columns:.92fr 1.08fr;min-height:610px}.auth-art{padding:34px;background:radial-gradient(circle at 25% 22%,rgba(255,107,53,.22),transparent 36%),linear-gradient(145deg,rgba(154,108,255,.18),rgba(255,214,10,.08));border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between}.auth-art h2{font-size:42px;line-height:1.02}.auth-stack{display:grid;gap:12px}.auth-chip{display:flex;gap:12px;align-items:center;padding:13px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06)}.auth-form-wrap{padding:34px;display:flex;flex-direction:column;justify-content:center}.tabs{display:grid;grid-template-columns:repeat(2,1fr);padding:5px;border-radius:var(--radius);background:rgba(255,255,255,.06);border:1px solid var(--line);margin-bottom:24px}.tabs button{padding:12px;border-radius:6px;color:var(--muted);background:transparent;transition:.22s var(--ease);font-weight:800}.tabs button.active{color:#06101c;background:linear-gradient(135deg,var(--cyan),var(--green))}.field{display:grid;gap:8px;margin-bottom:16px}.field label{color:var(--muted);font-size:13px;font-weight:760}.field input,.field select{width:100%;min-height:48px;color:var(--text);border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.07);padding:0 14px;outline:none;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}.field input:focus,.field select:focus{border-color:rgba(255,107,53,.48);box-shadow:0 0 0 4px rgba(255,107,53,.1)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px;color:var(--muted);font-size:14px}.check-row label{display:inline-flex;align-items:center;gap:9px}input[type="checkbox"]{accent-color:var(--cyan)}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:rgba(8,10,22,.72);backdrop-filter:blur(22px);padding:18px;overflow-y:auto;z-index:35}body.light .sidebar{background:rgba(255,255,255,.72)}.side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.online-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:99px;color:var(--green);background:rgba(255,214,10,.1);font-size:12px;font-weight:820}.online-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}.profile-mini{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;padding:12px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.06);margin-bottom:18px}.profile-mini strong{display:block}.profile-mini span{color:var(--muted);font-size:13px}.side-nav{display:grid;gap:8px;margin-top:18px}.side-nav button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;min-height:46px;padding:0 12px;border-radius:var(--radius);color:var(--muted);background:transparent;border:1px solid transparent;text-align:left;transition:.22s var(--ease)}.side-nav button:hover,.side-nav button.active{color:var(--text);background:rgba(255,255,255,.08);border-color:var(--line)}.side-nav button.active{box-shadow:inset 3px 0 0 var(--cyan),0 0 30px rgba(255,107,53,.08)}.nav-dot{width:7px;height:7px;border-radius:50%;background:var(--dim)}.side-nav button.active .nav-dot{background:var(--cyan);box-shadow:0 0 12px var(--cyan)}.app-shell{min-width:0;display:grid;grid-template-rows:auto 1fr}.app-header{position:sticky;top:0;z-index:25;min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px clamp(16px,3vw,32px);border-bottom:1px solid var(--line);background:rgba(7,9,18,.68);backdrop-filter:blur(22px)}body.light .app-header{background:rgba(238,243,255,.72)}.mobile-menu{display:none}.header-title h2{font-size:24px;line-height:1.05}.header-title p{color:var(--muted);font-size:13px;margin-top:3px}.header-actions{display:flex;align-items:center;gap:10px}.xp-header{min-width:min(340px,36vw);padding:10px 12px;border-radius:var(--radius);background:rgba(255,255,255,.06);border:1px solid var(--line)}.xp-header .mini-row{margin-bottom:7px}.content{padding:clamp(16px,3vw,32px)}.view{display:none;animation:pop .36s var(--ease)}.view.active{display:block}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:18px}.skilltree-layout{display:grid;gap:18px}.skilltree-main{min-width:0}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.app-card{padding:18px}.metric-card{min-height:146px;display:flex;flex-direction:column;justify-content:space-between}.metric-label{color:var(--muted);font-size:13px;font-weight:780}.metric-value{font-size:34px;font-weight:950;line-height:1;margin-top:8px}.metric-foot{color:var(--muted);font-size:13px;margin-top:12px}.metric-icon{position:absolute;right:16px;top:16px;width:38px;height:38px;display:grid;place-items:center;border-radius:14px;color:var(--cyan);background:rgba(255,107,53,.1);font-size:10px;font-weight:950}.quest-list,.achievement-grid,.guild-grid,.settings-grid,.profile-grid{display:grid;gap:14px}.quest{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:13px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.055);transition:.22s var(--ease)}.quest:hover{transform:translateX(4px);border-color:rgba(255,107,53,.3)}.quest.done{opacity:.68}.quest-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.08);color:var(--cyan)}.quest h4{margin-bottom:4px}.quest p{color:var(--muted);font-size:13px}.tag{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:99px;background:rgba(255,255,255,.075);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:820}.tag.cyan{color:var(--cyan);border-color:rgba(255,107,53,.24);background:rgba(255,107,53,.08)}.tag.green{color:var(--green);border-color:rgba(255,214,10,.24);background:rgba(255,214,10,.08)}.tag.pink{color:var(--pink);border-color:rgba(255,79,216,.24);background:rgba(255,79,216,.08)}.tag.amber{color:var(--amber);border-color:rgba(255,209,102,.24);background:rgba(255,209,102,.08)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.panel-title h3{font-size:19px}.panel-title span{color:var(--muted);font-size:13px}.skill-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.subtopic-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.subtopic-card{min-height:54px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.07);text-align:left;transition:transform .22s var(--ease),border-color .22s var(--ease),background .22s var(--ease)}.subtopic-card:hover,.subtopic-card.active{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent-1) 42%,transparent);background:color-mix(in srgb,var(--accent-1) 10%,rgba(255,255,255,.08));box-shadow:0 14px 34px color-mix(in srgb,var(--accent-1) 12%,transparent)}.subtopic-card strong{display:block;font-size:14px;margin:0}.subtopic-card span,.subtopic-card .progress,.subtopic-icon{display:none}.chip{padding:9px 12px;border-radius:99px;color:var(--muted);border:1px solid var(--line);background:rgba(255,255,255,.055);transition:.2s var(--ease);font-size:13px;font-weight:780}.chip:hover,.chip.active{color:#06101c;border-color:transparent;background:linear-gradient(135deg,var(--cyan),var(--green))}.metric-card.xp-card{background:radial-gradient(circle at 86% 20%,color-mix(in srgb,var(--cyan) 24%,transparent),transparent 28%),linear-gradient(135deg,rgba(26,31,58,.9),rgba(10,13,27,.92))}.metric-card.streak-card{background:radial-gradient(circle at 86% 18%,rgba(255,101,120,.28),transparent 30%),linear-gradient(135deg,rgba(45,22,24,.9),rgba(16,14,25,.92))}.metric-card.badge-card-mini{background:radial-gradient(circle at 86% 18%,rgba(255,209,102,.26),transparent 30%),linear-gradient(135deg,rgba(45,38,18,.9),rgba(16,14,25,.92))}.metric-card.notes-card{background:radial-gradient(circle at 86% 18%,rgba(255,255,255,.16),transparent 30%),linear-gradient(135deg,rgba(32,36,50,.9),rgba(16,17,25,.92))}.skilltree-shell{position:relative;overflow:auto;min-height:650px;border-radius:var(--radius);border:1px solid var(--line);background:radial-gradient(circle at 18% 18%,rgba(255,107,53,.1),transparent 26%),radial-gradient(circle at 80% 74%,rgba(255,79,216,.08),transparent 28%),rgba(255,255,255,.035)}.skilltree-shell.centered{min-height:700px;display:grid;place-items:center;overflow:auto}.skilltree-shell::before{content:"";pointer-events:none;position:absolute;inset:0;z-index:0;opacity:.38}.skilltree-shell.theme-matrix{border-color:rgba(0,255,102,.28);background:linear-gradient(rgba(0,255,102,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(0,255,102,.07) 1px,transparent 1px),radial-gradient(circle at 24% 18%,rgba(0,255,102,.17),transparent 31%),#010804;background-size:58px 58px,58px 58px,auto,auto;box-shadow:inset 0 0 80px rgba(0,255,102,.08),0 0 34px rgba(0,255,102,.06)}.skilltree-shell.theme-matrix::before{content:">TECH TREE / MATRIX CLOUD / ROOT ACCESS";display:block;padding:18px 24px;color:rgba(0,255,102,.52);font:800 18px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:2px;text-shadow:0 0 18px rgba(0,255,102,.55);background:linear-gradient(180deg,rgba(0,0,0,.38),transparent)}.skilltree-shell.theme-diamond{border-color:rgba(255,205,87,.32);background:radial-gradient(circle at 45% 16%,rgba(255,205,87,.14),transparent 24%),radial-gradient(circle at 75% 78%,rgba(154,108,255,.14),transparent 30%),linear-gradient(135deg,rgba(17,13,44,.96),rgba(5,5,17,.98));box-shadow:inset 0 0 90px rgba(255,205,87,.06),0 0 36px rgba(154,108,255,.08)}.skilltree-shell.theme-diamond::before{background:linear-gradient(45deg,transparent 48%,rgba(255,205,87,.055) 49%,rgba(255,205,87,.055) 51%,transparent 52%),linear-gradient(-45deg,transparent 48%,rgba(154,108,255,.05) 49%,rgba(154,108,255,.05) 51%,transparent 52%);background-size:92px 92px}.skilltree-shell.theme-home{border-color:rgba(214,179,126,.28);background:radial-gradient(circle at 18% 18%,rgba(255,235,197,.2),transparent 28%),radial-gradient(circle at 78% 76%,rgba(255,214,10,.1),transparent 30%),linear-gradient(135deg,rgba(35,30,24,.92),rgba(15,18,25,.96))}.skilltree-shell.theme-finance{border-color:rgba(171,255,96,.32);background:linear-gradient(115deg,rgba(52,93,41,.24),transparent 38%),radial-gradient(circle at 78% 18%,rgba(255,209,102,.18),transparent 28%),#07120b}.skilltree-shell.theme-health{border-color:rgba(255,209,102,.3);background:radial-gradient(circle at 22% 18%,rgba(255,209,102,.2),transparent 28%),radial-gradient(circle at 82% 80%,rgba(255,214,10,.14),transparent 30%),linear-gradient(135deg,rgba(31,28,19,.94),rgba(11,17,18,.96))}.skilltree-shell.theme-productivity{border-color:rgba(112,240,255,.3);background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),radial-gradient(circle at 22% 18%,rgba(112,240,255,.16),transparent 28%),#09101b;background-size:44px 44px,auto,auto}.skilltree-shell.theme-business{border-color:rgba(255,101,120,.32);background:radial-gradient(circle at 18% 20%,rgba(255,101,120,.18),transparent 28%),linear-gradient(135deg,rgba(34,14,26,.94),rgba(13,12,20,.98))}.skilltree-shell.theme-survival{border-color:rgba(255,184,107,.34);background:radial-gradient(circle at 20% 18%,rgba(255,184,107,.2),transparent 26%),linear-gradient(135deg,rgba(37,27,15,.95),rgba(9,11,16,.98))}.skilltree-shell.theme-mobility{border-color:rgba(124,255,196,.32);background:linear-gradient(135deg,rgba(124,255,196,.12),transparent 40%),radial-gradient(circle at 82% 20%,rgba(255,107,53,.14),transparent 28%),#071018}.skilltree{position:relative;width:1120px;height:650px;margin:0 auto}.svg-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1}.skill-node{position:absolute;z-index:2;width:150px;min-height:112px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(15,20,39,.88);color:var(--text);padding:12px;text-align:left;box-shadow:0 18px 48px rgba(0,0,0,.26);transition:transform .22s var(--ease),border-color .22s var(--ease),box-shadow .22s var(--ease),opacity .22s var(--ease)}.node-content{position:relative;z-index:1}body.light .skill-node{background:rgba(255,255,255,.9)}.skill-node:hover{transform:translateY(-5px) scale(1.02);border-color:rgba(255,107,53,.34);box-shadow:0 24px 60px rgba(0,0,0,.34),0 0 34px rgba(255,107,53,.12)}.skill-node.locked{opacity:.48;filter:saturate(.5);cursor:not-allowed}.skill-node.done{border-color:rgba(255,214,10,.46);box-shadow:0 18px 48px rgba(0,0,0,.26),0 0 28px rgba(255,214,10,.13)}.skill-node.available{border-color:rgba(255,107,53,.4);box-shadow:0 18px 48px rgba(0,0,0,.26),0 0 22px rgba(255,107,53,.1)}.skill-node.available:hover{animation:nodeAura 1.6s ease-in-out infinite}.svg-lines line.flow{stroke-dasharray:8 12;animation:lineFlow 2.4s linear infinite}.node-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,rgba(255,107,53,.22),rgba(255,79,216,.15));color:var(--cyan);margin-bottom:10px}.skill-node h4{font-size:14px;line-height:1.2;margin-bottom:7px}.skill-node p{color:var(--muted);font-size:12px;line-height:1.35}.node-reward{display:flex;justify-content:space-between;gap:8px;margin-top:10px;font-size:12px;color:var(--amber);font-weight:850}.theme-matrix .skill-node{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border-color:rgba(0,255,102,.45);background:linear-gradient(180deg,rgba(0,28,13,.94),rgba(0,12,6,.94));color:#00ff66;box-shadow:0 0 0 1px rgba(0,255,102,.1),0 0 28px rgba(0,255,102,.11)}.theme-matrix .skill-node:hover{transform:translateY(-4px) scale(1.015);border-color:rgba(0,255,102,.84);box-shadow:0 0 0 1px rgba(0,255,102,.18),0 0 38px rgba(0,255,102,.24)}.theme-matrix .skill-node.locked{opacity:.34;filter:grayscale(.5)}.theme-matrix .skill-node.done{border-color:rgba(0,255,102,.86)}.theme-matrix .skill-node h4{color:#20ff7a;text-transform:uppercase;letter-spacing:1px}.theme-matrix .skill-node p{color:rgba(0,255,102,.55)}.theme-matrix .node-icon{color:#00ff66 !important;background:rgba(0,255,102,.08);border:1px solid rgba(0,255,102,.28)}.theme-matrix .node-reward{color:#00ff66}.theme-diamond .skill-node{width:132px;min-height:132px;padding:14px;border-radius:0;transform:rotate(45deg);border:2px solid rgba(255,205,87,.72);background:linear-gradient(135deg,rgba(26,20,80,.95),rgba(8,7,25,.96));box-shadow:0 0 24px rgba(255,205,87,.12),inset 0 0 28px rgba(154,108,255,.12)}.theme-diamond .skill-node:hover{transform:rotate(45deg) translateY(-4px) scale(1.025);border-color:rgba(255,219,120,.96);box-shadow:0 0 40px rgba(255,205,87,.22),inset 0 0 36px rgba(154,108,255,.15)}.theme-diamond .skill-node.locked{opacity:.3;filter:grayscale(.65)}.theme-diamond .skill-node.done{border-color:rgba(255,224,133,.94)}.theme-diamond .node-content{min-height:104px;display:grid;place-items:center;align-content:center;text-align:center;transform:rotate(-45deg) scale(.88)}.theme-diamond .node-icon{margin:0 0 8px;color:#ffd76a !important;background:rgba(255,205,87,.09);border:1px solid rgba(255,205,87,.25)}.theme-diamond .skill-node h4{color:#f4d383;font-family:Georgia,"Times New Roman",serif;text-transform:uppercase;letter-spacing:1px;font-size:13px}.theme-diamond .skill-node p{display:none}.theme-diamond .node-reward{justify-content:center;color:#ffd76a;margin-top:6px}.theme-diamond .node-reward span:last-child{display:none}.node-ring{position:absolute;inset:-2px;border-radius:inherit;border:2px solid var(--green);pointer-events:none;animation:unlockRing .72s var(--ease) forwards}.guide-card{display:grid;gap:10px;padding:14px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.045)}.guide-card ol,.guide-card ul{display:grid;gap:7px;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.5}.guide-card strong{color:var(--text)}.detail-hero{display:flex;align-items:center;gap:14px;padding:14px;border-radius:var(--radius);background:rgba(255,255,255,.06);border:1px solid var(--line)}.detail-hero .node-icon{margin:0;width:52px;height:52px;border-radius:17px}.learning-modal{position:fixed;inset:0;z-index:1900;display:none;place-items:center;padding:clamp(14px,3vw,34px);background:rgba(4,6,12,.78);backdrop-filter:blur(18px)}.learning-modal.show{display:grid}.learning-card{position:relative;width:min(900px,100%);max-height:min(86vh,900px);overflow:auto;border-radius:18px;border:1px solid color-mix(in srgb,var(--accent-1) 32%,var(--line));background:radial-gradient(circle at 14% 8%,color-mix(in srgb,var(--accent-1) 16%,transparent),transparent 28%),radial-gradient(circle at 86% 18%,color-mix(in srgb,var(--pink) 12%,transparent),transparent 28%),rgba(12,16,32,.96);box-shadow:0 30px 100px rgba(0,0,0,.58),0 0 42px color-mix(in srgb,var(--accent-1) 12%,transparent);padding:clamp(20px,4vw,34px);animation:pop .28s var(--ease)}body.light .learning-card{background:radial-gradient(circle at 14% 8%,color-mix(in srgb,var(--accent-1) 18%,transparent),transparent 28%),#ffffff;box-shadow:0 30px 90px rgba(31,39,65,.22)}.modal-close{position:sticky;top:0;float:right;z-index:3;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.08);font-weight:950;color:var(--text)}.learning-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid color-mix(in srgb,var(--accent-1) 34%,var(--line));color:var(--accent-1);background:color-mix(in srgb,var(--accent-1) 10%,transparent);font-size:12px;font-weight:900;margin-bottom:14px}.learning-title{font-size:clamp(28px,4vw,48px);line-height:1.02;letter-spacing:0;margin-bottom:12px}.learning-intro{color:var(--muted);font-size:16px;line-height:1.7;max-width:760px;margin-bottom:18px}.learning-meta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 22px}.learning-section{display:grid;gap:12px;padding:16px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.045);margin-top:14px}.learning-section h3{font-size:18px}.learning-section p,.learning-section li{color:var(--muted);line-height:1.65;font-size:14px}.learning-section ol,.learning-section ul{display:grid;gap:9px;padding-left:20px}.learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.claim-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.claim-row p{color:var(--muted);font-size:13px;line-height:1.5}.achievement-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.badge-card{min-height:178px;opacity:.45;transition:.24s var(--ease)}.badge-card.unlocked{opacity:1}.badge-medal{width:58px;height:58px;display:grid;place-items:center;border-radius:20px;margin-bottom:14px;color:#06101c;background:linear-gradient(135deg,var(--amber),var(--green));box-shadow:0 0 28px rgba(255,209,102,.18);font-size:24px}.badge-card.rare .badge-medal{background:linear-gradient(135deg,var(--pink),var(--violet));color:white}.badge-card h4{margin-bottom:7px}.badge-card p{color:var(--muted);font-size:13px;line-height:1.5}.guild-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guild-card{display:grid;gap:14px;min-height:240px}.guild-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.guild-logo{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;color:#06101c;font-size:24px;background:linear-gradient(135deg,var(--cyan),var(--green))}.chat-box{display:grid;gap:9px;max-height:210px;overflow:auto}.chat-line{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:10px;border-radius:var(--radius);background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.07)}.chat-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(255,107,53,.14);color:var(--cyan);font-weight:900;font-size:12px}.chat-line strong{font-size:13px;display:block}.chat-line span{color:var(--muted);font-size:13px;line-height:1.4}.leaderboard-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.table{display:grid;gap:8px}.table-row{display:grid;grid-template-columns:68px 1fr 130px 120px;align-items:center;gap:12px;padding:14px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.055);transition:transform .2s var(--ease),border-color .2s var(--ease)}.table-row:hover{transform:translateX(4px);border-color:rgba(255,107,53,.28)}.table-row.me{border-color:rgba(255,214,10,.35);background:rgba(255,214,10,.075)}.user-cell{display:flex;align-items:center;gap:11px;min-width:0}.user-cell strong,.user-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-cell span{color:var(--muted);font-size:13px}.profile-layout{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);gap:18px}.profile-hero-card{text-align:center;display:grid;gap:16px;align-content:start}.big-avatar{width:120px;height:120px;display:grid;place-items:center;margin:0 auto;border-radius:34px;color:#06101c;background:linear-gradient(135deg,var(--cyan),var(--green));font-size:42px;font-weight:950;box-shadow:0 0 50px rgba(255,107,53,.22)}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setting-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:16px;border-radius:var(--radius);border:1px solid var(--line);background:rgba(255,255,255,.055)}.setting-row p{color:var(--muted);margin-top:4px;font-size:13px;line-height:1.45}.switch{width:56px;height:32px;border-radius:99px;border:1px solid var(--line);background:rgba(255,255,255,.12);padding:3px;transition:.2s var(--ease)}.switch span{display:block;width:24px;height:24px;border-radius:50%;background:var(--muted);transition:.2s var(--ease)}.switch.on{background:rgba(255,214,10,.18);border-color:rgba(255,214,10,.38)}.switch.on span{transform:translateX(24px);background:var(--green);box-shadow:0 0 18px rgba(255,214,10,.45)}.theme-swatches{display:flex;flex-wrap:wrap;gap:10px}.swatch{width:44px;height:44px;border-radius:14px;border:2px solid rgba(255,255,255,.14);box-shadow:inset 0 0 0 4px rgba(0,0,0,.12)}.swatch.active{border-color:white}.notifications,.xp-layer{position:fixed;z-index:2000;pointer-events:none}.xp-layer{inset:0;overflow:hidden}.notifications{right:18px;bottom:18px;display:grid;gap:10px;width:min(380px,calc(100vw - 36px))}.toast{pointer-events:auto;display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:start;padding:14px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.15);background:rgba(10,14,28,.86);backdrop-filter:blur(20px);box-shadow:0 18px 48px rgba(0,0,0,.34);animation:pop .28s var(--ease)}body.light .toast{background:rgba(255,255,255,.92)}.toast-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:#06101c;background:linear-gradient(135deg,var(--cyan),var(--green));font-weight:950}.toast strong{display:block;margin-bottom:4px}.toast span{display:block;color:var(--muted);font-size:13px;line-height:1.4}.xp-header.xp-hit{animation:xpHeaderHit .72s var(--ease)}.xp-celebration{position:fixed;left:var(--x,50%);top:var(--y,52%);transform:translate(-50%,-50%);display:grid;place-items:center;z-index:2001;animation:xpCelebrationFade 1.55s var(--ease) forwards}.xp-popup{position:relative;min-width:176px;padding:17px 24px 18px;border-radius:26px;color:#06101c;font-size:34px;line-height:1;text-align:center;font-weight:950;letter-spacing:0;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,255,255,.72)),linear-gradient(135deg,var(--accent-1),var(--accent-2));border:1px solid color-mix(in srgb,var(--accent-2) 48%,white);box-shadow:0 24px 80px color-mix(in srgb,var(--accent-2) 32%,transparent),inset 0 0 0 1px rgba(255,255,255,.65);text-shadow:none;animation:xpCardPop 1.2s var(--ease) forwards;z-index:2}.xp-popup small{display:block;margin-bottom:8px;color:color-mix(in srgb,var(--ink) 72%,var(--accent-2));font-size:10px;font-weight:950;letter-spacing:0}.xp-burst-ring{position:absolute;width:174px;height:174px;border-radius:50%;border:2px solid color-mix(in srgb,var(--accent-2) 70%,white);box-shadow:0 0 34px color-mix(in srgb,var(--accent-2) 38%,transparent);animation:xpRing 1.08s var(--ease) forwards}.xp-burst-ring::after{content:"";position:absolute;inset:18px;border-radius:inherit;border:1px dashed color-mix(in srgb,var(--accent-1) 70%,transparent);opacity:.78}.xp-combo{position:absolute;right:-26px;top:-22px;min-width:78px;padding:9px 12px;border-radius:999px;color:#06101c;background:linear-gradient(135deg,var(--amber),var(--pink));border:1px solid rgba(255,255,255,.62);box-shadow:0 16px 40px rgba(255,79,216,.25);font-size:12px;font-weight:950;text-align:center;z-index:3}.xp-particle{position:fixed;left:var(--x,50%);top:var(--y,52%);width:var(--size,8px);height:var(--size,8px);border-radius:50%;background:var(--cyan);box-shadow:0 0 18px currentColor;transform:translate(-50%,-50%);animation:xpParticleBurst 1.05s var(--ease) forwards;animation-delay:var(--delay,0ms);z-index:2000}.xp-particle.star{border-radius:4px;clip-path:polygon(50% 0,63% 34%,100% 50%,63% 66%,50% 100%,37% 66%,0 50%,37% 34%)}.xp-orb{position:fixed;left:var(--x,50%);top:var(--y,52%);width:var(--size,12px);height:var(--size,12px);border-radius:50%;background:radial-gradient(circle at 35% 30%,white,var(--accent-1) 42%,var(--accent-2));box-shadow:0 0 20px color-mix(in srgb,var(--accent-2) 60%,transparent);z-index:2002}.xp-magnet{position:fixed;right:24px;top:78px;z-index:2002;display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;color:#06101c;background:linear-gradient(135deg,rgba(255,255,255,.96),var(--accent-1));border:1px solid rgba(255,255,255,.58);box-shadow:0 18px 44px color-mix(in srgb,var(--accent-2) 24%,transparent);font-size:12px;font-weight:950;animation:xpMagnetPulse 1.15s var(--ease) forwards}.proof-card{display:grid;gap:14px;background:radial-gradient(circle at 10% 15%,rgba(255,107,53,.16),transparent 32%),radial-gradient(circle at 92% 72%,rgba(255,79,216,.13),transparent 30%),rgba(255,255,255,.045)}.proof-drop{display:grid;gap:10px;place-items:center;min-height:150px;padding:18px;border:1px dashed rgba(255,107,53,.34);border-radius:var(--radius);background:rgba(255,107,53,.055);text-align:center}.proof-drop h4{font-size:18px}.proof-drop p{color:var(--muted);font-size:13px;line-height:1.5;max-width:460px}.hidden-input{display:none}.plan-card{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(255,214,10,.11),rgba(255,107,53,.06)),rgba(255,255,255,.045)}.plan-card::after{content:"";position:absolute;inset:auto -30% -45% 20%;height:120px;background:radial-gradient(circle,rgba(255,214,10,.2),transparent 62%);pointer-events:none}.ad-card{border-style:dashed;background:linear-gradient(135deg,rgba(255,209,102,.08),rgba(255,79,216,.07)),rgba(255,255,255,.035)}.ad-card.premium-hidden{display:none}.level-modal{position:fixed;inset:0;z-index:1800;display:none;place-items:center;padding:18px;background:rgba(4,6,12,.72);backdrop-filter:blur(16px)}.level-modal.show{display:grid}.level-card{width:min(480px,100%);text-align:center;padding:30px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.16);background:radial-gradient(circle at 50% 0%,rgba(255,107,53,.24),transparent 45%),rgba(12,16,32,.92);box-shadow:var(--shadow);animation:pop .35s var(--ease)}.level-number{width:110px;height:110px;display:grid;place-items:center;border-radius:34px;margin:0 auto 18px;color:#06101c;background:linear-gradient(135deg,var(--cyan),var(--green));font-size:46px;font-weight:950;box-shadow:0 0 60px rgba(255,107,53,.26)}.drawer-backdrop{display:none;position:fixed;inset:0;z-index:32;background:rgba(0,0,0,.52);backdrop-filter:blur(8px)}.drawer-backdrop.show{display:block}.empty{color:var(--muted);padding:18px;text-align:center;border-radius:var(--radius);border:1px dashed var(--line);background:rgba(255,255,255,.035)}.spark{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px var(--cyan);opacity:.65;animation:float 4s ease-in-out infinite}.app-card,.feature-card,.preview-panel{content-visibility:auto;contain-intrinsic-size:1px 220px}body.performance-mode .spark{display:none}body.performance-mode .svg-lines line.flow,body.performance-mode .skill-node.available:hover{animation:none}body.performance-mode .app-card,body.performance-mode .sidebar,body.performance-mode .app-header,body.performance-mode .top-nav{backdrop-filter:blur(10px)}body.low-motion *,body.low-motion *::before,body.low-motion *::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.08s !important;scroll-behavior:auto !important}body.low-motion .spark,body.low-motion .orbital-lights,body.low-motion .scanline,body.low-motion .background-grid,body.low-motion .xp-particle,body.low-motion .xp-orb,body.low-motion .xp-burst-ring{display:none !important}body.low-motion .skill-node.available,body.low-motion .svg-lines line.flow{animation:none !important}body.low-motion .app-card,body.low-motion .sidebar,body.low-motion .app-header,body.low-motion .top-nav,body.low-motion .level-modal{backdrop-filter:none !important}body.low-motion .xp-particle,body.low-motion .xp-orb,body.low-motion .xp-burst-ring{display:block !important}body.low-motion .xp-celebration{animation:xpCelebrationFade 1.55s var(--ease) forwards !important}body.low-motion .xp-popup{animation:xpCardPop 1.2s var(--ease) forwards !important}body.low-motion .xp-burst-ring{animation:xpRing 1.08s var(--ease) forwards !important}body.low-motion .xp-particle{animation:xpParticleBurst 1.05s var(--ease) forwards !important}body.low-motion .xp-magnet{animation:xpMagnetPulse 1.15s var(--ease) forwards !important}body.low-motion .xp-header.xp-hit{animation:xpHeaderHit .72s var(--ease) !important}body{--bg:#f6f7ee;--bg-soft:#ffffff;--panel:rgba(255,255,255,.86);--panel-strong:rgba(255,255,255,.96);--line:rgba(18,24,46,.11);--text:#111421;--muted:#596071;--dim:#7c8290;--cyan:#22d3ee;--green:#9cff52;--pink:#7c5cff;--violet:#4f46e5;--amber:#f4b942;color:var(--text);background:radial-gradient(circle at 12% 8%,rgba(156,255,82,.34),transparent 24%),radial-gradient(circle at 84% 14%,rgba(34,211,238,.22),transparent 25%),linear-gradient(180deg,#fbfff0 0%,#f6f7ee 42%,#eff4f7 100%)}.background-grid,.orbital-lights,.scanline,.spark{display:none !important}.topbar{width:min(1180px,calc(100% - 32px));margin:16px auto 0;border:1px solid rgba(17,20,33,.1);border-radius:28px;background:rgba(255,255,255,.78);box-shadow:0 20px 70px rgba(17,20,33,.08);backdrop-filter:blur(18px)}.brand{color:#111421;font-weight:950}.brand-mark{color:#111421;background:linear-gradient(135deg,#9cff52,#22d3ee);border-radius:14px;box-shadow:0 14px 34px rgba(34,211,238,.18)}.nav-link{color:#596071}.nav-link:hover{color:#111421}.btn{border-radius:999px;border-color:rgba(17,20,33,.12);color:#111421;background:rgba(255,255,255,.72);box-shadow:0 10px 28px rgba(17,20,33,.07)}.btn.primary{color:#0d1510;background:linear-gradient(135deg,#b9ff5a,#58f5bf 50%,#29d8ff);box-shadow:0 18px 44px rgba(79,255,163,.25)}.btn:hover{background:#fff;box-shadow:0 18px 42px rgba(17,20,33,.12)}.btn.danger{color:#b4233a;background:rgba(255,235,238,.86);border-color:rgba(244,63,94,.22)}.hero{min-height:auto;padding-top:clamp(52px,8vw,92px)}.hero-layout,.section-inner{width:min(1180px,100%);margin:0 auto}.hero h1{color:#101420;font-size:clamp(48px,8vw,104px);letter-spacing:0;line-height:.92}.gradient-text{color:#111421;background:linear-gradient(90deg,#111421 0%,#21321c 48%,#2dbd74 100%);-webkit-background-clip:text;background-clip:text}.hero p,.section p.lead{color:#596071}.eyebrow{color:#203016;border-color:rgba(156,255,82,.48);background:rgba(156,255,82,.2);box-shadow:none}.hero-actions,.hero-stats{margin-top:30px}.stat-pill,.rank-line,.quest,.detail-hero,.guide-card,.setting-row,.auth-chip{border-color:rgba(17,20,33,.1);background:rgba(255,255,255,.74);box-shadow:0 12px 34px rgba(17,20,33,.06)}.feature-card,.preview-panel,.auth-card,.app-card{border-radius:28px;border-color:rgba(17,20,33,.1);background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.78)),var(--panel);box-shadow:0 24px 80px rgba(17,20,33,.09);backdrop-filter:blur(18px)}.feature-card{min-height:240px;padding:26px}.feature-card:hover{border-color:rgba(45,189,116,.25);background:#fff;box-shadow:0 30px 90px rgba(17,20,33,.13)}.feature-icon,.metric-icon,.quest-icon,.toast-icon{color:#111421;background:linear-gradient(135deg,#b9ff5a,#35e7c6);border-radius:18px}.section{padding-top:clamp(58px,8vw,110px);padding-bottom:clamp(58px,8vw,110px)}.section h2{color:#111421;font-size:clamp(42px,6vw,78px);line-height:.95}.hero-preview::before{content:"";position:absolute;inset:0;border-radius:42px;background:radial-gradient(circle at 50% 10%,rgba(156,255,82,.32),transparent 34%),linear-gradient(135deg,rgba(255,255,255,.65),rgba(255,255,255,.08));transform:rotate(-2deg);box-shadow:0 34px 100px rgba(17,20,33,.1)}.phone-shell{border-color:rgba(17,20,33,.12);background:#111421;box-shadow:0 32px 90px rgba(17,20,33,.24)}.phone-screen{background:radial-gradient(circle at 24% 0%,rgba(156,255,82,.28),transparent 28%),linear-gradient(180deg,#171b2a,#0f1220);color:#f8fafc}.floating-card{border-color:rgba(17,20,33,.1);background:rgba(255,255,255,.82);color:#111421;box-shadow:0 22px 60px rgba(17,20,33,.12)}.auth-section{background:radial-gradient(circle at 18% 16%,rgba(156,255,82,.34),transparent 28%),radial-gradient(circle at 86% 18%,rgba(34,211,238,.2),transparent 26%)}.auth-card{width:min(1120px,100%);min-height:680px}.auth-art{background:radial-gradient(circle at 30% 20%,rgba(156,255,82,.36),transparent 32%),linear-gradient(145deg,#151927,#25331b);color:#fff}.auth-art .gradient-text{background:linear-gradient(90deg,#ffffff,#b9ff5a);-webkit-background-clip:text;background-clip:text}.tabs{border-radius:22px;background:#eef1e6;border-color:rgba(17,20,33,.08)}.tabs button{color:#596071;border-radius:18px}.tabs button.active{color:#111421;background:#fff;box-shadow:0 12px 34px rgba(17,20,33,.08)}.field input,.field select{color:#111421;border-color:rgba(17,20,33,.12);background:#f8faf4;border-radius:18px}.app{background:#f6f7ee}.sidebar,.app-header{background:rgba(255,255,255,.82);border-color:rgba(17,20,33,.1)}.side-nav button{color:#596071;border-radius:18px}.side-nav button.active,.side-nav button:hover{color:#111421;background:#f0f6e8}.xp-header,.progress{background:#eef1e6;border-color:rgba(17,20,33,.08)}.tag{color:#3d4455;background:rgba(255,255,255,.7);border-color:rgba(17,20,33,.1)}.tag.green,.tag.cyan{color:#236b38;background:rgba(156,255,82,.18);border-color:rgba(111,214,71,.28)}.tag.amber{color:#8a5b00;background:rgba(244,185,66,.18);border-color:rgba(244,185,66,.28)}.tag.pink{color:#5140b6;background:rgba(124,92,255,.13);border-color:rgba(124,92,255,.24)}.table-row{border-color:rgba(17,20,33,.1);background:rgba(255,255,255,.72)}.table-row.me{border-color:rgba(45,189,116,.3);background:rgba(156,255,82,.14)}.toast{color:#111421;background:rgba(255,255,255,.94);border-color:rgba(17,20,33,.12);box-shadow:0 24px 70px rgba(17,20,33,.14)}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;scroll-behavior:auto !important}}@media (max-width:1120px){.hero-layout,.dashboard-grid,.showcase-grid,.profile-layout{grid-template-columns:1fr}.hero-preview{min-height:560px}.phone-shell{position:relative;margin:0 auto;top:auto}.floating-card.top{right:auto;left:8px}.feature-grid,.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:880px){body.is-auth .app{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;width:min(320px,86vw);transform:translateX(-105%);transition:transform .28s var(--ease)}body.menu-open .sidebar{transform:translateX(0)}.mobile-menu{display:inline-flex}.app-header{align-items:flex-start}.header-actions{flex-wrap:wrap;justify-content:end}.xp-header{order:5;width:100%;min-width:0}.auth-card{grid-template-columns:1fr}.auth-art{display:none}.topbar{align-items:flex-start}.landing-nav{display:none}.guild-grid,.profile-grid,.field-row{grid-template-columns:1fr}.table-row{grid-template-columns:46px 1fr 88px}.table-row .hide-mobile{display:none}}@media (max-width:620px){html,body{width:100%;max-width:100%;overflow-x:hidden}body{font-size:15px}.topbar{padding:14px 16px;gap:12px}.brand{font-size:20px}.brand-mark{width:42px;height:42px;border-radius:12px}.topbar>div:last-child{width:100%;justify-content:stretch}.topbar>div:last-child .btn{flex:1;min-height:46px;padding:12px 10px}.auth-section{min-height:auto;padding:18px 12px calc(24px+env(safe-area-inset-bottom));place-items:start}.auth-card{width:100%;min-height:0;border-radius:8px}.auth-form-wrap{padding:16px}.tabs button{min-height:48px}.field input,.field select{min-height:50px;font-size:16px}.hero{padding-top:34px}.hero-stats,.feature-grid,.card-grid,.achievement-grid{grid-template-columns:1fr}.hero-actions .btn{width:100%}.section-head{display:block}.floating-card{display:none}.phone-screen{min-height:500px}.skilltree-shell{min-height:72vh;width:calc(100vw - 28px);max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.skilltree{width:980px;height:720px;transform:scale(.62);transform-origin:top left;margin:0}.skill-node{width:150px;min-height:108px}.theme-diamond .skill-node{width:124px;min-height:124px}.subtopic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:14px}.app-header{padding:12px 14px;position:sticky;top:0}.header-title h2{font-size:20px}.header-title p{font-size:12px}.header-actions{width:100%;justify-content:stretch}.header-actions .btn{flex:1}.dashboard-grid{gap:14px}.app-card{padding:14px}.quest{grid-template-columns:40px 1fr}.quest .btn{grid-column:1 / -1;width:100%}.guide-card ol,.guide-card ul{padding-left:16px;font-size:13px}.detail-hero{align-items:flex-start}.learning-modal{padding:10px;align-items:end}.learning-card{max-height:92vh;border-radius:18px 18px 0 0;padding:18px}.learning-grid{grid-template-columns:1fr}.claim-row{display:grid}.claim-row .btn{width:100%}.profile-grid,.settings-grid,.guild-grid{grid-template-columns:1fr}.subtopic-grid{grid-template-columns:1fr}.table-row{grid-template-columns:34px 1fr;gap:10px}.table-row .tag{grid-column:2;width:max-content}.notifications{right:12px;bottom:12px;width:calc(100vw - 24px)}}body.auth-open{--bg:#8b8b88;--bg-soft:#101114;--panel:rgba(14,14,18,.62);--panel-strong:rgba(9,9,12,.82);--line:rgba(255,255,255,.2);--text:#ffffff;--muted:rgba(255,255,255,.76);--dim:rgba(255,255,255,.58);color:var(--text);background:#8b8b88}body.auth-open .background-grid,body.auth-open .orbital-lights,body.auth-open .scanline,body.auth-open .spark{display:none !important}body.auth-open .topbar{display:none}body.auth-open .brand{gap:0;color:#fff}body.auth-open .brand span:last-child,body.auth-open .landing-nav{display:none}body.auth-open .brand-mark{width:58px;height:58px;border-radius:50%;color:#fff;background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.42),transparent 28%),linear-gradient(145deg,#3e3f43,#17181b);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 44px rgba(0,0,0,.28)}body.auth-open .topbar>div:last-child{display:flex;gap:8px;align-items:center}body.auth-open .topbar .btn{min-height:58px;padding:0 30px;border-radius:999px;color:#fff;border-color:rgba(255,255,255,.14);background:rgba(24,24,27,.64);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 12px 32px rgba(0,0,0,.24);font-size:16px;font-weight:900;white-space:nowrap}body.auth-open .topbar .btn.primary{color:#111114;border-color:rgba(255,255,255,.7);background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(234,234,232,.9));box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 18px 48px rgba(0,0,0,.28)}body.auth-open .auth-section{position:relative;min-height:100svh;display:grid;place-items:center;overflow:hidden;padding:132px 18px 54px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.03) 38%,rgba(0,0,0,.12)),#8d8d8a;isolation:isolate}body.auth-open .auth-section::before{content:"";position:absolute;z-index:-2;left:50%;top:47%;width:min(780px,76vw);aspect-ratio:1;transform:translate(-50%,-50%) rotate(-18deg);border-radius:42% 58% 49% 51% / 58% 43% 57% 42%;background:radial-gradient(circle at 42% 32%,rgba(255,255,255,.24),transparent 16%),radial-gradient(circle at 58% 62%,rgba(255,255,255,.11),transparent 24%),radial-gradient(ellipse at 50% 48%,#070708 0 30%,#1c1c1d 42%,#09090a 58%,transparent 60%);filter:grayscale(1) contrast(120%);box-shadow:inset 36px 48px 88px rgba(255,255,255,.18),inset -62px -48px 110px rgba(0,0,0,.92),0 50px 110px rgba(0,0,0,.24);opacity:.9}body.auth-open .auth-section::after{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 50% 44%,rgba(0,0,0,.06),transparent 36%),linear-gradient(90deg,rgba(255,255,255,.14),transparent 22%,transparent 78%,rgba(255,255,255,.11));pointer-events:none}body.auth-open .auth-card{width:min(1120px,100%);min-height:0;display:grid;grid-template-columns:1fr;gap:28px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}body.auth-open .auth-card::before{display:none}body.auth-open .auth-art{display:flex;min-height:0;padding:0;align-items:center;justify-content:center;text-align:center;color:#fff;border:0;background:transparent}body.auth-open .auth-art>div:first-child{width:min(1100px,100%)}body.auth-open .auth-art .eyebrow{width:max-content;max-width:100%;margin:0 auto 28px;padding:14px 30px;border-radius:999px;color:#fff;border:1px solid rgba(255,255,255,.24);background:rgba(20,20,22,.36);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 18px 40px rgba(0,0,0,.16);backdrop-filter:blur(16px);letter-spacing:0}body.auth-open .auth-art .eyebrow::before{background:#fff;box-shadow:0 0 18px rgba(255,255,255,.86)}body.auth-open .auth-art h2{margin:0 auto;max-width:1100px;font-size:clamp(58px,10vw,142px);line-height:.9;letter-spacing:0;text-wrap:balance;text-shadow:0 18px 48px rgba(0,0,0,.16)}body.auth-open .auth-art .gradient-text{color:transparent;background:linear-gradient(90deg,#cabaff 0%,#f7f0d5 24%,#fff979 40%,#ff94db 58%,#8ebaff 82%,#a9c2ff 100%);-webkit-background-clip:text;background-clip:text}body.auth-open .auth-art p{width:min(760px,100%);margin:24px auto 0 !important;color:rgba(255,255,255,.94) !important;font-size:clamp(17px,2vw,25px);line-height:1.35 !important;text-shadow:0 10px 28px rgba(0,0,0,.22);text-wrap:balance}body.auth-open .auth-stack{display:none}body.auth-open .auth-form-wrap{width:min(620px,100%);margin:2px auto 0;padding:16px;border:1px solid rgba(255,255,255,.18);border-radius:34px;background:rgba(14,14,18,.62);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 28px 80px rgba(0,0,0,.28);backdrop-filter:blur(24px) saturate(130%)}body.auth-open .tabs{padding:6px;border-radius:999px;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.1)}body.auth-open .tabs button{min-height:54px;border-radius:999px;color:rgba(255,255,255,.76);font-weight:950}body.auth-open .tabs button.active{color:#111114;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(234,234,232,.9));box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 16px 38px rgba(0,0,0,.22)}body.auth-open .field label,body.auth-open .check-row,body.auth-open .check-row .nav-link{color:rgba(255,255,255,.78)}body.auth-open .field input,body.auth-open .field select{min-height:56px;color:#fff;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.1);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}body.auth-open .field input:focus,body.auth-open .field select:focus{border-color:rgba(202,186,255,.7);box-shadow:0 0 0 4px rgba(202,186,255,.14)}body.auth-open .auth-form-wrap .btn.primary{min-height:58px;color:#111114;border-color:rgba(255,255,255,.7);background:linear-gradient(90deg,#151516,#111114) padding-box,linear-gradient(90deg,#83a7ff,#ff98d8,#fff979) border-box;border:2px solid transparent;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 18px 48px rgba(0,0,0,.32)}body.auth-open .auth-chip,body.auth-open #firebaseDebug{color:rgba(255,255,255,.86);border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);box-shadow:none}body.auth-open .auth-form-wrap>button:not(.primary){color:rgba(255,255,255,.82);border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08)}@media (max-width:880px){body.auth-open .topbar{width:calc(100% - 24px);justify-content:space-between}body.auth-open .auth-art{display:flex}body.auth-open .auth-section{padding-top:112px}}@media (max-width:620px){body.auth-open .topbar{top:max(10px,env(safe-area-inset-top));padding:5px;gap:5px}body.auth-open .brand-mark{width:46px;height:46px;font-size:17px}body.auth-open .topbar>div:last-child{width:auto;gap:5px}body.auth-open .topbar .btn{flex:0 1 auto;min-height:46px;padding:0 13px;font-size:13px}body.auth-open .auth-section{min-height:100svh;padding:96px 12px calc(24px+env(safe-area-inset-bottom));place-items:start center}body.auth-open .auth-section::before{top:30%;width:118vw;opacity:.72}body.auth-open .auth-card{width:100%;gap:20px}body.auth-open .auth-art .eyebrow{margin-bottom:18px;padding:10px 16px;font-size:11px}body.auth-open .auth-art h2{font-size:clamp(48px,17vw,74px);line-height:.92}body.auth-open .auth-art p{font-size:16px;margin-top:18px !important}body.auth-open .auth-form-wrap{padding:10px;border-radius:24px}}.topbar{padding:12px 18px}.brand{font-size:20px}.brand-mark{width:42px;height:42px;background:var(--accent-gradient)}.btn{min-height:42px;padding:10px 16px;font-size:14px}.btn.primary{background:var(--accent-gradient);box-shadow:0 14px 34px var(--accent-glow)}.gradient-text{background:var(--accent-gradient-wide);background-size:180% 180%;-webkit-background-clip:text;background-clip:text}.progress span,.loader-bar::after{background:var(--accent-gradient);box-shadow:0 0 18px var(--accent-glow)}.feature-icon,.metric-icon,.quest-icon,.toast-icon,.avatar,.mini-avatar{background:var(--accent-gradient)}.side-nav button.active,.side-nav button:hover,.tabs button.active{border-color:color-mix(in srgb,var(--accent-1) 42%,transparent);box-shadow:0 10px 28px color-mix(in srgb,var(--accent-1) 18%,transparent)}.side-nav button.active .nav-dot,.nav-dot{background:var(--accent-2);box-shadow:0 0 14px var(--accent-2)}.xp-popup{border-color:color-mix(in srgb,var(--accent-2) 52%,white);box-shadow:0 24px 80px color-mix(in srgb,var(--accent-2) 32%,transparent),inset 0 0 0 1px rgba(255,255,255,.65)}.skill-node:not(.locked){border-color:color-mix(in srgb,var(--accent-1) 28%,rgba(255,255,255,.12))}.skill-node.done{border-color:var(--accent-2);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent-2) 34%,transparent),0 18px 34px color-mix(in srgb,var(--accent-2) 18%,transparent)}.node-icon{color:var(--accent-1);background:color-mix(in srgb,var(--accent-1) 14%,transparent)}.tag.cyan,.tag.green{color:var(--accent-2);border-color:color-mix(in srgb,var(--accent-2) 34%,transparent);background:color-mix(in srgb,var(--accent-2) 12%,transparent)}.swatch{width:38px;height:38px;border-radius:12px}.swatch.active{border-color:var(--text);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent-1) 18%,transparent),0 0 24px var(--accent-glow)}.sidebar{padding:16px}.content{padding:18px}.app-header{padding:14px 18px}.app-card,.feature-card,.preview-panel{padding:18px;box-shadow:0 18px 52px rgba(17,20,33,.08)}.section{padding-top:clamp(42px,6vw,78px);padding-bottom:clamp(42px,6vw,78px)}.section h2{font-size:clamp(34px,4.8vw,62px)}.hero h1{font-size:clamp(42px,6.7vw,86px)}body.auth-open .auth-art h2{font-size:clamp(52px,8.2vw,118px)}body.auth-open .auth-form-wrap{width:min(560px,100%)}body.neon-mode{--shadow:0 22px 72px color-mix(in srgb,var(--accent-1) 16%,rgba(0,0,0,.62))}body.neon-mode .background-grid{display:block !important;background-image:linear-gradient(color-mix(in srgb,var(--accent-1) 18%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent-2) 14%,transparent) 1px,transparent 1px)}body.neon-mode .orbital-lights{display:block !important}body.neon-mode .app-card,body.neon-mode .sidebar,body.neon-mode .app-header,body.neon-mode .auth-form-wrap{border-color:color-mix(in srgb,var(--accent-1) 34%,rgba(255,255,255,.12));box-shadow:0 0 0 1px color-mix(in srgb,var(--accent-1) 12%,transparent),0 18px 58px rgba(0,0,0,.26),0 0 42px color-mix(in srgb,var(--accent-1) 13%,transparent)}body.neon-mode .btn.primary,body.neon-mode .skill-node.done,body.neon-mode .progress span{filter:saturate(1.28);box-shadow:0 0 24px var(--accent-glow),0 0 54px color-mix(in srgb,var(--accent-2) 18%,transparent)}body.neon-mode .gradient-text{animation:shimmer 5s linear infinite}@media (max-width:620px){body{font-size:13.5px}.btn{min-height:40px;padding:9px 12px}.content,.app-card{padding:12px}body.auth-open .auth-art h2{font-size:clamp(42px,14.5vw,64px)}}body.is-auth:not(.light){--bg:#080a12;--bg-soft:#0d1020;--panel:rgba(18,24,46,.76);--panel-strong:rgba(18,24,46,.94);--line:rgba(255,255,255,.13);--text:#f7f9ff;--muted:#a9b1cc;--dim:#69728c;background:radial-gradient(circle at 16% 8%,color-mix(in srgb,var(--accent-1) 20%,transparent),transparent 25%),radial-gradient(circle at 86% 12%,color-mix(in srgb,var(--accent-3) 16%,transparent),transparent 26%),linear-gradient(180deg,#070912,#0b0e19 45%,#080a12)}body.is-auth.light{--bg:#f6f7ee;--bg-soft:#ffffff;--panel:rgba(255,255,255,.9);--panel-strong:rgba(255,255,255,.98);--line:rgba(17,20,33,.12);--text:#101421;--muted:#596071;--dim:#7c8290;background:radial-gradient(circle at 16% 8%,color-mix(in srgb,var(--accent-2) 22%,transparent),transparent 25%),radial-gradient(circle at 86% 12%,color-mix(in srgb,var(--accent-1) 18%,transparent),transparent 26%),linear-gradient(180deg,#fbfff0,#f6f7ee 48%,#eff4f7)}body.is-auth:not(.light) .app{background:transparent}body.is-auth:not(.light) .sidebar,body.is-auth:not(.light) .app-header,body.is-auth:not(.light) .app-card,body.is-auth:not(.light) .setting-row,body.is-auth:not(.light) .quest,body.is-auth:not(.light) .rank-line,body.is-auth:not(.light) .guide-card,body.is-auth:not(.light) .detail-hero,body.is-auth:not(.light) .table-row{color:var(--text);border-color:var(--line);background:var(--panel);box-shadow:0 18px 48px rgba(0,0,0,.24)}body.is-auth.light .sidebar,body.is-auth.light .app-header,body.is-auth.light .app-card,body.is-auth.light .setting-row,body.is-auth.light .quest,body.is-auth.light .rank-line,body.is-auth.light .guide-card,body.is-auth.light .detail-hero,body.is-auth.light .table-row{color:var(--text);border-color:var(--line);background:var(--panel);box-shadow:0 18px 48px rgba(17,20,33,.08)}body.is-auth:not(.light) .field input,body.is-auth:not(.light) .field select,body.is-auth:not(.light) .tabs,body.is-auth:not(.light) .xp-header,body.is-auth:not(.light) .progress,body.is-auth:not(.light) .subtopic-card{color:var(--text);border-color:var(--line);background:rgba(255,255,255,.07)}body.is-auth.light .field input,body.is-auth.light .field select,body.is-auth.light .tabs,body.is-auth.light .xp-header,body.is-auth.light .progress,body.is-auth.light .subtopic-card{color:var(--text);border-color:var(--line);background:rgba(255,255,255,.72)}body.is-auth.neon-mode .sidebar,body.is-auth.neon-mode .app-header,body.is-auth.neon-mode .app-card,body.is-auth.neon-mode .subtopic-card.active,body.is-auth.neon-mode .skilltree-shell{border-color:color-mix(in srgb,var(--accent-1) 42%,var(--line));box-shadow:0 0 0 1px color-mix(in srgb,var(--accent-1) 14%,transparent),0 0 38px color-mix(in srgb,var(--accent-1) 14%,transparent),var(--shadow)}.brand-mark,.loader-logo{position:relative;overflow:hidden;isolation:isolate;font-size:0 !important;color:transparent !important;background:linear-gradient(145deg,#071737 0%,#0f2251 54%,#091226 100%) padding-box,linear-gradient(135deg,var(--green),var(--cyan),var(--violet)) border-box !important;border:1px solid transparent;border-radius:16px;box-shadow:0 12px 28px color-mix(in srgb,var(--accent-1) 20%,rgba(0,0,0,.18)),inset 0 1px 0 rgba(255,255,255,.22)}.brand-mark::before,.loader-logo::before{content:"LL";position:relative;z-index:2;font-size:20px;line-height:1;font-weight:950;letter-spacing:-1px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.38)}.brand-mark::after,.loader-logo::after{content:"";position:absolute;z-index:3;width:13px;height:13px;top:6px;right:6px;background:linear-gradient(135deg,#b7ff50,var(--green));clip-path:polygon(50% 0,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0 50%,37% 36%);filter:drop-shadow(0 0 8px rgba(255,214,10,.8))}body.is-auth .metric-card.xp-card{background:radial-gradient(circle at 86% 18%,color-mix(in srgb,var(--cyan) 30%,transparent),transparent 30%),linear-gradient(135deg,rgba(21,28,58,.94),rgba(8,11,24,.96)) !important}body.is-auth .metric-card.streak-card{background:radial-gradient(circle at 86% 18%,rgba(255,101,120,.34),transparent 30%),linear-gradient(135deg,rgba(50,22,24,.94),rgba(15,12,20,.96)) !important}body.is-auth .metric-card.badge-card-mini{background:radial-gradient(circle at 86% 18%,rgba(255,209,102,.34),transparent 30%),linear-gradient(135deg,rgba(51,42,18,.94),rgba(15,12,20,.96)) !important}body.is-auth .metric-card.notes-card{background:radial-gradient(circle at 86% 18%,rgba(255,255,255,.16),transparent 30%),linear-gradient(135deg,rgba(33,39,55,.94),rgba(15,16,24,.96)) !important}body.is-auth.light .metric-card.xp-card,body.is-auth.light .metric-card.streak-card,body.is-auth.light .metric-card.badge-card-mini,body.is-auth.light .metric-card.notes-card{color:#101421;box-shadow:0 18px 48px rgba(17,20,33,.08) !important}body.is-auth.light .metric-card.xp-card{background:linear-gradient(135deg,#f7fff6,#dffaff) !important}body.is-auth.light .metric-card.streak-card{background:linear-gradient(135deg,#fff4ec,#ffe3df) !important}body.is-auth.light .metric-card.badge-card-mini{background:linear-gradient(135deg,#fff9df,#f6ffe1) !important}body.is-auth.light .metric-card.notes-card{background:linear-gradient(135deg,#ffffff,#eef2f7) !important}body.is-auth:not(.light) .brand,body.is-auth:not(.light) .brand span:last-child{color:#ffffff !important}body.is-auth.light .brand,body.is-auth.light .brand span:last-child{color:#111421 !important}

/* === ULTRA XP ANIMATION - added === */

.xp-celebration.ultra {
  position: fixed;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.xp-ultra-card {
  position: relative;
  min-width: 210px;
  padding: 22px 30px;
  border-radius: 28px;
  text-align: center;
  color: #071018;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.72)),
    linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--pink));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow:
    0 30px 90px rgba(255,107,53,.38),
    0 0 70px rgba(156,255,82,.34),
    inset 0 0 0 1px rgba(255,255,255,.8);
  animation: xpUltraCard 1.45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.xp-ultra-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--pink), var(--amber));
  z-index: -1;
  filter: blur(18px);
  opacity: .75;
}

.xp-ultra-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.7px;
  opacity: .75;
}

.xp-ultra-value {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -1px;
}

.xp-ultra-reason {
  display: block;
  max-width: 260px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 850;
  opacity: .72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xp-ultra-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-2) 75%, white);
  box-shadow: 0 0 55px color-mix(in srgb, var(--accent-2) 45%, transparent);
  animation: xpUltraRing 1.25s cubic-bezier(.16, 1, .3, 1) forwards;
}

.xp-ultra-ring.second {
  width: 310px;
  height: 310px;
  border-color: color-mix(in srgb, var(--pink) 65%, white);
  animation-delay: .08s;
}

.xp-ultra-particle {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--color);
  box-shadow: 0 0 22px var(--color);
  transform: translate(-50%, -50%);
  animation: xpUltraParticle 1.15s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--delay);
  z-index: 99998;
  pointer-events: none;
}

.xp-ultra-particle.diamond {
  border-radius: 4px;
  rotate: 45deg;
}

.xp-ultra-orb {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, white, var(--accent-1) 38%, var(--accent-2));
  box-shadow: 0 0 24px var(--accent-2);
  z-index: 100000;
  pointer-events: none;
  animation: xpUltraOrb 900ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.xp-combo.ultra-combo {
  position: absolute;
  right: -32px;
  top: -26px;
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #071018;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 18px 46px rgba(255,79,216,.35);
  font-size: 13px;
  font-weight: 1000;
  text-align: center;
  animation: xpComboPunch .7s cubic-bezier(.16, 1, .3, 1) both;
}

.xp-header.xp-super-hit {
  animation: xpSuperHeaderHit .85s cubic-bezier(.16, 1, .3, 1);
}

@keyframes xpUltraCard {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.55) rotate(-5deg);
    filter: blur(10px);
  }
  16% {
    opacity: 1;
    transform: translateY(-10px) scale(1.12) rotate(2deg);
    filter: blur(0);
  }
  38% {
    transform: translateY(0) scale(1);
  }
  72% {
    opacity: 1;
    transform: translateY(-20px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translateY(-95px) scale(.78);
  }
}

@keyframes xpUltraRing {
  0% {
    opacity: .95;
    transform: scale(.18);
  }
  58% {
    opacity: .55;
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes xpUltraParticle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.4);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(.05)
      rotate(var(--rot));
  }
}

@keyframes xpUltraOrb {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(var(--target-x) - var(--x)), calc(var(--target-y) - var(--y)))
      scale(.25);
  }
}

@keyframes xpComboPunch {
  0% {
    opacity: 0;
    transform: scale(.55) rotate(-8deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.18) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes xpSuperHeaderHit {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255,214,10,0);
  }
  35% {
    transform: scale(1.035) translateY(-2px);
    box-shadow:
      0 0 38px rgba(255,214,10,.55),
      0 0 80px rgba(255,107,53,.28);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255,214,10,0);
  }
}



/* === Update v2: Mobile, Dashboard, Skilltree, Sounds-Feeling === */

.view.active {
  animation: viewSlideIn .34s cubic-bezier(.16, 1, .3, 1);
}

@keyframes viewSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.992);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.focus-card,
.roadmap-card {
  min-height: 278px;
}

.focus-hero {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 35%),
    rgba(255,255,255,.055);
}

.focus-hero h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.focus-hero p {
  color: var(--muted);
  line-height: 1.5;
}

.focus-icon {
  width: 54px;
  height: 54px;
}

.focus-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}

.focus-mini-grid > div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.focus-mini-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.focus-mini-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-step {
  grid-template-columns: 42px 1fr auto;
}

.skill-node {
  isolation: isolate;
}

.skill-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 42%);
  opacity: 0;
  transition: opacity .24s var(--ease);
}

.skill-node:hover::before,
.skill-node.available::before {
  opacity: 1;
}

.skill-node.done {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 14%, transparent), rgba(15,20,39,.9));
}

.skill-node.available {
  transform-origin: center;
}

.skill-node.available .node-pulse {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent-1) 45%, transparent);
  animation: nodeReadyPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.node-status {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 78%, var(--accent-1));
  border: 1px solid color-mix(in srgb, var(--accent-1) 24%, var(--line));
  background: rgba(255,255,255,.075);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .7px;
}

.skill-node.locked .node-status {
  color: var(--dim);
  border-color: var(--line);
}

.skill-node.done .node-status {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 36%, var(--line));
}

@keyframes nodeReadyPulse {
  0%, 100% {
    opacity: .18;
    transform: scale(.97);
  }
  50% {
    opacity: .72;
    transform: scale(1.035);
  }
}

.svg-lines line.flow {
  stroke-dasharray: 10 10;
  animation: lineFlow 1.35s linear infinite;
}

@media (max-width: 1100px) {
  body.is-auth .app {
    grid-template-columns: 1fr;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: min(310px, calc(100vw - 24px));
    height: auto;
    border-radius: 28px;
    transform: translateX(calc(-100% - 18px));
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .app-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .xp-header {
    min-width: 210px;
  }

  .dashboard-grid,
  .dashboard-upgrade-grid,
  .profile-layout,
  .showcase-grid,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .achievement-grid,
  .guild-grid,
  .profile-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .subtopic-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  .content {
    padding: 12px;
  }

  .app-header {
    align-items: flex-start;
  }

  .header-title h2 {
    font-size: 20px;
  }

  .header-title p {
    max-width: 180px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .xp-header {
    order: 3;
    width: 100%;
    min-width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 112px;
  }

  .metric-value {
    font-size: 30px;
  }

  .dashboard-grid,
  .dashboard-upgrade-grid {
    gap: 12px;
  }

  .app-card {
    padding: 14px;
    border-radius: 22px;
  }

  .quest {
    grid-template-columns: 40px 1fr;
  }

  .quest .btn,
  .quest .tag {
    grid-column: 2;
    justify-self: start;
  }

  .route-step {
    grid-template-columns: 40px 1fr;
  }

  .focus-hero {
    grid-template-columns: 1fr;
    text-align: center;
    place-items: center;
  }

  .focus-mini-grid {
    grid-template-columns: 1fr;
  }

  .subtopic-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .skilltree-shell.centered {
    min-height: 610px;
    place-items: start;
    padding: 10px;
  }

  .skilltree {
    width: 860px;
    height: 590px;
    transform: scale(.82);
    transform-origin: top left;
  }

  .skill-node {
    width: 138px;
    min-height: 104px;
  }

  .table-row {
    grid-template-columns: 44px 1fr;
  }

  .table-row > span:last-child,
  .table-row > strong:last-child {
    grid-column: 2;
  }

  .learning-card {
    padding: 18px;
    max-height: 88vh;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }

  .notifications {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 460px) {
  .app-header {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .header-actions .btn.icon {
    width: 38px;
    height: 38px;
  }

  .subtopic-grid {
    grid-template-columns: 1fr;
  }

  .skilltree {
    transform: scale(.72);
  }

  .xp-ultra-card {
    min-width: 180px;
    padding: 18px 22px;
  }

  .xp-ultra-value {
    font-size: 34px;
  }
}



/* === Update v3: Mock Photo Proof === */

.mock-proof-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent-1) 38%, var(--line));
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--accent-1) 16%, transparent), transparent 36%),
    rgba(255,255,255,.055);
}

.mock-proof-status {
  color: var(--text);
  font-weight: 850;
  font-size: 13px;
  line-height: 1.45;
}

.mock-proof-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mock-proof-box .btn {
  width: max-content;
}

@media (max-width: 560px) {
  .mock-proof-box .btn {
    width: 100%;
  }
}


/* === Update v4: unique guide wording === */
.learning-section p,
.learning-section li {
  text-wrap: pretty;
}

.learning-kicker {
  max-width: 100%;
  flex-wrap: wrap;
}


/* === Final v5: finished guide polish === */

.learning-section {
  border-radius: 18px;
}

.learning-section h3 {
  letter-spacing: -.01em;
}

.learning-section li {
  margin-bottom: 2px;
}

.learning-section li::marker {
  color: var(--accent-1);
  font-weight: 900;
}

.learning-title {
  max-width: 760px;
}


/* === Final v6: New user onboarding tutorial === */

.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 32%),
    radial-gradient(circle at 78% 82%, color-mix(in srgb, var(--pink) 15%, transparent), transparent 34%),
    rgba(3, 5, 12, .76);
  backdrop-filter: blur(18px);
}

.onboarding-modal.show {
  display: grid;
}

.onboarding-card {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 28%, var(--line));
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent-1) 22%, transparent), transparent 34%),
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--pink) 15%, transparent), transparent 32%),
    rgba(12, 16, 32, .96);
  box-shadow:
    0 34px 110px rgba(0,0,0,.58),
    0 0 44px color-mix(in srgb, var(--accent-1) 12%, transparent);
  animation: onboardingPop .32s cubic-bezier(.16, 1, .3, 1);
}

body.light .onboarding-card {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent-1) 22%, transparent), transparent 34%),
    #ffffff;
  box-shadow: 0 34px 90px rgba(17,20,33,.18);
}

.onboarding-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding-right: 52px;
}

.onboarding-progress span {
  height: 8px;
  flex: 1;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--line);
  overflow: hidden;
}

.onboarding-progress span.active {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 36%, transparent);
}

.onboarding-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 24px;
  color: #071018;
  font-weight: 1000;
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 22px 60px color-mix(in srgb, var(--accent-1) 28%, transparent);
}

.onboarding-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--accent-1);
  border: 1px solid color-mix(in srgb, var(--accent-1) 34%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 10%, transparent);
  font-size: 12px;
  font-weight: 950;
}

.onboarding-card h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.onboarding-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
}

.onboarding-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 22px 0;
}

.onboarding-preview div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.onboarding-preview strong,
.onboarding-preview span {
  display: block;
}

.onboarding-preview strong {
  font-size: 20px;
}

.onboarding-preview span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.onboarding-check {
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@keyframes onboardingPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 560px) {
  .onboarding-preview {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .onboarding-actions .btn.primary {
    grid-column: 1 / -1;
  }
}


/* === Final v7: interactive guided tour with arrows === */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  pointer-events: none;
}

.tour-overlay.show {
  display: block;
}

.tour-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, .72);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.tour-spotlight {
  position: fixed;
  z-index: 3001;
  border-radius: 24px;
  pointer-events: none;
  box-shadow:
    0 0 0 9999px rgba(3, 5, 12, .70),
    0 0 0 2px color-mix(in srgb, var(--accent-1) 78%, white),
    0 0 38px color-mix(in srgb, var(--accent-1) 45%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.5);
  transition:
    left .28s cubic-bezier(.16, 1, .3, 1),
    top .28s cubic-bezier(.16, 1, .3, 1),
    width .28s cubic-bezier(.16, 1, .3, 1),
    height .28s cubic-bezier(.16, 1, .3, 1);
}

.tour-card {
  position: fixed;
  z-index: 3002;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 32%, var(--line));
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 34%),
    rgba(12, 16, 32, .97);
  box-shadow:
    0 28px 90px rgba(0,0,0,.54),
    0 0 42px color-mix(in srgb, var(--accent-1) 15%, transparent);
  color: var(--text);
  pointer-events: auto;
  transition:
    left .28s cubic-bezier(.16, 1, .3, 1),
    top .28s cubic-bezier(.16, 1, .3, 1);
  animation: tourCardPop .24s cubic-bezier(.16, 1, .3, 1);
}

body.light .tour-card {
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 34%),
    #ffffff;
  box-shadow: 0 28px 80px rgba(17,20,33,.20);
}

.tour-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-1);
  border: 1px solid color-mix(in srgb, var(--accent-1) 34%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 10%, transparent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .7px;
}

.tour-card h3 {
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 8px;
}

.tour-card p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.tour-progress-text {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tour-actions .btn {
  min-height: 38px;
  padding: 9px 12px;
}

.tour-arrow {
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
  z-index: -1;
}

.tour-arrow.top {
  top: -9px;
  left: 50%;
  margin-left: -9px;
  border-right: 0;
  border-bottom: 0;
}

.tour-arrow.bottom {
  bottom: -9px;
  left: 50%;
  margin-left: -9px;
  border-left: 0;
  border-top: 0;
}

.tour-arrow.left {
  left: -9px;
  top: 50%;
  margin-top: -9px;
  border-right: 0;
  border-top: 0;
}

.tour-arrow.right {
  right: -9px;
  top: 50%;
  margin-top: -9px;
  border-left: 0;
  border-bottom: 0;
}

@keyframes tourCardPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .tour-card {
    width: calc(100vw - 28px) !important;
    left: 14px !important;
  }

  .tour-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tour-actions .btn.primary {
    grid-column: 1 / -1;
  }

  .tour-arrow {
    display: none;
  }
}


/* === Final v8: guided tour button fix === */

.tour-overlay.show {
  display: block !important;
}

.tour-card {
  left: 24px;
  top: 90px;
}

.tour-spotlight {
  left: 20px;
  top: 80px;
  width: 260px;
  height: 80px;
}


/* === Final v9: real guided tour view-switch fix === */

#guidedTourStartBtn {
  position: relative;
}

#guidedTourStartBtn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 45%, transparent);
  opacity: .45;
  pointer-events: none;
}


/* === Final v10: actual currentUser bug fix === */
#guidedTourStartBtn {
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent-1) 22%, transparent);
}


/* === Final v11: real bright spotlight hole fix === */

/*
  Vorher lag eine dunkle ::before-Fläche über dem ganzen Screen.
  Der Rahmen war sichtbar, aber der Zielbereich darunter blieb dunkel.
  Jetzt erzeugt der Spotlight selbst die Abdunklung außen per riesigem Box-Shadow.
  Innen bleibt der echte UI-Bereich sichtbar.
*/

.tour-overlay.show {
  background: transparent !important;
}

.tour-overlay::before {
  display: none !important;
  content: none !important;
}

.tour-spotlight {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow:
    0 0 0 9999px rgba(3, 5, 12, .78),
    0 0 0 2px color-mix(in srgb, var(--accent-1) 88%, white),
    0 0 42px color-mix(in srgb, var(--accent-1) 55%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.62) !important;
}

.tour-spotlight::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.08),
    0 0 24px color-mix(in srgb, var(--accent-1) 35%, transparent);
}

.tour-card {
  z-index: 3003;
}


/* === Final v12: make highlighted UI element actually bright === */

.tour-real-highlight {
  position: relative;
  z-index: 3002 !important;
  isolation: isolate;
  border-radius: 22px;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent-1) 88%, white),
    0 0 34px color-mix(in srgb, var(--accent-1) 58%, transparent),
    0 18px 70px rgba(0,0,0,.42) !important;
}

.tour-real-highlight::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.13), transparent 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    0 0 50px color-mix(in srgb, var(--accent-1) 45%, transparent);
  z-index: -1;
}

.tour-spotlight {
  z-index: 3001;
  pointer-events: none;
}

.tour-card {
  z-index: 3005 !important;
}

.tour-overlay {
  pointer-events: none;
}

.tour-card,
.tour-card * {
  pointer-events: auto;
}


/* === Final v13: tour click + real cutout fix === */

/*
  v12 konnte den markierten Bereich zwar heller machen,
  aber grosse Zielbereiche lagen dadurch ueber der Tutorial-Box.
  Jetzt gibt es echte Abdunklungsflaechen NUR AUSSEN um den Zielbereich.
*/

.tour-overlay {
  z-index: 3000;
  pointer-events: none !important;
}

.tour-overlay::before {
  display: none !important;
  content: none !important;
}

.tour-shade {
  position: fixed;
  z-index: 3000;
  background: rgba(3, 5, 12, .78);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.tour-spotlight {
  z-index: 3001 !important;
  background: transparent !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent-1) 88%, white),
    0 0 42px color-mix(in srgb, var(--accent-1) 55%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.62) !important;
  pointer-events: none !important;
}

.tour-card {
  z-index: 3010 !important;
  pointer-events: auto !important;
}

.tour-card,
.tour-card * {
  pointer-events: auto !important;
}

.tour-real-highlight {
  z-index: auto !important;
  pointer-events: none !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent-1) 76%, white),
    0 0 34px color-mix(in srgb, var(--accent-1) 42%, transparent) !important;
}

.tour-real-highlight::after {
  z-index: 0 !important;
  pointer-events: none !important;
}


/* === Final v14: Nutzer-Codes + Freunde === */

.user-code-preview { align-content: end; }

.code-preview-pill,
.user-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 34%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 10%, rgba(255,255,255,.06));
  color: var(--accent-1);
  font-weight: 950;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 14%, transparent);
}

.user-code-pill {
  color: #071018;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
}

.friend-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.friend-result,
.friend-list,
#friendCompare {
  display: grid;
  gap: 12px;
}

.friend-card,
.friend-list-row,
.vs-card {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.friend-card { grid-template-columns: 46px 1fr auto; }

.friend-list-row {
  width: 100%;
  grid-template-columns: 44px 1fr auto;
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.friend-list-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-1) 34%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 8%, rgba(255,255,255,.065));
}

.friend-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  font-weight: 950;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 22%, transparent);
}

.friend-card h4,
.friend-card p,
.friend-list-row strong,
.friend-list-row span { display: block; }

.friend-card p,
.friend-list-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.vs-card {
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
}

.vs-user {
  display: grid;
  place-items: center;
  gap: 7px;
}

.vs-user span {
  color: var(--muted);
  font-size: 12px;
}

.vs-center {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071018;
  background: linear-gradient(135deg, var(--amber), var(--pink));
  font-weight: 1000;
  box-shadow: 0 0 30px color-mix(in srgb, var(--pink) 28%, transparent);
}

.compare-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.compare-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

select option {
  background: #1d2030;
  color: #f5f7ff;
}

@media (max-width: 720px) {
  .friend-search-box,
  .friend-card,
  .friend-list-row,
  .vs-card,
  .compare-bar-row {
    grid-template-columns: 1fr;
  }

  .friend-card,
  .friend-list-row {
    text-align: center;
    place-items: center;
  }

  .header-actions .user-code-pill {
    order: -1;
  }
}


/* === Final v15: Admin Dashboard === */

.admin-only-nav {
  display: none !important;
}

body.is-admin .admin-only-nav {
  display: grid !important;
}

body.is-admin .user-code-pill {
  background: linear-gradient(135deg, var(--amber), var(--pink));
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-tools input,
.admin-tools select,
.admin-xp-editor input {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  padding: 0 13px;
  outline: none;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  transition: .22s var(--ease);
}

.admin-user-row:hover,
.admin-user-row.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-1) 38%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 9%, rgba(255,255,255,.065));
}

.admin-user-row strong,
.admin-user-row span,
.admin-user-meta small {
  display: block;
}

.admin-user-row span,
.admin-user-meta small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.admin-user-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-detail-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.admin-detail-head .friend-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.admin-detail-head p {
  color: var(--muted);
  margin-top: 4px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-detail-grid div {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.admin-detail-grid strong,
.admin-detail-grid span {
  display: block;
}

.admin-detail-grid strong {
  font-size: 22px;
}

.admin-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.admin-xp-editor {
  display: grid;
  grid-template-columns: 1fr 120px repeat(4, auto);
  gap: 8px;
  align-items: end;
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.admin-xp-editor label {
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}

.admin-history {
  display: grid;
  gap: 8px;
}

.admin-history div {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}

.admin-history strong,
.admin-history span {
  display: block;
}

.admin-history span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .admin-tools,
  .admin-user-row,
  .admin-xp-editor,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-meta {
    justify-items: start;
  }
}


/* === Final v17: Database Friend Codes === */

body.is-admin [data-view="friends"] {
  display: none !important;
}

.database-code-note {
  color: var(--muted);
  font-size: 12px;
}


/* === Final v18: Friend-code repair UI === */

.admin-tools + .admin-user-list {
  margin-top: 10px;
}

.friend-list .empty {
  min-height: 56px;
}


/* === Final v19: boot loader failsafe === */
body.booted .loader,
body.booted .boot-loader,
body.booted #loader,
body.booted .splash,
body.booted .loading-screen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}


/* === Final v20: hard loader removal === */
html.booted #lifeLevelBootOverlay,
body.booted #lifeLevelBootOverlay,
body.force-booted #lifeLevelBootOverlay,
html.booted #loader,
body.booted #loader,
body.force-booted #loader,
html.booted .loader,
body.booted .loader,
body.force-booted .loader,
html.booted .boot-loader,
body.booted .boot-loader,
body.force-booted .boot-loader,
html.booted .splash,
body.booted .splash,
body.force-booted .splash,
html.booted .splash-screen,
body.booted .splash-screen,
body.force-booted .splash-screen,
html.booted .loading-screen,
body.booted .loading-screen,
body.force-booted .loading-screen,
html.booted .loading-overlay,
body.booted .loading-overlay,
body.force-booted .loading-overlay,
html.booted .boot-screen,
body.booted .boot-screen,
body.force-booted .boot-screen,
html.booted .intro-loader,
body.booted .intro-loader,
body.force-booted .intro-loader,
html.booted [data-loader],
body.booted [data-loader],
body.force-booted [data-loader] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  z-index: -1 !important;
}

body.force-booted {
  overflow: auto !important;
}


/* === Final v21: no blocking start loader === */
#loading,
.loading {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.landing,
.app {
  transition: opacity .25s ease;
}


/* === Final v22: absolute no-loader package === */
#loading,
.loading,
.loader-card,
.loader-logo,
.loader-bar,
.loading-screen,
.boot-loader,
.splash,
.splash-screen {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}


/* === v23: cache-proof no loader === */
#loading,.loading,.loader-card,.loader-logo,.loader-bar,.loading-screen,.boot-loader,.splash,.splash-screen {
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  z-index:-9999!important;
}


/* === Final v24: Product upgrade polish === */

.v24-dashboard-upgrade,
.v24-profile-upgrade {
  margin-bottom: 18px;
  border-color: color-mix(in srgb, var(--accent-1) 24%, var(--line));
}

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

.v24-coach-grid div,
.v24-mini-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}

.v24-coach-grid strong,
.v24-coach-grid span,
.v24-mini-panel strong,
.v24-mini-panel span {
  display: block;
}

.v24-coach-grid strong,
.v24-mini-panel strong {
  font-size: 18px;
  margin-top: 4px;
}

.v24-coach-grid span,
.v24-mini-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.v24-history-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.v24-history-card div {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.v24-history-card strong,
.v24-history-card span {
  display: block;
}

.v24-history-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.v24-difficulty {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  color: var(--accent-1);
  border: 1px solid color-mix(in srgb, var(--accent-1) 36%, var(--line));
  background: color-mix(in srgb, var(--accent-1) 10%, transparent);
}

.skill-node.done {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 60%, transparent), 0 0 28px color-mix(in srgb, var(--green) 26%, transparent);
}

.skill-node.locked {
  filter: grayscale(.35) brightness(.75);
}

.skill-lines line {
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent-1) 48%, transparent));
}

.v24-admin-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.v24-admin-note {
  width: 100%;
  min-height: 90px;
  margin: 8px 0 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px;
  resize: vertical;
}

.v24-note-label,
.v24-section-mini-title {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin: 10px 0 8px;
}

.v24-friend-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .v24-coach-grid,
  .v24-profile-grid {
    grid-template-columns: 1fr;
  }
}


/* === Final v25: Friend requests + admin code editor === */

.v25-friend-requests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.v25-request-column {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 12px;
}

.v25-request-column h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.v25-request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  margin-top: 8px;
}

.v25-request-card strong,
.v25-request-card span {
  display: block;
}

.v25-request-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.v25-request-card > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v25-code-editor {
  grid-template-columns: 1fr 160px auto !important;
}

@media (max-width: 820px) {
  .v25-friend-requests,
  .v25-request-card,
  .v25-code-editor {
    grid-template-columns: 1fr !important;
  }
}


/* === Final v26: Friend request animation === */

.friend-request-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 4200;
  pointer-events: none;
  overflow: hidden;
}

.friend-request-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: requestBurstFade 1.7s ease forwards;
}

.request-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -110px;
  top: -110px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent-1) 72%, white);
  box-shadow:
    0 0 60px color-mix(in srgb, var(--accent-1) 48%, transparent),
    inset 0 0 32px color-mix(in srgb, var(--accent-2) 18%, transparent);
  animation: requestRingPop 1.45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.request-card-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, calc(100vw - 42px));
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent-1) 38%, var(--line));
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent-1) 24%, transparent), transparent 42%),
    rgba(12, 16, 32, .96);
  box-shadow:
    0 26px 80px rgba(0,0,0,.42),
    0 0 46px color-mix(in srgb, var(--accent-1) 22%, transparent);
  transform: translate(-50%, -50%) scale(.82);
  animation: requestCardPop 1.55s cubic-bezier(.16, 1, .3, 1) forwards;
}

.request-icon-fx {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #071018;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent-1) 42%, transparent);
}

.request-card-fx strong,
.request-card-fx span {
  display: block;
}

.request-card-fx strong {
  font-size: 16px;
}

.request-card-fx span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.friend-request-particle {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4201;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071018;
  font-size: 11px;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--accent-1), var(--green));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-1) 40%, transparent);
  transform: translate(-50%, -50%);
  animation: friendParticleFly 1.25s cubic-bezier(.16, 1, .3, 1) forwards;
}

.request-pulse {
  animation: requestPulse 1.15s ease-in-out 2;
}

.incoming-request-glow {
  animation: incomingRequestGlow 1.6s ease both;
}

.side-nav button.incoming-request-nav {
  position: relative;
  border-color: color-mix(in srgb, var(--pink) 55%, var(--line)) !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--pink) 25%, transparent);
}

.side-nav button.incoming-request-nav::after {
  content: attr(data-requests);
  position: absolute;
  right: 10px;
  top: 8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 0 22px color-mix(in srgb, var(--pink) 42%, transparent);
  animation: requestBadgeBounce 1.1s ease infinite;
}

@keyframes requestRingPop {
  0% { opacity: 0; transform: scale(.25); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.75); }
}

@keyframes requestCardPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.76) translateY(18px); filter: blur(8px); }
  18% { opacity: 1; filter: blur(0); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96) translateY(-18px); }
}

@keyframes friendParticleFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.05) rotate(var(--r)); }
}

@keyframes requestPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 22px color-mix(in srgb, var(--accent-1) 14%, transparent); }
  50% { transform: scale(1.08); box-shadow: 0 0 38px color-mix(in srgb, var(--accent-1) 48%, transparent); }
}

@keyframes incomingRequestGlow {
  0% { box-shadow: 0 0 0 color-mix(in srgb, var(--pink) 0%, transparent); }
  35% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 55%, transparent), 0 0 44px color-mix(in srgb, var(--pink) 32%, transparent); }
  100% { box-shadow: 0 0 0 color-mix(in srgb, var(--pink) 0%, transparent); }
}

@keyframes requestBadgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.08); }
}

@keyframes requestBurstFade {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

body.light .request-card-fx {
  background: #fff;
}


/* === Final v27: click feedback fixes === */
.request-send-btn {
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}

.request-send-btn:active {
  transform: scale(.96);
}

.request-btn-loading {
  filter: saturate(1.3) brightness(1.08);
  animation: requestButtonPulse .75s ease-in-out infinite;
}

@keyframes requestButtonPulse {
  0%, 100% { box-shadow: 0 0 20px color-mix(in srgb, var(--accent-1) 24%, transparent); }
  50% { box-shadow: 0 0 42px color-mix(in srgb, var(--accent-1) 55%, transparent); }
}

.learning-modal.show {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* === Final v28: stronger request FX + modal hard fix === */
.friend-xp-orb {
  position: fixed;
  z-index: 4305;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071018;
  font-size: 11px;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--accent-1), var(--green));
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent-1) 60%, transparent);
  pointer-events: none;
}

.friend-screen-flash {
  position: fixed;
  inset: 0;
  z-index: 4300;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent-1) 22%, transparent), transparent 36%),
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 28%);
  animation: friendScreenFlash .72s ease forwards;
}

@keyframes friendScreenFlash {
  0% { opacity: 0; filter: blur(10px); }
  25% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(18px); }
}

.request-btn-sent {
  background: linear-gradient(135deg, var(--green), var(--accent-1)) !important;
}

.learning-modal.show {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 3600 !important;
}

.learning-modal.show .learning-card {
  animation: modalPop .24s cubic-bezier(.16,1,.3,1) both;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalPop {
  from { transform: translateY(18px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}


/* === Final v29: Friends tabs + private codes === */
.friend-sub-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.friend-sub-tabs button {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.055);
  transition: .22s var(--ease);
}

.friend-sub-tabs button span,
.friend-sub-tabs button small {
  display: block;
}

.friend-sub-tabs button span {
  font-size: 16px;
  font-weight: 1000;
}

.friend-sub-tabs button small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.friend-sub-tabs button.active {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent-1) 24%, transparent), transparent 42%),
    rgba(255,255,255,.09);
  border-color: color-mix(in srgb, var(--accent-1) 48%, var(--line));
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent-1) 18%, transparent);
  transform: translateY(-1px);
}

#friendsTabPanel[hidden],
#accountsTabPanel[hidden] {
  display: none !important;
}

#accountsTabPanel .friend-list-row span {
  color: var(--muted);
}

.request-send-btn {
  min-width: 145px;
}

@media (max-width: 820px) {
  .friend-sub-tabs {
    grid-template-columns: 1fr;
  }
}


/* === Final v30: hard click feedback === */
#friendSearchBtn {
  position: relative;
}

#friendSearchBtn:active,
.request-send-btn:active,
.skill-node:active {
  transform: scale(.96) !important;
  filter: brightness(1.15) saturate(1.25);
}

.skill-node {
  cursor: pointer;
}

.skill-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-1) 36%, transparent);
  transition: opacity .18s ease;
}

.skill-node:hover::after {
  opacity: 1;
}


/* === Final v31: friend code diagnostics === */
.friend-code-problem,
.friend-result .empty strong {
  color: var(--pink);
}

.friend-result .empty small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-code-warning {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--line)) !important;
  box-shadow: 0 0 28px color-mix(in srgb, var(--pink) 20%, transparent);
}


/* === Final v33: Friendship unlocked animation === */
.friendship-unlock-fx {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 26%),
    radial-gradient(circle at 48% 50%, rgba(255, 95, 200, .16), transparent 34%),
    rgba(2, 6, 18, .36);
  backdrop-filter: blur(8px);
  animation: friendshipFadeIn .26s ease both;
}

.friendship-unlock-fx.hide {
  animation: friendshipFadeOut .42s ease both;
}

.friendship-unlock-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border-radius: 34px;
  text-align: center;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent-1) 55%, var(--line));
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent-1) 30%, transparent), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(255, 95, 200, .28), transparent 38%),
    linear-gradient(135deg, rgba(20, 28, 54, .96), rgba(14, 16, 35, .94));
  box-shadow:
    0 0 65px color-mix(in srgb, var(--accent-1) 38%, transparent),
    0 30px 95px rgba(0,0,0,.48);
  transform-origin: center;
  animation: friendshipCardPop 2.45s cubic-bezier(.18, 1.2, .22, 1) both;
}

.friendship-unlock-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from 140deg, var(--accent-1), #ff5fc8, #ffdd2d, #72ff8f, var(--accent-1));
  z-index: -1;
  filter: blur(16px);
  opacity: .45;
  animation: friendshipSpin 2.1s linear infinite;
}

.friendship-unlock-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.friendship-avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #041018;
  font-weight: 1000;
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent-1) 35%, transparent);
}

.friendship-avatar.left {
  animation: friendshipLeftIn .78s cubic-bezier(.2,1.3,.2,1) both;
}

.friendship-avatar.right {
  animation: friendshipRightIn .78s cubic-bezier(.2,1.3,.2,1) both;
}

.friendship-vs-heart {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 1000;
  background: radial-gradient(circle, #ffdd2d, #ff5fc8);
  color: #111;
  box-shadow: 0 0 35px rgba(255,95,200,.45);
  animation: friendshipHeartBeat .9s ease-in-out infinite;
}

.friendship-unlock-title {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.02;
  font-weight: 1000;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.friendship-unlock-sub {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.friendship-unlock-flame {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 221, 45, .14);
  border: 1px solid rgba(255, 221, 45, .28);
  color: #ffdd2d;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(255, 221, 45, .12);
}

.friendship-particle {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 1000;
  color: var(--accent-1);
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent-1) 70%, transparent);
  animation: friendshipParticle 1.8s cubic-bezier(.14,.86,.28,1) var(--d) both;
}

@keyframes friendshipFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes friendshipFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes friendshipCardPop {
  0% { opacity: 0; transform: translateY(26px) scale(.78) rotate(-2deg); }
  16% { opacity: 1; transform: translateY(0) scale(1.04) rotate(1deg); }
  28% { transform: scale(.98) rotate(0deg); }
  42%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(.94); }
}

@keyframes friendshipLeftIn {
  from { transform: translateX(-150px) rotate(-18deg) scale(.75); opacity: 0; }
  to { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
}

@keyframes friendshipRightIn {
  from { transform: translateX(150px) rotate(18deg) scale(.75); opacity: 0; }
  to { transform: translateX(0) rotate(0) scale(1); opacity: 1; }
}

@keyframes friendshipHeartBeat {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16); }
}

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

@keyframes friendshipParticle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.25) rotate(var(--r)); }
}

@media (max-width: 620px) {
  .friendship-unlock-card {
    padding: 22px 16px 20px;
    border-radius: 28px;
  }

  .friendship-avatar {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 18px;
  }

  .friendship-vs-heart {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}


/* === Final v34: Admin cloud + code editor fix === */
.admin-code-editor-box {
  border-color: color-mix(in srgb, var(--accent-1) 35%, var(--line)) !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent-1) 15%, transparent), transparent 35%),
    rgba(255,255,255,.045) !important;
}

.admin-helper-text {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-code-editor input {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 1000;
}

.admin-code-editor .btn.primary {
  min-width: 140px;
}


/* === Final v35: Locked account page === */
body.is-locked-account .sidebar,
body.is-locked-account .app-header {
  filter: blur(2px) brightness(.55);
  pointer-events: none;
}

.locked-account-view {
  min-height: calc(100vh - 80px);
}

.locked-page-wrap {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.locked-card {
  width: min(760px, 100%);
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  border: 1px solid color-mix(in srgb, #ff5f7e 48%, var(--line));
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 95, 126, .30), transparent 38%),
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--accent-1) 18%, transparent), transparent 30%),
    linear-gradient(135deg, rgba(27, 20, 39, .96), rgba(10, 14, 30, .96));
  box-shadow:
    0 0 70px rgba(255, 95, 126, .16),
    0 30px 110px rgba(0,0,0,.48);
}

.locked-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(115deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-120%);
  animation: lockedSweep 4s ease-in-out infinite;
  pointer-events: none;
}

.locked-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: radial-gradient(circle, #ffdd2d, #ff5f7e);
  box-shadow: 0 0 46px rgba(255,95,126,.35);
}

.locked-kicker {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffb8c4;
  background: rgba(255,95,126,.10);
  border: 1px solid rgba(255,95,126,.26);
  font-weight: 1000;
  margin-bottom: 12px;
}

.locked-card h1 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: .95;
  margin: 0 0 12px;
  letter-spacing: -.06em;
}

.locked-lead {
  max-width: 620px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.locked-reasons {
  text-align: left;
  margin: 20px auto;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}

.locked-reasons h3 {
  margin: 0 0 10px;
}

.locked-reasons ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.locked-info-box {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--accent-1) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-1) 26%, var(--line));
  text-align: left;
}

.locked-info-box span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.locked-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.locked-small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

@keyframes lockedSweep {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

@media (max-width: 720px) {
  body.is-locked-account .main {
    padding: 10px !important;
  }
  .locked-page-wrap {
    padding: 14px;
    min-height: calc(100vh - 80px);
  }
  .locked-card {
    border-radius: 28px;
  }
  .locked-actions .btn {
    width: 100%;
  }
}


/* === Final v36: Locked admin cards === */
.admin-user-row.locked-user-row {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 88, 122, .55) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 88, 122, .24), transparent 34%),
    linear-gradient(135deg, rgba(62, 20, 35, .92), rgba(26, 21, 36, .92)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 88, 122, .16),
    0 0 34px rgba(255, 88, 122, .16) !important;
}

.admin-user-row.locked-user-row::before {
  content: "GESPERRT";
  position: absolute;
  right: 16px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 88, 122, .17);
  border: 1px solid rgba(255, 88, 122, .34);
  color: #ffb8c6;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.locked-avatar {
  background: linear-gradient(135deg, #ff5f7e, #ffdd2d) !important;
  box-shadow: 0 0 28px rgba(255, 88, 122, .32) !important;
}

.locked-inline-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffb8c6;
  background: rgba(255, 88, 122, .14);
  border: 1px solid rgba(255, 88, 122, .28);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .05em;
}

.tag.danger {
  color: #ffb8c6 !important;
  background: rgba(255, 88, 122, .13) !important;
  border-color: rgba(255, 88, 122, .34) !important;
}

.admin-locked-warning {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 88, 122, .25), transparent 40%),
    rgba(255, 88, 122, .08);
  border: 1px solid rgba(255, 88, 122, .36);
  box-shadow: 0 0 32px rgba(255, 88, 122, .12);
}

.admin-locked-warning strong {
  color: #ffb8c6;
  font-weight: 1000;
}

.admin-locked-warning span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.locked-detail-head {
  border-color: rgba(255, 88, 122, .32) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 88, 122, .18), transparent 42%),
    rgba(255,255,255,.055) !important;
}

.locked-detail-grid > div {
  border-color: rgba(255, 88, 122, .22) !important;
}


/* === Final v37: Snap-like friends menu, 24h challenges, flames === */
.friend-social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.friend-social-header h3 {
  margin: 0;
}

.friend-social-header span {
  color: var(--muted);
  font-weight: 800;
}

.friend-social-header.small {
  margin-top: 18px;
}

.snap-friend-list {
  display: grid;
  gap: 10px;
}

.snap-friend-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent-1) 12%, transparent), transparent 38%),
    rgba(255,255,255,.052);
  transition: .2s var(--ease);
}

.snap-friend-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-1) 38%, var(--line));
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-1) 14%, transparent);
}

.snap-friend-main {
  min-width: 0;
}

.snap-friend-main strong,
.snap-friend-main span {
  display: block;
}

.snap-friend-main span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.snap-friend-main small {
  margin-left: 6px;
}

.btn.mini {
  min-width: 42px;
  padding-left: 0;
  padding-right: 0;
}

.friend-flame-badge {
  margin-right: 5px;
}

.friend-social-inbox-wrap {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.friend-message-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, #ffdd2d 20%, var(--line));
  background:
    radial-gradient(circle at 0% 0%, rgba(255,221,45,.14), transparent 38%),
    rgba(255,255,255,.045);
  margin-bottom: 10px;
}

.friend-message-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.friend-message-head strong,
.friend-message-head span {
  display: block;
}

.friend-message-head span {
  color: var(--muted);
  font-weight: 800;
}

.friend-message-card p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.friend-photo-preview {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-align: left;
  font-weight: 1000;
}

.friend-photo-preview img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.friend-social-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 18, .58);
  backdrop-filter: blur(12px);
  animation: friendModalIn .18s ease both;
}

.friend-social-modal.hide {
  animation: friendModalOut .2s ease both;
}

.friend-social-modal-card {
  width: min(520px, 100%);
  border-radius: 34px;
  padding: 26px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent-1) 44%, var(--line));
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent-1) 26%, transparent), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(255,95,200,.20), transparent 36%),
    linear-gradient(135deg, rgba(24, 31, 58, .96), rgba(14, 16, 35, .96));
  box-shadow: 0 35px 110px rgba(0,0,0,.55), 0 0 60px color-mix(in srgb, var(--accent-1) 20%, transparent);
}

.friend-social-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 38px color-mix(in srgb, var(--accent-1) 28%, transparent);
}

.friend-social-modal-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -.04em;
}

.friend-social-modal-card h3 {
  margin: 12px 0 8px;
}

.friend-social-modal-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.friend-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.friend-challenge-text {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 14px;
  font-weight: 800;
  outline: none;
}

.friend-file-picker {
  display: block;
  margin-top: 12px;
}

.friend-file-picker input {
  display: none;
}

.friend-file-picker span {
  display: block;
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px dashed color-mix(in srgb, var(--accent-1) 42%, var(--line));
  font-weight: 1000;
  cursor: pointer;
}

.friend-modal-photo {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  margin: 12px 0 18px;
}

@keyframes friendModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes friendModalOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 720px) {
  .snap-friend-row {
    grid-template-columns: auto 1fr;
  }
  .snap-friend-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .friend-message-head {
    grid-template-columns: auto 1fr;
  }
  .friend-message-head .tag {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

/* === Final v38: Social Firebase key fix marker === */
.friend-social-inbox-wrap::after{content:'Firebase-safe social keys';display:none;}


/* =========================================================
   LifeLevel v52 — Stable Presentation Build
   Chat-only Firebase Database + fake image demo cards
   ========================================================= */

:root {
  --ll-bg-0: #080b14;
  --ll-bg-1: #101729;
  --ll-card: rgba(24, 30, 51, .76);
  --ll-line: rgba(255,255,255,.12);
  --ll-text: #f7fbff;
  --ll-muted: #aab4cf;
  --ll-cyan: #36f4e9;
  --ll-lime: #62ff9d;
  --ll-yellow: #ffdf3d;
  --ll-pink: #ff78bc;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(54,244,233,.18), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(255,120,188,.13), transparent 30%),
    radial-gradient(circle at 55% 92%, rgba(98,255,157,.10), transparent 34%),
    var(--ll-bg-0) !important;
}

.card,
.panel,
.friend-card,
.admin-card,
.stat-card,
[class*="card"] {
  backdrop-filter: blur(18px);
}

.btn.primary,
button.primary,
.primary {
  background: linear-gradient(135deg, var(--ll-cyan), var(--ll-lime)) !important;
  color: #061018 !important;
  border: 0 !important;
  box-shadow: 0 18px 46px rgba(54,244,233,.20) !important;
  font-weight: 1000 !important;
}

.snap-friend-row.v52-chat-enabled {
  cursor: pointer;
  border-radius: 26px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
    radial-gradient(circle at 0% 0%, rgba(54,244,233,.18), transparent 34%) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.18) !important;
}

.v52-chat-card {
  width: min(720px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(54,244,233,.17), transparent 30%),
    radial-gradient(circle at 95% 10%, rgba(255,120,188,.13), transparent 28%),
    linear-gradient(155deg, rgba(12,18,34,.98), rgba(13,15,28,.98));
  box-shadow: 0 35px 110px rgba(0,0,0,.56);
}

.v52-chat-head {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

.v52-back {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 32px;
  font-weight: 900;
}

.v52-chat-title strong,
.v52-chat-title span {
  display: block;
}

.v52-chat-title strong {
  font-size: 17px;
}

.v52-chat-title span {
  color: var(--ll-muted);
  font-size: 12px;
  font-weight: 800;
}

.v52-flame .tag {
  white-space: nowrap;
}

.v52-task-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,223,61,.13), rgba(54,244,233,.06));
}

.v52-task-strip span {
  color: var(--ll-yellow);
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v52-chat-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  -webkit-overflow-scrolling: touch;
}

.v52-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.07);
}

.v52-bubble.mine {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, rgba(54,244,233,.23), rgba(98,255,157,.12));
}

.v52-bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
}

.v52-bubble p {
  margin: 0;
  font-weight: 850;
  line-height: 1.35;
}

.v52-bubble small {
  display: block;
  color: var(--ll-yellow);
  font-weight: 1000;
  margin-bottom: 5px;
}

.v52-bubble em {
  display: block;
  margin-top: 7px;
  color: var(--ll-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.v52-fake-img {
  margin-top: 8px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,223,61,.20), transparent 36%),
    rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 190px;
}

.v52-fake-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--ll-yellow), var(--ll-lime));
  margin-bottom: 9px;
}

.v52-fake-img strong,
.v52-fake-img span {
  display: block;
}

.v52-fake-img span {
  color: var(--ll-muted);
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.35;
}

.v52-chat-input {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(9,13,25,.96);
  backdrop-filter: blur(18px);
}

.v52-chat-input input {
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: white;
  padding: 0 14px;
  font-weight: 850;
  outline: none;
}

.v52-img-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(54,244,233,.25);
  background: rgba(255,255,255,.08);
  font-size: 20px;
}

.v52-img-btn.locked {
  filter: grayscale(1);
  opacity: .48;
}

/* Install pill/sheet */
.ll-install-pill {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100000;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--ll-yellow), var(--ll-lime));
  color: #071018;
  font-weight: 1000;
  box-shadow: 0 20px 70px rgba(98,255,157,.28);
}

.ll-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(18px);
}

.ll-install-card {
  width: min(440px, calc(100vw - 28px));
  border-radius: 32px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(20,25,43,.98), rgba(13,16,30,.98));
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  position: relative;
}

.ll-install-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 24px;
}

.ll-install-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ll-cyan), var(--ll-lime));
  color: #061018;
  font-weight: 1000;
  font-size: 23px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  .topbar,
  .app-header,
  header {
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px !important;
    border-radius: 0 0 28px 28px !important;
  }

  .snap-friend-row {
    grid-template-columns: auto 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .snap-friend-row .btn.primary {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 50px !important;
  }

  .v52-chat-card {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
  }

  .v52-chat-head {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px 10px !important;
  }

  .v52-chat-body {
    min-height: 0 !important;
    padding: 14px 12px 18px !important;
  }

  .v52-bubble {
    max-width: 88% !important;
  }

  .v52-chat-input {
    position: sticky !important;
    bottom: 0 !important;
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .ll-install-pill {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    font-size: 13px;
  }

  [id^="versionCheck"] {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 122px) !important;
    font-size: 10px !important;
    opacity: .82;
  }
}

@media (display-mode: standalone) {
  .ll-install-pill {
    display: none !important;
  }
}


/* =========================================================
   LifeLevel v54 — Neocities Perfect Demo
   Stable + clean mobile + presentation ready
   ========================================================= */

:root {
  --ll-bg-0: #070b14;
  --ll-bg-1: #101729;
  --ll-card: rgba(21, 27, 48, .78);
  --ll-line: rgba(255,255,255,.12);
  --ll-text: #f7fbff;
  --ll-muted: #aeb8d2;
  --ll-cyan: #36f4e9;
  --ll-lime: #62ff9d;
  --ll-yellow: #ffdf3d;
  --ll-pink: #ff78bc;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(54,244,233,.16), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(255,120,188,.10), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(98,255,157,.08), transparent 30%),
    var(--ll-bg-0) !important;
  overflow-x: hidden;
}

/* Version label should not dominate the demo */
[id^="versionCheck"] {
  transform: scale(.78);
  transform-origin: bottom right;
  opacity: .48 !important;
  pointer-events: none;
}

/* cleaner buttons/cards */
.btn.primary,
button.primary,
.primary {
  background: linear-gradient(135deg, var(--ll-cyan), var(--ll-lime)) !important;
  color: #061018 !important;
  font-weight: 1000 !important;
  border: 0 !important;
  box-shadow: 0 16px 42px rgba(54,244,233,.20) !important;
}

.card,
.panel,
.friend-card,
.admin-card,
.stat-card,
[class*="card"] {
  backdrop-filter: blur(18px);
}

/* Install pill */
.ll-install-pill {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100000;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--ll-yellow), var(--ll-lime));
  color: #071018;
  font-weight: 1000;
  box-shadow: 0 18px 60px rgba(98,255,157,.25);
}

.ll-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(18px);
}

.ll-install-card {
  width: min(440px, calc(100vw - 28px));
  border-radius: 30px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(20,25,43,.98), rgba(13,16,30,.98));
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  position: relative;
  box-shadow: 0 35px 100px rgba(0,0,0,.48);
}

.ll-install-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 22px;
}

.ll-install-icon {
  width: 72px;
  height: 72px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ll-cyan), var(--ll-lime));
  color: #061018;
  font-weight: 1000;
  font-size: 22px;
  margin-bottom: 14px;
}

/* Desktop chat still nice */
.v52-chat-card {
  border-radius: 32px;
}

/* Mobile overhaul */
@media (max-width: 760px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    font-size: 15px;
  }

  .app,
  .main,
  main,
  .content,
  .view {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .main,
  main,
  .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Login: no giant overwhelming first screen */
  .auth-screen,
  .login-screen,
  #authScreen,
  #welcomeScreen {
    min-height: 100dvh !important;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 18px !important;
    justify-content: flex-start !important;
    overflow: hidden auto !important;
  }

  .auth-screen h1,
  .login-screen h1,
  #authScreen h1,
  #welcomeScreen h1,
  .hero h1,
  .auth-title {
    font-size: clamp(40px, 14vw, 64px) !important;
    line-height: .95 !important;
    letter-spacing: -.07em !important;
    margin: 14px 0 12px !important;
    text-align: center !important;
  }

  .auth-screen p,
  .login-screen p,
  #authScreen p,
  #welcomeScreen p,
  .hero p,
  .auth-subtitle {
    font-size: 16px !important;
    line-height: 1.28 !important;
    max-width: 94vw !important;
    margin: 0 auto 18px !important;
    text-align: center !important;
  }

  .auth-card,
  .login-card,
  #authCard,
  .register-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px !important;
    padding: 16px !important;
    margin: 0 auto !important;
  }

  .auth-tabs,
  .login-tabs,
  .tab-switch {
    padding: 6px !important;
    margin-bottom: 16px !important;
  }

  #loginTab,
  #registerTab,
  .auth-tabs button,
  .login-tabs button {
    min-height: 48px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
  }

  .auth-card input,
  .login-card input,
  #authCard input {
    height: 52px !important;
    border-radius: 18px !important;
    font-size: 16px !important;
  }

  .auth-card .btn.primary,
  .login-card .btn.primary,
  #authCard .btn.primary {
    min-height: 54px !important;
    margin-top: 14px !important;
  }

  .firebase-note,
  .auth-card .info-box,
  .login-card .info-box,
  #authCard .info-box {
    padding: 12px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
  }

  /* App header: compact and not stuffed */
  .topbar,
  .app-header,
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 12px !important;
    min-height: unset !important;
    border-radius: 0 0 24px 24px !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    background:
      linear-gradient(145deg, rgba(13,20,38,.96), rgba(18,18,38,.94)),
      radial-gradient(circle at 0% 0%, rgba(54,244,233,.13), transparent 30%) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.30) !important;
  }

  .mobile-menu-btn,
  .menu-toggle,
  .hamburger {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    margin: 0 !important;
    background: rgba(255,255,255,.90) !important;
    color: #111827 !important;
  }

  .topbar h1,
  .app-header h1,
  header h1 {
    font-size: 30px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar p,
  .app-header p,
  header p {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 2px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header-actions,
  .top-actions,
  .app-header .actions,
  .topbar-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .header-actions > *,
  .top-actions > *,
  .app-header .actions > *,
  .topbar-actions > *,
  .code-pill,
  .xp-pill,
  .info-pill {
    min-width: 0 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .level-pill,
  .top-level-card,
  .xp-level-card,
  .level-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: unset !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    margin-top: 2px !important;
  }

  .level-pill strong,
  .top-level-card strong,
  .level-card strong {
    font-size: 15px !important;
  }

  .level-pill span,
  .top-level-card span,
  .level-card span {
    font-size: 14px !important;
  }

  /* Cards more breathable */
  .dashboard-grid,
  .stats-grid,
  .friends-grid,
  .friend-page-grid,
  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .card,
  .panel,
  .friend-card,
  .admin-card,
  .stat-card,
  [class*="card"] {
    border-radius: 22px !important;
    padding: 17px !important;
    margin-bottom: 12px !important;
  }

  .card h2,
  .panel h2,
  .stat-card h2,
  .card h3 {
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  .smart-coach,
  .coach-card {
    margin-top: 14px !important;
  }

  .smart-coach .coach-chip,
  .coach-card .coach-chip,
  .ai-lite {
    width: 66px !important;
    height: 66px !important;
    font-size: 17px !important;
  }

  /* Friends rows */
  .snap-friend-row {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .snap-friend-row .btn.primary {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 48px !important;
  }

  /* Chat fixed to phone width */
  .friend-social-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    overflow: hidden !important;
  }

  .v52-chat-card {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  }

  .v52-chat-head {
    grid-template-columns: 42px 50px minmax(0, 1fr) auto !important;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 10px !important;
    gap: 8px !important;
  }

  .v52-back {
    width: 42px !important;
    height: 42px !important;
    font-size: 30px !important;
  }

  .v52-chat-head .friend-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }

  .v52-chat-title {
    min-width: 0 !important;
  }

  .v52-chat-title strong {
    font-size: 17px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v52-chat-title span {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v52-flame {
    display: none !important;
  }

  .v54-clear-chat {
    display: none !important;
  }

  .v52-task-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .v52-task-strip span {
    font-size: 16px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .v52-task-strip .btn {
    max-width: 112px !important;
    min-width: 88px !important;
    height: 42px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }

  .v52-chat-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 12px 10px 16px !important;
    gap: 8px !important;
  }

  .v52-bubble {
    max-width: 78% !important;
    padding: 9px 11px !important;
    border-radius: 17px !important;
  }

  .v52-bubble p {
    font-size: 15px !important;
  }

  .v52-bubble small {
    font-size: 12px !important;
  }

  .v52-bubble em {
    font-size: 10px !important;
  }

  .v52-chat-input {
    grid-template-columns: 44px minmax(0, 1fr) 82px !important;
    gap: 8px !important;
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .v52-img-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 19px !important;
  }

  .v52-chat-input input {
    height: 44px !important;
    font-size: 15px !important;
    min-width: 0 !important;
  }

  .v52-chat-input .btn.primary {
    width: 82px !important;
    min-width: 82px !important;
    padding: 0 !important;
    height: 44px !important;
    font-size: 13px !important;
  }

  [id^="versionCheck"] {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px) !important;
    font-size: 9px !important;
    padding: 7px 9px !important;
    opacity: .38 !important;
  }

  .ll-install-pill {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
    font-size: 12px;
    padding: 10px 13px;
  }
}

@media (max-width: 390px) {
  .topbar h1,
  .app-header h1,
  header h1 {
    font-size: 27px !important;
  }

  .header-actions,
  .top-actions,
  .app-header .actions,
  .topbar-actions {
    gap: 6px !important;
  }

  .v52-chat-input {
    grid-template-columns: 42px minmax(0, 1fr) 76px !important;
  }

  .v52-chat-input .btn.primary {
    width: 76px !important;
    min-width: 76px !important;
  }
}

@media (display-mode: standalone) {
  .ll-install-pill {
    display: none !important;
  }
}


/* =========================================================
   LifeLevel v55 — Neocities Chat Only
   Demo-Bilder/Fake-Bilder entfernt, nur Textchat
   ========================================================= */
.v52-img-btn,
.v52-fake-img,
.v52-fake-icon {
  display: none !important;
}
.v52-chat-input {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
.v52-task-strip {
  grid-template-columns: minmax(0, 1fr) !important;
}
.v52-task-strip .btn {
  display: none !important;
}
@media (max-width: 760px) {
  .v52-chat-input {
    grid-template-columns: minmax(0, 1fr) 82px !important;
  }
  .v52-chat-input .btn.primary {
    width: 82px !important;
    min-width: 82px !important;
  }
}


/* =========================================================
   LifeLevel v56 — App Icon + Better Mobile HTML
   Chat only, cleaner mobile header/dashboard/chat
   ========================================================= */

:root {
  --v56-bg: #050a15;
  --v56-card: rgba(16, 24, 47, .78);
  --v56-card2: rgba(20, 28, 54, .92);
  --v56-line: rgba(139, 164, 255, .22);
  --v56-cyan: #28f4ea;
  --v56-green: #a8ff4f;
  --v56-purple: #9b6cff;
  --v56-pink: #ff4fd8;
  --v56-text: #f7fbff;
  --v56-muted: #aeb8d6;
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(40,244,234,.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255,79,216,.13), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(155,108,255,.12), transparent 34%),
    var(--v56-bg) !important;
}

/* Logo feel on existing avatars/cards */
.logo,
.brand-logo,
.app-logo {
  border-radius: 22px !important;
  background-image: url("icon-192.png") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Make version badge invisible in presentation after a moment */
[id^="versionCheck"] {
  opacity: .30 !important;
  transform: scale(.70);
  transform-origin: bottom right;
  transition: opacity .35s ease, transform .35s ease;
}

/* General glow polish */
.card,
.panel,
.friend-card,
.admin-card,
.stat-card,
[class*="card"] {
  background:
    linear-gradient(145deg, rgba(17, 25, 49, .82), rgba(10, 15, 31, .78)) !important;
  border: 1px solid rgba(139,164,255,.18) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.28) !important;
}

.btn.primary,
button.primary,
.primary {
  background: linear-gradient(135deg, var(--v56-cyan), var(--v56-green), var(--v56-purple)) !important;
  color: #061018 !important;
  font-weight: 1000 !important;
  border: 0 !important;
  box-shadow: 0 16px 46px rgba(40,244,234,.22) !important;
}

/* Mobile */
@media (max-width: 760px) {
  html, body {
    width: 100%;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    padding: 0 !important;
  }

  .app,
  .main,
  main,
  .content,
  .view {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .main,
  main,
  .content {
    padding: 12px !important;
  }

  /* Login: more app-like, less huge */
  .auth-screen,
  .login-screen,
  #authScreen,
  #welcomeScreen {
    min-height: 100dvh !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 18px !important;
    justify-content: flex-start !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .auth-screen h1,
  .login-screen h1,
  #authScreen h1,
  #welcomeScreen h1,
  .hero h1,
  .auth-title {
    font-size: clamp(38px, 13vw, 60px) !important;
    line-height: .96 !important;
    letter-spacing: -.065em !important;
    margin: 12px 0 10px !important;
    text-align: center !important;
  }

  .auth-screen p,
  .login-screen p,
  #authScreen p,
  #welcomeScreen p,
  .hero p,
  .auth-subtitle {
    font-size: 15.5px !important;
    line-height: 1.25 !important;
    max-width: 92vw !important;
    margin: 0 auto 16px !important;
    text-align: center !important;
  }

  .auth-card,
  .login-card,
  #authCard,
  .register-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px !important;
    padding: 15px !important;
    margin: 0 auto !important;
  }

  .auth-tabs,
  .login-tabs,
  .tab-switch {
    padding: 6px !important;
    margin-bottom: 14px !important;
    border-radius: 999px !important;
  }

  #loginTab,
  #registerTab,
  .auth-tabs button,
  .login-tabs button {
    min-height: 46px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
  }

  .auth-card input,
  .login-card input,
  #authCard input {
    height: 50px !important;
    border-radius: 17px !important;
    font-size: 16px !important;
  }

  .auth-card .btn.primary,
  .login-card .btn.primary,
  #authCard .btn.primary {
    min-height: 54px !important;
    margin-top: 14px !important;
    border-radius: 999px !important;
  }

  /* Header: no more squeezed level card */
  .topbar,
  .app-header,
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    min-height: unset !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 12px !important;
    border-radius: 0 0 28px 28px !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 58px !important;
    gap: 10px !important;
    align-items: center !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(40,244,234,.12), transparent 40%),
      linear-gradient(145deg, rgba(9, 15, 32, .98), rgba(14, 18, 38, .96)) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.32) !important;
  }

  .topbar::after,
  .app-header::after,
  header::after {
    content: "";
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background-image: url("icon-192.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 28px rgba(40,244,234,.22);
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-menu-btn,
  .menu-toggle,
  .hamburger {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    margin: 0 !important;
    background: rgba(255,255,255,.90) !important;
    color: #111827 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,.26) !important;
  }

  .topbar h1,
  .app-header h1,
  header h1 {
    font-size: 29px !important;
    line-height: 1.02 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar p,
  .app-header p,
  header p {
    font-size: 13px !important;
    line-height: 1.12 !important;
    margin: 2px 0 0 !important;
    color: var(--v56-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header-actions,
  .top-actions,
  .app-header .actions,
  .topbar-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .header-actions > *,
  .top-actions > *,
  .app-header .actions > *,
  .topbar-actions > *,
  .code-pill,
  .xp-pill,
  .info-pill {
    min-width: 0 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  .level-pill,
  .top-level-card,
  .xp-level-card,
  .level-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: unset !important;
    padding: 12px !important;
    border-radius: 20px !important;
    margin-top: 4px !important;
    background:
      radial-gradient(circle at 0% 50%, rgba(255,79,216,.16), transparent 32%),
      linear-gradient(145deg, rgba(20, 28, 54, .92), rgba(12, 17, 35, .88)) !important;
  }

  .level-pill::before,
  .top-level-card::before,
  .level-card::before {
    content: "Lv.";
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 1000;
    background: linear-gradient(135deg, rgba(40,244,234,.20), rgba(155,108,255,.25));
    border: 1px solid rgba(255,255,255,.14);
  }

  .level-pill strong,
  .top-level-card strong,
  .level-card strong {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }

  .level-pill span,
  .top-level-card span,
  .level-card span {
    font-size: 14px !important;
  }

  /* drawer/sidebar: fix the screenshot where drawer looks too wide and header overlaps */
  .sidebar,
  aside,
  .drawer {
    max-width: min(82vw, 310px) !important;
    width: min(82vw, 310px) !important;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px 16px !important;
    border-right: 1px solid rgba(255,79,216,.30) !important;
    box-shadow: 20px 0 80px rgba(255,79,216,.13), 18px 0 70px rgba(0,0,0,.44) !important;
  }

  .sidebar nav a,
  .sidebar button,
  .nav-item {
    min-height: 46px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
  }

  .online-pill,
  .online-count,
  [class*="online"] {
    max-width: 180px !important;
  }

  /* Cards/dashboard less overwhelming */
  .dashboard-grid,
  .stats-grid,
  .friends-grid,
  .friend-page-grid,
  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .card,
  .panel,
  .friend-card,
  .admin-card,
  .stat-card,
  [class*="card"] {
    border-radius: 24px !important;
    padding: 18px !important;
    margin-bottom: 12px !important;
  }

  .card h2,
  .panel h2,
  .stat-card h2,
  .card h3 {
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  /* Chat only layout */
  .friend-social-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    overflow: hidden !important;
  }

  .v52-chat-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(40,244,234,.12), transparent 30%),
      radial-gradient(circle at 95% 10%, rgba(255,79,216,.10), transparent 28%),
      linear-gradient(155deg, rgba(5,10,22,.98), rgba(8,12,26,.99)) !important;
  }

  .v52-chat-head {
    grid-template-columns: 42px 50px minmax(0, 1fr) auto !important;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 10px !important;
    gap: 8px !important;
  }

  .v52-chat-head .friend-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }

  .v52-chat-title strong {
    font-size: 17px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v52-chat-title span {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v52-flame,
  .v54-clear-chat,
  .v53-clear-chat {
    display: none !important;
  }

  .v52-task-strip {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 10px 12px !important;
  }

  .v52-task-strip span {
    font-size: 16px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .v52-task-strip .btn {
    display: none !important;
  }

  .v52-chat-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 14px 10px 16px !important;
    gap: 8px !important;
  }

  .v52-bubble {
    max-width: 78% !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(139,164,255,.20) !important;
  }

  .v52-bubble.mine {
    background: linear-gradient(135deg, rgba(40,244,234,.20), rgba(168,255,79,.11), rgba(155,108,255,.13)) !important;
    box-shadow: 0 0 28px rgba(40,244,234,.10) !important;
  }

  .v52-bubble.theirs {
    background: rgba(255,255,255,.075) !important;
  }

  .v52-bubble p {
    font-size: 15px !important;
    line-height: 1.34 !important;
  }

  .v52-bubble small {
    color: var(--v56-green) !important;
    font-size: 12px !important;
  }

  .v52-chat-input {
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 8px !important;
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    background: rgba(6,11,24,.94) !important;
  }

  .v52-img-btn,
  .v52-fake-img,
  .v52-fake-icon {
    display: none !important;
  }

  .v52-chat-input input {
    height: 46px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
    min-width: 0 !important;
  }

  .v52-chat-input .btn.primary {
    width: 82px !important;
    min-width: 82px !important;
    padding: 0 !important;
    height: 46px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }

  [id^="versionCheck"] {
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 82px) !important;
    font-size: 9px !important;
    padding: 6px 8px !important;
  }

  .ll-install-pill {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px) !important;
    font-size: 12px !important;
    padding: 10px 13px !important;
  }
}

@media (max-width: 390px) {
  .topbar,
  .app-header,
  header {
    grid-template-columns: 48px minmax(0, 1fr) 54px !important;
    gap: 8px !important;
  }

  .topbar h1,
  .app-header h1,
  header h1 {
    font-size: 26px !important;
  }

  .header-actions,
  .top-actions,
  .app-header .actions,
  .topbar-actions {
    gap: 6px !important;
  }

  .v52-chat-input {
    grid-template-columns: minmax(0, 1fr) 76px !important;
  }

  .v52-chat-input .btn.primary {
    width: 76px !important;
    min-width: 76px !important;
  }
}


/* =========================
   v57 iPhone cleanup patch
   ========================= */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden !important; }

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 820px) {
  [id^="versionCheck"] { display:none !important; }

  .sidebar, aside, .drawer {
    transform: translateX(-110%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .28s ease, opacity .22s ease, visibility .22s ease !important;
    z-index: 200 !important;
  }

  .sidebar.open, aside.open, .drawer.open,
  body.menu-open .sidebar, body.menu-open aside, body.menu-open .drawer {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .main, main, .content, .page, .app {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .topbar, .app-header, header {
    position: relative !important;
    top: auto !important;
    display: block !important;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 14px !important;
    border-radius: 0 0 28px 28px !important;
    margin: 0 0 14px 0 !important;
    min-height: auto !important;
  }

  .topbar::after, .app-header::after, header::after {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    right: 16px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
    box-shadow: 0 0 34px rgba(40,244,234,.18) !important;
  }

  .mobile-menu-btn, .menu-toggle, .hamburger {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    left: 16px !important;
    z-index: 5 !important;
  }

  .topbar h1, .app-header h1, header h1 {
    margin: 70px 88px 4px 88px !important;
    font-size: 31px !important;
    line-height: 1.03 !important;
    text-align: left !important;
  }

  .topbar p, .app-header p, header p {
    margin: 0 88px 12px 88px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .header-actions, .top-actions, .app-header .actions, .topbar-actions {
    grid-column: unset !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
  }

  .header-actions > *, .top-actions > *, .app-header .actions > *, .topbar-actions > * {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
  }

  .level-pill, .top-level-card, .xp-level-card, .level-card {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 14px !important;
    margin-top: 0 !important;
    border-radius: 22px !important;
  }

  .level-pill::before, .top-level-card::before, .level-card::before {
    display: none !important;
  }

  .level-pill strong, .top-level-card strong, .level-card strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .level-pill .progress-row, .top-level-card .progress-row, .level-card .progress-row,
  .level-pill .xp-row, .top-level-card .xp-row, .level-card .xp-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .level-pill .progress, .top-level-card .progress, .level-card .progress, .progress-bar {
    width: 100% !important;
    height: 10px !important;
    border-radius: 999px !important;
  }

  .card, .panel, .friend-card, .admin-card, .stat-card, [class*="card"] {
    border-radius: 24px !important;
    margin-bottom: 14px !important;
  }

  .friend-social-modal {
    inset: 0 !important;
    padding: 0 !important;
  }

  .v52-chat-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .v52-chat-head {
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px 10px !important;
    gap: 10px !important;
  }

  .v52-chat-title strong { font-size: 19px !important; }
  .v52-chat-title span { font-size: 12px !important; }

  .v52-task-strip { padding: 12px !important; }
  .v52-chat-body { padding: 14px 12px 20px !important; }

  .v52-bubble {
    max-width: 82% !important;
    border-radius: 20px !important;
    padding: 12px 13px !important;
  }

  .v52-chat-input {
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  .v52-chat-input input {
    height: 50px !important;
    font-size: 16px !important;
  }

  .v52-chat-input .btn.primary {
    height: 50px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 430px) {
  .topbar h1, .app-header h1, header h1 {
    margin-left: 84px !important;
    margin-right: 84px !important;
    font-size: 28px !important;
  }
  .topbar p, .app-header p, header p {
    margin-left: 84px !important;
    margin-right: 84px !important;
  }
}


/* === v60 mobile header layout refresh === */
.header-app-badge {
  display: none;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 42%, var(--line));
  background: linear-gradient(145deg, rgba(8,13,30,.98), rgba(14,23,48,.94));
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 36px rgba(0,0,0,.32), 0 0 28px color-mix(in srgb, var(--accent-1) 18%, transparent);
  overflow: hidden;
}

.header-app-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

@media (max-width: 720px) {
  body.is-auth .app-shell {
    min-width: 0;
  }

  body.is-auth .content {
    padding: 14px;
  }

  body.is-auth .app-header {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    grid-template-areas:
      "menu title logo"
      "actions actions actions";
    gap: 14px;
    align-items: center;
    padding: 18px 14px 14px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, rgba(8,12,28,.96), rgba(9,15,36,.88));
  }

  body.is-auth .mobile-menu {
    display: inline-grid;
    place-items: center;
    grid-area: menu;
    width: 58px;
    height: 58px;
    min-height: 58px;
    border-radius: 20px;
    font-size: 25px;
    justify-self: start;
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border-color: color-mix(in srgb, var(--accent-3) 28%, var(--line));
    box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.22), 0 0 22px color-mix(in srgb, var(--accent-1) 14%, transparent);
  }

  body.is-auth .header-title {
    grid-area: title;
    min-width: 0;
    align-self: center;
  }

  body.is-auth .header-title h2 {
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.02;
    margin: 0;
  }

  body.is-auth .header-title p {
    margin-top: 4px;
    max-width: none;
    font-size: 15px;
    line-height: 1.35;
  }

  body.is-auth .header-app-badge {
    display: grid;
    grid-area: logo;
    justify-self: end;
  }

  body.is-auth .header-actions {
    grid-area: actions;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    align-items: stretch;
    margin-top: 2px;
  }

  body.is-auth .header-actions .user-code-pill,
  body.is-auth .header-actions .btn.icon {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.02em;
    display: grid;
    place-items: center;
    padding: 10px 10px;
  }

  body.is-auth .header-actions .user-code-pill {
    background: linear-gradient(135deg, #ff58dc, #b56cff);
    color: #140818;
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(181,108,255,.24), 0 0 24px rgba(255,79,216,.18);
  }

  body.is-auth .header-actions .btn.icon {
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    color: var(--text);
  }

  body.is-auth .header-actions .xp-header {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding: 18px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18,24,46,.86), rgba(12,16,32,.9));
    border: 1px solid color-mix(in srgb, var(--accent-3) 35%, var(--line));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 30px color-mix(in srgb, var(--accent-3) 11%, transparent);
  }

  body.is-auth .xp-header .mini-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  body.is-auth .xp-header .mini-title {
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
  }

  body.is-auth .xp-header .mini-muted {
    font-size: 16px;
    color: color-mix(in srgb, var(--text) 92%, transparent);
  }

  body.is-auth .xp-header .progress {
    height: 14px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
  }

  body.is-auth .xp-header .progress span {
    background: linear-gradient(90deg, #ff58dc, #b56cff);
    box-shadow: 0 0 16px rgba(255,79,216,.36);
  }
}

@media (max-width: 460px) {
  body.is-auth .app-header {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    padding: 16px 12px 12px;
    gap: 12px;
  }

  body.is-auth .mobile-menu,
  body.is-auth .header-app-badge {
    width: 54px;
    height: 54px;
    min-height: 54px;
    border-radius: 18px;
  }

  body.is-auth .header-title h2 {
    font-size: 25px;
  }

  body.is-auth .header-title p {
    font-size: 14px;
  }

  body.is-auth .header-actions {
    gap: 10px;
  }

  body.is-auth .header-actions .user-code-pill,
  body.is-auth .header-actions .btn.icon {
    min-height: 62px;
    border-radius: 22px;
    font-size: 16px;
  }

  body.is-auth .header-actions .xp-header {
    padding: 16px 14px;
  }

  body.is-auth .xp-header .mini-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.is-auth .xp-header .mini-title {
    font-size: 16px;
  }

  body.is-auth .xp-header .mini-muted {
    font-size: 15px;
  }
}


/* =========================================================
   LifeLevel v61 — Mobile Social Clean
   Handy-Start wie App: weniger Infos, mehr Fokus
   ========================================================= */
:root {
  --v61-bg: #070b17;
  --v61-card: rgba(16, 22, 44, .78);
  --v61-line: rgba(255,255,255,.12);
  --v61-muted: #aeb8d5;
  --v61-text: #f8fbff;
  --v61-pink: #ff4fd8;
  --v61-purple: #9d65ff;
  --v61-cyan: #35f4ef;
  --v61-green: #92ff6d;
}

@media (max-width: 820px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(53,244,239,.14), transparent 28%),
      radial-gradient(circle at 85% 8%, rgba(255,79,216,.12), transparent 32%),
      linear-gradient(180deg, #070b17 0%, #090d1a 100%) !important;
  }

  body { font-size: 15px !important; }
  body.menu-open { overflow: hidden !important; }

  .app-shell, .main, main, .content, .page, .view {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  .content {
    padding: 12px 14px calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .app-header, .topbar, header {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr) 48px !important;
    grid-template-areas: "menu title logo" !important;
    align-items: center !important;
    gap: 10px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px !important;
    margin: 0 !important;
    min-height: 76px !important;
    border-radius: 0 0 24px 24px !important;
    background: linear-gradient(180deg, rgba(7,11,23,.96), rgba(7,11,23,.82)) !important;
    backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.26) !important;
  }

  .app-header::after, .topbar::after, header::after {
    display: none !important;
    content: none !important;
  }

  .mobile-menu, .mobile-menu-btn, .menu-toggle, .hamburger {
    grid-area: menu !important;
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    font-size: 20px !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: none !important;
  }

  .header-title {
    grid-area: title !important;
    min-width: 0 !important;
    text-align: left !important;
    display: block !important;
  }

  .header-title h2, .app-header h1, .app-header h2, .topbar h1, header h1 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
    letter-spacing: -.03em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
  }

  .header-title p, .app-header p, .topbar p, header p {
    margin: 2px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    color: var(--v61-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
  }

  .header-app-badge {
    grid-area: logo !important;
    justify-self: end !important;
    display: grid !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.06) !important;
    box-shadow: 0 0 24px rgba(53,244,239,.12) !important;
  }

  .header-app-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .header-actions, .top-actions, .app-header .actions, .topbar-actions {
    display: none !important;
  }

  .sidebar, aside, .drawer {
    position: fixed !important;
    left: 10px !important;
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
    bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    width: min(84vw, 320px) !important;
    max-width: min(84vw, 320px) !important;
    transform: translateX(calc(-100% - 24px)) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .25s ease, opacity .2s ease, visibility .2s ease !important;
    z-index: 300 !important;
    border-radius: 28px !important;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(10,14,29,.96) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.50) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .sidebar.open, aside.open, .drawer.open,
  body.menu-open .sidebar, body.menu-open aside, body.menu-open .drawer {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .drawer-backdrop, .overlay, .menu-backdrop {
    backdrop-filter: blur(8px) !important;
    background: rgba(0,0,0,.55) !important;
  }

  .sidebar .brand { margin-bottom: 14px !important; }

  .side-nav {
    display: grid !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .side-nav button {
    min-height: 48px !important;
    border-radius: 18px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }

  .card, .panel, .friend-card, .admin-card, .stat-card, [class*="card"] {
    border-radius: 26px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(145deg, rgba(17,24,48,.84), rgba(11,16,33,.86)) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.24) !important;
  }

  #dashboardView, .dashboard-view, [data-view="dashboard"] {
    padding-top: 2px !important;
  }

  #dashboardView .grid, .dashboard-grid, .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .smart-coach, .coach-card, #dashboardView .card:first-child {
    min-height: 260px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 24px !important;
    border-radius: 32px !important;
    background:
      radial-gradient(circle at 85% 10%, rgba(255,79,216,.16), transparent 32%),
      radial-gradient(circle at 15% 0%, rgba(53,244,239,.13), transparent 32%),
      linear-gradient(145deg, rgba(18,25,51,.92), rgba(11,16,35,.94)) !important;
  }

  .smart-coach h2, .coach-card h2, #dashboardView .card:first-child h2 {
    font-size: 34px !important;
    line-height: 1.02 !important;
    letter-spacing: -.04em !important;
    margin-bottom: 6px !important;
  }

  .smart-coach p, .coach-card p {
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: var(--v61-muted) !important;
  }

  .ai-lite, .coach-chip, .smart-coach .coach-chip {
    width: 70px !important;
    height: 42px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  .stat-card, .xp-card, .streak-card {
    min-height: 142px !important;
  }

  .stat-card h2, .xp-card h2, .streak-card h2 {
    font-size: 20px !important;
  }

  .stat-card .big, .xp-card .big, .streak-card .big, .stat-value {
    font-size: 44px !important;
    letter-spacing: -.05em !important;
  }

  .toast, .toasts, .toast-stack, #toastContainer {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    z-index: 500 !important;
  }

  .toast {
    padding: 10px 12px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    min-height: 0 !important;
    opacity: .94 !important;
  }

  .toast h3, .toast strong { font-size: 14px !important; }

  .toast p {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .friend-social-modal {
    inset: 0 !important;
    padding: 0 !important;
  }

  .v52-chat-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
  }

  .v52-chat-head {
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 10px !important;
  }

  .v52-chat-input {
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }

  [id^="versionCheck"] { display: none !important; }
}

@media (max-width: 390px) {
  .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header-title h2, .app-header h2 {
    font-size: 20px !important;
  }

  .header-title p, .app-header p {
    font-size: 11.5px !important;
  }

  .mobile-menu, .header-app-badge {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .app-header {
    grid-template-columns: 44px minmax(0,1fr) 44px !important;
  }

  .smart-coach, .coach-card, #dashboardView .card:first-child {
    min-height: 235px !important;
    padding: 22px !important;
  }

  .smart-coach h2, .coach-card h2 {
    font-size: 30px !important;
  }
}


/* =========================================================
   LifeLevel v62 — Mobile Alignment Fix
   Fix: verschobene Header-Elemente auf iPhone/Safari
   ========================================================= */
@media (max-width: 820px) {
  .app-header {
    display: grid !important;
    grid-template-columns: 56px minmax(0,1fr) 56px !important;
    grid-template-areas: "menu title logo" !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 92px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 14px !important;
    overflow: hidden !important;
  }

  .app-header > .mobile-menu,
  .app-header > .mobile-menu-btn,
  .app-header > .menu-toggle,
  .app-header > .hamburger {
    grid-area: menu !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 2 !important;
  }

  .app-header > .header-title {
    grid-area: title !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .app-header > .header-title h2,
  .app-header > .header-title h1 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.05 !important;
    text-align: left !important;
  }

  .app-header > .header-title p {
    margin: 2px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .app-header > .header-app-badge {
    grid-area: logo !important;
    justify-self: end !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 2 !important;
  }

  /* Alles problematische im Header komplett weg */
  .app-header > .header-actions,
  .app-header > .header-actions *,
  .app-header > .top-actions,
  .app-header > .top-actions *,
  .app-header > .actions,
  .app-header > .actions *,
  .app-header > .xp-header,
  .app-header > .user-code-pill,
  #topUserCode,
  .xp-header,
  .user-code-pill {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    min-height: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Eventuelle alte Layout-Reste ebenfalls entfernen */
  .level-pill,
  .top-level-card,
  .xp-level-card,
  .level-card,
  .top-progress-card,
  .header-level-card {
    display: none !important;
  }

  .content {
    padding-top: 12px !important;
  }

  /* Dashboard oben sauber starten */
  #dashboardView {
    padding-top: 0 !important;
  }

  #dashboardView > .app-card.v24-dashboard-upgrade {
    margin-top: 0 !important;
  }
}


/* =========================================================
   LifeLevel v63 — Nicer Notifications + Settings Toggle
   ========================================================= */

.v63-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.12), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.86), rgba(10,15,31,.90)) !important;
}

.v63-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v63-settings-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.v63-settings-row p {
  margin: 0;
  color: var(--muted, #aeb8d5);
  line-height: 1.35;
}

.v63-switch {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 38px;
  display: inline-block;
}

.v63-switch input {
  display: none;
}

.v63-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.v63-switch span::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: .22s ease;
}

.v63-switch input:checked + span {
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v63-switch input:checked + span::before {
  transform: translateX(29px);
  background: #061018;
}

/* Toasts: kleiner, weniger aggressiv */
.toast,
.toast-stack .toast,
#toastContainer .toast {
  border-radius: 22px !important;
  padding: 12px 14px !important;
  background: rgba(245,247,255,.92) !important;
  color: #101422 !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.25) !important;
  backdrop-filter: blur(16px) !important;
}

.toast strong,
.toast h3 {
  font-size: 15px !important;
  letter-spacing: -.02em !important;
  color: #111421 !important;
}

.toast p {
  font-size: 13px !important;
  line-height: 1.3 !important;
  color: #7b849c !important;
}

body.v63-toasts-off .toast:not(.error):not(.danger) {
  display: none !important;
}

@media (max-width: 820px) {
  .v63-settings-card {
    margin-bottom: 14px !important;
  }

  .v63-settings-row {
    align-items: center;
  }

  .v63-settings-row h3 {
    font-size: 20px;
  }

  .v63-settings-row p {
    font-size: 13px;
  }

  .toast,
  .toast-stack .toast,
  #toastContainer .toast {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    max-width: none !important;
    min-height: 0 !important;
  }
}


/* =========================================================
   LifeLevel v64 — Notifications OFF by default
   Normale Toasts weg, wichtige Hinweise als Pop-up
   ========================================================= */

body.v64-messages-off .toast,
body.v64-messages-off .toast-stack,
body.v64-messages-off #toastContainer {
  display: none !important;
}

.v64-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.13), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.88), rgba(10,15,31,.92)) !important;
}

.v64-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v64-settings-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.v64-settings-row p {
  margin: 0;
  color: var(--muted, #aeb8d5);
  line-height: 1.35;
}

.v64-switch {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 38px;
  display: inline-block;
}

.v64-switch input {
  display: none;
}

.v64-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.v64-switch span::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: .22s ease;
}

.v64-switch input:checked + span {
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v64-switch input:checked + span::before {
  transform: translateX(29px);
  background: #061018;
}

#v64ImportantModal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 14, .62);
  backdrop-filter: blur(14px);
}

#v64ImportantModal.show {
  display: grid;
}

.v64-modal-card {
  width: min(420px, 92vw);
  border-radius: 32px;
  padding: 28px 24px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.18), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(53,244,239,.14), transparent 38%),
    linear-gradient(145deg, rgba(18,24,48,.96), rgba(9,14,30,.98));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  color: #f8fbff;
}

.v64-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 1000;
  color: #081018;
  background: linear-gradient(135deg, #ff4fd8, #f7ff55, #35f4ef);
  box-shadow: 0 18px 50px rgba(255,79,216,.26);
}

.v64-modal-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.v64-modal-card p {
  margin: 0 auto 22px;
  color: #b8c0dc;
  font-size: 16px;
  line-height: 1.35;
  max-width: 320px;
}

.v64-modal-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 1000;
  color: #061018;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
  box-shadow: 0 18px 50px rgba(53,244,239,.20);
}

@media (max-width: 820px) {
  .v64-settings-row {
    align-items: center;
  }

  .v64-settings-row h3 {
    font-size: 20px;
  }

  .v64-settings-row p {
    font-size: 13px;
  }

  .v64-modal-card {
    border-radius: 28px;
    padding: 26px 20px 20px;
  }

  .v64-modal-card h2 {
    font-size: 30px;
  }

  .v64-modal-card p {
    font-size: 15px;
  }
}


/* =========================================================
   LifeLevel v65
   1) Nachrichten wirklich weg
   2) Lite/App-installieren ruhiger
   3) Skilltree mobil deutlich besser
   ========================================================= */

/* Nachrichten: normale Toasts wirklich verstecken */
html.v65-messages-off .toast,
html.v65-messages-off .toast-stack,
html.v65-messages-off #toastContainer,
html.v65-messages-off .notification,
html.v65-messages-off .notice,
html.v65-messages-off .snackbar,
body.v65-messages-off .toast,
body.v65-messages-off .toast-stack,
body.v65-messages-off #toastContainer,
body.v65-messages-off .notification,
body.v65-messages-off .notice,
body.v65-messages-off .snackbar {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Wichtiges Popup */
#v65Modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  z-index: 9999999;
  background: rgba(4, 7, 17, .66);
  backdrop-filter: blur(16px);
}

#v65Modal.show {
  display: grid;
}

.v65-modal-card {
  width: min(420px, 92vw);
  padding: 28px 22px 22px;
  border-radius: 32px;
  text-align: center;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.22), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(53,244,239,.16), transparent 42%),
    linear-gradient(145deg, rgba(18,24,49,.97), rgba(7,11,24,.98));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 100px rgba(0,0,0,.52);
}

.v65-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  font-size: 36px;
  font-weight: 1000;
  color: #071018;
  background: linear-gradient(135deg, #ff4fd8, #f7ff55, #35f4ef);
  box-shadow: 0 18px 55px rgba(255,79,216,.28);
}

.v65-modal-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.v65-modal-card p {
  margin: 0 auto 22px;
  max-width: 330px;
  color: #b9c3e1;
  font-size: 16px;
  line-height: 1.36;
}

.v65-modal-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #061018;
  font-weight: 1000;
  font-size: 17px;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

/* Settings toggle */
.v65-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.13), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.88), rgba(10,15,31,.92)) !important;
}

.v65-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v65-settings-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.v65-settings-row p {
  margin: 0;
  color: var(--muted, #aeb8d5);
  line-height: 1.35;
}

.v65-switch {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 38px;
  display: inline-block;
}

.v65-switch input { display: none; }

.v65-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
}

.v65-switch span::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  transition: .22s ease;
}

.v65-switch input:checked + span {
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v65-switch input:checked + span::before {
  transform: translateX(29px);
  background: #061018;
}

/* Lite/App installieren: nicht mehr mitten im Content */
.v65-install-pill,
.ll-install-pill,
.install-pill {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px) !important;
  top: auto !important;
  transform: translateX(-50%) scale(.86) !important;
  z-index: 450 !important;
  opacity: .78 !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

/* Mobile Skilltree Redesign */
@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(53,244,239,.10), transparent 30%),
      radial-gradient(circle at 85% 10%, rgba(255,79,216,.10), transparent 32%),
      linear-gradient(180deg, #070b17 0%, #090d1a 100%) !important;
  }

  .v65-mobile-skilltree,
  #skilltreeView,
  .skilltree-view,
  [data-view="skilltree"] {
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  #skilltreeView .app-card,
  .skilltree-view .app-card,
  [data-view="skilltree"] .app-card {
    border-radius: 28px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(255,79,216,.12), transparent 36%),
      linear-gradient(145deg, rgba(17,24,48,.90), rgba(9,14,30,.92)) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
  }

  #skilltreeView h2,
  .skilltree-view h2 {
    font-size: 28px !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em !important;
    margin-bottom: 6px !important;
  }

  #skilltreeView p,
  .skilltree-view p {
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #aeb8d5 !important;
  }

  /* Kategorie-Chips horizontal statt riesiger Cluster */
  #skilltreeView .category-tabs,
  #skilltreeView .skill-tabs,
  #skilltreeView .tabs,
  #skilltreeView [class*="tabs"],
  .v65-mobile-tabs {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    padding: 6px 2px 12px !important;
    margin: 12px -2px 8px !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #skilltreeView .category-tabs::-webkit-scrollbar,
  #skilltreeView .skill-tabs::-webkit-scrollbar,
  #skilltreeView .tabs::-webkit-scrollbar,
  #skilltreeView [class*="tabs"]::-webkit-scrollbar {
    display: none !important;
  }

  #skilltreeView .category-tabs button,
  #skilltreeView .skill-tabs button,
  #skilltreeView .tabs button,
  #skilltreeView [class*="tabs"] button,
  #skilltreeView .chip,
  #skilltreeView .tab {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    scroll-snap-align: start !important;
  }

  /* Subthemen/Buttons als mobile Karten */
  #skilltreeView .subtopic-grid,
  #skilltreeView .nodes-grid,
  #skilltreeView .skill-grid,
  #skilltreeView .tree-grid,
  #skilltreeView [class*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #skilltreeView .subtopic-grid button,
  #skilltreeView .nodes-grid button,
  #skilltreeView .skill-grid button,
  #skilltreeView .tree-grid button,
  #skilltreeView .topic-btn,
  #skilltreeView .node-card,
  #skilltreeView .skill-card,
  .v65-node-card {
    width: 100% !important;
    min-height: 72px !important;
    border-radius: 22px !important;
    padding: 16px 18px !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    background:
      linear-gradient(145deg, rgba(11,18,39,.98), rgba(8,13,29,.96)) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 34px rgba(0,0,0,.22) !important;
  }

  /* Der alte graphische Skilltree/Canvas wirkt auf Handy schlecht: kompakter machen */
  #skilltreeView .skilltree-canvas,
  #skilltreeView .tree-canvas,
  #skilltreeView .map,
  #skilltreeView .node-map,
  #skilltreeView .skill-map,
  #skilltreeView canvas,
  #skilltreeView svg {
    max-width: 100% !important;
    min-height: 380px !important;
    height: 58vh !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  #skilltreeView .node,
  #skilltreeView .skill-node,
  #skilltreeView .tree-node {
    transform: scale(.92) !important;
    transform-origin: center !important;
  }

  /* Falls absolute Nodes viel zu dunkel/klein sind */
  #skilltreeView .node:not(.locked),
  #skilltreeView .skill-node:not(.locked),
  #skilltreeView .tree-node:not(.locked) {
    opacity: 1 !important;
    filter: none !important;
  }

  #skilltreeView .node.locked,
  #skilltreeView .skill-node.locked,
  #skilltreeView .tree-node.locked {
    opacity: .45 !important;
  }

  /* Skilltree Popup mobil */
  .skill-popup,
  .node-popup,
  .modal.skill,
  .skill-modal {
    width: min(92vw, 420px) !important;
    max-height: 82dvh !important;
    overflow-y: auto !important;
    border-radius: 28px !important;
    padding: 22px !important;
  }

  .v65-settings-row {
    align-items: center;
  }

  .v65-settings-row h3 {
    font-size: 20px;
  }

  .v65-settings-row p {
    font-size: 13px;
  }

  .v65-install-pill,
  .ll-install-pill,
  .install-pill {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 64px) !important;
  }
}


/* =========================================================
   LifeLevel v66 — Real Logo + Hard Toast Removal
   ========================================================= */

/* Wenn Nachrichten aus sind: wirklich alle Toasts ausblenden */
html.v66-messages-off .toast,
html.v66-messages-off .toasts,
html.v66-messages-off .toast-stack,
html.v66-messages-off #toastContainer,
html.v66-messages-off .notification,
html.v66-messages-off .notice,
html.v66-messages-off .snackbar,
html.v66-messages-off .alert,
html.v66-messages-off .app-toast,
html.v66-messages-off .toast-card,
html.v66-messages-off .status-toast,
html.v66-messages-off [class*="toast"],
html.v66-messages-off [id*="toast"],
html.v66-messages-off [class*="notification"],
html.v66-messages-off [class*="snackbar"],
body.v66-messages-off .toast,
body.v66-messages-off .toasts,
body.v66-messages-off .toast-stack,
body.v66-messages-off #toastContainer,
body.v66-messages-off .notification,
body.v66-messages-off .notice,
body.v66-messages-off .snackbar,
body.v66-messages-off .alert,
body.v66-messages-off .app-toast,
body.v66-messages-off .toast-card,
body.v66-messages-off .status-toast,
body.v66-messages-off [class*="toast"],
body.v66-messages-off [id*="toast"],
body.v66-messages-off [class*="notification"],
body.v66-messages-off [class*="snackbar"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Echtes Popup statt Toast */
#v66RealPopup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(4, 7, 17, .66);
  backdrop-filter: blur(18px);
}

#v66RealPopup.show {
  display: grid;
}

.v66-popup-card {
  width: min(420px, 92vw);
  padding: 28px 22px 22px;
  border-radius: 32px;
  text-align: center;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.20), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(53,244,239,.16), transparent 42%),
    linear-gradient(145deg, rgba(18,24,49,.98), rgba(7,11,24,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}

.v66-popup-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(53,244,239,.18), 0 0 0 1px rgba(255,255,255,.12);
}

.v66-popup-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.v66-popup-card p {
  margin: 0 auto 22px;
  max-width: 330px;
  color: #b9c3e1;
  font-size: 16px;
  line-height: 1.36;
}

.v66-popup-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #061018;
  font-weight: 1000;
  font-size: 17px;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

/* App-installieren Modal: echtes Logo und bessere Schrift */
.v66-real-logo-box {
  background-image: url("apple-touch-icon.png") !important;
  background-size: cover !important;
  background-position: center !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

/* Falls Install-Modal eigene Klassen hat */
.install-modal img,
.pwa-modal img,
[class*="install"] img {
  border-radius: 24px !important;
}

.install-modal h2,
.pwa-modal h2,
[class*="install"] h2 {
  font-size: 31px !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
}

.install-modal p,
.pwa-modal p,
[class*="install"] p,
.install-modal li,
.pwa-modal li,
[class*="install"] li {
  font-size: 16px !important;
  line-height: 1.32 !important;
  color: #f3f6ff !important;
}

/* Settings */
.v66-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.13), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.88), rgba(10,15,31,.92)) !important;
}

.v66-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v66-settings-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.v66-settings-row p {
  margin: 0;
  color: var(--muted, #aeb8d5);
  line-height: 1.35;
}

.v66-switch {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 38px;
  display: inline-block;
}

.v66-switch input {
  display: none;
}

.v66-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
}

.v66-switch span::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  transition: .22s ease;
}

.v66-switch input:checked + span {
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v66-switch input:checked + span::before {
  transform: translateX(29px);
  background: #061018;
}

@media (max-width: 820px) {
  .v66-popup-card {
    border-radius: 30px;
    padding: 26px 20px 20px;
  }

  .v66-popup-card h2 {
    font-size: 30px;
  }

  .v66-popup-card p {
    font-size: 15px;
  }

  .v66-settings-row h3 {
    font-size: 20px;
  }

  .v66-settings-row p {
    font-size: 13px;
  }
}


/* =========================================================
   LifeLevel v67 — Mobile-only App Navigation
   Desktop bleibt unverändert
   ========================================================= */
#v67MobileTabbar{display:none;}
@media (max-width:820px){
  body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;}
  .content,main,.page,.view{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important;}
  #v67MobileTabbar{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);z-index:99999;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;gap:4px;height:72px;padding:7px;border-radius:30px;background:linear-gradient(180deg,rgba(30,32,42,.90),rgba(10,12,20,.92));border:1px solid rgba(255,255,255,.13);box-shadow:0 24px 70px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(24px);}
  #v67MobileTabbar button{height:58px;min-width:0;border:0;border-radius:23px;background:transparent;color:rgba(255,255,255,.72);display:grid;place-items:center;align-content:center;gap:2px;font:inherit;padding:5px 2px;transition:transform .18s ease,background .18s ease,color .18s ease;}
  #v67MobileTabbar button:active{transform:scale(.95);} #v67MobileTabbar button.active{color:#fff;background:rgba(255,255,255,.13);}
  #v67MobileTabbar button.main{background:radial-gradient(circle at 30% 0%,rgba(255,79,216,.28),transparent 42%),linear-gradient(135deg,rgba(53,244,239,.25),rgba(157,101,255,.20));color:#fff;}
  #v67MobileTabbar button.main.active{background:linear-gradient(135deg,#35f4ef,#92ff6d,#b56cff);color:#061018;box-shadow:0 12px 34px rgba(53,244,239,.18);}
  .v67-tab-icon{font-size:21px;line-height:1;font-weight:900}.v67-tab-label{font-size:10.5px;line-height:1;font-weight:850;letter-spacing:-.02em}
  .v67-mobile-friends .app-card,.v67-mobile-friends .panel,.v67-mobile-friends .friend-card{border-radius:26px!important;}
  .v67-mobile-friends .v67-chat-row,.v67-mobile-friends .friend-card,.v67-mobile-friends .friend-row{min-height:74px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:12px 10px!important;border-radius:22px!important;background:rgba(255,255,255,.035)!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important;}
  .v67-mobile-friends .v67-chat-row::after,.v67-mobile-friends .friend-card::after,.v67-mobile-friends .friend-row::after{content:'›';margin-left:auto;color:rgba(255,255,255,.45);font-size:28px;line-height:1;}
  .v67-mobile-profile .v67-list-card,.v67-mobile-profile .app-card,.v67-mobile-profile .setting-card{border-radius:26px!important;margin-bottom:12px!important;padding:18px!important;}
  .v67-mobile-profile .v67-list-card h3,.v67-mobile-profile .app-card h3{font-size:20px!important;margin-bottom:4px!important;}
  .v67-mobile-profile .v67-list-card p,.v67-mobile-profile .app-card p{font-size:13.5px!important;line-height:1.35!important;}
  .v65-install-pill,.ll-install-pill,.install-pill,[class*="install-pill"]{bottom:calc(env(safe-area-inset-bottom,0px) + 92px)!important;transform:translateX(-50%) scale(.78)!important;opacity:.68!important;}
  #v66RealPopup,#v65Modal,#v64ImportantModal{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;}
}
@media (max-width:390px){#v67MobileTabbar{left:9px;right:9px;height:68px;border-radius:27px;padding:6px}#v67MobileTabbar button{height:55px;border-radius:21px}.v67-tab-icon{font-size:19px}.v67-tab-label{font-size:9.7px}}


/* =========================================================
   LifeLevel v68 — Desktop Login / PC Layout Fix
   Mobile v67 bleibt unverändert
   ========================================================= */

@media (min-width: 821px) {
  html,
  body {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }

  body:not(.is-auth),
  body.auth-screen,
  body.login-screen {
    background:
      radial-gradient(circle at 50% 18%, rgba(53,244,239,.10), transparent 28%),
      radial-gradient(circle at 52% 28%, rgba(255,79,216,.10), transparent 34%),
      linear-gradient(180deg, #0b1020 0%, #111827 100%) !important;
  }

  .auth-page,
  .login-page,
  .landing-page,
  .auth-screen,
  #authView,
  #loginView,
  #startView {
    width: 100% !important;
    min-height: 100vh !important;
    max-width: none !important;
    transform: none !important;
    zoom: 1 !important;
  }

  .auth-wrap,
  .auth-shell,
  .login-wrap,
  .login-shell,
  .landing-wrap,
  .hero,
  .start-hero {
    width: min(1180px, calc(100vw - 72px)) !important;
    max-width: 1180px !important;
    min-height: min(820px, calc(100vh - 80px)) !important;
    margin: 40px auto !important;
    padding: 44px 54px !important;
    border-radius: 36px !important;
    transform: none !important;
    scale: 1 !important;
  }

  .auth-wrap h1,
  .auth-shell h1,
  .login-wrap h1,
  .login-shell h1,
  .landing-wrap h1,
  .hero h1,
  .start-hero h1 {
    font-size: clamp(76px, 7.2vw, 132px) !important;
    line-height: .94 !important;
    letter-spacing: -.065em !important;
    margin: 18px auto 26px !important;
    max-width: 1100px !important;
    text-align: center !important;
  }

  .auth-wrap > p,
  .auth-shell > p,
  .login-wrap > p,
  .login-shell > p,
  .landing-wrap > p,
  .hero > p,
  .start-hero > p {
    font-size: clamp(19px, 1.5vw, 28px) !important;
    line-height: 1.35 !important;
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .auth-card,
  .login-card,
  .auth-panel,
  .login-panel,
  .signin-card,
  form.auth,
  form.login {
    width: min(600px, 92vw) !important;
    max-width: 600px !important;
    margin: 24px auto 0 !important;
    padding: 22px !important;
    border-radius: 28px !important;
    transform: none !important;
  }

  .auth-card input,
  .login-card input,
  .auth-panel input,
  .login-panel input,
  .signin-card input,
  form.auth input,
  form.login input {
    min-height: 58px !important;
    font-size: 16px !important;
    border-radius: 18px !important;
  }

  .auth-card button,
  .login-card button,
  .auth-panel button,
  .login-panel button,
  .signin-card button,
  form.auth button,
  form.login button {
    min-height: 58px !important;
    font-size: 16px !important;
    border-radius: 999px !important;
  }

  .v65-install-pill,
  .ll-install-pill,
  .install-pill,
  [class*="install-pill"],
  [id*="installPill"],
  [id*="installPrompt"],
  .pwa-install-pill {
    display: none !important;
  }

  #v67MobileTabbar {
    display: none !important;
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  .auth-wrap,
  .auth-shell,
  .login-wrap,
  .login-shell,
  .landing-wrap,
  .hero,
  .start-hero {
    min-height: auto !important;
    margin-top: 22px !important;
    margin-bottom: 22px !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .auth-wrap h1,
  .auth-shell h1,
  .login-wrap h1,
  .login-shell h1,
  .landing-wrap h1,
  .hero h1,
  .start-hero h1 {
    font-size: clamp(64px, 6.5vw, 106px) !important;
  }
}


/* =========================================================
   LifeLevel v69 — real toast source fix + Firebase safe keys
   ========================================================= */

html.v69-messages-off .toast,
html.v69-messages-off .toasts,
html.v69-messages-off .toast-stack,
html.v69-messages-off #toastContainer,
html.v69-messages-off .notification,
html.v69-messages-off .notice,
html.v69-messages-off .snackbar,
html.v69-messages-off .alert,
html.v69-messages-off .app-toast,
html.v69-messages-off .toast-card,
html.v69-messages-off .status-toast,
html.v69-messages-off [class*="toast"],
html.v69-messages-off [id*="toast"],
body.v69-messages-off .toast,
body.v69-messages-off .toasts,
body.v69-messages-off .toast-stack,
body.v69-messages-off #toastContainer,
body.v69-messages-off .notification,
body.v69-messages-off .notice,
body.v69-messages-off .snackbar,
body.v69-messages-off .alert,
body.v69-messages-off .app-toast,
body.v69-messages-off .toast-card,
body.v69-messages-off .status-toast,
body.v69-messages-off [class*="toast"],
body.v69-messages-off [id*="toast"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#v69RealPopup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(4, 7, 17, .66);
  backdrop-filter: blur(18px);
}

#v69RealPopup.show {
  display: grid;
}

.v69-popup-card {
  width: min(420px, 92vw);
  padding: 28px 22px 22px;
  border-radius: 32px;
  text-align: center;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.20), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(53,244,239,.16), transparent 42%),
    linear-gradient(145deg, rgba(18,24,49,.98), rgba(7,11,24,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}

.v69-popup-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(53,244,239,.18), 0 0 0 1px rgba(255,255,255,.12);
}

.v69-popup-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.v69-popup-card p {
  margin: 0 auto 22px;
  max-width: 330px;
  color: #b9c3e1;
  font-size: 16px;
  line-height: 1.36;
}

.v69-popup-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #061018;
  font-weight: 1000;
  font-size: 17px;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v69-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.13), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.88), rgba(10,15,31,.92)) !important;
}

.v69-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v69-settings-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.v69-settings-row p {
  margin: 0;
  color: var(--muted, #aeb8d5);
  line-height: 1.35;
}

.v69-switch {
  position: relative;
  width: 68px;
  min-width: 68px;
  height: 38px;
  display: inline-block;
}

.v69-switch input {
  display: none;
}

.v69-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  transition: .2s ease;
}

.v69-switch span::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  transition: .22s ease;
}

.v69-switch input:checked + span {
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

.v69-switch input:checked + span::before {
  transform: translateX(29px);
  background: #061018;
}


/* =========================================================
   LifeLevel v70 — Desktop Auth richtig breit + Messages OFF
   Mobile bleibt im App-Look
   ========================================================= */

/* Normale Meldungen wirklich aus */
html.v70-messages-off .toast,
html.v70-messages-off .toasts,
html.v70-messages-off .toast-stack,
html.v70-messages-off #toastContainer,
html.v70-messages-off .notification,
html.v70-messages-off .notice,
html.v70-messages-off .snackbar,
html.v70-messages-off .alert,
html.v70-messages-off .app-toast,
html.v70-messages-off .toast-card,
html.v70-messages-off .status-toast,
html.v70-messages-off [class*="toast"],
html.v70-messages-off [id*="toast"],
html.v70-messages-off [class*="notification"],
body.v70-messages-off .toast,
body.v70-messages-off .toasts,
body.v70-messages-off .toast-stack,
body.v70-messages-off #toastContainer,
body.v70-messages-off .notification,
body.v70-messages-off .notice,
body.v70-messages-off .snackbar,
body.v70-messages-off .alert,
body.v70-messages-off .app-toast,
body.v70-messages-off .toast-card,
body.v70-messages-off .status-toast,
body.v70-messages-off [class*="toast"],
body.v70-messages-off [id*="toast"],
body.v70-messages-off [class*="notification"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Wichtiges echtes Popup */
#v70RealPopup {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(4, 7, 17, .66);
  backdrop-filter: blur(18px);
}
#v70RealPopup.show { display: grid; }

.v70-popup-card {
  width: min(420px, 92vw);
  padding: 28px 22px 22px;
  border-radius: 32px;
  text-align: center;
  color: #f8fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.20), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(53,244,239,.16), transparent 42%),
    linear-gradient(145deg, rgba(18,24,49,.98), rgba(7,11,24,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}
.v70-popup-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: block;
  object-fit: cover;
}
.v70-popup-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}
.v70-popup-card p {
  margin: 0 auto 22px;
  max-width: 330px;
  color: #b9c3e1;
  font-size: 16px;
  line-height: 1.36;
}
.v70-popup-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #061018;
  font-weight: 1000;
  font-size: 17px;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
}

/* Desktop Auth: nicht wie Mobile, sondern breite Landing */
@media (min-width: 821px) {
  body:not(.is-auth) {
    background:
      radial-gradient(circle at 20% 8%, rgba(53,244,239,.12), transparent 26%),
      radial-gradient(circle at 82% 16%, rgba(255,79,216,.10), transparent 30%),
      linear-gradient(180deg, #070912 0%, #0b1020 100%) !important;
  }

  .landing {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 32px 42px !important;
    display: block !important;
    overflow-x: hidden !important;
  }

  .landing-nav {
    width: min(1180px, calc(100vw - 84px)) !important;
    margin: 0 auto 28px !important;
  }

  body.auth-open .landing-main {
    display: none !important;
  }

  body.auth-open .auth-section,
  .auth-section {
    width: min(1180px, calc(100vw - 84px)) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.auth-open .auth-card,
  .auth-card {
    width: 100% !important;
    max-width: 1180px !important;
    min-height: min(720px, calc(100vh - 130px)) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr) !important;
    gap: 34px !important;
    align-items: center !important;
    padding: clamp(34px, 4vw, 58px) !important;
    border-radius: 36px !important;
    transform: none !important;
    scale: 1 !important;
    background:
      radial-gradient(circle at 35% 45%, rgba(53,244,239,.10), transparent 34%),
      radial-gradient(circle at 78% 20%, rgba(255,79,216,.11), transparent 30%),
      linear-gradient(145deg, rgba(18,24,48,.88), rgba(8,12,26,.95)) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 30px 100px rgba(0,0,0,.35) !important;
  }

  .auth-art {
    display: block !important;
    min-width: 0 !important;
  }

  .auth-art h2,
  .auth-art .gradient-text,
  body.auth-open .auth-art h2 {
    font-size: clamp(70px, 7vw, 120px) !important;
    line-height: .90 !important;
    letter-spacing: -.07em !important;
    text-align: left !important;
    margin: 0 0 22px !important;
    max-width: 650px !important;
  }

  .auth-art p {
    max-width: 560px !important;
    font-size: clamp(18px, 1.45vw, 25px) !important;
    line-height: 1.35 !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .auth-stack {
    margin-top: 28px !important;
    display: grid !important;
    gap: 12px !important;
    max-width: 560px !important;
  }

  .auth-form-wrap {
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
    padding: 24px !important;
    border-radius: 30px !important;
    background: rgba(3,6,15,.44) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.26) !important;
  }

  .auth-form-wrap .tabs {
    min-height: 58px !important;
    border-radius: 999px !important;
    padding: 6px !important;
  }

  .auth-form-wrap .tabs button {
    min-height: 46px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
  }

  .auth-form-wrap input,
  .auth-form-wrap select {
    min-height: 56px !important;
    font-size: 16px !important;
    border-radius: 18px !important;
  }

  .auth-form-wrap .btn.primary {
    min-height: 58px !important;
    font-size: 16px !important;
    border-radius: 999px !important;
  }

  .hero,
  .hero-layout {
    width: min(1180px, calc(100vw - 84px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero h1 {
    font-size: clamp(70px, 6vw, 118px) !important;
    line-height: .92 !important;
    letter-spacing: -.065em !important;
  }

  .v65-install-pill,
  .ll-install-pill,
  .install-pill,
  [class*="install-pill"],
  [id*="installPill"],
  [id*="installPrompt"],
  .pwa-install-pill {
    display: none !important;
  }
}

/* Mobile soll weiter die schmale App-Optik behalten */
@media (max-width: 820px) {
  .auth-card {
    grid-template-columns: 1fr !important;
  }

  .auth-art h2,
  body.auth-open .auth-art h2 {
    text-align: center !important;
  }
}

/* Settings-Schalter v70 */
.v70-settings-card {
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.13), transparent 36%),
    linear-gradient(145deg, rgba(18,24,48,.88), rgba(10,15,31,.92)) !important;
}
.v70-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.v70-settings-row h3 { margin: 0 0 6px; font-size: 22px; }
.v70-settings-row p { margin: 0; color: var(--muted, #aeb8d5); line-height: 1.35; }
.v70-switch { position: relative; width: 68px; min-width: 68px; height: 38px; display: inline-block; }
.v70-switch input { display: none; }
.v70-switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.14); transition: .2s ease;
}
.v70-switch span::before {
  content: ""; position: absolute; width: 30px; height: 30px; left: 4px; top: 3px;
  border-radius: 999px; background: rgba(255,255,255,.88); transition: .22s ease;
}
.v70-switch input:checked + span { background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff); }
.v70-switch input:checked + span::before { transform: translateX(29px); background: #061018; }


/* =========================================================
   LifeLevel v71 — Desktop Rand/Mitte/Kontrast Fix
   Mobile bleibt unverändert
   ========================================================= */

@media (min-width: 821px) {
  html {
    background: #070912 !important;
  }

  body {
    margin: 0 !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    background:
      radial-gradient(circle at 14% 8%, rgba(255,107,53,.16), transparent 31%),
      radial-gradient(circle at 86% 6%, rgba(255,79,216,.15), transparent 34%),
      radial-gradient(circle at 50% 80%, rgba(154,108,255,.10), transparent 40%),
      linear-gradient(180deg, #070912 0%, #0b1020 46%, #080a12 100%) !important;
    color: #f7f9ff !important;
    overflow-x: hidden !important;
  }

  /* Der graue/helle Randblock verschwindet */
  .landing,
  body:not(.is-auth) .landing {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 32px clamp(28px, 4vw, 72px) !important;
    background:
      radial-gradient(circle at 18% 10%, rgba(255,107,53,.13), transparent 31%),
      radial-gradient(circle at 86% 10%, rgba(255,79,216,.13), transparent 34%),
      linear-gradient(180deg, #070912 0%, #0b1020 100%) !important;
    color: #f7f9ff !important;
  }

  .landing::before,
  .landing::after,
  .auth-section::before,
  .auth-section::after,
  .auth-card::before,
  .auth-card::after {
    max-width: none !important;
  }

  /* Login-Ansicht: schön mittig, aber desktop-breit */
  body.auth-open .landing {
    display: grid !important;
    place-items: center !important;
    padding: clamp(24px, 3vw, 48px) !important;
  }

  body.auth-open .landing-nav,
  body.auth-open .landing-main {
    display: none !important;
  }

  body.auth-open .auth-section {
    width: min(1240px, calc(100vw - 80px)) !important;
    max-width: 1240px !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
  }

  body.auth-open .auth-card {
    width: 100% !important;
    max-width: 1240px !important;
    min-height: min(760px, calc(100vh - 80px)) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(410px, .8fr) !important;
    gap: clamp(28px, 4vw, 58px) !important;
    align-items: center !important;
    padding: clamp(38px, 5vw, 72px) !important;
    overflow: hidden !important;
    border-radius: 38px !important;
    background:
      radial-gradient(circle at 38% 45%, rgba(255,107,53,.13), transparent 34%),
      radial-gradient(circle at 72% 24%, rgba(255,79,216,.13), transparent 32%),
      linear-gradient(145deg, rgba(21,28,56,.96), rgba(7,10,22,.98)) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow:
      0 38px 120px rgba(0,0,0,.52),
      inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  /* Der riesige Kreis bleibt nur als dunkler Effekt, nicht als grauer Block */
  body.auth-open .auth-card::before {
    content: "" !important;
    position: absolute !important;
    width: min(680px, 56vw) !important;
    height: min(680px, 56vw) !important;
    left: 30% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 42% 38%, rgba(255,255,255,.08), transparent 10%),
      radial-gradient(circle at center, rgba(3,8,20,.86), rgba(4,7,14,.98) 64%, rgba(255,255,255,.08) 65%, rgba(255,255,255,.02) 75%, transparent 76%) !important;
    opacity: .72 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  body.auth-open .auth-art,
  body.auth-open .auth-form-wrap {
    position: relative !important;
    z-index: 1 !important;
  }

  body.auth-open .auth-art {
    display: block !important;
  }

  body.auth-open .auth-art h2 {
    font-size: clamp(76px, 7vw, 126px) !important;
    line-height: .9 !important;
    letter-spacing: -.075em !important;
    max-width: 680px !important;
    margin: 0 0 24px !important;
    text-align: left !important;
    color: #fff !important;
  }

  body.auth-open .auth-art p {
    max-width: 620px !important;
    font-size: clamp(18px, 1.35vw, 24px) !important;
    line-height: 1.36 !important;
    color: rgba(247,249,255,.90) !important;
    text-align: left !important;
  }

  body.auth-open .auth-stack {
    margin-top: 28px !important;
    max-width: 620px !important;
  }

  body.auth-open .auth-chip {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    color: rgba(247,249,255,.9) !important;
  }

  body.auth-open .auth-form-wrap {
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
    padding: 26px !important;
    border-radius: 30px !important;
    background: rgba(5,8,20,.58) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    box-shadow: 0 26px 80px rgba(0,0,0,.34) !important;
    backdrop-filter: blur(18px) !important;
  }

  body.auth-open .auth-form-wrap input,
  body.auth-open .auth-form-wrap select {
    background: rgba(255,255,255,.10) !important;
    color: #f7f9ff !important;
    border: 1px solid rgba(255,255,255,.14) !important;
  }

  body.auth-open .auth-form-wrap input:focus {
    background: rgba(255,255,255,.14) !important;
    outline: 2px solid rgba(255,107,53,.22) !important;
  }

  body.auth-open .auth-form-wrap label,
  body.auth-open .check-row,
  body.auth-open .nav-link {
    color: rgba(247,249,255,.86) !important;
  }

  /* Desktop-Startseite: Text wieder sichtbar und nicht fast schwarz */
  body:not(.auth-open) .landing-main,
  body:not(.auth-open) .hero,
  body:not(.auth-open) .section,
  body:not(.auth-open) .feature-card,
  body:not(.auth-open) .preview-panel {
    color: #f7f9ff !important;
  }

  body:not(.auth-open) .hero h1,
  body:not(.auth-open) .section h2 {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 14px 50px rgba(0,0,0,.45) !important;
  }

  body:not(.auth-open) .hero p,
  body:not(.auth-open) .section p,
  body:not(.auth-open) .feature-card p {
    color: rgba(232,236,255,.82) !important;
    opacity: 1 !important;
  }

  body:not(.auth-open) .landing-nav {
    background: rgba(255,255,255,.86) !important;
    color: #0b1020 !important;
    border: 1px solid rgba(255,255,255,.40) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.20) !important;
  }

  body:not(.auth-open) .landing-nav a,
  body:not(.auth-open) .landing-nav button {
    color: #0b1020 !important;
  }

  body:not(.auth-open) .hero-layout {
    width: min(1180px, calc(100vw - 84px)) !important;
    margin: 0 auto !important;
    align-items: center !important;
  }

  body:not(.auth-open) .feature-card,
  body:not(.auth-open) .preview-panel,
  body:not(.auth-open) .stat-pill {
    background: rgba(18,24,46,.78) !important;
    color: #f7f9ff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
  }

  /* Status/Version unten nicht als störender Punkt */
  .version-badge,
  [class*="version"],
  [id*="version"] {
    opacity: .45 !important;
  }
}

/* Auf kleineren Desktop-Höhen weniger riesig */
@media (min-width: 821px) and (max-height: 780px) {
  body.auth-open .auth-card {
    min-height: calc(100vh - 48px) !important;
    padding: clamp(26px, 3.2vw, 48px) !important;
  }

  body.auth-open .auth-art h2 {
    font-size: clamp(62px, 6vw, 102px) !important;
  }

  body.auth-open .auth-form-wrap {
    padding: 22px !important;
  }
}


/* =========================================================
   LifeLevel v72 — Login darf nach Login NICHT über Dashboard bleiben
   ========================================================= */

body.is-auth .landing,
body.is-auth #authSection,
body.is-auth .auth-section,
body.is-auth #landingMain,
body.is-auth .landing-main,
body.is-auth .landing-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-auth .app {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100vh !important;
  margin-top: 0 !important;
  transform: none !important;
}

body.is-auth,
body.is-auth main,
body.is-auth .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (min-width: 821px) {
  body.is-auth .landing {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.is-auth .app {
    display: grid !important;
    width: 100vw !important;
    max-width: none !important;
  }
}

body:not(.is-auth) .app {
  display: none !important;
}


/* =========================================================
   LifeLevel v73 — CSS/JS Reference Fix + Login/App Separation
   ========================================================= */

body.is-auth .landing,
body.is-auth #authSection,
body.is-auth .auth-section,
body.is-auth #landingMain,
body.is-auth .landing-main,
body.is-auth .landing-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.is-auth .app {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100vh !important;
  margin-top: 0 !important;
  transform: none !important;
}

body.is-auth,
body.is-auth main,
body.is-auth .content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (min-width: 821px) {
  body.is-auth .landing {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.is-auth .app {
    display: grid !important;
    width: 100vw !important;
    max-width: none !important;
  }
}

body:not(.is-auth) .app {
  display: none !important;
}


/* =========================================================
   LifeLevel v74 — Chat Plus UI
   ========================================================= */

#v74ChatPlusPanel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90000;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 80px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 30px;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,107,53,.14), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(255,79,216,.13), transparent 35%),
    linear-gradient(145deg, rgba(15,22,45,.96), rgba(7,10,22,.98));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  backdrop-filter: blur(20px);
}

#v74ChatPlusPanel.show {
  display: grid;
}

.v74-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.v74-chat-top b {
  display: block;
  font-size: 18px;
}

.v74-chat-top span {
  display: block;
  margin-top: 2px;
  color: #9eeccf;
  font-size: 12px;
  font-weight: 800;
}

.v74-chat-actions {
  display: flex;
  gap: 8px;
}

.v74-chat-actions button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: #061018;
  background: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: 11px;
}

.v74-messages {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v74-empty {
  margin: auto;
  padding: 18px;
  border-radius: 22px;
  color: rgba(247,249,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.16);
  text-align: center;
  font-weight: 800;
}

.v74-bubble {
  max-width: 78%;
  padding: 11px 12px 8px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.v74-bubble.own {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, rgba(35,217,190,.55), rgba(255,107,53,.22));
  border: 1px solid rgba(255,107,53,.20);
}

.v74-bubble.other {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.v74-bubble span {
  font-size: 14px;
  line-height: 1.28;
  font-weight: 750;
}

.v74-bubble small {
  justify-self: end;
  font-size: 10.5px;
  color: rgba(247,249,255,.62);
  font-weight: 900;
}

.v74-chat-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.v74-chat-compose {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(3,6,15,.42);
}

.v74-image-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
}

#v74TextInput {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 16px;
  color: #f7f9ff;
  background: rgba(255,255,255,.08);
  outline: none;
  font: inherit;
}

#v74TextInput:focus {
  border-color: rgba(255,107,53,.38);
  box-shadow: 0 0 0 3px rgba(255,107,53,.10);
}

#v74SendBtn {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #061018;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
  font-weight: 1000;
}

@media (max-width: 820px) {
  #v74ChatPlusPanel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    bottom: auto;
    right: auto;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .v74-chat-top {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .v74-chat-compose {
    position: sticky;
    bottom: 0;
  }
}


/* =========================================================
   LifeLevel v75 — Realtime Chat Status
   ========================================================= */
#v74TypingLine::after {
  content: " · live";
  color: #35f4ef;
  font-weight: 1000;
}
.v74-bubble.own small { color: rgba(214,255,242,.82) !important; }
@media (max-width:820px){ #v74ChatPlusPanel.show{display:grid!important;} }


/* =========================================================
   LifeLevel v76 — Direct Firebase RTDB Chat UI
   ========================================================= */
#v76RealtimeChat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100000;
  width: min(430px, calc(100vw - 28px));
  height: min(660px, calc(100vh - 64px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 30px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(53,244,239,.14), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(255,79,216,.13), transparent 35%),
    linear-gradient(145deg, rgba(15,22,45,.98), rgba(7,10,22,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 95px rgba(0,0,0,.48);
  backdrop-filter: blur(22px);
}

#v76RealtimeChat.show { display: grid; }

.v76-head {
  display: grid;
  grid-template-columns: 42px 46px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

#v76Close,
#v76Clear {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 1000;
  color: #061018;
  background: rgba(255,255,255,.86);
}

#v76Close {
  width: 38px;
  font-size: 25px;
  padding: 0;
}

.v76-avatar {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #061018;
  background: linear-gradient(135deg,#35f4ef,#92ff6d,#b56cff);
}

.v76-title {
  min-width: 0;
}

.v76-title b {
  display: block;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v76-title span {
  display: block;
  margin-top: 2px;
  color: #9eeccf;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v76-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v76-empty {
  margin: auto;
  padding: 18px;
  border-radius: 22px;
  color: rgba(247,249,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.16);
  text-align: center;
  font-weight: 850;
}

.v76-bubble {
  max-width: 78%;
  padding: 11px 12px 8px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.v76-bubble.own {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, rgba(35,217,190,.58), rgba(255,107,53,.22));
  border: 1px solid rgba(255,107,53,.20);
}

.v76-bubble.other {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.v76-bubble span {
  font-size: 14px;
  line-height: 1.28;
  font-weight: 760;
}

.v76-bubble small {
  justify-self: end;
  font-size: 10.5px;
  color: rgba(247,249,255,.68);
  font-weight: 900;
}

.v76-photo {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.v76-compose {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(3,6,15,.42);
}

.v76-img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
}

#v76Input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 16px;
  color: #f7f9ff;
  background: rgba(255,255,255,.08);
  outline: none;
  font: inherit;
}

#v76Send {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #061018;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
  font-weight: 1000;
}

@media (max-width: 820px) {
  #v76RealtimeChat {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    right: auto;
    bottom: auto;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .v76-head {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
}


/* =========================================================
   LifeLevel v77 — Direct user-to-user RTDB Chat UI
   ========================================================= */
#v77RealtimeChat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120000;
  width: min(440px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 60px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 30px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(53,244,239,.14), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(255,79,216,.13), transparent 35%),
    linear-gradient(145deg, rgba(15,22,45,.98), rgba(7,10,22,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 95px rgba(0,0,0,.48);
  backdrop-filter: blur(22px);
}
#v77RealtimeChat.show { display: grid; }
.v77-head { display:grid; grid-template-columns:42px 46px minmax(0,1fr) auto; gap:10px; align-items:center; padding:14px; border-bottom:1px solid rgba(255,255,255,.10); }
#v77Close,#v77Debug { border:0; border-radius:999px; min-height:38px; padding:0 12px; font-weight:1000; color:#061018; background:rgba(255,255,255,.86); }
#v77Close { width:38px; font-size:25px; padding:0; }
.v77-avatar { width:46px; height:46px; border-radius:17px; display:grid; place-items:center; font-weight:1000; color:#061018; background:linear-gradient(135deg,#35f4ef,#92ff6d,#b56cff); }
.v77-title{min-width:0}.v77-title b{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v77-title span{display:block;margin-top:2px;color:#9eeccf;font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v77-messages{padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.v77-empty{margin:auto;padding:18px;border-radius:22px;color:rgba(247,249,255,.72);background:rgba(255,255,255,.06);border:1px dashed rgba(255,255,255,.16);text-align:center;font-weight:850}
.v77-bubble{max-width:78%;padding:11px 12px 8px;border-radius:18px;display:grid;gap:6px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.v77-bubble.own{align-self:flex-end;border-bottom-right-radius:7px;background:linear-gradient(135deg,rgba(35,217,190,.58),rgba(255,107,53,.22));border:1px solid rgba(255,107,53,.20)}.v77-bubble.other{align-self:flex-start;border-bottom-left-radius:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.v77-bubble span{font-size:14px;line-height:1.28;font-weight:760}.v77-bubble small{justify-self:end;font-size:10.5px;color:rgba(247,249,255,.68);font-weight:900}.v77-photo{width:100%;max-height:260px;object-fit:cover;border-radius:14px;display:block}
.v77-compose{display:grid;grid-template-columns:46px 1fr auto;gap:10px;padding:12px;border-top:1px solid rgba(255,255,255,.10);background:rgba(3,6,15,.42)}.v77-img{width:46px;height:46px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);cursor:pointer}
#v77Input{min-width:0;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:0 16px;color:#f7f9ff;background:rgba(255,255,255,.08);outline:none;font:inherit}#v77Send{border:0;border-radius:999px;padding:0 16px;color:#061018;background:linear-gradient(135deg,#35f4ef,#92ff6d,#b56cff);font-weight:1000}
@media(max-width:820px){#v77RealtimeChat{inset:0;width:100vw;height:100dvh;border-radius:0;right:auto;bottom:auto;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.v77-head{padding-top:calc(12px + env(safe-area-inset-top,0px))}}


/* =========================================================
   LifeLevel v78 — Database-first Chat UI
   ========================================================= */
#v78DatabaseChat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130000;
  width: min(440px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 60px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 30px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 20% 0%, rgba(53,244,239,.14), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(255,79,216,.13), transparent 35%),
    linear-gradient(145deg, rgba(15,22,45,.98), rgba(7,10,22,.99));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 95px rgba(0,0,0,.48);
  backdrop-filter: blur(22px);
}

#v78DatabaseChat.show { display: grid; }

.v78-head {
  display: grid;
  grid-template-columns: 42px 46px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

#v78Close,
#v78Test {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 1000;
  color: #061018;
  background: rgba(255,255,255,.86);
}

#v78Close {
  width: 38px;
  font-size: 25px;
  padding: 0;
}

.v78-avatar {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #061018;
  background: linear-gradient(135deg,#35f4ef,#92ff6d,#b56cff);
}

.v78-title { min-width: 0; }

.v78-title b {
  display: block;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v78-title span {
  display: block;
  margin-top: 2px;
  color: #9eeccf;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v78-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v78-empty {
  margin: auto;
  padding: 18px;
  border-radius: 22px;
  color: rgba(247,249,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.16);
  text-align: center;
  font-weight: 850;
}

.v78-bubble {
  max-width: 78%;
  padding: 11px 12px 8px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.v78-bubble.own {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, rgba(35,217,190,.58), rgba(255,107,53,.22));
  border: 1px solid rgba(255,107,53,.20);
}

.v78-bubble.other {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.v78-bubble span {
  font-size: 14px;
  line-height: 1.28;
  font-weight: 760;
}

.v78-bubble small {
  justify-self: end;
  font-size: 10.5px;
  color: rgba(247,249,255,.68);
  font-weight: 900;
}

.v78-photo {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.v78-compose {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(3,6,15,.42);
}

.v78-img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
}

#v78Input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 16px;
  color: #f7f9ff;
  background: rgba(255,255,255,.08);
  outline: none;
  font: inherit;
}

#v78Send {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #061018;
  background: linear-gradient(135deg, #35f4ef, #92ff6d, #b56cff);
  font-weight: 1000;
}

@media(max-width:820px) {
  #v78DatabaseChat {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    right: auto;
    bottom: auto;
    padding-bottom: calc(76px + env(safe-area-inset-bottom,0px));
  }

  .v78-head {
    padding-top: calc(12px + env(safe-area-inset-top,0px));
  }
}


/* =========================================================
   LifeLevel v79 — Server Checkmarks
   ========================================================= */
.v79-checks {
  display: inline-block;
  margin-left: 4px;
  font-weight: 1000;
  letter-spacing: -0.12em;
}

.v79-checks.sent {
  color: #9aa3b8 !important; /* grau = an Server geschrieben */
}

.v79-checks.failed {
  color: #ff3b4f !important; /* rot = nicht an Server geschrieben */
  text-shadow: 0 0 10px rgba(255,59,79,.35);
}

.v79-checks.pending {
  color: #f6d96b !important; /* kurz während Sendung */
  letter-spacing: 0;
}

.v78-bubble.v79-failed {
  border-color: rgba(255,59,79,.45) !important;
  box-shadow: 0 0 0 1px rgba(255,59,79,.16), 0 14px 34px rgba(255,59,79,.12) !important;
}

.v78-bubble.v79-sent {
  border-color: rgba(154,163,184,.24) !important;
}

/* Final v80: Live-Chat-Haken */
.v80-ticks{font-weight:900;letter-spacing:-3px;font-size:14px;margin-left:3px;display:inline-block;vertical-align:baseline}
.v80-ticks.pending,.v80-ticks.failed{color:#ff3b30;text-shadow:0 0 10px rgba(255,59,48,.25)}
.v80-ticks.sent{color:#9ca3af}
.v80-ticks.read{color:#1d9bf0;text-shadow:0 0 10px rgba(29,155,240,.25)}
.v52-task-strip span{line-height:1.35}

/* Final v81: Chat Plus Features */
.v52-chat-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#111827,#0b1020);}
.v52-chat-card::before{content:"";position:absolute;inset:118px 0 74px;background:var(--v81-wallpaper, radial-gradient(circle at 20% 10%, rgba(255,79,216,.14), transparent 30%), radial-gradient(circle at 80% 40%, rgba(29,155,240,.16), transparent 34%));background-size:cover;background-position:center;opacity:.42;pointer-events:none;}
.v52-chat-card[data-theme="pink"]{background:linear-gradient(145deg,#2a1025,#111827);}
.v52-chat-card[data-theme="blue"]{background:linear-gradient(145deg,#0b1b36,#0b1020);}
.v52-chat-card[data-theme="green"]{background:linear-gradient(145deg,#09251a,#0b1020);}
.v52-chat-head,.v52-task-strip,.v52-chat-input,.v81-chat-tools,.v81-reply-box{position:relative;z-index:2;}
.v52-chat-body{position:relative;z-index:1;scroll-behavior:smooth;}
.v81-chat-tools{display:flex;gap:8px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(2,6,23,.42);backdrop-filter:blur(12px)}
.v81-chat-tools button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:7px 10px;font-weight:800;cursor:pointer;transition:transform .16s ease,background .16s ease}
.v81-chat-tools button:hover{transform:translateY(-1px) scale(1.03);background:rgba(255,255,255,.14)}
.v52-bubble{animation:v81BubbleIn .28s cubic-bezier(.2,1.25,.35,1);transform-origin:bottom;position:relative;transition:transform .18s ease,box-shadow .18s ease;margin-bottom:16px;}
.v52-bubble:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(0,0,0,.25)}
@keyframes v81BubbleIn{from{opacity:0;transform:translateY(12px) scale(.96)}70%{transform:translateY(-2px) scale(1.015)}to{opacity:1;transform:translateY(0) scale(1)}}
.v81-chat-image{display:block;max-width:240px;max-height:280px;border-radius:18px;object-fit:cover;margin-bottom:7px;box-shadow:0 10px 24px rgba(0,0,0,.28);cursor:pointer}
.v81-bubble-actions{display:flex;gap:5px;position:absolute;top:-17px;opacity:0;pointer-events:none;transition:.16s ease;right:10px;background:rgba(15,23,42,.82);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:3px 5px;backdrop-filter:blur(10px)}
.v52-bubble.theirs .v81-bubble-actions{left:10px;right:auto}
.v52-bubble:hover .v81-bubble-actions{opacity:1;pointer-events:auto;top:-21px}
.v81-bubble-actions button{border:0;background:transparent;color:#fff;cursor:pointer;font-size:14px;padding:2px 4px;border-radius:99px}
.v81-bubble-actions button:hover{background:rgba(255,255,255,.14);transform:scale(1.12)}
.v81-reaction-counts{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap}
.v81-reaction-counts span{font-size:13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:2px 6px;line-height:1.2}
.v81-reply-box{display:none;margin:8px 12px 0;padding:8px 10px;border-radius:16px;background:rgba(255,255,255,.09);border-left:4px solid #1d9bf0;gap:2px;flex-direction:column;color:#e5e7eb}
.v81-reply-box.active{display:flex;animation:v81ReplyIn .2s ease}
.v81-reply-box strong{font-size:12px}.v81-reply-box span{font-size:12px;opacity:.78}.v81-reply-box button{position:absolute;right:18px;border:0;background:rgba(255,255,255,.15);color:white;border-radius:999px;width:22px;height:22px;cursor:pointer}
@keyframes v81ReplyIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.v81-reply-inside{border-left:3px solid rgba(255,255,255,.55);padding:6px 8px;margin-bottom:6px;background:rgba(255,255,255,.08);border-radius:10px;display:flex;flex-direction:column;gap:2px}
.v81-reply-inside strong{font-size:12px}.v81-reply-inside span{font-size:12px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.v81-seen-time{display:block;margin-top:2px;font-size:10px;opacity:.68;text-align:right}.v81-seen-time::before{content:""}
#v81Typing.active{color:#38bdf8;font-weight:800;animation:v81TypingPulse 1.1s ease infinite}
@keyframes v81TypingPulse{50%{opacity:.55}}
.v80-ticks{font-weight:900;letter-spacing:-3px;font-size:14px;margin-left:3px;display:inline-block;vertical-align:baseline}.v80-ticks.pending,.v80-ticks.failed{color:#ff3b30;text-shadow:0 0 10px rgba(255,59,48,.25)}.v80-ticks.sent{color:#9ca3af}.v80-ticks.read{color:#1d9bf0;text-shadow:0 0 10px rgba(29,155,240,.35)}

/* v83: softer optional install hint — no pressure */
.ll-install-pill { display: none !important; }
.ll-install-hint {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 78px) !important;
  transform: translateX(-50%) !important;
  width: min(420px, calc(100vw - 28px)) !important;
  z-index: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 12px 12px 16px !important;
  border-radius: 24px !important;
  background: rgba(17, 22, 40, .82) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 20px 70px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(18px) !important;
  color: var(--text, #fff) !important;
}
.ll-install-hint-text { display: grid; gap: 2px; min-width: 0; }
.ll-install-hint-text strong { font-size: 13px; line-height: 1.15; }
.ll-install-hint-text span { font-size: 11px; line-height: 1.25; color: var(--muted, #aeb8d2); }
.ll-install-hint-actions { display: flex; gap: 7px; flex-shrink: 0; }
.ll-install-later,
.ll-install-setup {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 9px 12px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}
.ll-install-later { background: rgba(255,255,255,.10) !important; color: var(--text, #fff) !important; }
.ll-install-setup { background: linear-gradient(135deg, var(--ll-cyan, #36f4e9), var(--ll-lime, #62ff9d)) !important; color: #061018 !important; }
.ll-install-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 520px) {
  .ll-install-hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px) !important; }
  .ll-install-hint-text span { display: none; }
}
@media (display-mode: standalone) { .ll-install-hint { display:none !important; } }


/* ===== LIFELEVEL MOBILE-FIRST REDESIGN ===== */

/* Streak Banner */
.streak-banner{display:flex;align-items:center;gap:12px;padding:16px 20px;background:linear-gradient(135deg,rgba(255,107,53,.15),rgba(255,214,10,.10));border:1px solid rgba(255,107,53,.25);border-radius:20px;margin-bottom:16px}
.streak-flame{font-size:36px;animation:flamePulse 2s ease-in-out infinite}
.streak-count{font-size:32px;font-weight:900;color:#FF6B35;line-height:1}
.streak-label{font-size:13px;color:var(--muted);margin-top:2px}
.streak-claim-btn{margin-left:auto;background:linear-gradient(135deg,#FF6B35,#FFD60A);color:#000;border:none;border-radius:999px;padding:10px 18px;font-weight:800;font-size:14px;cursor:pointer;white-space:nowrap}
.streak-claim-btn:active{transform:scale(.97)}
@keyframes flamePulse{0%,100%{transform:scale(1) rotate(-2deg)}50%{transform:scale(1.12) rotate(2deg)}}

/* Mobile Bottom Navigation */
.mobile-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;height:72px;background:rgba(7,9,18,.97);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.08);justify-content:space-around;align-items:center;z-index:1000;padding-bottom:env(safe-area-inset-bottom,0px)}
body:not(.is-auth) .mobile-bottom-nav{display:none!important}
.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:none;color:rgba(255,255,255,.35);font-size:10px;font-weight:700;letter-spacing:.3px;padding:6px 14px;cursor:pointer;border-radius:18px;transition:color .22s,filter .22s;min-width:56px;position:relative}
.mobile-bottom-nav button.active{color:#FF6B35;filter:drop-shadow(0 0 6px rgba(255,107,53,.8)) drop-shadow(0 0 14px rgba(255,107,53,.45))}
.mobile-bottom-nav button.active::before{content:'';position:absolute;inset:-4px;border-radius:20px;background:radial-gradient(ellipse 80% 70% at 50% 60%,rgba(255,107,53,.18),transparent 75%);pointer-events:none}
.mobile-bottom-nav .nav-icon{width:26px;height:26px;display:flex;align-items:center;justify-content:center}
.mobile-bottom-nav .nav-icon svg{width:24px;height:24px;transition:stroke .22s}

@media(max-width:620px){
  .mobile-bottom-nav{display:flex}
  .sidebar{display:none!important}
  .app{grid-template-columns:1fr!important}
  .app-shell{padding-bottom:88px}
  .content{padding:12px}
  .app-card{border-radius:18px;padding:14px}
  .btn{min-height:46px;border-radius:14px}
  .btn.primary{font-size:15px;font-weight:800}
  .side-nav button,.nav-link{min-height:48px}
  .quest{border-radius:16px;padding:12px}
  .stat-pill{border-radius:16px;padding:10px 14px}
}

/* Game-like Progress */
.progress{height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.progress span{border-radius:999px;background:linear-gradient(90deg,#FF6B35,#FFD60A);box-shadow:0 0 10px rgba(255,107,53,.45)}

/* Metric Cards Game Style */
.metric-card{border:1px solid rgba(255,107,53,.15)!important}
.metric-value{background:linear-gradient(135deg,#FF6B35,#FFD60A);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

/* XP Header Bar */
.xp-header .progress span{box-shadow:0 0 8px rgba(255,107,53,.5)}

/* App Cards */
.app-card{border-radius:20px;transition:transform .2s,border-color .2s}
.app-card:active{transform:scale(.98)}


/* ============================================
   LIFELEVEL GAME REDESIGN - FULL OVERRIDE
   Transformiert Admin-Dashboard → Game App
   ============================================ */

/* === SIDEBAR: Game-Launcher Style === */
.sidebar {
  background: linear-gradient(180deg, #0D0F1E 0%, #080A16 100%) !important;
  border-right: 1px solid rgba(255,107,53,0.12) !important;
  width: 220px !important;
  padding: 16px 12px !important;
}
:root { --sidebar: 220px !important; }

/* Logo größer und farbiger */
.side-head .brand span,
.lifelevel-brand-clean span {
  font-size: 20px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.lifelevel-logo-clean {
  width: 36px !important;
  height: 36px !important;
}

/* Avatar größer */
.profile-mini {
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,214,10,0.06)) !important;
  border: 1px solid rgba(255,107,53,0.2) !important;
  border-radius: 16px !important;
  padding: 14px !important;
}
.profile-mini .avatar, #sideAvatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  color: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Nav Buttons: Icon + Label, game style */
.side-nav {
  gap: 4px !important;
  margin-top: 12px !important;
}
.side-nav button {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  min-height: 48px !important;
  transition: all 0.18s !important;
  color: rgba(255,255,255,0.5) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}
.side-nav button::before {
  font-size: 18px !important;
  margin-right: 10px !important;
}
/* Icons für jeden Nav-Button */
.side-nav button[data-view="dashboard"]::before { content: "🏠" }
.side-nav button[data-view="skilltree"]::before { content: "🌳" }
.side-nav button[data-view="achievements"]::before { content: "🏆" }
.side-nav button[data-view="guilds"]::before { content: "👥" }
.side-nav button[data-view="profile"]::before { content: "👤" }
.side-nav button[data-view="leaderboard"]::before { content: "📊" }
.side-nav button[data-view="friends"]::before { content: "🤝" }
.side-nav button[data-view="liveskills"]::before { content: "🎥" }
.side-nav button[data-view="settings"]::before { content: "⚙️" }

/* Active state: Orange glow */
.side-nav button.active, .side-nav button[class*="active"] {
  background: linear-gradient(135deg, rgba(255,107,53,0.18), rgba(255,214,10,0.08)) !important;
  border: 1px solid rgba(255,107,53,0.3) !important;
  color: #FF6B35 !important;
}
.side-nav button:hover:not(.active) {
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.8) !important;
}

/* Nav dot: kleiner Punkt rechts - ausblenden, Icon reicht */
.nav-dot { display: none !important; }

/* === TOPBAR: mehr Pep === */
.topbar {
  background: rgba(8,10,22,0.95) !important;
  border-bottom: 1px solid rgba(255,107,53,0.1) !important;
  padding: 10px 20px !important;
}

/* XP Bar in Topbar: breiter, oranger Glow */
.xp-bar, .topbar-xp {
  height: 8px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.08) !important;
}
.xp-bar span, .xp-fill {
  background: linear-gradient(90deg, #FF6B35, #FFD60A) !important;
  box-shadow: 0 0 12px rgba(255,107,53,0.6) !important;
  border-radius: 999px !important;
  transition: width 0.8s ease !important;
}

/* Level Badge in Topbar */
.level-badge, .topbar-level {
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  color: #000 !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
  padding: 4px 12px !important;
}

/* === CONTENT AREA === */
.content {
  background: #080A16 !important;
  padding: 20px 24px !important;
}

/* === STREAK BANNER: visuell stärker === */
.streak-banner {
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,214,10,0.1)) !important;
  border: 1px solid rgba(255,107,53,0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(255,107,53,0.15) !important;
  padding: 18px 22px !important;
  margin-bottom: 20px !important;
}
.streak-count { font-size: 40px !important; font-weight: 900 !important; color: #FF6B35 !important; }
.streak-flame { font-size: 40px !important; }
.streak-claim-btn {
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  color: #000 !important;
  font-weight: 900 !important;
  border-radius: 14px !important;
  padding: 12px 22px !important;
  font-size: 15px !important;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4) !important;
  border: none !important;
}

/* === KARTEN: abgerundeter, Game-Look === */
.app-card, .glass, .card {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: rgba(255,255,255,0.04) !important;
  transition: transform 0.18s, border-color 0.18s !important;
}
.app-card:hover, .glass:hover {
  border-color: rgba(255,107,53,0.2) !important;
  transform: translateY(-2px) !important;
}

/* Karten-Headings */
.app-card h2, .card-title, .section-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

/* Quest / Skill Cards */
.quest, .skill-card, .node {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.04) !important;
  transition: transform 0.15s !important;
}
.quest:active, .skill-card:active { transform: scale(0.98) !important; }

/* Buttons: größer und runder */
.btn.primary, button.primary {
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  color: #000 !important;
  font-weight: 900 !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(255,107,53,0.35) !important;
}
.btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
  min-height: 44px !important;
}

/* Progress Bars überall */
.progress, .xp-progress {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.08) !important;
  overflow: hidden !important;
}
.progress span, .xp-progress span {
  background: linear-gradient(90deg, #FF6B35, #FFD60A) !important;
  box-shadow: 0 0 10px rgba(255,107,53,0.5) !important;
  border-radius: 999px !important;
}

/* Online Pill */
.online-pill {
  background: rgba(255,107,53,0.12) !important;
  color: #FFD60A !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.online-pill::before {
  background: #FFD60A !important;
  box-shadow: 0 0 6px #FFD60A !important;
}

/* Metric/Stat Cards */
.metric-card, .stat-card {
  border-radius: 18px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,107,53,0.12) !important;
}
.metric-value, .stat-value {
  font-size: 28px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #FF6B35, #FFD60A) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Headings */
h1, h2, h3 {
  font-weight: 800 !important;
}

/* Live Skills Kategorien */
.live-cat, .category-btn {
  border-radius: 14px !important;
  border: 1px solid rgba(255,107,53,0.2) !important;
  background: rgba(255,107,53,0.06) !important;
  font-weight: 700 !important;
  transition: all 0.18s !important;
}
.live-cat:hover, .category-btn:hover {
  background: rgba(255,107,53,0.15) !important;
  border-color: rgba(255,107,53,0.4) !important;
}

/* Tags / Chips */
.tag, .chip {
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.tag.green { background: rgba(255,214,10,0.15) !important; color: #FFD60A !important; }
.tag.cyan { background: rgba(255,107,53,0.15) !important; color: #FF6B35 !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px }
::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.3); border-radius: 999px }

/* === MOBILE OVERRIDE === */
@media (max-width: 620px) {
  .sidebar { display: none !important; }
  .app { grid-template-columns: 1fr !important; }
  .app-shell, .content { padding-bottom: 88px !important; }
  body:not(.is-auth) .mobile-bottom-nav { display: none !important; }
  body.is-auth .mobile-bottom-nav { display: flex !important; }
}

/* Flex für Icons in Side-Nav */
.side-nav button {
  display: flex !important;
  align-items: center !important;
}
.side-nav button span:first-child {
  flex: 1 !important;
}
/* Topbar Level Text */
.topbar-wrap, .topbar {
  gap: 16px !important;
}
