/* Crew HQ – Design „Neon Noir“ */
@font-face { font-family: 'Anton'; src: url('fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #06070b; --panel-solid: #10131b; --panel-2: #1a1f2c; --ink: #0b0d13;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #eef1f7; --muted: #8d96a9;
  --a: 255 45 120;            /* Akzent als RGB-Tripel, wechselt je Bereich */
  --b: 34 227 208;            /* Zweitfarbe */
  --accent: rgb(var(--a)); --accent-2: rgb(var(--b));
  --money: #3ddc84; --warn: #ffb020; --info: #5cc8ff; --gold: #ffc857;
  --radius: 18px; --shadow: 0 24px 60px rgba(0,0,0,.55);
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
body[data-route=crew]     { --a: 166 107 255; --b: 255 45 120; }
body[data-route=garage]   { --a: 255 45 120;  --b: 120 140 255; }
body[data-route=galerie]  { --a: 42 212 255;  --b: 255 45 120; }
body[data-route=karte]    { --a: 31 224 181;  --b: 255 176 32; }
body[data-route=business] { --a: 61 220 132;  --b: 255 45 120; }
body[data-route=boni]     { --a: 255 181 61;  --b: 255 45 120; }
body[data-route=heist]    { --a: 25 211 197;  --b: 255 200 87; }
body[data-route=profil]   { --a: 122 162 255; --b: 255 45 120; }

* { box-sizing: border-box; }
html { scrollbar-color: #2a3142 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262d3d; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--a) / .7); }
::selection { background: rgb(var(--a) / .45); color: #fff; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--info); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 3D-Hintergrund (three.js) + Schleier darüber */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; opacity: 0; transition: opacity 1.4s ease; }
#bg.on { opacity: 1; }
#bg-veil { position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(1100px 620px at 85% -10%, rgb(var(--a) / .16), transparent 62%),
  radial-gradient(900px 560px at -10% 105%, rgb(var(--b) / .10), transparent 60%),
  linear-gradient(180deg, rgba(6,7,11,.55), rgba(6,7,11,.82) 55%, rgba(6,7,11,.94));
  transition: background .8s; }
#bg-veil::after { content: ''; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Ladebildschirm */
.boot { display: grid; place-items: center; align-content: center; gap: 22px; height: 100vh; color: var(--muted); }
.boot-mark { display: flex; gap: 8px; height: 46px; align-items: flex-end; }
.boot-mark span { width: 10px; border-radius: 3px; background: linear-gradient(180deg, rgb(var(--a)), rgb(var(--b))); animation: eq 1s ease-in-out infinite; box-shadow: 0 0 18px rgb(var(--a) / .6); }
.boot-mark span:nth-child(1) { height: 40%; } .boot-mark span:nth-child(2) { height: 100%; animation-delay: .15s; } .boot-mark span:nth-child(3) { height: 65%; animation-delay: .3s; }
.boot-text { font-family: var(--display); letter-spacing: 4px; text-transform: uppercase; font-size: 14px; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.boot-mark span { transform-origin: bottom; }

/* Layout */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,12,18,.82), rgba(8,9,14,.9)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); display: flex; flex-direction: column; gap: 20px; z-index: 30; }
.side::after { content: ''; position: absolute; top: 0; right: -1px; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgb(var(--a) / .8), transparent); opacity: .55; transition: background .6s; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.brand .tag { font-family: var(--display); font-size: 15px; letter-spacing: 1.5px; color: #fff; padding: 5px 9px 4px; border-radius: 8px; background: linear-gradient(135deg, rgb(var(--a)), rgb(var(--b))); box-shadow: 0 6px 22px rgb(var(--a) / .45); transition: box-shadow .6s; }
.brand .name { font-family: var(--display); font-size: 21px; letter-spacing: .6px; text-transform: uppercase; line-height: 1.05; }
.nav { display: flex; flex-direction: column; gap: 3px; position: relative; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s, background .2s, transform .2s var(--ease); }
.nav a:hover { background: rgba(255,255,255,.05); color: var(--text); transform: translateX(3px); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgb(var(--a) / .26), rgb(var(--a) / .03)); }
.nav a.active::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: rgb(var(--a)); box-shadow: 0 0 14px rgb(var(--a)); animation: navIn .35s var(--ease); }
@keyframes navIn { from { transform: scaleY(0); } }
.nav .ico { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.nav .ico svg, .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a.active .ico { color: rgb(var(--a)); filter: drop-shadow(0 0 8px rgb(var(--a) / .8)); }
.live { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #566074; }
.live.on i { background: var(--money); box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; }
.live.on { color: #b8f5d1; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.side .me:hover { border-color: rgb(var(--a) / .6); background: rgba(255,255,255,.07); }
.side .me .who { flex: 1; min-width: 0; }
.side .me .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me .who small { color: var(--muted); }
.content { min-width: 0; position: relative; }
#main { padding: 22px clamp(16px, 3vw, 40px) 90px; min-width: 0; }

/* Kopfbereich mit Key-Art */
.hero { position: relative; min-height: 270px; display: flex; align-items: flex-end; padding: 34px clamp(16px, 3vw, 40px) 26px; overflow: hidden; isolation: isolate; transition: min-height .6s var(--ease); }
.hero.big { min-height: min(52vh, 460px); }
.hero.stage { min-height: min(62vh, 560px); }
.hero.slim { min-height: 170px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-par { position: absolute; inset: -30px; transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--sy, 0) * .32px + var(--py, 0) * -10px), 0); transition: transform .5s var(--ease); will-change: transform; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 42%; opacity: 0; transition: opacity .9s ease; animation: kenburns 32s ease-in-out infinite alternate; }
.hero-img.on { opacity: 1; }
.hero-img video { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(6,7,11,.35) 0%, transparent 30%, rgba(6,7,11,.55) 68%, var(--bg) 100%),
  linear-gradient(90deg, rgba(6,7,11,.78) 0%, rgba(6,7,11,.25) 46%, transparent 70%),
  radial-gradient(600px 300px at 12% 100%, rgb(var(--a) / .28), transparent 70%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; background: linear-gradient(90deg, rgb(var(--a)), rgb(var(--b) / .6) 35%, transparent 75%); opacity: .8; }
.hero-in { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero-in > div:first-child { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgb(var(--a)); margin-bottom: 10px; text-shadow: 0 0 18px rgb(var(--a) / .7); }
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 78px); letter-spacing: .5px; text-transform: uppercase; margin: 0; line-height: .95; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
h1 .accent { background: linear-gradient(100deg, rgb(var(--a)) 10%, rgb(var(--b)) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgb(var(--a) / .45)); }
.hero h1.in { animation: titleIn .8s var(--ease) both; }
.hero .sub.in, .hero .kicker.in { animation: rise .7s .12s var(--ease) both; }
@keyframes titleIn { from { clip-path: inset(0 100% 0 0); transform: translateX(-14px) skewX(-6deg); opacity: 0; } to { clip-path: inset(0 -5% 0 0); } }
h2 { font-family: var(--display); font-weight: 400; letter-spacing: .6px; text-transform: uppercase; font-size: 22px; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-size: 16px; }
.sub { color: #c3cad8; margin: 10px 0 0; max-width: 64ch; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
#hero-actions { position: relative; z-index: 2; }
#showroom { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s ease; cursor: grab; touch-action: pan-y; }
#showroom.on { opacity: 1; }
#showroom:active { cursor: grabbing; }
#showroom canvas { display: block; width: 100% !important; height: 100% !important; }
.hero.stage::before { background:
  linear-gradient(180deg, rgba(6,7,11,.5) 0%, transparent 26%, transparent 62%, var(--bg) 100%),
  linear-gradient(90deg, rgba(6,7,11,.72) 0%, transparent 40%); pointer-events: none; z-index: 0; }
.hero.stage .hero-in { z-index: 1; pointer-events: none; }
.hero.stage .hero-in button, .hero.stage .hero-in a { pointer-events: auto; }
.stage-hint { position: absolute; right: clamp(16px, 3vw, 40px); top: 22px; z-index: 1; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; pointer-events: none; }
.stage-hint i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; animation: sway 2.6s ease-in-out infinite; }
@keyframes sway { 50% { transform: translateX(6px); } }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1; letter-spacing: .5px; }
.hero-stats span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: 6px; }

/* Einblenden beim Seitenwechsel */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
#main.enter [data-rv] { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }

/* Panels & Raster */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.panel, .stat, .car, .shot, .pin-item { position: relative; background: linear-gradient(180deg, rgba(24,28,40,.78), rgba(13,16,24,.86)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 14px 34px rgba(0,0,0,.28); }
.panel { padding: 20px; }
.panel.tight { padding: 0; overflow: hidden; }
/* Leuchtender Rand, der dem Mauszeiger folgt */
.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgb(var(--a)), rgb(var(--b) / .5) 40%, transparent 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow:hover::before { opacity: 1; }
.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgb(var(--a) / .09), transparent 60%); }
.glow:hover::after { opacity: 1; }
/* 3D-Neigung */
.tilt { transform: perspective(1000px) rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg)) translateZ(0); transition: transform .5s var(--ease), border-color .2s, box-shadow .3s; transform-style: preserve-3d; }
.tilt.tilting { transition: transform .09s linear, border-color .2s, box-shadow .3s; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 26px 60px rgba(0,0,0,.5), 0 0 40px rgb(var(--a) / .12); }

.stat { padding: 18px 20px; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat .k .ic { width: 16px; height: 16px; color: rgb(var(--a)); }
.stat .v { font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); letter-spacing: .5px; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .bgico { position: absolute; right: -14px; bottom: -18px; width: 110px; height: 110px; color: rgb(var(--a) / .09); stroke-width: 1.1; transform: rotate(-10deg); transition: transform .6s var(--ease), color .3s; }
.stat:hover .bgico { transform: rotate(-4deg) scale(1.1); color: rgb(var(--a) / .18); }
.stat .line { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, rgb(var(--a)), transparent 70%); opacity: .8; }
.money { color: var(--money); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 38px 20px; text-align: center; color: var(--muted); background: rgba(255,255,255,.015); }
.empty .big { font-size: 38px; margin-bottom: 8px; animation: float 4s ease-in-out infinite; display: inline-block; }
@keyframes float { 50% { transform: translateY(-7px); } }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Knöpfe & Formulare */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .25s; backdrop-filter: blur(6px); }
.btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: linear-gradient(135deg, rgb(var(--a)), rgb(var(--a) / .72)); border-color: rgb(var(--a)); color: #fff; box-shadow: 0 8px 26px rgb(var(--a) / .38), 0 1px 0 rgba(255,255,255,.3) inset; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.btn.primary:hover { box-shadow: 0 12px 34px rgb(var(--a) / .55), 0 1px 0 rgba(255,255,255,.35) inset; filter: brightness(1.08); }
.btn.primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn.primary:hover::after { left: 130%; }
.btn.green { background: linear-gradient(135deg, #23a260, #1a7a48); border-color: #2fbf74; box-shadow: 0 8px 24px rgba(61,220,132,.25); }
.btn.ghost { background: transparent; backdrop-filter: none; }
.btn.danger { color: #ff8a8a; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5,6,10,.6); color: var(--text); outline: none; font-weight: 500; transition: border-color .2s, box-shadow .2s, background .2s; }
select option { background: #10131b; }
input:focus, select:focus, textarea:focus { border-color: rgb(var(--a)); box-shadow: 0 0 0 3px rgb(var(--a) / .2), 0 0 24px rgb(var(--a) / .18); background: rgba(5,6,10,.85); }
textarea { resize: vertical; min-height: 80px; }
input[type=color] { width: 46px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(5,6,10,.6); padding: 3px; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: rgb(var(--a)); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chip.on { background: rgb(var(--a)); color: #fff; border-color: rgb(var(--a)); box-shadow: 0 6px 18px rgb(var(--a) / .4); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.badge.ok { color: var(--money); border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.08); }
.badge.warn { color: var(--warn); border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); }
.badge.hot { color: #fff; background: linear-gradient(135deg, rgb(var(--a)), rgb(var(--a) / .7)); border-color: rgb(var(--a)); box-shadow: 0 4px 14px rgb(var(--a) / .4); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: 17px; color: #fff; flex: none; text-transform: uppercase; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 16px rgba(0,0,0,.35); position: relative; }
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 45%, rgba(0,0,0,.3)); }
.avatar.lg { width: 62px; height: 62px; border-radius: 18px; font-size: 28px; }
.owner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.owner .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; perspective: 1400px; }
.login-bg { position: fixed; inset: 0; z-index: -1; }
.login-bg video, .login-bg .poster { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; background-size: cover; background-position: center; transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0) scale(1.04); transition: transform .8s var(--ease); }
.login-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(6,7,11,.55) 60%, rgba(6,7,11,.92) 100%), linear-gradient(180deg, rgba(6,7,11,.2), rgba(6,7,11,.75)); }
.login .card { position: relative; overflow: hidden; width: min(440px, 100%); border-radius: 26px; padding: 34px; background: linear-gradient(180deg, rgba(20,23,34,.66), rgba(9,11,17,.8)); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow), 0 0 80px rgb(var(--a) / .16), 0 1px 0 rgba(255,255,255,.14) inset; backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); animation: cardIn 1s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateX(14deg) scale(.94); } }
.login h1 { font-size: clamp(40px, 9vw, 62px); }
.login .tagline { color: #b6bece; margin: 10px 0 22px; }
.login .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgb(var(--a)), transparent); animation: scan 3.6s linear infinite; opacity: .8; border-radius: 2px; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: .8; } 100% { top: 100%; opacity: 0; } }
.login-foot { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); font-weight: 700; }

/* Crew */
.member { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.member .aura { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--mc, rgb(var(--a))); filter: blur(60px); opacity: .22; pointer-events: none; transition: opacity .4s; }
.member:hover .aura { opacity: .42; }
.member .top { display: flex; gap: 14px; align-items: center; position: relative; }
.member .meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.member .meta dt { color: var(--muted); }
.member .meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }

/* Garage */
.car { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.car:hover { border-color: rgb(var(--a) / .5); }
.car .ph { aspect-ratio: 16/9; background: radial-gradient(120% 90% at 50% 100%, rgb(var(--a) / .22), transparent 60%), linear-gradient(135deg, #171b27, #0b0d13); display: grid; place-items: center; color: rgba(255,255,255,.16); position: relative; overflow: hidden; }
.car .ph .ic { width: 64px; height: 64px; stroke-width: 1.1; }
.car .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.car:hover .ph img { transform: scale(1.08); }
.car .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.car:hover .ph::after { transform: translateX(110%); }
.car .ph .fav { position: absolute; top: 10px; right: 10px; z-index: 1; }
.car .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.car .mk { font-size: 11px; color: rgb(var(--a)); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.car .md { font-family: var(--display); font-size: 23px; letter-spacing: .4px; line-height: 1.1; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 12px; border-radius: 16px; background: rgba(13,16,24,.7); border: 1px solid var(--line); }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }

/* Galerie */
.gallery { columns: 4 250px; column-gap: 14px; }
.shot { break-inside: avoid; margin-bottom: 14px; overflow: hidden; }
.shot .imgw { overflow: hidden; }
.shot img { width: 100%; cursor: zoom-in; transition: transform .9s var(--ease), filter .4s; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.15); }
.shot .bd { padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.shot .cap { flex: 1; min-width: 0; font-size: 14px; }
.like { border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; transition: transform .2s var(--ease), color .2s; }
.like:hover { transform: scale(1.15); }
.like.on { color: #ff4d7d; text-shadow: 0 0 14px rgba(255,77,125,.7); }
.lightbox { position: fixed; inset: 0; background: rgba(3,4,7,.92); backdrop-filter: blur(14px); z-index: 60; display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade .25s; }
.lightbox img { max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 80px rgb(var(--a) / .2); animation: zoomIn .45s var(--ease); }
@keyframes zoomIn { from { transform: scale(.9); opacity: 0; } }
.lightbox .cap { color: #fff; text-align: center; margin-top: 12px; }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.07); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s, transform .2s; }
.lightbox .lb-nav:hover { background: rgb(var(--a) / .6); transform: translateY(-50%) scale(1.08); }
.lightbox .lb-nav.prev { left: 18px; } .lightbox .lb-nav.next { right: 18px; }

/* Karte */
.map-wrap { display: grid; grid-template-columns: 1fr 310px; gap: 16px; }
.map-viewport { position: relative; height: min(78vh, 900px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #0d2233, #05080d 75%); touch-action: none; cursor: grab; perspective: 1500px; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgb(var(--a) / .08) inset; }
.map-viewport::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,8,13,.75), transparent 16%, transparent 84%, rgba(5,8,13,.75)); opacity: 0; transition: opacity .6s; z-index: 3; }
.map-viewport.is3d::after { opacity: 1; }
.map-viewport.adding { cursor: crosshair; }
.map-viewport.dragging { cursor: grabbing; }
.map-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 58%; transition: transform 1s var(--ease); }
.map-viewport.is3d .map-tilt { transform: rotateX(54deg) rotateZ(-6deg) scale(1.18) translateY(-3%); }
.map-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform-style: preserve-3d; }
.map-canvas svg, .map-canvas img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.map-viewport.is3d .map-canvas svg, .map-viewport.is3d .map-canvas img { filter: drop-shadow(0 40px 30px rgba(0,0,0,.7)) saturate(1.2); }
#pins { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.pin { pointer-events: auto; }
.pin { position: absolute; transform-origin: 50% 100%; width: 0; height: 0; transform-style: preserve-3d; }
.map-viewport.flip .pin { transition: transform 1s var(--ease); }
.pin button { position: absolute; left: -16px; top: -38px; width: 32px; height: 38px; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .25s var(--ease); transform-origin: 50% 100%; }
#main.enter .pin button { animation: pinDrop .7s .3s var(--ease) both; }
.pin button:hover { transform: scale(1.25) translateY(-2px); }
@keyframes pinDrop { from { transform: translateY(-40px) scale(.4); opacity: 0; } }
.pin svg { width: 32px; height: 38px; }
.pin .em { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 14px; }
.pin .beacon { position: absolute; left: -9px; top: -5px; width: 18px; height: 10px; border-radius: 50%; border: 2px solid var(--c, #fff); animation: beacon 2.4s ease-out infinite; pointer-events: none; }
@keyframes beacon { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.map-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.map-tools .btn { background: rgba(10,12,18,.8); }
.map-tools .btn.t3d { font-family: var(--display); letter-spacing: 1px; font-size: 13px; }
.map-hint { position: absolute; left: 12px; top: 12px; z-index: 5; background: rgba(10,12,18,.88); border: 1px solid rgb(var(--a) / .6); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; box-shadow: 0 0 24px rgb(var(--a) / .25); }
.pin-list { display: flex; flex-direction: column; gap: 8px; max-height: min(78vh, 900px); overflow: auto; padding-right: 2px; }
.pin-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.pin-item:hover { border-color: rgb(var(--a) / .5); transform: translateX(3px); }
.pin-item .em { font-size: 18px; }

/* Business */
.biz { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.biz .head { display: flex; gap: 12px; align-items: center; }
.biz .em { font-size: 24px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); flex: none; }
.biz .dial { position: relative; width: 168px; height: 168px; margin: 2px auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 9; }
.ring .tr { stroke: rgba(255,255,255,.07); }
.ring .fg { stroke: url(#rg-run); stroke-linecap: round; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 7px rgb(var(--a) / .8)); }
.biz.ready .ring .fg { stroke: url(#rg-ready); filter: drop-shadow(0 0 10px rgba(61,220,132,.9)); }
.biz.paused .ring .fg { stroke: #55607a; filter: none; }
.biz.idle .ring .fg { opacity: 0; }
.biz .dial .mid { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; gap: 2px; }
.biz .time { font-family: var(--display); font-size: 25px; letter-spacing: .5px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.biz .dial small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.biz.ready { border-color: rgba(61,220,132,.5); box-shadow: 0 0 0 1px rgba(61,220,132,.2) inset, 0 0 50px rgba(61,220,132,.14), 0 14px 34px rgba(0,0,0,.28); }
.biz.ready .dial::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, rgba(61,220,132,.2), transparent 65%); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .5; } }
.bar { height: 10px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, rgb(var(--a)), rgb(var(--b))); border-radius: 999px; transition: width .8s var(--ease); box-shadow: 0 0 14px rgb(var(--a) / .6); position: relative; }
.bar > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 2.4s linear infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.bar.seg { display: flex; height: 16px; }
.bar.seg > i { border-radius: 0; box-shadow: none; }
.bar.seg > i::after { display: none; }

/* Diagramme */
.viz { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease); }
.donut .mid { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.donut .mid b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.donut .mid small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.legend { display: grid; gap: 8px; flex: 1; min-width: 170px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: 0 0 10px currentColor; }
.legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfd5e2; }
.legend b { font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 10px; }
.hbars .hb { display: grid; grid-template-columns: 120px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.hbars .hb span { color: #cfd5e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .hb b { text-align: right; font-variant-numeric: tabular-nums; }
.hbars .tr { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbars .tr i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--a)), rgb(var(--b))); width: 0; transition: width 1s var(--ease); }

/* Boni */
.md-out h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; letter-spacing: .5px; margin: 0 0 12px; background: linear-gradient(100deg, #fff, rgb(var(--a))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.md-out p { margin: 8px 0; }
.md-out ul { margin: 4px 0 12px; padding-left: 0; list-style: none; }
.md-out li { margin: 5px 0; padding-left: 20px; position: relative; }
.md-out li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: rgb(var(--a)); transform: rotate(45deg); box-shadow: 0 0 8px rgb(var(--a)); }
.md-out strong { color: #fff; }
.bonus-list { display: flex; flex-direction: column; gap: 8px; }

/* Heist */
.heist-grid { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.loot-row { display: grid; grid-template-columns: 26px 1fr 90px; gap: 10px; align-items: center; }
.loot-row .nm { font-weight: 600; }
.loot-row .nm small { display: block; color: var(--muted); font-weight: 500; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
table.t tr:last-child td { border-bottom: 0; }
table.t tr { transition: background .2s; }
table.t tr:hover td { background: rgba(255,255,255,.025); }
table.t th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.panel.tight table.t td { padding: 12px 16px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-variant-numeric: tabular-nums; }
.total.big { font-family: var(--display); font-size: 34px; letter-spacing: .4px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.total.big .money { text-shadow: 0 0 26px rgba(61,220,132,.5); }
.tabs { display: inline-flex; background: rgba(13,16,24,.8); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.tabs button.on { background: rgb(var(--a)); color: #fff; box-shadow: 0 6px 20px rgb(var(--a) / .4); }
.warn-box { border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.07); color: #ffd58a; padding: 11px 13px; border-radius: 12px; font-size: 13px; }
.info-box { border: 1px solid rgba(92,200,255,.35); background: rgba(92,200,255,.06); color: #c5e9fb; padding: 11px 13px; border-radius: 12px; font-size: 13px; }

/* Modal & Toast */
.modal-bg { position: fixed; inset: 0; background: rgba(3,4,7,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .2s; perspective: 1200px; }
.modal { width: min(580px, 100%); max-height: 92vh; overflow: auto; background: linear-gradient(180deg, rgba(24,28,40,.97), rgba(12,14,21,.98)); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow), 0 0 90px rgb(var(--a) / .14); animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) rotateX(10deg) scale(.95); } }
.modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(20,24,34,.96); backdrop-filter: blur(8px); z-index: 1; }
.modal .mh h2 { margin: 0; }
.modal .mb { padding: 18px 20px 22px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; position: relative; overflow: hidden; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: rgb(var(--a)); color: var(--text); background: rgb(var(--a) / .06); }
.drop img { max-height: 220px; margin: 0 auto 8px; border-radius: 10px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(20,24,35,.92); backdrop-filter: blur(12px); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; animation: toastIn .45s var(--ease); max-width: 90vw; }
.toast.err { border-color: rgba(255,90,90,.6); color: #ffb3b3; box-shadow: var(--shadow), 0 0 30px rgba(255,90,90,.2); }
.toast.ok { border-color: rgba(61,220,132,.6); box-shadow: var(--shadow), 0 0 30px rgba(61,220,132,.2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* Mobil */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 40; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(8,9,14,.94); }
  .side::after { display: none; }
  .side .brand, .side .me, .side .live { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 2px; width: 100%; scrollbar-width: none; }
  .nav a { flex-direction: column; gap: 2px; padding: 7px 10px; font-size: 11px; min-width: 66px; text-align: center; }
  .nav a:hover { transform: none; }
  .nav a.active::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 3px; }
  #main { padding-bottom: 120px; }
  .hero { min-height: 210px; padding-top: 22px; }
  .hero.big { min-height: 300px; } .hero.stage { min-height: 600px; } .hero.stage #showroom { bottom: auto; height: 270px; }
  .stage-hint { display: none; }
  .map-wrap, .heist-grid { grid-template-columns: 1fr; }
  .map-viewport { height: 62vh; }
  .form .two { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbars .hb { grid-template-columns: 96px 1fr 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero-par, .tilt { transform: none !important; }
}
