/* StreetKings Italia — Area Racer / V53 */
.account-link { color: var(--yellow) !important; }
.account-link.is-authenticated { border-color: rgba(223,250,3,.32); }

.portal-page { min-height:100vh; padding-top:82px; background:radial-gradient(circle at 80% 0%,rgba(223,250,3,.07),transparent 28%),#080a0d; }
.portal-shell { width:min(1320px,calc(100% - 56px)); margin:0 auto; padding:50px 0 92px; }
.portal-kicker { color:var(--yellow); font-size:.7rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.portal-muted { color:#8f98a4; }
.portal-hidden { display:none !important; }

.login-hero { min-height:430px; display:flex; align-items:center; position:relative; overflow:hidden; border-bottom:1px solid #ffffff18; }
.login-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#080a0df5 8%,#080a0ddf 48%,#080a0d85),linear-gradient(0deg,#080a0d 0%,transparent 68%),url('/assets/media/hero-incrocio.webp') center 58%/cover no-repeat; }
.login-hero-inner { position:relative; z-index:1; width:min(1180px,calc(100% - 56px)); margin:0 auto; padding:72px 0; }
.login-hero h1 { margin:12px 0 14px; color:#f6f7f5; font:400 clamp(3.8rem,8vw,7.4rem)/.84 'Bebas Neue',Impact,sans-serif; }
.login-hero h1 span { color:var(--yellow); }
.login-hero p { max-width:650px; color:#aeb5bf; line-height:1.7; }
.login-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:16px; margin-top:-56px; position:relative; z-index:2; }
.portal-card { border:1px solid #ffffff20; background:#0f141a; }
.portal-card-pad { padding:28px; }
.login-card { border-top:2px solid var(--yellow); background:linear-gradient(140deg,rgba(223,250,3,.08),transparent 55%),#0f141a; }
.login-card h2 { color:#f3f5f6; font:400 2.8rem/1 'Bebas Neue',Impact,sans-serif; }
.login-card p { margin-top:12px; color:#969faa; line-height:1.65; }
.discord-login-btn { margin-top:24px; width:100%; min-height:56px; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--yellow); background:var(--yellow); color:#080a0d; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.discord-login-btn:hover { filter:brightness(1.06); }
.login-requirements { display:grid; gap:12px; }
.login-requirement { padding:18px; border-bottom:1px solid #ffffff12; }
.login-requirement:last-child { border-bottom:0; }
.login-requirement b { display:block; color:#eef0f2; font-size:.82rem; }
.login-requirement span { display:block; margin-top:5px; color:#858e99; font-size:.72rem; line-height:1.55; }
.login-error { display:none; margin-bottom:16px; padding:16px 18px; border:1px solid rgba(232,98,98,.3); border-left:3px solid #e86262; background:rgba(232,98,98,.06); color:#e3b6b6; font-size:.8rem; line-height:1.55; }
.login-error.visible { display:block; }

.dashboard-hero { position:relative; border-bottom:1px solid #ffffff18; background:linear-gradient(135deg,rgba(223,250,3,.08),transparent 48%),#0b0f14; }
.dashboard-hero-inner { width:min(1320px,calc(100% - 56px)); margin:0 auto; padding:54px 0 42px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:24px; }
.dashboard-avatar { width:92px; height:92px; border-radius:50%; object-fit:cover; border:2px solid var(--yellow); background:#171c22; box-shadow:0 0 0 7px rgba(223,250,3,.07); }
.dashboard-identity h1 { margin:6px 0 0; color:#f4f5f5; font:400 clamp(2.8rem,5vw,4.7rem)/.92 'Bebas Neue',Impact,sans-serif; }
.dashboard-identity p { margin-top:9px; color:#8e97a2; font-size:.78rem; }
.dashboard-actions { display:flex; gap:9px; align-items:center; }
.portal-outline-btn { min-height:42px; padding:10px 15px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #ffffff24; color:#aeb5bd; background:#0d1117; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.portal-outline-btn:hover { border-color:var(--yellow); color:var(--yellow); }
.online-chip { display:inline-flex; align-items:center; gap:8px; margin-top:12px; color:#828b96; font-size:.65rem; font-weight:800; letter-spacing:.08em; }
.online-chip::before { content:""; width:7px; height:7px; border-radius:50%; background:#606974; }
.online-chip.online { color:#77df94; }.online-chip.online::before { background:#6bdc8a; box-shadow:0 0 0 4px rgba(107,220,138,.08); }

.account-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid #ffffff20; background:#0f141a; }
.account-stat { min-height:124px; padding:20px; border-right:1px solid #ffffff18; }
.account-stat:last-child { border-right:0; }
.account-stat small { color:#7f8893; font-size:.61rem; font-weight:800; letter-spacing:.1em; }
.account-stat strong { display:block; margin-top:10px; color:#f2f4f5; font:400 2.65rem/1 'Bebas Neue',Impact,sans-serif; }
.account-stat.highlight strong { color:var(--yellow); }

.portal-section { margin-top:54px; }
.portal-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; padding-bottom:17px; margin-bottom:16px; border-bottom:1px solid #ffffff1b; }
.portal-section-head h2 { margin-top:6px; color:#f3f5f6; font:400 clamp(2.5rem,4vw,3.9rem)/.95 'Bebas Neue',Impact,sans-serif; }
.portal-section-head p { max-width:520px; color:#8f98a4; font-size:.78rem; line-height:1.6; }

.slot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.slot-card { min-height:135px; padding:20px; text-align:left; border:1px solid #ffffff20; background:#0f141a; color:inherit; cursor:pointer; position:relative; overflow:hidden; }
.slot-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:#39414b; }
.slot-card.active { border-color:rgba(223,250,3,.5); background:linear-gradient(135deg,rgba(223,250,3,.075),transparent 60%),#10151b; }
.slot-card.active::before { background:var(--yellow); }
.slot-card.empty { cursor:default; opacity:.58; }
.slot-card small { color:#7f8893; font-size:.6rem; font-weight:800; letter-spacing:.1em; }
.slot-card strong { display:block; margin-top:13px; color:#f1f3f4; font:400 1.9rem/1 'Bebas Neue',Impact,sans-serif; }
.slot-card span { display:block; margin-top:8px; color:#8f98a4; font-size:.69rem; }

.racer-overview { display:grid; grid-template-columns:1.35fr repeat(4,minmax(0,.65fr)); border:1px solid #ffffff20; background:#0f141a; }
.racer-level { padding:25px; border-right:1px solid #ffffff18; background:linear-gradient(135deg,rgba(223,250,3,.065),transparent 70%); }
.racer-level-row { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.racer-level h3 { color:#f4f5f6; font:400 2.6rem/1 'Bebas Neue',Impact,sans-serif; }
.racer-level h3 span { color:var(--yellow); }
.xp-track { height:8px; margin-top:18px; background:#222932; overflow:hidden; }
.xp-bar { display:block; height:100%; width:0; background:var(--yellow); transition:width .45s ease; }
.xp-copy { margin-top:8px; display:flex; justify-content:space-between; color:#737c88; font-size:.62rem; }
.racer-mini { min-height:145px; padding:22px 18px; border-right:1px solid #ffffff18; }
.racer-mini:last-child { border-right:0; }
.racer-mini small { color:#7e8792; font-size:.58rem; font-weight:800; letter-spacing:.09em; }
.racer-mini strong { display:block; margin-top:12px; color:#edf0f2; font:400 2rem/1 'Bebas Neue',Impact,sans-serif; overflow-wrap:anywhere; }
.racer-mini.highlight strong { color:var(--yellow); }

.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid #ffffff20; border-left:1px solid #ffffff20; }
.personal-stat { min-height:132px; padding:20px; border-right:1px solid #ffffff20; border-bottom:1px solid #ffffff20; background:#0f141a; }
.personal-stat small { color:#7d8691; font-size:.58rem; font-weight:800; letter-spacing:.09em; line-height:1.4; }
.personal-stat strong { display:block; margin-top:12px; color:#f1f3f4; font:400 2.3rem/1 'Bebas Neue',Impact,sans-serif; }
.personal-stat.highlight strong { color:var(--yellow); }

.dashboard-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dashboard-panel { border:1px solid #ffffff20; background:#0f141a; min-height:260px; }
.dashboard-panel-head { padding:17px 20px; border-bottom:1px solid #ffffff18; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.dashboard-panel-head small { color:#7f8893; font-size:.6rem; font-weight:800; letter-spacing:.1em; }
.dashboard-panel-head strong { display:block; margin-top:4px; color:#edf0f2; font-size:.86rem; }
.dashboard-panel-body { padding:22px; }
.big-value { color:var(--yellow); font:400 3.25rem/.95 'Bebas Neue',Impact,sans-serif; }
.data-lines { margin-top:18px; display:grid; gap:0; }
.data-line { min-height:43px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid #ffffff12; color:#89929d; font-size:.7rem; }
.data-line b { color:#dce0e4; font-size:.72rem; text-align:right; }
.progress-requirement { margin-top:14px; }
.progress-requirement-head { display:flex; justify-content:space-between; color:#89929d; font-size:.65rem; }
.progress-requirement-head b { color:#dce0e4; }
.mini-track { height:6px; margin-top:7px; background:#242b34; overflow:hidden; }.mini-track span{display:block;height:100%;background:var(--yellow);}
.portal-state { display:inline-flex; min-height:26px; align-items:center; padding:5px 8px; border:1px solid #ffffff20; color:#929ba6; font-size:.58rem; font-weight:800; letter-spacing:.07em; }
.portal-state.ok{color:#78df95;border-color:rgba(107,220,138,.28);background:rgba(107,220,138,.05)}
.portal-state.warn{color:var(--yellow);border-color:rgba(223,250,3,.28);background:rgba(223,250,3,.05)}

.garage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.garage-card { padding:20px; border:1px solid #ffffff20; background:#0f141a; position:relative; }
.garage-card.active { border-top:2px solid var(--yellow); background:linear-gradient(135deg,rgba(223,250,3,.065),transparent 65%),#0f141a; }
.garage-card-top { display:flex; justify-content:space-between; gap:15px; align-items:start; }
.garage-card h3 { color:#f1f3f4; font:400 1.7rem/1 'Bebas Neue',Impact,sans-serif; }
.garage-card .vehicle-class { min-width:30px; height:28px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--yellow); color:var(--yellow); font-weight:900; font-size:.65rem; }
.garage-card p { margin-top:7px; color:#77808b; font-size:.63rem; text-transform:uppercase; letter-spacing:.06em; }
.vehicle-data { margin-top:18px; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.vehicle-data div { padding-top:11px; border-top:1px solid #ffffff12; }.vehicle-data small{display:block;color:#737c87;font-size:.55rem;font-weight:800;letter-spacing:.08em}.vehicle-data strong{display:block;margin-top:5px;color:#dce0e4;font-size:.75rem}
.empty-panel { padding:34px 22px; color:#89929d; line-height:1.65; font-size:.78rem; }

.sync-note { margin-top:48px; padding-top:20px; border-top:1px solid #ffffff1b; display:flex; justify-content:space-between; gap:25px; color:#727b86; font-size:.65rem; line-height:1.5; }

@media(max-width:1100px){.racer-overview{grid-template-columns:repeat(2,1fr)}.racer-level{grid-column:1/-1;border-right:0;border-bottom:1px solid #ffffff18}.racer-mini{border-bottom:1px solid #ffffff18}.account-overview{grid-template-columns:repeat(2,1fr)}.account-stat:nth-child(2){border-right:0}.account-stat:nth-child(-n+2){border-bottom:1px solid #ffffff18}.garage-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.portal-shell,.dashboard-hero-inner,.login-hero-inner{width:min(100% - 36px,1320px)}.login-grid,.dashboard-columns{grid-template-columns:1fr}.dashboard-hero-inner{grid-template-columns:auto 1fr}.dashboard-actions{grid-column:1/-1}.slot-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,1fr)}.garage-grid{grid-template-columns:1fr}.portal-section-head{align-items:start;flex-direction:column;gap:9px}}
@media(max-width:560px){.dashboard-avatar{width:72px;height:72px}.account-overview,.racer-overview,.stat-grid{grid-template-columns:1fr}.account-stat,.racer-mini{border-right:0;border-bottom:1px solid #ffffff18}.account-stat:last-child,.racer-mini:last-child{border-bottom:0}.racer-level{grid-column:auto}.sync-note{flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){.xp-bar{transition:none}}


/* ================================================================
   Dashboard Racer V54
   ================================================================ */

html { scroll-behavior: smooth; }

.dashboard-hero-v54 .dashboard-hero-inner {
  align-items: center;
}

.racer-badges {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.racer-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 5px 9px;
  align-items: center;
  border: 1px solid #ffffff22;
  background: #0c1016;
  color: #a9b0ba;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.racer-badge.primary {
  border-color: rgba(223,250,3,.34);
  color: var(--yellow);
  background: rgba(223,250,3,.06);
}

.racer-badge.vip {
  color: #f1d98f;
  border-color: rgba(241,217,143,.28);
}

.racer-badge.crew {
  color: #d7dce2;
}

.racer-badge.king {
  color: #080a0d;
  border-color: var(--yellow);
  background: var(--yellow);
}

.dashboard-loading-copy {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: .7rem;
}

.portal-empty-title {
  margin-top: 8px;
  color: #f4f5f6;
  font: 400 2.7rem/1 'Bebas Neue', Impact, sans-serif;
}

.portal-empty-copy {
  margin-top: 12px;
  line-height: 1.7;
}

.racer-quick-nav {
  position: sticky;
  z-index: 20;
  top: 74px;
  margin: 26px 0 2px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid #ffffff20;
  background: rgba(10,13,18,.94);
  backdrop-filter: blur(13px);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.racer-quick-nav::-webkit-scrollbar { display: none; }

.racer-quick-nav a {
  position: relative;
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  color: #858e99;
  border-right: 1px solid #ffffff13;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
}

.racer-quick-nav a:last-child { border-right: 0; }

.racer-quick-nav a::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  background: transparent;
}

.racer-quick-nav a:hover,
.racer-quick-nav a.active {
  color: #f0f2f4;
  background: #ffffff04;
}

.racer-quick-nav a.active::after {
  background: var(--yellow);
}

.racer-anchor {
  scroll-margin-top: 142px;
}

.racer-overview-v54 {
  grid-template-columns: minmax(280px, 1.65fr) repeat(4, minmax(130px, .75fr));
}

.racer-level-v54 {
  min-height: 128px;
}

.racer-command-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid #ffffff20;
  border-left: 1px solid #ffffff20;
}

.racer-command-grid article {
  min-height: 112px;
  padding: 18px 20px;
  border-right: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
  background: #0f141a;
}

.racer-command-grid article.accent {
  background:
    linear-gradient(135deg, rgba(223,250,3,.08), transparent 72%),
    #0f141a;
}

.racer-command-grid small,
.racer-activity-strip small {
  display: block;
  color: #7b8490;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.racer-command-grid strong {
  display: block;
  margin-top: 10px;
  color: #f1f3f4;
  font: 400 2.35rem/1 'Bebas Neue', Impact, sans-serif;
}

.racer-command-grid article.accent strong {
  color: var(--yellow);
}

.racer-activity-strip {
  margin-top: 12px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid #ffffff18;
  background: #0b0f14;
}

.racer-activity-strip > div {
  min-height: 74px;
  padding: 16px 16px 14px 0;
  border-right: 1px solid #ffffff12;
}

.racer-activity-strip > div:not(:first-child) {
  padding-left: 16px;
}

.racer-activity-strip > div:last-child {
  border-right: 0;
}

.racer-activity-strip strong {
  display: block;
  margin-top: 7px;
  color: #cdd2d8;
  font-size: .76rem;
  line-height: 1.4;
}

.king-smart-message {
  margin-top: 18px;
  padding: 12px 13px;
  border-left: 3px solid var(--yellow);
  background: rgba(223,250,3,.055);
  color: var(--yellow);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.55;
}

.king-smart-message.qualified {
  border-left-color: #6bdc8a;
  background: rgba(107,220,138,.055);
  color: #7ce298;
}

.garage-section-head {
  align-items: end;
}

.garage-class-menu {
  margin-bottom: 12px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.garage-class-menu::-webkit-scrollbar { display: none; }

.garage-class-tab {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid #ffffff22;
  background: #0e1319;
  color: #8d96a1;
  cursor: pointer;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.garage-class-tab span {
  margin-left: 7px;
  color: #68717c;
  font-size: .58rem;
}

.garage-class-tab:hover:not(:disabled),
.garage-class-tab.active {
  border-color: var(--yellow);
  color: #080a0d;
  background: var(--yellow);
}

.garage-class-tab.active span {
  color: #080a0d99;
}

.garage-class-tab:disabled {
  opacity: .35;
  cursor: default;
}

.garage-card-v54 {
  position: relative;
  overflow: hidden;
}

.garage-card-v54.active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--yellow);
}

.garage-car-identity p {
  margin-top: 4px;
  color: #6f7884;
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.garage-plate-row {
  min-height: 82px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #ffffff10;
  border-bottom: 1px solid #ffffff10;
}

.vehicle-plate {
  position: relative;
  width: 154px;
  min-height: 58px;
  padding: 7px 11px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px solid #25282d;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #f2eee0 0%, #d9d5c8 100%);
  box-shadow:
    inset 0 0 0 1px #ffffffa0,
    0 5px 16px rgba(0,0,0,.24);
  color: #16191d;
  transform: rotate(-.6deg);
}

.vehicle-plate::before,
.vehicle-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #74766f;
  box-shadow: inset 0 1px 1px #0006;
}

.vehicle-plate::before { left: 6px; }
.vehicle-plate::after { right: 6px; }

.vehicle-plate small {
  color: #30343a;
  font-family: Inter, sans-serif;
  font-size: .43rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.vehicle-plate strong {
  margin-top: 3px;
  max-width: 126px;
  overflow: hidden;
  color: #111318;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.62rem;
  letter-spacing: .1em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garage-empty {
  grid-column: 1 / -1;
  min-height: 110px;
  display: flex;
  align-items: center;
}

@media (max-width: 1160px) {
  .racer-overview-v54 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .racer-level-v54 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .racer-quick-nav {
    top: 64px;
    margin-inline: -4px;
  }

  .racer-command-grid,
  .racer-activity-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .racer-activity-strip > div:nth-child(2) {
    border-right: 0;
  }

  .racer-activity-strip > div:nth-child(3),
  .racer-activity-strip > div:nth-child(4) {
    border-top: 1px solid #ffffff12;
  }
}

@media (max-width: 560px) {
  .racer-overview-v54 {
    grid-template-columns: 1fr;
  }

  .racer-level-v54 {
    grid-column: auto;
  }

  .racer-command-grid,
  .racer-activity-strip {
    grid-template-columns: 1fr;
  }

  .racer-activity-strip > div {
    padding-left: 0 !important;
    border-right: 0;
    border-top: 1px solid #ffffff12;
  }

  .racer-activity-strip > div:first-child {
    border-top: 0;
  }

  .garage-plate-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ================================================================
   StreetKings Italia — Racer Hub V57
   ================================================================ */

.login-page-v57 {
  background:
    radial-gradient(circle at 74% 7%, rgba(223,250,3,.07), transparent 27%),
    #080a0d;
}

.login-hero-v57 {
  min-height: 640px;
}

.login-hero-v57::before {
  background:
    linear-gradient(90deg,#080a0df7 5%,#080a0ddc 48%,#080a0d78),
    linear-gradient(0deg,#080a0d 0%,transparent 62%),
    url('/assets/media/showcase-garage.webp') center 56%/cover no-repeat;
  transform: scale(1.015);
}

.login-hero-layout {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr);
  gap: 70px;
  align-items: center;
}

.login-hero-copy p {
  max-width: 610px;
}

.login-hero-tags {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.login-hero-tags span {
  padding: 7px 10px;
  border: 1px solid #ffffff1d;
  background: #080a0d9c;
  color: #8d96a1;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.login-access-panel {
  position: relative;
  padding: 30px;
  border: 1px solid #ffffff26;
  border-top: 2px solid var(--yellow);
  background:
    linear-gradient(145deg,rgba(223,250,3,.085),transparent 52%),
    rgba(10,14,19,.92);
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(13px);
}

.login-access-panel h2 {
  margin-top: 8px;
  color: #f4f5f6;
  font: 400 3rem/.95 'Bebas Neue',Impact,sans-serif;
}

.login-access-panel p {
  margin-top: 13px;
  color: #9ca4ae;
  font-size: .8rem;
  line-height: 1.7;
}

.login-access-panel > small {
  display: block;
  margin-top: 14px;
  color: #646d78;
  font-size: .6rem;
  text-align: center;
}

.discord-login-btn-v57 {
  justify-content: space-between;
}

.discord-mark {
  font-size: .8rem;
}

.login-shell-v57 {
  padding-top: 0;
}

.login-requirements-v57 {
  position: relative;
  z-index: 4;
  margin-top: -44px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid #ffffff20;
  border-left: 1px solid #ffffff20;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.login-requirements-v57 article {
  min-height: 124px;
  padding: 21px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 15px;
  align-items: start;
  border-right: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
  background: #0d1218;
}

.login-requirements-v57 article > b {
  color: var(--yellow);
  font: 400 1.9rem/1 'Bebas Neue',Impact,sans-serif;
}

.login-requirements-v57 strong {
  color: #eef0f2;
  font-size: .72rem;
  letter-spacing: .055em;
}

.login-requirements-v57 span {
  display: block;
  margin-top: 7px;
  color: #808995;
  font-size: .69rem;
  line-height: 1.55;
}

.dashboard-hero-v57 {
  min-height: 330px;
  overflow: hidden;
  isolation: isolate;
  background: #090d12;
}

.dashboard-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,#080a0df6 7%,#080a0ddd 42%,#080a0d9d 68%,#080a0dd8),
    linear-gradient(0deg,#080a0d 0%,transparent 65%),
    url('/assets/media/showcase-garage.webp') center 58%/cover no-repeat;
}

.dashboard-hero-v57::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--yellow),transparent);
  opacity: .45;
}

.dashboard-hero-inner-v57 {
  min-height: 330px;
  grid-template-columns: minmax(0,1fr) minmax(310px,.62fr) auto;
}

.dashboard-profile-cluster {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dashboard-avatar-v57 {
  width: 108px;
  height: 108px;
}

.dashboard-hero-car {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #ffffff20;
  border-left: 3px solid var(--yellow);
  background: rgba(10,14,19,.75);
  backdrop-filter: blur(12px);
}

.dashboard-hero-car > small {
  color: var(--yellow);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.dashboard-hero-car > strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #f3f5f6;
  font: 400 2rem/1 'Bebas Neue',Impact,sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-car-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-car-meta span {
  padding: 5px 7px;
  border: 1px solid #ffffff18;
  color: #959eaa;
  font-size: .57rem;
  font-weight: 800;
}

.hero-car-plate {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 5px 11px;
  border: 2px solid #292c31;
  border-radius: 5px;
  background: linear-gradient(#f3efe2,#d8d5ca);
  color: #171a1e;
  font: 400 1.2rem/1 'Bebas Neue',Impact,sans-serif;
  letter-spacing: .1em;
  box-shadow: inset 0 0 0 1px #fff9;
}

.dashboard-skeleton {
  padding: 35px 0 12px;
}

.skeleton-line,
.skeleton-grid span {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff12;
  background: #10151b;
}

.skeleton-line::after,
.skeleton-grid span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg,transparent,#ffffff0d,transparent);
  animation: portalShimmer 1.25s infinite;
}

.skeleton-line.wide {
  width: 52%;
  height: 42px;
}

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

.skeleton-grid span {
  min-height: 115px;
}

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

.skeleton-grid.large span {
  min-height: 230px;
}

@keyframes portalShimmer {
  to { transform: translateX(110%); }
}

.dashboard-reveal {
  opacity: 1;
  transform: none;
}

.dashboard-animations-ready .dashboard-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .45s ease, transform .45s ease;
}

.dashboard-animations-ready .dashboard-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.record-card {
  min-height: 154px;
  padding: 21px;
  border: 1px solid #ffffff1d;
  background: #0f141a;
}

.record-card.hero-record {
  border-top: 2px solid var(--yellow);
  background:
    linear-gradient(135deg,rgba(223,250,3,.08),transparent 70%),
    #0f141a;
}

.record-card.wide {
  grid-column: span 2;
}

.record-card > small {
  color: #7b8490;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.record-card > strong {
  display: block;
  margin-top: 13px;
  color: #f0f2f4;
  font: 400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.record-card.hero-record > strong {
  color: var(--yellow);
  font-size: 2.75rem;
}

.record-card > span {
  display: block;
  margin-top: 9px;
  color: #777f8a;
  font-size: .62rem;
  line-height: 1.45;
}

.comparison-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid #ffffff14;
  border-left: 1px solid #ffffff14;
}

.comparison-card {
  min-height: 100px;
  padding: 13px;
  border-right: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
}

.comparison-card small {
  color: #727b86;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.comparison-card strong {
  display: block;
  margin-top: 8px;
  color: #eef0f2;
  font: 400 1.6rem/1 'Bebas Neue',Impact,sans-serif;
}

.comparison-card span {
  display: block;
  margin-top: 6px;
  color: #767f8a;
  font-size: .52rem;
  line-height: 1.4;
}

.comparison-card.accent strong {
  color: var(--yellow);
}

.badge-summary {
  min-height: 82px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 210px minmax(0,1fr) 58px;
  gap: 22px;
  align-items: center;
  border: 1px solid #ffffff20;
  background: #0f141a;
}

.badge-summary > div:first-child strong {
  color: var(--yellow);
  font: 400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.badge-summary > div:first-child span {
  display: block;
  margin-top: 4px;
  color: #747d88;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.badge-progress {
  height: 9px;
  padding: 2px;
  border: 1px solid #ffffff16;
  background: #080b0f;
}

.badge-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,#A4B800,var(--yellow));
  box-shadow: 0 0 15px rgba(223,250,3,.25);
  transition: width .65s ease;
}

.badge-summary > b {
  text-align: right;
  color: #f1f3f4;
  font-size: .8rem;
}

.achievement-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.achievement-card {
  position: relative;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  background: #0e1319;
}

.achievement-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: currentColor;
  opacity: .025;
}

.achievement-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--yellow);
  font-size: 1.25rem;
}

.achievement-rarity {
  display: block;
  margin-top: 14px;
  color: #737c87;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.achievement-card > strong {
  display: block;
  margin-top: 7px;
  color: #eef0f2;
  font-size: .8rem;
  line-height: 1.35;
}

.achievement-card > p {
  margin-top: 7px;
  color: #777f8a;
  font-size: .63rem;
  line-height: 1.5;
}

.achievement-card.rarity-rare { border-top-color: #63a9ff75; }
.achievement-card.rarity-epic { border-top-color: #ba77ff8c; }
.achievement-card.rarity-legendary {
  border-top-color: var(--yellow);
  background:
    linear-gradient(145deg,rgba(223,250,3,.06),transparent 62%),
    #0e1319;
}

.achievement-card.locked {
  opacity: .43;
  filter: grayscale(1);
}

.achievement-card.locked .achievement-icon {
  color: #737b86;
}

.garage-grid-premium .garage-card-v57 {
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.garage-grid-premium .garage-card-v57:hover {
  transform: translateY(-3px);
  border-color: #ffffff32;
}

.garage-card-v57 {
  border-top: 2px solid #7f8893;
}

.garage-card-v57.class-entry { border-top-color: #87909a; }
.garage-card-v57.class-c { border-top-color: #89c2ff; }
.garage-card-v57.class-b { border-top-color: #5de0a0; }
.garage-card-v57.class-a { border-top-color: var(--yellow); }
.garage-card-v57.class-s {
  border-top-color: #ff5b7a;
  box-shadow: inset 0 1px rgba(255,91,122,.08);
}

.garage-card-featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg,rgba(223,250,3,.06),transparent 65%),
    #0f141a;
}

.garage-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nitro-pill {
  padding: 5px 7px;
  border: 1px solid rgba(98,168,255,.28);
  background: rgba(98,168,255,.05);
  color: #8fc3ff;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.vehicle-xp-wrap {
  margin-top: 16px;
}

.vehicle-xp-head {
  display: flex;
  justify-content: space-between;
  color: #717a85;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.vehicle-xp-head b {
  color: #aeb5bd;
}

.vehicle-xp-track {
  margin-top: 7px;
  height: 6px;
  background: #20262e;
  overflow: hidden;
}

.vehicle-xp-track i {
  display: block;
  height: 100%;
  background: var(--yellow);
  transition: width .55s ease;
}

.career-timeline {
  position: relative;
  border-left: 1px solid #ffffff1c;
  margin-left: 17px;
}

.career-step {
  position: relative;
  min-height: 86px;
  padding: 0 0 23px 42px;
  color: #626b76;
}

.career-marker {
  position: absolute;
  left: -18px;
  top: 0;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  background: #0d1218;
  color: #66707b;
  font-weight: 900;
}

.career-copy strong {
  color: #777f89;
  font-size: .75rem;
  letter-spacing: .04em;
}

.career-copy p {
  margin-top: 6px;
  color: #646d77;
  font-size: .68rem;
  line-height: 1.5;
}

.career-copy small {
  display: block;
  margin-top: 7px;
  color: #59626d;
  font-size: .56rem;
  text-transform: uppercase;
}

.career-step.done .career-marker {
  border-color: rgba(107,220,138,.32);
  background: rgba(107,220,138,.07);
  color: #76df93;
}

.career-step.done .career-copy strong {
  color: #d9dde1;
}

.career-step.current .career-marker {
  border-color: var(--yellow);
  background: rgba(223,250,3,.09);
  color: var(--yellow);
  box-shadow: 0 0 0 5px rgba(223,250,3,.045);
}

.career-step.current .career-copy strong {
  color: var(--yellow);
}

@media (max-width: 1150px) {
  .login-hero-layout {
    grid-template-columns: 1fr 380px;
    gap: 35px;
  }

  .dashboard-hero-inner-v57 {
    grid-template-columns: minmax(0,1fr) minmax(280px,.7fr);
  }

  .dashboard-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

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

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

@media (max-width: 800px) {
  .login-hero-v57 {
    min-height: auto;
  }

  .login-hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 100px;
  }

  .login-access-panel {
    max-width: 520px;
  }

  .login-requirements-v57 {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-inner-v57 {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-cluster {
    align-items: flex-start;
  }

  .dashboard-hero-car {
    max-width: 520px;
  }

  .dashboard-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

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

  .badge-summary {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .badge-summary > b {
    text-align: left;
  }

  .garage-card-featured {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .login-hero-inner {
    width: min(100% - 32px,1180px);
  }

  .login-access-panel {
    padding: 22px;
  }

  .record-grid,
  .comparison-grid,
  .achievement-grid,
  .skeleton-grid,
  .skeleton-grid.large {
    grid-template-columns: 1fr;
  }

  .record-card.wide {
    grid-column: auto;
  }

  .dashboard-profile-cluster {
    flex-direction: column;
    gap: 17px;
  }

  .dashboard-avatar-v57 {
    width: 84px;
    height: 84px;
  }

  .garage-status-stack {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-reveal,
  .garage-grid-premium .garage-card-v57,
  .vehicle-xp-track i,
  .badge-progress i {
    transition: none !important;
  }

  .skeleton-line::after,
  .skeleton-grid span::after {
    animation: none !important;
  }
}


/* ================================================================
   StreetKings Italia — Dashboard Racer V59
   ================================================================ */

.dashboard-actions-v59 {
  position: relative;
}

.notification-wrap {
  position: relative;
}

.notification-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff22;
  background: #0d1218cc;
  color: #c6ccd3;
  cursor: pointer;
}

.notification-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.notification-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.notification-btn > span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #080a0d;
  border-radius: 99px;
  background: var(--yellow);
  color: #090b0f;
  font-size: .52rem;
  font-weight: 900;
}

.notification-panel {
  position: absolute;
  z-index: 60;
  top: 52px;
  right: 0;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid #ffffff24;
  border-top: 2px solid var(--yellow);
  background: rgba(11,15,20,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
  backdrop-filter: blur(14px);
}

.notification-panel-head {
  min-height: 48px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff14;
}

.notification-panel-head strong {
  color: #eef1f3;
  font-size: .65rem;
  letter-spacing: .08em;
}

.notification-panel-head span {
  color: var(--yellow);
  font-size: .65rem;
  font-weight: 900;
}

.notification-list {
  max-height: 390px;
  overflow-y: auto;
}

.notification-item {
  padding: 14px 15px;
  border-bottom: 1px solid #ffffff10;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item strong {
  color: #e7eaed;
  font-size: .68rem;
}

.notification-item p {
  margin-top: 5px;
  color: #7e8792;
  font-size: .63rem;
  line-height: 1.5;
}

.notification-item.warn {
  box-shadow: inset 3px 0 #ffb24e;
}

.notification-item.king {
  box-shadow: inset 3px 0 var(--yellow);
}

.notification-item.info {
  box-shadow: inset 3px 0 #6da8ff;
}

.notification-empty {
  padding: 22px 15px;
  color: #6e7782;
  font-size: .64rem;
}

.dashboard-smart-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
  gap: 12px;
}

.next-objective-card,
.class-progression-card {
  min-height: 154px;
  border: 1px solid #ffffff1d;
  background: #0f141a;
}

.next-objective-card {
  padding: 21px;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr);
  gap: 17px;
  border-top: 2px solid var(--yellow);
  background:
    linear-gradient(135deg,rgba(223,250,3,.075),transparent 68%),
    #0f141a;
}

.next-objective-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223,250,3,.28);
  color: var(--yellow);
  font: 400 1.7rem/1 'Bebas Neue',Impact,sans-serif;
}

.next-objective-copy small,
.class-progression-head small {
  color: #7c8590;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.next-objective-copy strong {
  display: block;
  margin-top: 7px;
  color: #f1f3f5;
  font: 400 1.75rem/1 'Bebas Neue',Impact,sans-serif;
}

.next-objective-copy p {
  margin-top: 7px;
  color: #89929d;
  font-size: .66rem;
  line-height: 1.5;
}

.objective-track {
  margin-top: 14px;
  height: 7px;
  overflow: hidden;
  background: #232931;
}

.objective-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  transition: width .55s ease;
}

.class-progression-card {
  padding: 20px;
}

.class-progression-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.class-progression-head strong {
  display: block;
  margin-top: 5px;
  color: #eff1f3;
  font: 400 1.55rem/1 'Bebas Neue',Impact,sans-serif;
}

.class-progression-head > span {
  color: var(--yellow);
  font-size: .59rem;
  font-weight: 800;
  text-align: right;
}

.class-progression {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 7px;
}

.class-progress-item {
  min-height: 61px;
  padding: 11px 9px;
  border: 1px solid #ffffff18;
  background: #0b0f14;
  text-align: center;
}

.class-progress-item strong {
  display: block;
  color: #69727d;
  font: 400 1.5rem/1 'Bebas Neue',Impact,sans-serif;
}

.class-progress-item span {
  display: block;
  margin-top: 6px;
  color: #555e69;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.class-progress-item.unlocked {
  border-color: rgba(107,220,138,.24);
  background: rgba(107,220,138,.04);
}

.class-progress-item.unlocked strong {
  color: #72df91;
}

.class-progress-item.unlocked span {
  color: #67b77b;
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.weekly-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #ffffff1b;
  background: #0f141a;
}

.weekly-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.weekly-card-head small {
  color: #79828d;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.weekly-card > strong {
  display: block;
  margin-top: 15px;
  color: #eef1f3;
  font: 400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.weekly-card > span {
  display: block;
  margin-top: 8px;
  color: #5f6873;
  font-size: .49rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.weekly-trend {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid #ffffff12;
  font-size: .49rem;
  font-weight: 900;
}

.weekly-trend.up {
  color: #72df91;
  border-color: rgba(114,223,145,.2);
  background: rgba(114,223,145,.04);
}

.weekly-trend.down {
  color: #ff788c;
  border-color: rgba(255,120,140,.2);
  background: rgba(255,120,140,.04);
}

.weekly-trend.neutral {
  color: #858e99;
}

.weekly-history-note {
  margin-top: 10px;
  padding: 11px 13px;
  border-left: 2px solid #6da8ff;
  background: rgba(109,168,255,.045);
  color: #7d8793;
  font-size: .62rem;
  line-height: 1.55;
}

.recent-activity {
  border-top: 1px solid #ffffff18;
  border-left: 1px solid #ffffff18;
}

.recent-activity-row {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  border-right: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff18;
  background: #0d1218;
}

.recent-activity-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff1c;
  color: var(--yellow);
  font-size: 1rem;
}

.recent-activity-copy strong {
  color: #e8ebee;
  font-size: .68rem;
  letter-spacing: .04em;
}

.recent-activity-copy p {
  margin-top: 5px;
  color: #747d88;
  font-size: .63rem;
  line-height: 1.45;
}

.recent-activity-row time {
  color: #5f6873;
  font-size: .56rem;
  white-space: nowrap;
}

.crew-contribution {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ffffff12;
}

.crew-contribution-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7d8691;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.crew-contribution-head b {
  color: #d9dde1;
}

.crew-contribution-track {
  margin-top: 8px;
  height: 7px;
  overflow: hidden;
  background: #232931;
}

.crew-contribution-track i {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.crew-contribution > small {
  display: block;
  margin-top: 7px;
  color: #5f6872;
  font-size: .54rem;
}

.garage-toolbar {
  margin-bottom: 11px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 9px;
}

.garage-toolbar label {
  min-height: 49px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff1d;
  background: #0d1218;
}

.garage-toolbar label > span {
  color: #68727d;
  font-size: .51rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.garage-toolbar input,
.garage-toolbar select {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dde1e5;
  font: inherit;
  font-size: .68rem;
}

.garage-toolbar select {
  cursor: pointer;
}

.garage-toolbar option {
  background: #11161c;
  color: #eef0f2;
}

.garage-card-v57[role="button"] {
  cursor: pointer;
}

.garage-card-hint {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #ffffff10;
  color: #616b76;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
  transition: color .2s ease;
}

.garage-card-v57:hover .garage-card-hint {
  color: var(--yellow);
}

.vehicle-modal {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vehicle-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3,5,8,.82);
  backdrop-filter: blur(7px);
  cursor: default;
}

.vehicle-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px,100%);
  max-height: min(780px,calc(100vh - 48px));
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #ffffff27;
  border-top: 2px solid var(--yellow);
  background:
    linear-gradient(145deg,rgba(223,250,3,.04),transparent 45%),
    #0d1218;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}

.vehicle-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff1b;
  background: #11161c;
  color: #bdc4cb;
  cursor: pointer;
  font-size: 1.25rem;
}

.vehicle-modal-hero {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.vehicle-modal-hero h2 {
  margin-top: 9px;
  color: #f1f3f5;
  font: 400 3rem/.95 'Bebas Neue',Impact,sans-serif;
}

.vehicle-modal-hero p {
  margin-top: 6px;
  color: #65707b;
  font-size: .63rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.vehicle-modal-status {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vehicle-modal-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid #ffffff14;
  border-left: 1px solid #ffffff14;
}

.vehicle-modal-grid > div {
  min-height: 89px;
  padding: 14px;
  border-right: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
}

.vehicle-modal-grid small {
  color: #6d7782;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.vehicle-modal-grid strong {
  display: block;
  margin-top: 8px;
  color: #e8ebee;
  font: 400 1.5rem/1 'Bebas Neue',Impact,sans-serif;
}

.vehicle-modal-progress {
  margin-top: 18px;
}

.vehicle-modal-progress > span {
  color: #6f7883;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .08em;
}

body.modal-open {
  overflow: hidden;
}

.mobile-dashboard-nav,
.mobile-more-menu {
  display: none;
}

body[data-active-class="s"] .dashboard-hero-car {
  border-left-color: #ff5b7a;
}

body[data-active-class="a"] .dashboard-hero-car {
  border-left-color: var(--yellow);
}

body[data-active-class="b"] .dashboard-hero-car {
  border-left-color: #5de0a0;
}

body[data-active-class="c"] .dashboard-hero-car {
  border-left-color: #89c2ff;
}

body[data-active-class="entry"] .dashboard-hero-car {
  border-left-color: #8f98a2;
}

body.racer-is-king .dashboard-hero-v57::after {
  opacity: .8;
  box-shadow: 0 0 24px rgba(223,250,3,.24);
}

@media (max-width: 1050px) {
  .weekly-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .dashboard-smart-grid {
    grid-template-columns: 1fr;
  }

  .garage-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: 72px;
  }

  .mobile-dashboard-nav {
    position: fixed;
    z-index: 140;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    padding: 6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5,1fr);
    border-top: 1px solid #ffffff1f;
    background: rgba(9,12,17,.97);
    backdrop-filter: blur(14px);
  }

  .mobile-dashboard-nav a,
  .mobile-dashboard-nav button {
    border: 0;
    background: transparent;
    color: #707a85;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: .47rem;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .mobile-dashboard-nav span {
    color: #a6adb5;
    font-size: .85rem;
  }

  .mobile-more-menu {
    position: fixed;
    z-index: 139;
    right: 12px;
    bottom: 76px;
    width: min(280px,calc(100vw - 24px));
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 6px;
    border: 1px solid #ffffff22;
    background: rgba(10,14,19,.98);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }

  .mobile-more-menu.portal-hidden {
    display: none;
  }

  .mobile-more-menu a {
    padding: 12px 10px;
    border: 1px solid #ffffff12;
    color: #9ca5af;
    background: #0e1319;
    text-decoration: none;
    font-size: .55rem;
    font-weight: 800;
  }

  .class-progression {
    grid-template-columns: repeat(5,minmax(65px,1fr));
    overflow-x: auto;
  }

  .vehicle-modal {
    padding: 12px;
  }

  .vehicle-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .vehicle-modal-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .recent-activity-row {
    grid-template-columns: 38px minmax(0,1fr);
  }

  .recent-activity-row time {
    grid-column: 2;
  }

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

  .class-progression-head {
    flex-direction: column;
  }

  .class-progression-head > span {
    text-align: left;
  }

  .vehicle-modal-grid {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}


/* V59.2 — Storyline compatta + garage hardening */
#storyline .dashboard-panel-body {
  padding: 18px 22px 20px;
}

.story-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.story-current-mission {
  margin-top: 13px;
  padding: 16px 18px;
  border-left: 3px solid var(--yellow);
  background: linear-gradient(90deg,rgba(223,250,3,.06),transparent 72%);
}

.story-current-mission small {
  color: var(--yellow);
  font-size: .53rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.story-current-mission strong {
  display: block;
  margin-top: 6px;
  color: #f1f3f5;
  font: 400 1.8rem/1 'Bebas Neue',Impact,sans-serif;
}

.story-current-mission p {
  margin-top: 6px;
  color: #77818c;
  font-size: .64rem;
}

.story-data-lines {
  margin-top: 10px;
}

.garage-error-state {
  border-left: 3px solid #ff7070;
  color: #ff9292;
}


/* ================================================================
   V59.3 — dashboard meno statistica, più companion
   ================================================================ */

.dashboard-duo-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.dashboard-duo-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.dashboard-duo-row .dashboard-panel {
  min-width: 0;
  height: 100%;
}

.panel-corner-mark {
  color: #4f5964;
  font: 400 1.05rem/1 'Bebas Neue',Impact,sans-serif;
  letter-spacing: .08em;
}

.compact-week-panel .dashboard-panel-body,
.compact-story-panel .dashboard-panel-body {
  min-height: 300px;
}

.weekly-grid-compact {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}

.weekly-card-compact {
  min-height: 91px;
  padding: 13px 14px;
}

.weekly-card-compact > strong {
  margin-top: 10px;
  font-size: 1.55rem;
}

.weekly-card-compact .weekly-card-head small {
  font-size: .49rem;
}

.compact-week-panel .weekly-history-note {
  margin-top: 8px;
  font-size: .56rem;
}

.compact-story-panel .story-current-mission {
  margin-top: 10px;
  padding: 13px 15px;
}

.compact-story-panel .story-current-mission strong {
  font-size: 1.55rem;
}

.compact-story-panel .data-line {
  min-height: 39px;
}

.garage-no-data {
  min-height: 120px;
  border-left: 3px solid #ffb04c;
  color: #d9a15e;
}

@media (max-width: 900px) {
  .dashboard-duo-row {
    grid-template-columns: 1fr;
  }

  .compact-week-panel .dashboard-panel-body,
  .compact-story-panel .dashboard-panel-body {
    min-height: auto;
  }
}

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


/* V59.4 — settimana/storyline subito dopo I tuoi numeri */
#statistiche + .dashboard-duo-section {
  margin-top: -8px;
}

.dashboard-duo-section + #attivita {
  padding-top: 20px;
}


/* =================================================================
   STREETKINGS ITALIA V60 — Garage compatto + drawer + activity feed
   ================================================================= */

.garage-list-head {
  display:grid;
  grid-template-columns: 1.05fr 2.05fr .65fr 1.2fr 1.55fr 34px;
  align-items:center;
  gap:14px;
  padding: 0 16px 9px;
  color:#58636f;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.09em;
}

.garage-list {
  border-top:1px solid #ffffff18;
  border-left:1px solid #ffffff18;
  max-height: 590px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#49525c #0b1015;
}

.garage-list-row {
  min-height:76px;
  display:grid;
  grid-template-columns: 1.05fr 2.05fr .65fr 1.2fr 1.55fr 34px;
  align-items:center;
  gap:14px;
  padding: 12px 16px;
  border-right:1px solid #ffffff18;
  border-bottom:1px solid #ffffff18;
  background:#0c1117;
  cursor:pointer;
  position:relative;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.garage-list-row::before {
  content:"";
  position:absolute;
  left:-1px;
  top:0;
  bottom:0;
  width:2px;
  background:#38424c;
}

.garage-list-row.class-c::before { background:#89c2ff; }
.garage-list-row.class-b::before { background:#5de0a0; }
.garage-list-row.class-a::before { background:var(--yellow); }
.garage-list-row.class-s::before { background:#ff5b7a; }
.garage-list-row.active {
  background:linear-gradient(90deg,rgba(223,250,3,.065),transparent 46%),#0d1218;
}
.garage-list-row.active::before { width:3px; background:var(--yellow); }

.garage-list-row:hover,
.garage-list-row:focus-visible {
  outline:none;
  background:#111820;
  border-right-color:#ffffff2b;
  transform:translateX(2px);
}

.garage-col { min-width:0; }
.garage-col > small {
  display:none;
  color:#65707b;
  font-size:.48rem;
  font-weight:900;
  letter-spacing:.08em;
}

.garage-brand strong {
  color:#8f99a5;
  font-size:.66rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.045em;
}

.garage-model strong {
  display:block;
  color:#f1f3f5;
  font:400 1.35rem/1 'Bebas Neue',Impact,sans-serif;
}
.garage-model span {
  display:block;
  margin-top:5px;
  color:#59636e;
  font-size:.5rem;
  letter-spacing:.06em;
}

.garage-level-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.garage-level-top small { display:none; }
.garage-level-top strong {
  color:#dfe3e6;
  font:400 1.05rem/1 'Bebas Neue',Impact,sans-serif;
  white-space:nowrap;
}
.garage-row-xp {
  margin-top:7px;
  height:4px;
  background:#242c34;
  overflow:hidden;
}
.garage-row-xp i {
  display:block;
  height:100%;
  background:var(--yellow);
}

.garage-status-pills {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
}
.garage-status-pills .portal-state,
.garage-status-pills .nitro-pill {
  padding:5px 7px;
  font-size:.47rem;
}
.garage-status-normal {
  color:#606b76;
  font-size:.52rem;
  font-weight:800;
  letter-spacing:.06em;
}

.garage-row-open {
  color:#5e6873;
  font-size:1.15rem;
  text-align:right;
  transition:color .18s ease,transform .18s ease;
}
.garage-list-row:hover .garage-row-open {
  color:var(--yellow);
  transform:translateX(3px);
}

.garage-list-empty {
  grid-column:1/-1;
  padding:28px 18px;
  border-right:1px solid #ffffff18;
  border-bottom:1px solid #ffffff18;
  color:#7b8590;
  background:#0c1117;
  font-size:.64rem;
  letter-spacing:.03em;
}

/* Drawer laterale */
.vehicle-modal {
  place-items:stretch end;
  padding:0;
}
.vehicle-modal-backdrop {
  background:rgba(3,5,8,.72);
  backdrop-filter:blur(5px);
}
.vehicle-modal-panel,
.vehicle-drawer-panel {
  width:min(560px,100%);
  height:100vh;
  max-height:none;
  padding:30px 28px 34px;
  border:0;
  border-left:1px solid #ffffff26;
  border-top:0;
  background:
    linear-gradient(145deg,rgba(223,250,3,.045),transparent 38%),
    #0c1117;
  box-shadow:-30px 0 90px rgba(0,0,0,.5);
  animation:vehicleDrawerIn .24s ease both;
}
@keyframes vehicleDrawerIn {
  from { transform:translateX(30px); opacity:.4; }
  to { transform:none; opacity:1; }
}

.vehicle-drawer-hero {
  margin-top:38px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
}
.vehicle-drawer-brand {
  color:var(--yellow);
  font-size:.6rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.vehicle-drawer-identity h2 {
  margin-top:7px;
  color:#f3f5f6;
  font:400 3rem/.92 'Bebas Neue',Impact,sans-serif;
}
.vehicle-drawer-identity p {
  margin-top:8px;
  color:#65707b;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.07em;
}
.vehicle-drawer-status {
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.vehicle-drawer-level {
  margin-top:24px;
  padding:18px;
  border:1px solid #ffffff16;
  background:#10161d;
}
.vehicle-drawer-level-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#69737e;
  font-size:.54rem;
  font-weight:900;
  letter-spacing:.07em;
}
.vehicle-drawer-level-head strong {
  color:#fff;
  font:400 1.45rem/1 'Bebas Neue',Impact,sans-serif;
}
.vehicle-drawer-xp-track {
  margin-top:13px;
  height:7px;
  background:#262d35;
  overflow:hidden;
}
.vehicle-drawer-xp-track i {
  display:block;
  height:100%;
  background:var(--yellow);
}
.vehicle-drawer-level-foot {
  margin-top:9px;
  color:#7a8490;
  font-size:.55rem;
  font-weight:800;
  letter-spacing:.055em;
}

.vehicle-drawer-grid {
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid #ffffff13;
  border-left:1px solid #ffffff13;
}
.vehicle-drawer-grid > div {
  min-height:82px;
  padding:14px;
  border-right:1px solid #ffffff13;
  border-bottom:1px solid #ffffff13;
}
.vehicle-drawer-grid small,
.vehicle-purchase-note small {
  color:#67717c;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
}
.vehicle-drawer-grid strong {
  display:block;
  margin-top:8px;
  color:#eef0f2;
  font:400 1.3rem/1 'Bebas Neue',Impact,sans-serif;
}
.vehicle-purchase-note {
  margin-top:16px;
  padding:16px;
  border-left:2px solid var(--yellow);
  background:rgba(223,250,3,.045);
}
.vehicle-purchase-note strong {
  display:block;
  margin-top:6px;
  color:#f0f2f4;
  font:400 1.55rem/1 'Bebas Neue',Impact,sans-serif;
}
.vehicle-purchase-note span {
  display:block;
  margin-top:5px;
  color:#69737d;
  font-size:.58rem;
}

/* Activity diventa un feed di carriera */
.recent-activity {
  border:0;
  padding-left:4px;
}
.activity-feed-day {
  margin:18px 0 8px;
  color:var(--yellow);
  font-size:.55rem;
  font-weight:900;
  letter-spacing:.1em;
}
.activity-feed-day:first-child { margin-top:0; }

.activity-feed-item {
  min-height:72px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:start;
  padding:9px 4px 9px 0;
}
.activity-feed-rail {
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.activity-feed-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff1b;
  background:#0d1218;
  color:var(--yellow);
  font-size:.9rem;
  z-index:1;
}
.activity-feed-line {
  width:1px;
  flex:1;
  min-height:20px;
  margin-top:5px;
  background:#ffffff12;
}
.activity-feed-copy {
  padding-top:3px;
  padding-bottom:11px;
  border-bottom:1px solid #ffffff0f;
}
.activity-feed-copy strong {
  color:#e9ecef;
  font-size:.66rem;
  letter-spacing:.035em;
}
.activity-feed-copy p {
  margin-top:5px;
  color:#737d88;
  font-size:.62rem;
  line-height:1.45;
}
.activity-feed-item time {
  padding-top:4px;
  color:#56616c;
  font-size:.54rem;
  white-space:nowrap;
}

@media(max-width:900px) {
  .garage-list-head { display:none; }
  .garage-list { max-height:620px; }
  .garage-list-row {
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 14px;
    padding:14px;
  }
  .garage-col > small,
  .garage-level-top small { display:block; margin-bottom:5px; }
  .garage-brand { grid-column:1; }
  .garage-model { grid-column:1; }
  .garage-class { grid-column:2; grid-row:1; justify-self:end; }
  .garage-level { grid-column:1/-1; }
  .garage-status { grid-column:1; }
  .garage-row-open { grid-column:2; align-self:center; }
}

@media(max-width:560px) {
  .vehicle-modal-panel,
  .vehicle-drawer-panel {
    width:100%;
    padding:24px 18px 28px;
  }
  .vehicle-drawer-hero { flex-direction:column; }
  .vehicle-drawer-grid { grid-template-columns:1fr 1fr; }
  .activity-feed-item { grid-template-columns:38px minmax(0,1fr); }
  .activity-feed-item time { grid-column:2; margin-top:-7px; padding:0 0 7px; }
}


/* =================================================================
   STREETKINGS ITALIA V61 — RACER HUB / UNIFIED DRAWERS
   ================================================================= */

.profile-hub-section {
  padding-top: 24px;
}

.profile-hub-head {
  margin-bottom: 14px;
}

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

.profile-hub-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #ffffff1b;
  background:
    linear-gradient(145deg,rgba(223,250,3,.035),transparent 42%),
    #0d1218;
  position: relative;
  overflow: hidden;
}

.profile-hub-card::after {
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-60px;
  bottom:-75px;
  border-radius:50%;
  background:var(--yellow);
  opacity:.018;
  pointer-events:none;
}

.profile-hub-card-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding-bottom:15px;
  border-bottom:1px solid #ffffff10;
}

.profile-hub-card-head small {
  display:block;
  color:var(--yellow);
  font-size:.52rem;
  font-weight:900;
  letter-spacing:.1em;
}

.profile-hub-card-head strong {
  display:block;
  margin-top:6px;
  color:#f0f2f4;
  font:400 1.75rem/.95 'Bebas Neue',Impact,sans-serif;
}

.profile-hub-mark {
  color:#4e5863;
  font:400 .95rem/1 'Bebas Neue',Impact,sans-serif;
  letter-spacing:.08em;
}

.profile-card-cta {
  margin-top:auto;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 0 0;
  border:0;
  border-top:1px solid #ffffff10;
  background:transparent;
  color:#838d98;
  cursor:pointer;
  font-size:.56rem;
  font-weight:900;
  letter-spacing:.075em;
  text-align:left;
}

.profile-card-cta span {
  color:var(--yellow);
  font-size:1rem;
  transition:transform .18s ease;
}

.profile-card-cta:hover {
  color:#f0f2f4;
}

.profile-card-cta:hover span {
  transform:translateX(4px);
}

/* Activity preview */
.activity-preview {
  margin: 8px 0 16px;
}

.activity-preview-item {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:63px;
  border-bottom:1px solid #ffffff0d;
}

.activity-preview-icon {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff18;
  background:#10161d;
  color:var(--yellow);
  font-size:.78rem;
}

.activity-preview-copy {
  min-width:0;
}

.activity-preview-copy strong {
  display:block;
  color:#dfe3e6;
  font-size:.6rem;
  letter-spacing:.025em;
}

.activity-preview-copy p {
  margin-top:4px;
  color:#6c7681;
  font-size:.56rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.activity-preview-item time {
  color:#515b66;
  font-size:.5rem;
  white-space:nowrap;
}

.profile-preview-empty {
  padding:24px 0;
  color:#69737e;
  font-size:.62rem;
}

/* Badge compact */
.badge-summary-compact {
  margin-top:14px;
  grid-template-columns:auto minmax(90px,1fr) auto;
  padding:12px 0;
  border:0;
  border-bottom:1px solid #ffffff0e;
  background:transparent;
}

.badge-summary-compact > div:first-child strong {
  font-size:1.7rem;
}

.badge-preview-grid {
  display:grid;
  gap:7px;
  margin:9px 0 16px;
}

.badge-preview-item {
  min-height:55px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #ffffff12;
  background:#0f151b;
}

.badge-preview-icon {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  color:var(--yellow);
}

.badge-preview-copy strong {
  display:block;
  color:#dfe3e6;
  font-size:.61rem;
}

.badge-preview-copy span {
  display:block;
  margin-top:4px;
  color:#616b76;
  font-size:.48rem;
  font-weight:900;
  letter-spacing:.08em;
}

/* Record preview */
.record-preview-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin:10px 0 16px;
}

.record-preview-item {
  min-height:68px;
  padding:11px 12px;
  border:1px solid #ffffff12;
  background:#0f151b;
}

.record-preview-item small {
  color:#68727d;
  font-size:.49rem;
  font-weight:900;
  letter-spacing:.08em;
}

.record-preview-item strong {
  display:block;
  margin-top:6px;
  color:#eef0f2;
  font:400 1.35rem/1 'Bebas Neue',Impact,sans-serif;
}

.record-preview-item:first-child strong {
  color:var(--yellow);
}

.record-preview-item span {
  display:block;
  margin-top:4px;
  color:#626c77;
  font-size:.52rem;
  line-height:1.35;
}

/* Career compact */
.career-preview {
  margin:14px 0 16px;
}

.career-preview-top {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}

.career-preview-score {
  color:#fff;
  font:400 2.2rem/1 'Bebas Neue',Impact,sans-serif;
}

.career-preview-top > span {
  color:#606b76;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
}

.career-preview-track {
  height:6px;
  margin-top:11px;
  background:#252d35;
  overflow:hidden;
}

.career-preview-track i {
  display:block;
  height:100%;
  background:var(--yellow);
}

.career-preview-next {
  margin-top:18px;
  padding:15px;
  border-left:2px solid var(--yellow);
  background:linear-gradient(90deg,rgba(223,250,3,.055),transparent);
}

.career-preview-next small {
  color:var(--yellow);
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
}

.career-preview-next strong {
  display:block;
  margin-top:7px;
  color:#eef0f2;
  font:400 1.55rem/1 'Bebas Neue',Impact,sans-serif;
}

.career-preview-next p {
  margin-top:6px;
  color:#69737e;
  font-size:.58rem;
  line-height:1.45;
}

/* Unified profile drawer */
.profile-drawer-panel {
  width:min(650px,100%);
}

.profile-drawer-title {
  margin-top:42px;
  color:#f2f4f5;
  font:400 2.85rem/.94 'Bebas Neue',Impact,sans-serif;
}

.profile-drawer-subtitle {
  margin-top:9px;
  max-width:560px;
  color:#717b86;
  font-size:.64rem;
  line-height:1.5;
}

.profile-drawer-content {
  margin-top:24px;
}

.profile-drawer-section-title {
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid #ffffff12;
}

.profile-drawer-section-title small {
  color:var(--yellow);
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.09em;
}

.profile-drawer-section-title strong {
  display:block;
  margin-top:6px;
  color:#e9ecef;
  font:400 1.55rem/1 'Bebas Neue',Impact,sans-serif;
}

/* Badge drawer */
.drawer-badge-summary {
  padding:16px;
  border:1px solid #ffffff16;
  background:#10161d;
}

.drawer-badge-summary > strong {
  display:block;
  color:#fff;
  font:400 2.4rem/1 'Bebas Neue',Impact,sans-serif;
}

.drawer-badge-summary > span {
  display:block;
  margin-top:6px;
  color:#717b86;
  font-size:.54rem;
  font-weight:900;
  letter-spacing:.08em;
}

.drawer-progress-track {
  margin-top:13px;
  height:6px;
  background:#262e36;
  overflow:hidden;
}

.drawer-progress-track i {
  display:block;
  height:100%;
  background:var(--yellow);
}

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

/* Record drawer */
.drawer-record-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.drawer-record-grid .record-card {
  min-height:130px;
}

.drawer-record-grid .record-card:last-child {
  grid-column:1/-1;
}

.drawer-comparison-grid {
  margin-top:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* Career drawer */
.drawer-career-timeline {
  margin-top:8px;
}

/* Notification drawer */
.notification-drawer-list {
  display:grid;
  gap:9px;
}

.notification-drawer-item {
  display:grid;
  grid-template-columns:10px minmax(0,1fr);
  gap:12px;
  padding:15px;
  border:1px solid #ffffff14;
  background:#10161d;
}

.notification-drawer-dot {
  width:7px;
  height:7px;
  margin-top:4px;
  border-radius:50%;
  background:#7c8792;
}

.notification-drawer-item.warn .notification-drawer-dot { background:#ffb04c; }
.notification-drawer-item.king .notification-drawer-dot { background:var(--yellow); }
.notification-drawer-item.info .notification-drawer-dot { background:#72b7ff; }

.notification-drawer-copy strong {
  color:#e8ebee;
  font-size:.67rem;
}

.notification-drawer-copy p {
  margin-top:6px;
  color:#707a85;
  font-size:.61rem;
  line-height:1.45;
}

/* Keep the old notification popover out of V61 even if cached markup survives */
.notification-panel {
  display:none !important;
}

@media (max-width:900px) {
  .profile-hub-grid {
    grid-template-columns:1fr;
  }

  .profile-hub-card {
    min-height:320px;
  }

  .drawer-achievement-grid,
  .drawer-record-grid,
  .drawer-comparison-grid {
    grid-template-columns:1fr;
  }

  .drawer-record-grid .record-card:last-child {
    grid-column:auto;
  }
}

@media (max-width:560px) {
  .profile-hub-card {
    padding:16px;
    min-height:0;
  }

  .profile-hub-card-head strong {
    font-size:1.55rem;
  }

  .activity-preview-item {
    grid-template-columns:32px minmax(0,1fr);
  }

  .activity-preview-item time {
    grid-column:2;
    margin-top:-5px;
    padding-bottom:7px;
  }

  .profile-drawer-title {
    margin-top:34px;
    font-size:2.35rem;
  }
}


/* =================================================================
   STREETKINGS ITALIA V62 — VEHICLE IMAGES
   ================================================================= */

.vehicle-drawer-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  background:
    radial-gradient(circle at 72% 20%,rgba(223,250,3,.09),transparent 34%),
    linear-gradient(145deg,#121922,#090d12);
}

.vehicle-drawer-image::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,transparent 58%,rgba(5,7,10,.35)),
    linear-gradient(90deg,rgba(223,250,3,.035),transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.vehicle-drawer-image img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:transform .28s ease,filter .28s ease;
}

.vehicle-drawer-image:hover img {
  transform:scale(1.015);
  filter:contrast(1.025);
}

.vehicle-drawer-image.is-missing {
  display:grid;
  place-items:center;
}

.vehicle-image-fallback {
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#58636e;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.11em;
  background:
    repeating-linear-gradient(-45deg,transparent,transparent 14px,rgba(255,255,255,.012) 14px,rgba(255,255,255,.012) 15px);
}

.vehicle-image-fallback[hidden] {
  display:none !important;
}

@media(max-width:560px) {
  .vehicle-drawer-image {
    margin-top:16px;
    aspect-ratio:16 / 10;
  }
}


/* =================================================================
   STREETKINGS ITALIA V63 — RACER COMPANION UX
   ================================================================= */

/* Active vehicle as a protagonist in the dashboard hero */
.dashboard-hero-car {
  position:relative;
  overflow:hidden;
  min-height:158px;
  isolation:isolate;
}

.dashboard-hero-car > small,
.dashboard-hero-car > strong,
.dashboard-hero-car > .hero-car-meta,
.dashboard-hero-car > .hero-car-plate,
.dashboard-hero-car > .hero-car-open {
  position:relative;
  z-index:3;
}

.hero-active-car-visual {
  position:absolute;
  z-index:1;
  inset:-14px -32px -16px 42%;
  pointer-events:none;
  opacity:.82;
}

.hero-active-car-visual::before {
  content:"";
  position:absolute;
  z-index:2;
  inset:0;
  background:
    linear-gradient(90deg,#0a0e13 0%,rgba(10,14,19,.86) 14%,rgba(10,14,19,.22) 54%,rgba(10,14,19,.7) 100%),
    linear-gradient(0deg,rgba(10,14,19,.72),transparent 55%);
}

.hero-active-car-visual img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(.9) contrast(1.08);
}

.hero-active-car-visual.is-empty {
  opacity:0;
}

.hero-car-open {
  margin-top:13px;
  padding:0;
  border:0;
  background:transparent;
  color:#848e99;
  cursor:pointer;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.09em;
}

.hero-car-open:hover {
  color:var(--yellow);
}

.hero-car-open:disabled {
  display:none;
}

.racer-card-button {
  cursor:pointer;
  text-decoration:none;
}

/* Clickable next objective */
.next-objective-card {
  position:relative;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

.next-objective-card:hover,
.next-objective-card:focus-visible {
  outline:none;
  transform:translateY(-2px);
  border-color:rgba(223,250,3,.42);
  background:
    linear-gradient(135deg,rgba(223,250,3,.105),transparent 68%),
    #10161d;
}

.objective-action {
  position:absolute;
  right:18px;
  bottom:14px;
  color:var(--yellow);
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
}

.objective-focus {
  animation:objectiveFocus 1.15s ease;
}

@keyframes objectiveFocus {
  0%,100% { box-shadow:none; }
  42% { box-shadow:0 0 0 1px rgba(223,250,3,.42),0 0 38px rgba(223,250,3,.11); }
}

/* Garage thumbnails */
.garage-list-head,
.garage-list-row {
  grid-template-columns:74px 1.05fr 2.05fr .65fr 1.2fr 1.55fr 34px;
}

.garage-thumb {
  width:68px;
  height:42px;
  overflow:hidden;
  border:1px solid #ffffff16;
  background:#121820;
}

.garage-thumb img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:transform .18s ease,filter .18s ease;
}

.garage-list-row:hover .garage-thumb img {
  transform:scale(1.045);
  filter:contrast(1.05);
}

.garage-thumb.is-missing::after {
  content:"AUTO";
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#46515c;
  font-size:.42rem;
  font-weight:900;
  letter-spacing:.08em;
}

/* Crew compact panel */
.crew-compact-identity {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.crew-compact-identity small {
  color:var(--yellow);
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
}

.crew-compact-identity strong {
  display:block;
  margin-top:6px;
  color:#f1f3f5;
  font:400 1.65rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-role-pill {
  padding:6px 8px;
  border:1px solid #ffffff18;
  color:#87919c;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.06em;
}

.crew-compact-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  margin-top:14px;
}

.crew-compact-stats > div {
  padding:10px;
  border:1px solid #ffffff10;
  background:#0d1218;
}

.crew-compact-stats small {
  display:block;
  color:#5e6974;
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.08em;
}

.crew-compact-stats strong {
  display:block;
  margin-top:5px;
  color:#e9ecef;
  font:400 1.15rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-contribution.compact {
  margin-top:12px;
}

.drawer-link-button {
  width:100%;
  margin-top:13px;
  padding:11px 0 0;
  border:0;
  border-top:1px solid #ffffff10;
  background:transparent;
  color:#7f8994;
  cursor:pointer;
  text-align:left;
  font-size:.52rem;
  font-weight:900;
  letter-spacing:.08em;
}

.drawer-link-button:hover {
  color:var(--yellow);
}

/* Crew drawer */
.crew-drawer-hero {
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}

.crew-drawer-rank,
.crew-drawer-name {
  border:1px solid #ffffff15;
  background:#10161d;
  padding:16px;
}

.crew-drawer-rank small,
.crew-drawer-name small {
  color:#65707b;
  font-size:.48rem;
  font-weight:900;
  letter-spacing:.08em;
}

.crew-drawer-rank strong {
  display:block;
  margin-top:10px;
  color:var(--yellow);
  font:400 3rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-drawer-name strong {
  display:block;
  margin-top:8px;
  color:#f0f2f4;
  font:400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-drawer-name span {
  display:block;
  margin-top:7px;
  color:#85909b;
  font-size:.59rem;
}

.crew-drawer-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}

.crew-drawer-stats > div {
  min-height:78px;
  padding:12px;
  border:1px solid #ffffff12;
  background:#0d1218;
}

.crew-drawer-stats small {
  display:block;
  color:#59646f;
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.075em;
}

.crew-drawer-stats strong {
  display:block;
  margin-top:8px;
  color:#e9ecef;
  font:400 1.25rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-drawer-contribution {
  margin-top:10px;
  padding:14px;
  border:1px solid #ffffff12;
  background:#0e141a;
}

.crew-drawer-contribution > small {
  display:block;
  margin-top:8px;
  color:#606b76;
  font-size:.52rem;
}

.crew-member-list {
  display:grid;
  gap:7px;
  margin-top:10px;
}

.crew-member-row {
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  min-height:66px;
  padding:10px 12px;
  border:1px solid #ffffff12;
  background:#0e141a;
}

.crew-member-row.is-you {
  border-color:rgba(223,250,3,.28);
  background:linear-gradient(90deg,rgba(223,250,3,.055),transparent 55%),#0e141a;
}

.crew-member-rank {
  color:#66717c;
  font:400 1.2rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-member-who strong {
  display:block;
  color:#edf0f2;
  font-size:.65rem;
}

.crew-member-who span {
  display:block;
  margin-top:4px;
  color:#66717c;
  font-size:.5rem;
}

.crew-member-contribution {
  text-align:right;
}

.crew-member-contribution small {
  display:block;
  color:#59646f;
  font-size:.43rem;
  font-weight:900;
  letter-spacing:.08em;
}

.crew-member-contribution strong {
  display:block;
  margin-top:4px;
  color:var(--yellow);
  font:400 1.15rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-member-contribution span {
  display:block;
  margin-top:3px;
  color:#59646f;
  font-size:.45rem;
}

@media(max-width:900px) {
  .garage-list-row {
    grid-template-columns:82px minmax(0,1fr) auto;
  }

  .garage-thumb {
    grid-column:1;
    grid-row:1 / span 2;
    width:78px;
    height:48px;
  }

  .garage-brand { grid-column:2; grid-row:1; }
  .garage-model { grid-column:2; grid-row:2; }
  .garage-class { grid-column:3; grid-row:1; }
  .garage-level { grid-column:1 / -1; grid-row:3; }
  .garage-status { grid-column:1 / 3; grid-row:4; }
  .garage-row-open { grid-column:3; grid-row:4; }

  .garage-list-head { display:none; }
}

@media(max-width:720px) {
  .hero-active-car-visual {
    inset:0 -20px 0 35%;
    opacity:.55;
  }

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

@media(max-width:560px) {
  .objective-action {
    position:static;
    display:block;
    margin-top:12px;
  }

  .garage-list-row {
    grid-template-columns:72px minmax(0,1fr) auto;
  }

  .garage-thumb {
    width:68px;
    height:42px;
  }

  .crew-drawer-hero {
    grid-template-columns:1fr;
  }

  .crew-drawer-stats {
    grid-template-columns:1fr 1fr;
  }
}


/* =================================================================
   STREETKINGS ITALIA V63.1 — RACER CARD HOTFIX
   ================================================================= */

.racer-card-preview-frame {
  width:100%;
  overflow:hidden;
  border:1px solid #ffffff18;
  background:#090d12;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}

.racer-card-preview-frame img {
  width:100%;
  height:auto;
  display:block;
}

.racer-card-actions {
  display:flex;
  gap:9px;
  margin-top:14px;
}

.racer-card-action {
  appearance:none;
  border-radius:0;
  cursor:pointer;
  font-family:inherit;
}

.racer-card-download {
  border-color:rgba(223,250,3,.34);
  color:var(--yellow);
}

.racer-card-note {
  margin-top:12px;
  color:#606b76;
  font-size:.56rem;
  line-height:1.5;
}

.racer-card-loading {
  min-height:220px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff12;
  background:#0d1218;
  color:#77818c;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.09em;
}

@media(max-width:560px) {
  .racer-card-actions {
    flex-direction:column;
  }

  .racer-card-action {
    width:100%;
  }
}


/* =================================================================
   STREETKINGS ITALIA V64 — KING / RIVALRIES / BADGES / ANALYTICS
   ================================================================= */

/* King archive */
.king-archive-button {
  margin-top:14px;
}

.king-archive-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.king-archive-summary article {
  min-height:90px;
  padding:13px;
  border:1px solid #ffffff13;
  background:#0e141a;
}

.king-archive-summary small {
  color:#5e6974;
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.08em;
}

.king-archive-summary strong {
  display:block;
  margin-top:9px;
  color:#f0f2f4;
  font:400 1.75rem/1 'Bebas Neue',Impact,sans-serif;
}

.king-archive-summary article:nth-child(3) strong {
  color:var(--yellow);
}

.king-archive-list {
  display:grid;
  gap:8px;
  margin-top:10px;
}

.king-archive-row {
  display:grid;
  grid-template-columns:105px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  min-height:86px;
  padding:13px;
  border:1px solid #ffffff12;
  background:#0e141a;
}

.king-archive-row.is-champion {
  border-color:rgba(223,250,3,.34);
  background:linear-gradient(90deg,rgba(223,250,3,.075),transparent 62%),#0e141a;
}

.king-archive-position small {
  color:#65707b;
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.08em;
}

.king-archive-position strong {
  display:block;
  margin-top:6px;
  color:#f0f2f4;
  font:400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.king-archive-row.is-champion .king-archive-position strong,
.king-archive-row.is-champion .king-archive-copy > strong {
  color:var(--yellow);
}

.king-archive-copy > strong {
  display:block;
  color:#e9ecef;
  font-size:.64rem;
  letter-spacing:.03em;
}

.king-archive-copy span,
.king-archive-copy small {
  display:block;
  margin-top:5px;
  color:#66717c;
  font-size:.52rem;
}

.king-archive-row time {
  color:#515b66;
  font-size:.48rem;
  white-space:nowrap;
}

/* Real badge progression */
.badge-next-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.badge-next-grid .achievement-card {
  min-height:210px;
}

.achievement-card.locked {
  opacity:.74;
}

.achievement-card.locked:hover {
  opacity:1;
}

.achievement-card.is-unlocked {
  border-color:rgba(223,250,3,.18);
}

.badge-real-progress {
  margin-top:auto;
  padding-top:13px;
  border-top:1px solid #ffffff0f;
}

.badge-real-progress-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.badge-real-progress-head span {
  color:#606b76;
  font-size:.43rem;
  font-weight:900;
  letter-spacing:.08em;
}

.badge-real-progress-head b {
  color:#9aa3ac;
  font-size:.48rem;
}

.badge-real-progress-track {
  height:5px;
  margin-top:7px;
  overflow:hidden;
  background:#252d35;
}

.badge-real-progress-track i {
  display:block;
  height:100%;
  background:var(--yellow);
}

.achievement-card.locked .badge-real-progress-track i {
  background:#737e89;
}

.badge-real-progress > small {
  display:block;
  margin-top:6px;
  color:#545f69;
  font-size:.44rem;
}

/* Intelligent server comparison */
.server-intelligence {
  margin-top:10px;
  padding:16px;
  border:1px solid rgba(223,250,3,.24);
  background:
    linear-gradient(115deg,rgba(223,250,3,.075),transparent 52%),
    #0d1319;
}

.server-intelligence small {
  color:var(--yellow);
  font-size:.48rem;
  font-weight:900;
  letter-spacing:.09em;
}

.server-intelligence strong {
  display:block;
  margin-top:7px;
  color:#f0f2f4;
  font:400 2rem/1 'Bebas Neue',Impact,sans-serif;
}

.server-intelligence p {
  margin-top:7px;
  color:#78828d;
  font-size:.58rem;
  line-height:1.45;
}

.server-intelligence > span {
  display:inline-block;
  margin-top:10px;
  padding:5px 7px;
  border:1px solid rgba(223,250,3,.22);
  color:var(--yellow);
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.07em;
}

.intelligent-lock {
  opacity:.62;
}

/* Rivalries */
.rivalry-source-note {
  margin-top:7px;
  color:#626d78;
  font-size:.55rem;
  line-height:1.5;
}

.rivalry-hero-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.rivalry-hero-card {
  min-height:102px;
  padding:13px;
  border:1px solid #ffffff12;
  background:#0e141a;
}

.rivalry-hero-card.accent {
  border-color:rgba(223,250,3,.22);
}

.rivalry-hero-card.danger {
  border-color:rgba(255,91,122,.18);
}

.rivalry-hero-card.success {
  border-color:rgba(93,224,160,.18);
}

.rivalry-hero-card small {
  color:#606b76;
  font-size:.43rem;
  font-weight:900;
  letter-spacing:.08em;
}

.rivalry-hero-card strong {
  display:block;
  margin-top:8px;
  color:#eef0f2;
  font:400 1.35rem/1 'Bebas Neue',Impact,sans-serif;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rivalry-hero-card span {
  display:block;
  margin-top:7px;
  color:#6e7883;
  font-size:.5rem;
}

.rivalry-list {
  display:grid;
  gap:7px;
  margin-top:10px;
}

.rivalry-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:67px;
  padding:10px 12px;
  border:1px solid #ffffff11;
  background:#0d1319;
}

.rivalry-identity {
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:9px;
  align-items:center;
}

.rivalry-rank {
  color:#59646f;
  font:400 1.15rem/1 'Bebas Neue',Impact,sans-serif;
}

.rivalry-identity strong {
  display:block;
  color:#e9ecef;
  font-size:.63rem;
}

.rivalry-identity small {
  display:block;
  margin-top:4px;
  color:#58636e;
  font-size:.45rem;
}

.rivalry-record {
  text-align:right;
}

.rivalry-record strong {
  display:block;
  color:var(--yellow);
  font:400 1.2rem/1 'Bebas Neue',Impact,sans-serif;
}

.rivalry-record span {
  display:block;
  margin-top:4px;
  color:#59646f;
  font-size:.44rem;
}

/* Crew Analytics */
.crew-analytics-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.crew-analytics-card {
  min-height:105px;
  padding:13px;
  border:1px solid #ffffff12;
  background:#0e141a;
}

.crew-analytics-card small {
  color:#606b76;
  font-size:.44rem;
  font-weight:900;
  letter-spacing:.08em;
}

.crew-analytics-card strong {
  display:block;
  margin-top:8px;
  color:#edf0f2;
  font:400 1.55rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-analytics-card strong.positive {
  color:#5de0a0;
}

.crew-analytics-card strong.negative {
  color:#ff758e;
}

.crew-analytics-card > span {
  display:block;
  margin-top:6px;
  color:#65707b;
  font-size:.5rem;
}

.crew-form-strip {
  display:flex;
  gap:5px;
  margin-top:13px;
}

.crew-form-strip span {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff15;
  font:400 1rem/1 'Bebas Neue',Impact,sans-serif;
}

.crew-form-strip .form-w {
  color:#5de0a0;
  border-color:rgba(93,224,160,.24);
}

.crew-form-strip .form-l {
  color:#ff758e;
  border-color:rgba(255,117,142,.24);
}

.crew-form-strip .form-d {
  color:#8b96a0;
}

.crew-form-strip .form-empty {
  width:auto;
  padding:0 8px;
  color:#65707b;
  font-size:.45rem;
  font-family:inherit;
  font-weight:900;
}

.crew-member-track {
  width:92px;
  height:3px;
  margin:5px 0 0 auto;
  overflow:hidden;
  background:#252d35;
}

.crew-member-track i {
  display:block;
  height:100%;
  background:var(--yellow);
}

@media(max-width:900px) {
  .king-archive-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .badge-next-grid,
  .rivalry-hero-grid {
    grid-template-columns:1fr;
  }
}

@media(max-width:620px) {
  .king-archive-row {
    grid-template-columns:82px minmax(0,1fr);
  }

  .king-archive-row time {
    grid-column:2;
  }

  .crew-analytics-grid {
    grid-template-columns:1fr;
  }

  .rivalry-row {
    grid-template-columns:1fr;
  }

  .rivalry-record {
    text-align:left;
    padding-left:41px;
  }
}

/* ================================================================
   StreetKings Italia — Notification Center V2
   ================================================================ */
.notification-btn > span[hidden] { display:none !important; }

.notification-drawer-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:4px 0 14px;
  padding:14px 15px;
  border:1px solid #ffffff14;
  background:#0c1117;
}

.notification-drawer-summary {
  display:grid;
  gap:4px;
}

.notification-drawer-summary strong {
  color:#f0f2f4;
  font-size:.7rem;
  letter-spacing:.08em;
}

.notification-drawer-summary span {
  color:#737d87;
  font-size:.58rem;
  line-height:1.4;
}

.notification-mark-all {
  flex:0 0 auto;
  border:1px solid #DFFA0355;
  background:#DFFA0310;
  color:var(--yellow);
  min-height:36px;
  padding:0 12px;
  font-size:.54rem;
  font-weight:900;
  letter-spacing:.06em;
  cursor:pointer;
}

.notification-mark-all:hover:not(:disabled) {
  background:var(--yellow);
  color:#080a0d;
}

.notification-mark-all:disabled {
  opacity:.35;
  cursor:default;
}

.notification-tabs {
  display:flex;
  gap:7px;
  margin-bottom:11px;
  border-bottom:1px solid #ffffff10;
}

.notification-tab {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#717c87;
  padding:9px 2px 10px;
  margin-right:14px;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.08em;
  cursor:pointer;
}

.notification-tab:hover,
.notification-tab.active {
  color:#f0f2f4;
  border-bottom-color:var(--yellow);
}

.notification-drawer-list {
  display:grid;
  gap:9px;
}

.notification-drawer-item {
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:12px;
  padding:15px;
  border:1px solid #ffffff12;
  background:#0e141b;
  transition:border-color .18s ease, background .18s ease, opacity .18s ease;
}

.notification-drawer-item.is-unread {
  border-color:#DFFA0338;
  background:linear-gradient(90deg,#DFFA0308,#0e141b 40%);
}

.notification-drawer-item.is-read {
  opacity:.72;
}

.notification-drawer-item.is-read:hover,
.notification-drawer-item.is-unread:hover {
  opacity:1;
  border-color:#ffffff24;
}

.notification-drawer-icon {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff14;
  background:#080d12;
  color:#929ca6;
  font-size:.8rem;
  font-weight:900;
}

.notification-drawer-item.king .notification-drawer-icon,
.notification-drawer-item.achievement .notification-drawer-icon,
.notification-drawer-item.progress .notification-drawer-icon {
  border-color:#DFFA0340;
  color:var(--yellow);
}

.notification-drawer-item.warn .notification-drawer-icon {
  border-color:#ff9f4350;
  color:#ffb36b;
}

.notification-drawer-item.garage .notification-drawer-icon { color:#7dc5ff; }
.notification-drawer-item.crew .notification-drawer-icon { color:#93dfbd; }
.notification-drawer-item.sponsor .notification-drawer-icon { color:#f2cd65; }
.notification-drawer-item.vip .notification-drawer-icon { color:#d9a3ff; }
.notification-drawer-item.story .notification-drawer-icon { color:#9ab6ff; }

.notification-drawer-copy {
  min-width:0;
}

.notification-drawer-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:6px;
}

.notification-category {
  color:#8a949e;
  font-size:.49rem;
  font-weight:900;
  letter-spacing:.11em;
}

.notification-new {
  padding:2px 5px;
  border:1px solid #DFFA0345;
  color:var(--yellow);
  font-size:.45rem;
  font-weight:900;
  letter-spacing:.08em;
}

.notification-drawer-meta time {
  margin-left:auto;
  color:#59636d;
  font-size:.49rem;
  white-space:nowrap;
}

.notification-drawer-copy strong {
  display:block;
  color:#edf0f2;
  font-size:.69rem;
  line-height:1.3;
}

.notification-drawer-copy p {
  margin-top:6px;
  color:#7c8792;
  font-size:.6rem;
  line-height:1.5;
}

.notification-drawer-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin-top:11px;
}

.notification-action,
.notification-read-one {
  border:0;
  background:transparent;
  padding:0;
  font-size:.51rem;
  font-weight:900;
  letter-spacing:.06em;
  cursor:pointer;
}

.notification-action { color:var(--yellow); }
.notification-read-one { color:#6f7a84; }
.notification-action:hover { color:#ffe08a; }
.notification-read-one:hover { color:#cbd1d6; }

.notification-empty {
  padding:26px 18px;
  border:1px dashed #ffffff18;
  color:#69737d;
  text-align:center;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.08em;
}

@media (max-width:620px) {
  .notification-drawer-toolbar {
    align-items:flex-start;
    flex-direction:column;
  }
  .notification-mark-all {
    width:100%;
  }
  .notification-drawer-item {
    grid-template-columns:30px minmax(0,1fr);
    padding:13px;
  }
  .notification-drawer-meta time {
    width:100%;
    margin-left:0;
  }
}


/* Notification Center compact refinement v65.7 */
.profile-drawer.notification-drawer-mode .profile-drawer-panel {
  width:min(500px,100%);
  padding:22px 22px 24px;
}

.profile-drawer.notification-drawer-mode .profile-drawer-title {
  margin-top:18px;
  font-size:2.15rem;
  line-height:.96;
}

.profile-drawer.notification-drawer-mode .profile-drawer-subtitle {
  margin-top:7px;
  max-width:430px;
  font-size:.58rem;
  line-height:1.45;
}

.profile-drawer.notification-drawer-mode .profile-drawer-content {
  margin-top:18px;
}

.profile-drawer.notification-drawer-mode .notification-drawer-toolbar {
  gap:10px;
  margin:0 0 10px;
  padding:11px 12px;
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01));
}

.profile-drawer.notification-drawer-mode .notification-drawer-summary {
  gap:3px;
}

.profile-drawer.notification-drawer-mode .notification-drawer-summary strong {
  font-size:.62rem;
  letter-spacing:.07em;
}

.profile-drawer.notification-drawer-mode .notification-drawer-summary span {
  font-size:.53rem;
}

.profile-drawer.notification-drawer-mode .notification-mark-all {
  min-height:32px;
  padding:0 10px;
  font-size:.49rem;
  letter-spacing:.05em;
  border-radius:7px;
}

.profile-drawer.notification-drawer-mode .notification-tabs {
  gap:6px;
  margin-bottom:9px;
}

.profile-drawer.notification-drawer-mode .notification-tab {
  margin-right:10px;
  padding:7px 1px 8px;
  font-size:.52rem;
}

.profile-drawer.notification-drawer-mode .notification-drawer-list {
  gap:7px;
}

.profile-drawer.notification-drawer-mode .notification-drawer-item {
  position:relative;
  grid-template-columns:30px minmax(0,1fr);
  gap:10px;
  padding:11px 12px 12px;
  border-radius:8px;
  overflow:hidden;
}

.profile-drawer.notification-drawer-mode .notification-drawer-item::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:2px;
  background:transparent;
}

.profile-drawer.notification-drawer-mode .notification-drawer-item.is-unread::before {
  background:var(--yellow);
}

.profile-drawer.notification-drawer-mode .notification-drawer-item.is-read::before {
  background:#ffffff14;
}

.profile-drawer.notification-drawer-mode .notification-drawer-item.is-unread {
  background:linear-gradient(90deg,rgba(223,250,3,.075),rgba(14,20,27,.98) 42%);
}

.profile-drawer.notification-drawer-mode .notification-drawer-icon {
  width:28px;
  height:28px;
  border-radius:7px;
  font-size:.72rem;
  background:linear-gradient(180deg,#0e141a,#0a0e14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.profile-drawer.notification-drawer-mode .notification-drawer-meta {
  gap:6px;
  margin-bottom:4px;
}

.profile-drawer.notification-drawer-mode .notification-category,
.profile-drawer.notification-drawer-mode .notification-drawer-meta time {
  font-size:.47rem;
}

.profile-drawer.notification-drawer-mode .notification-new {
  padding:2px 4px;
  font-size:.42rem;
}

.profile-drawer.notification-drawer-mode .notification-drawer-copy strong {
  font-size:.64rem;
  line-height:1.25;
}

.profile-drawer.notification-drawer-mode .notification-drawer-copy p {
  margin-top:4px;
  font-size:.56rem;
  line-height:1.45;
}

.profile-drawer.notification-drawer-mode .notification-drawer-actions {
  gap:8px;
  margin-top:8px;
}

.profile-drawer.notification-drawer-mode .notification-action,
.profile-drawer.notification-drawer-mode .notification-read-one {
  font-size:.49rem;
}

.profile-drawer.notification-drawer-mode .notification-empty {
  padding:18px 16px;
  border-radius:8px;
  font-size:.54rem;
}

@media (max-width:620px) {
  .profile-drawer.notification-drawer-mode .profile-drawer-panel {
    width:100%;
    padding:18px 16px 20px;
  }

  .profile-drawer.notification-drawer-mode .profile-drawer-title {
    margin-top:14px;
    font-size:1.9rem;
  }

  .profile-drawer.notification-drawer-mode .notification-drawer-toolbar {
    padding:10px;
  }

  .profile-drawer.notification-drawer-mode .notification-mark-all {
    width:100%;
  }
}
