:root {
  --bg: #090d16;
  --bg-soft: #0d1220;
  --panel: #141923;
  --panel-strong: #181e2b;
  --panel-purple: #1a1f39;
  --border: #2a3243;
  --border-soft: rgba(255,255,255,.08);
  --text: #f5f6fb;
  --muted: #a6aec0;
  --muted-2: #768096;
  --primary: #6775f5;
  --primary-2: #9887ff;
  --green: #28ce7a;
  --red: #ff637d;
  --amber: #f6b74f;
  --blue: #5ea6ff;
  --shadow: 0 24px 70px rgba(0,0,0,.25);
  --radius: 22px;
  --shell: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 4% 15%, rgba(73,87,214,.16), transparent 28%),
    radial-gradient(circle at 96% 86%, rgba(98,61,190,.15), transparent 24%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
code { color: #c8c5ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.page-glow { position: fixed; pointer-events: none; z-index: -1; filter: blur(25px); opacity: .55; }
.page-glow-left { width: 480px; height: 480px; left: -260px; top: 190px; background: rgba(70,84,226,.15); border-radius: 50%; }
.page-glow-right { width: 430px; height: 430px; right: -240px; bottom: 40px; background: rgba(120,73,220,.12); border-radius: 50%; }
.section-shell { width: min(var(--shell), calc(100% - 44px)); margin-inline: auto; }

.site-header { padding: 16px 0 0; position: relative; z-index: 50; }
.nav-shell {
  width: min(var(--shell), calc(100% - 44px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0 15px 0 18px;
  display: grid;
  grid-template-columns: 205px 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(10,14,23,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { display: block; width: auto; height: auto; max-width: 38px; max-height: 46px; object-fit: contain; flex-shrink: 0; }
.brand span, .brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: #c3c8d5; font-size: 9px; font-weight: 800; letter-spacing: .23em; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 5px; }
.main-nav a { padding: 11px 12px; border-radius: 11px; color: #b8bfce; font-size: 13px; font-weight: 700; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.065); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.login-button, .menu-button {
  border: 1px solid rgba(113,126,247,.46);
  background: linear-gradient(180deg, rgba(38,45,83,.9), rgba(22,27,51,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 10px 28px rgba(48,58,160,.14);
  border-radius: 12px;
  min-height: 42px;
  cursor: pointer;
}
.login-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.login-button svg { color: #9fa8ff; }
.menu-button { display: none; width: 42px; place-items: center; }

.hero { min-height: 520px; padding-top: 62px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .9fr); gap: 85px; align-items: center; }
.hero-copy { max-width: 710px; }
.eyebrow, .card-label { display: inline-block; color: #9ba6ff; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(58px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(90deg, #7584ff 0%, #a68cff 68%, #8f84ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 660px; margin: 0; color: #b1b8c8; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; gap: 11px; margin-top: 28px; }
.primary-button, .secondary-button, .text-button, .server-refresh {
  border-radius: 12px;
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button { border: 1px solid #7784ff; background: linear-gradient(135deg, #6574f4, #5969eb); box-shadow: 0 16px 34px rgba(81,99,225,.22); }
.secondary-button { border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.primary-button:hover, .secondary-button:hover, .server-refresh:hover { transform: translateY(-2px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); border-radius: 999px; color: #c8cddd; font-size: 10px; }
.hero-chips i, .profile-strip span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(40,206,122,.65); }

.process-card { padding: 36px 30px 28px; border: 1px solid #333b55; border-radius: 22px; background: linear-gradient(145deg, rgba(27,33,59,.95), rgba(19,24,38,.96)); box-shadow: var(--shadow); }
.process-list { display: grid; gap: 18px; margin-top: 24px; }
.process-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; }
.process-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #222c58; color: white; font-size: 13px; font-weight: 900; }
.process-item div { display: flex; flex-direction: column; }
.process-item strong { font-size: 13px; }
.process-item small { color: #9ba5ba; font-size: 10px; margin-top: 2px; }

.connection-banner { width: min(var(--shell), calc(100% - 44px)); margin: 42px auto 20px; padding: 14px 16px; align-items: center; justify-content: space-between; gap: 16px; border-radius: 14px; border: 1px solid rgba(255,99,125,.35); background: rgba(70,25,39,.32); }
.connection-banner:not([hidden]) { display: flex; }
.connection-banner > div { display: flex; align-items: center; gap: 11px; }
.connection-banner svg { color: #ff889e; font-size: 20px; }
.connection-banner span { display: flex; flex-direction: column; }
.connection-banner small { color: #caa9b2; }
.connection-banner button { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 10px; padding: 9px 13px; font-weight: 800; cursor: pointer; }

.overview { margin-top: 72px; display: grid; grid-template-columns: .93fr 1.07fr; gap: 22px; }
.overview-card { min-height: 350px; padding: 34px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(145deg, rgba(21,26,36,.98), rgba(17,21,31,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.17); }
.overview-profile h2 { margin: 12px 0 12px; font-size: clamp(34px, 3.4vw, 45px); line-height: 1.03; letter-spacing: -.05em; }
.overview-profile > p { max-width: 450px; color: #aab2c3; font-size: 13px; }
.profile-strip { margin-top: 25px; padding: 12px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.028); }
.profile-strip img { width: 52px; height: 52px; object-fit: cover; border-radius: 11px; border: 1px solid rgba(255,255,255,.1); }
.profile-strip div { display: flex; flex-direction: column; min-width: 0; }
.profile-strip small { color: #838ca1; font-size: 10px; }
.profile-strip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-strip span { margin-top: 3px; display: inline-flex; align-items: center; gap: 7px; color: #75e3aa; font-size: 10px; }
.text-button { min-height: auto; margin-top: 17px; padding: 0; border: 0; background: transparent; color: #bec6ff; }
.overview-summary { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 28%, rgba(102,114,244,.12), transparent 32%), linear-gradient(145deg, rgba(21,26,36,.98), rgba(17,21,31,.98)); }
.summary-logo { width: 48px; height: 58px; }
.overview-summary h2 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.overview-summary p { max-width: 450px; margin: 0; color: #939caf; font-size: 12px; }
.summary-stats { width: 100%; margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); }
.summary-stats div { padding: 2px 14px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); }
.summary-stats div:last-child { border-right: 0; }
.summary-stats strong { font-size: 23px; }
.summary-stats span { color: #818a9d; font-size: 10px; }

.content-section { padding-top: 112px; scroll-margin-top: 25px; }
.section-heading { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { max-width: 410px; margin: 0 0 5px; color: #8f98aa; font-size: 13px; text-align: right; }
.panel { border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: linear-gradient(145deg, rgba(22,27,39,.98), rgba(16,21,31,.98)); box-shadow: 0 22px 65px rgba(0,0,0,.15); }
.character-grid { display: grid; grid-template-columns: 1.62fr .78fr; gap: 18px; }
.character-card { padding: 27px; display: grid; grid-template-columns: 190px 1fr; gap: 28px; }
.portrait-box { padding-right: 26px; border-right: 1px solid rgba(255,255,255,.08); }
.portrait-box > span { color: #939db2; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.portrait-box img { width: 132px; height: 150px; margin-top: 14px; object-fit: cover; border: 1px solid #3b455d; border-radius: 14px; background: #070a10; }
.portrait-box small { margin-top: 13px; display: inline-flex; align-items: center; gap: 7px; color: #91dcb5; font-size: 10px; }
.portrait-box small i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px rgba(40,206,122,.5); }
.character-data { min-width: 0; }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-topline h3 { margin: 5px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.readonly-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(40,206,122,.16); background: rgba(40,206,122,.07); color: #78dfa9; font-size: 9px; font-weight: 800; white-space: nowrap; }
.data-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 18px; }
.data-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; min-width: 0; }
.data-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #7e8cff; background: rgba(86,104,238,.12); }
.data-item > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.data-item small { color: #818a9d; font-size: 10px; }
.data-item strong { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.finance-card { padding: 27px; }
.money-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #9aa4ff; background: rgba(102,117,245,.12); font-weight: 900; font-size: 20px; }
.finance-list { margin-top: 26px; display: grid; gap: 10px; }
.finance-list > div { min-height: 68px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.025); }
.finance-list span { display: inline-flex; align-items: center; gap: 9px; color: #aab2c3; }
.finance-list svg { color: #8490ff; }
.finance-list b { font-size: 11px; }
.finance-list strong { font-size: 14px; }
.finance-note { margin-top: 16px; padding: 11px 12px; display: flex; gap: 9px; align-items: flex-start; border-radius: 11px; background: rgba(96,111,241,.07); color: #9fa8bb; font-size: 10px; }
.finance-note svg { flex: 0 0 auto; color: #8b97ff; font-size: 15px; }
.quick-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-stats article { min-height: 106px; padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(19,24,35,.96); }
.quick-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; }
.quick-icon.violet { background: rgba(139,92,246,.14); color: #a379ff; }
.quick-icon.blue { background: rgba(74,144,255,.14); color: #69adff; }
.quick-icon.green { background: rgba(40,206,122,.13); color: #43dc91; }
.quick-icon.amber { background: rgba(246,183,79,.13); color: #ffc15c; }
.quick-stats article > div { display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: baseline; }
.quick-stats small { grid-column: 1 / -1; color: #8a93a6; font-size: 10px; }
.quick-stats strong { font-size: 21px; line-height: 1; }
.quick-stats article > div > span { color: #7c8597; font-size: 9px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.vehicle-card { overflow: hidden; min-height: 215px; padding: 24px; display: grid; grid-template-columns: 94px 1fr; gap: 20px; position: relative; }
.vehicle-card::before { content: ""; position: absolute; width: 190px; height: 190px; right: -90px; top: -90px; border-radius: 50%; background: rgba(105,116,245,.08); filter: blur(2px); }
.vehicle-icon { width: 94px; height: 94px; display: grid; place-items: center; align-self: center; border-radius: 22px; background: linear-gradient(145deg, rgba(104,113,245,.18), rgba(104,113,245,.06)); color: #8c97ff; font-size: 44px; }
.vehicle-content { min-width: 0; position: relative; z-index: 1; }
.vehicle-content small { color: #7f899d; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.vehicle-content h3 { margin: 5px 0 3px; font-size: 20px; }
.vehicle-plate { display: inline-flex; margin-top: 8px; padding: 5px 9px; border-radius: 7px; background: #f6f7fb; color: #111521; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.vehicle-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-meta span { padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.045); color: #9aa3b4; font-size: 9px; }
.vehicle-details { margin-top: 17px; padding: 0; border: 0; background: transparent; color: #aeb6ff; font-size: 11px; font-weight: 800; cursor: pointer; }
.empty-card { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; padding: 35px; text-align: center; }
.empty-card svg { color: #7784f7; font-size: 38px; }
.empty-card h3 { margin: 12px 0 3px; }
.empty-card p { margin: 0; color: #8c95a8; font-size: 12px; }
.loading-card { min-height: 210px; padding: 25px; display: grid; gap: 12px; }
.loading-card span, .inventory-loading { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.08), rgba(255,255,255,.035)); background-size: 220% 100%; animation: shimmer 1.45s infinite; }
.loading-card span:nth-child(1) { width: 45%; height: 20px; }
.loading-card span:nth-child(2) { width: 85%; height: 42px; }
.loading-card span:nth-child(3) { width: 62%; height: 17px; }
@keyframes shimmer { to { background-position: -220% 0; } }

.inventory-heading { align-items: center; }
.search-box { width: min(330px, 100%); min-height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); }
.search-box svg { color: #7e899d; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }
.search-box input::placeholder { color: #6f788a; }
.inventory-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.inventory-item { min-height: 145px; padding: 18px 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: linear-gradient(145deg, rgba(21,26,38,.98), rgba(17,21,31,.98)); cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.inventory-item:hover { transform: translateY(-3px); border-color: rgba(120,133,255,.42); }
.inventory-item span:first-child { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(97,110,242,.12); color: #8995ff; font-size: 22px; }
.inventory-item strong { margin-top: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.inventory-item small { margin-top: 3px; color: #7e8799; font-size: 9px; }
.inventory-loading { min-height: 145px; }

.server-section { padding-top: 112px; }
.server-panel { min-height: 250px; padding: 36px; display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 35px; border: 1px solid #333b55; border-radius: 22px; background: radial-gradient(circle at 90% 20%, rgba(99,111,244,.14), transparent 30%), linear-gradient(145deg, rgba(25,31,55,.96), rgba(17,22,34,.98)); }
.server-panel h2 { margin: 9px 0 8px; font-size: 34px; letter-spacing: -.045em; }
.server-panel h2 span.online { color: #6ae4a6; }
.server-panel h2 span.offline { color: #ff8298; }
.server-panel p { margin: 0; color: #929bae; font-size: 12px; }
.server-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.server-metrics div { padding: 4px 18px; display: flex; flex-direction: column; text-align: center; border-right: 1px solid rgba(255,255,255,.09); }
.server-metrics div:last-child { border-right: 0; }
.server-metrics strong { font-size: 20px; }
.server-metrics span { color: #7d879a; font-size: 9px; }
.server-refresh { min-height: 43px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.045); font-size: 11px; }

.faq-section { padding-top: 112px; padding-bottom: 110px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faq-grid details { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(20,25,36,.96); }
.faq-grid summary { cursor: pointer; font-size: 12px; font-weight: 800; }
.faq-grid p { margin: 13px 0 0; color: #8f98aa; font-size: 11px; }

.footer { min-height: 110px; padding: 24px 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid rgba(255,255,255,.075); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 31px; height: 38px; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 12px; }
.footer-brand small { color: #727c8f; font-size: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: #828b9d; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 22px; display: grid; place-items: center; background: rgba(3,6,12,.76); backdrop-filter: blur(12px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(520px, 100%); padding: 30px; position: relative; border: 1px solid #39415a; border-radius: 20px; background: #151a27; box-shadow: 0 32px 100px rgba(0,0,0,.5); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); cursor: pointer; }
.modal h2 { margin: 8px 0 14px; font-size: 27px; }
.modal-body { color: #a7afc0; font-size: 12px; }
.modal-body dl { margin: 18px 0 0; display: grid; gap: 9px; }
.modal-body dl div { padding: 10px 12px; display: flex; justify-content: space-between; gap: 20px; border-radius: 10px; background: rgba(255,255,255,.035); }
.modal-body dt { color: #7e8799; }
.modal-body dd { margin: 0; color: white; font-weight: 800; }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 360px; padding: 14px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #171d2a; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.toast > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(102,117,245,.12); color: #8d98ff; }
.toast div { display: flex; flex-direction: column; }
.toast strong { font-size: 12px; }
.toast small { color: #8d96a8; font-size: 10px; }

@media (max-width: 1080px) {
  .nav-shell { grid-template-columns: 175px 1fr auto; }
  .main-nav a { padding-inline: 8px; font-size: 12px; }
  .hero { gap: 38px; }
  .character-grid { grid-template-columns: 1fr; }
  .finance-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; }
  .finance-list { margin-top: 0; }
  .finance-note { grid-column: 1 / -1; }
  .inventory-grid { grid-template-columns: repeat(4, 1fr); }
  .server-panel { grid-template-columns: 1fr; text-align: center; }
  .server-refresh { justify-self: center; }
}

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .main-nav { position: absolute; top: 82px; left: 22px; right: 22px; padding: 12px; display: none; flex-direction: column; align-items: stretch; background: #111722; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .menu-button { display: grid; }
  .login-button span { display: none; }
  .login-button { width: 42px; padding: 0; justify-content: center; }
  .hero { min-height: auto; padding-top: 76px; grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .process-card { max-width: 600px; }
  .overview { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-shell, .nav-shell, .connection-banner { width: min(100% - 24px, var(--shell)); }
  .nav-shell { min-height: 64px; padding-inline: 13px; border-radius: 16px; }
  .brand img { max-width: 31px; max-height: 38px; }
  .brand strong { font-size: 14px; }
  .hero { padding-top: 58px; gap: 35px; }
  .hero h1 { font-size: clamp(47px, 15vw, 66px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .hero-chips { align-items: flex-start; flex-direction: column; }
  .process-card { padding: 27px 22px; }
  .overview { margin-top: 42px; }
  .overview-card { min-height: auto; padding: 27px 22px; }
  .summary-stats div { padding-inline: 7px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .content-section, .server-section, .faq-section { padding-top: 82px; }
  .character-card { grid-template-columns: 1fr; padding: 22px; }
  .portrait-box { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .portrait-box img { width: 116px; height: 132px; }
  .data-grid { grid-template-columns: 1fr; }
  .finance-card { display: block; padding: 22px; }
  .finance-list { margin-top: 22px; }
  .quick-stats { grid-template-columns: 1fr; }
  .vehicle-card { grid-template-columns: 72px 1fr; padding: 19px; }
  .vehicle-icon { width: 72px; height: 72px; font-size: 34px; }
  .inventory-heading { align-items: stretch; }
  .search-box { width: 100%; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .server-panel { padding: 28px 20px; }
  .server-metrics { grid-template-columns: 1fr; gap: 12px; }
  .server-metrics div { padding: 9px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .server-metrics div:last-child { border-bottom: 0; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .connection-banner:not([hidden]) { align-items: flex-start; flex-direction: column; }
}

/* Discord-Login und geschützter Spielerbereich */
.auth-body { min-height: 100vh; }
.auth-header {
  width: min(var(--shell), calc(100% - 44px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(10,14,23,.9);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.auth-header-state { display: inline-flex; align-items: center; gap: 9px; color: #aeb6c8; font-size: 11px; font-weight: 800; }
.auth-header-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px rgba(40,206,122,.7); }
.auth-layout {
  width: min(var(--shell), calc(100% - 44px));
  min-height: calc(100vh - 108px);
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(370px,.75fr);
  align-items: center;
  gap: 82px;
}
.auth-layout.single { grid-template-columns: minmax(0,620px); justify-content: center; }
.auth-copy h1, .auth-card h1 { margin: 16px 0 22px; line-height: .98; letter-spacing: -.06em; }
.auth-copy h1 { font-size: clamp(58px,7vw,88px); }
.auth-copy h1 span { background: linear-gradient(90deg,#7584ff,#a68cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy > p { max-width: 670px; margin: 0; color: #aeb6c7; font-size: 16px; line-height: 1.75; }
.auth-benefits { margin-top: 34px; display: grid; gap: 13px; }
.auth-benefits > div { display: grid; grid-template-columns: 46px 1fr; gap: 13px; align-items: center; }
.auth-benefits > div > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(117,132,255,.2); border-radius: 14px; background: rgba(91,104,239,.1); color: #929dff; font-size: 20px; }
.auth-benefits div div { display: flex; flex-direction: column; }
.auth-benefits strong { font-size: 13px; }
.auth-benefits small { color: #818b9e; font-size: 10px; }
.auth-card {
  padding: 38px;
  position: relative;
  overflow: hidden;
  border: 1px solid #343d58;
  border-radius: 24px;
  background: radial-gradient(circle at 100% 0,rgba(105,118,247,.16),transparent 34%), linear-gradient(145deg,rgba(25,31,52,.98),rgba(17,22,34,.98));
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
}
.auth-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg,rgba(255,255,255,.025),transparent 35%); }
.auth-card > * { position: relative; z-index: 1; }
.auth-card-icon { width: 58px; height: 58px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg,#6574f4,#785ff1); box-shadow: 0 15px 35px rgba(83,91,224,.25); font-size: 27px; }
.auth-card h2 { margin: 10px 0 10px; font-size: 31px; letter-spacing: -.04em; }
.auth-card h1 { font-size: 44px; }
.auth-card > p { margin: 0; color: #9da6b8; font-size: 12px; line-height: 1.75; }
.discord-login-button {
  width: 100%;
  min-height: 53px;
  margin-top: 25px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #7c87ff;
  border-radius: 13px;
  background: linear-gradient(135deg,#5865f2,#6f62ed);
  color: white;
  box-shadow: 0 17px 38px rgba(65,76,216,.26);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.discord-login-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.discord-login-button svg { width: 22px; height: 22px; }
.discord-login-button.disabled { opacity: .45; cursor: not-allowed; }
.auth-privacy { margin-top: 17px; display: flex; align-items: flex-start; gap: 9px; color: #7f899d; font-size: 9px; }
.auth-privacy svg { flex: 0 0 auto; color: #8c97ff; font-size: 14px; }
.auth-config-warning, .link-admin-note { margin-top: 22px; padding: 13px; display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: center; border: 1px solid rgba(246,183,79,.2); border-radius: 12px; background: rgba(246,183,79,.07); }
.auth-config-warning svg, .link-admin-note svg { color: #ffc765; font-size: 20px; }
.auth-config-warning span, .link-admin-note span { display: flex; flex-direction: column; }
.auth-config-warning strong, .link-admin-note strong { font-size: 11px; }
.auth-config-warning small, .link-admin-note small { color: #a59a80; font-size: 9px; }
.auth-alert { text-align: center; }
.auth-alert.danger { border-color: rgba(255,99,125,.35); }
.auth-logo { display: block; width: auto; height: auto; max-width: 68px; max-height: 68px; margin: 0 auto 20px; object-fit: contain; }
.discord-profile-avatar { width: 88px; height: 88px; margin: 0 auto 22px; object-fit: cover; border: 3px solid rgba(125,137,255,.55); border-radius: 24px; box-shadow: 0 17px 40px rgba(68,77,190,.24); }
.link-card { text-align: center; }
.link-details { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.link-details div { min-width: 0; padding: 13px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
.link-details small { color: #788296; font-size: 9px; }
.link-details strong { overflow: hidden; text-overflow: ellipsis; color: #e4e7ef; font-size: 11px; }
.link-admin-note { text-align: left; }
.link-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.link-actions .discord-login-button { margin-top: 0; }

.discord-user-button {
  min-height: 46px;
  padding: 5px 10px 5px 6px;
  display: grid;
  grid-template-columns: 34px minmax(0,110px) 18px;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(113,126,247,.38);
  border-radius: 13px;
  background: linear-gradient(180deg,rgba(37,44,77,.9),rgba(22,27,48,.95));
}
.discord-user-button img { width: 34px; height: 34px; object-fit: cover; border-radius: 10px; }
.discord-user-button span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.discord-user-button small { color: #8993a7; font-size: 8px; }
.discord-user-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.discord-user-button > svg { color: #929cff; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 42px; padding-top: 52px; }
  .auth-copy { max-width: 720px; }
  .discord-user-button { grid-template-columns: 34px 18px; }
  .discord-user-button span { display: none; }
}

@media (max-width: 680px) {
  .auth-header, .auth-layout { width: min(100% - 24px,var(--shell)); }
  .auth-header { min-height: 66px; padding-inline: 14px; }
  .auth-header-state { display: none; }
  .auth-layout { min-height: auto; padding: 54px 0; }
  .auth-copy h1 { font-size: clamp(49px,15vw,68px); }
  .auth-copy > p { font-size: 14px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h1 { font-size: 36px; }
  .link-details, .link-actions { grid-template-columns: 1fr; }
  .link-actions .secondary-button { width: 100%; }
}

/* Login-Gate: index.html bleibt bestehen, wird aber durch eine echte PHP-Prüfung gesichert. */
.auth-retry-button {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(133, 146, 185, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  color: #aeb7c9;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.auth-retry-button:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(120, 107, 255, .45);
  background: rgba(105, 93, 245, .08);
}
.auth-retry-button:disabled { opacity: .5; cursor: wait; }
.discord-login-button.disabled {
  pointer-events: auto;
  opacity: .42;
  filter: saturate(.45);
  cursor: not-allowed;
}
.auth-config-warning.is-ready {
  border-color: rgba(40, 206, 122, .24);
  background: rgba(40, 206, 122, .075);
}
.auth-config-warning.is-ready svg { color: #39dc8b; }
.auth-config-warning.is-ready small { color: #8ebba5; }
.auth-config-warning.is-error {
  border-color: rgba(255, 91, 116, .25);
  background: rgba(255, 91, 116, .07);
}
.auth-config-warning.is-error svg { color: #ff6e86; }
.auth-config-warning.is-error small { color: #c9969f; }
.auth-header-state.is-error { color: #d29da8; }
.auth-header-state.is-error i { background: #ff5b74; box-shadow: 0 0 13px rgba(255, 91, 116, .7); }
