/* GT7 Profilo 3 viste — design quality build */

:root {
  --accent: #00f0ff;
  --gold: #c9a227;
}
* { box-sizing: border-box; }
/* body styles omitted — app shell owns body */

/* ===== SHELL ===== */
.shell {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(8,10,16,.94); border-bottom: 1px solid #1e2430;
  backdrop-filter: blur(12px);
}
.shell h1 { margin: 0; font-size: .95rem; font-weight: 700; }
.shell h1 em { font-style: normal; color: var(--accent); }
.views { display: flex; gap: 6px; flex-wrap: wrap; }
.views button {
  border: 1px solid #2a3140; background: #12151c; color: #c8d0e0;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .8rem; cursor: pointer;
}
.views button.on { background: var(--accent); color: #041018; border-color: transparent; }
.views button[data-v="pro"].on { background: var(--gold); color: #1a1408; }
.views button[data-v="classic"].on { background: #ffcc00; color: #1a1400; }
.hint { text-align: center; font-size: .78rem; color: #7a8499; padding: 8px; background: #0a0c12; border-bottom: 1px solid #1a1e28; }
#root { max-width: none; width: 100%; margin: 0; padding: 12px 16px 80px; box-sizing: border-box; }

.btn {
  border: 1px solid #2a3140; background: #151922; color: #e0e6f0;
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .82rem; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn-p { background: var(--accent); color: #041018; border: none; }
.btn-g { background: var(--gold); color: #1a1400; border: none; }
.btn-a { background: #ff2d95; color: #fff; border: none; }
.btn-sm { padding: 5px 10px; font-size: .74rem; }

/* =========================================================
   CLASSICA — stile “GMZ Super License” (vicino all’app attuale)
   ========================================================= */
.cl { font-family: Poppins, sans-serif; }
.cl-back { margin-bottom: 12px; }
.cl-license {
  max-width: none; width: 100%; margin: 0 0 16px; border-radius: 16px; overflow: hidden;
  border: 2px solid #ffcc00; box-shadow: 0 8px 28px rgba(0,0,0,.45);
  background: linear-gradient(145deg, #1a1520, #0e1018);
  position: relative;
}
.cl-license-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: linear-gradient(90deg, #ffcc00, #ffaa00); color: #1a1000;
  font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.cl-license-body { display: flex; gap: 12px; padding: 14px; align-items: center; }
.cl-license-body img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 2px solid #ffcc00;
}
.cl-license-data { flex: 1; }
.cl-license-data h2 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.cl-license-data p { margin: 0; font-size: .78rem; color: #aab4c8; }
.cl-license-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 0 12px 12px; text-align: center;
}
.cl-license-stats div {
  background: rgba(255,204,0,.08); border-radius: 8px; padding: 6px 4px;
  border: 1px solid rgba(255,204,0,.2);
}
.cl-license-stats b { display: block; color: #ffcc00; font-size: .95rem; }
.cl-license-stats span { font-size: .62rem; color: #8a94a8; text-transform: uppercase; }

.cl-premium {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0;
}
.cl-card {
  background: #161a22; border: 1px solid #2a3140; border-radius: 12px; overflow: hidden;
}
.cl-card .hd {
  padding: 8px 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: rgba(255,204,0,.1); color: #ffcc00; border-bottom: 1px solid #2a3140;
}
.cl-card .row {
  display: flex; justify-content: space-between; padding: 6px 12px; font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cl-card .row:last-child { border-bottom: none; }
.cl-card .row span { color: #8a94a8; }
.cl-card .row b { color: #e8eef8; }

/* =========================================================
   FUTURISTICA — HUD neon / cyber
   ========================================================= */
.fu {
  font-family: Orbitron, Poppins, sans-serif;
  background:
    radial-gradient(ellipse 90% 50% at 0% 0%, rgba(0,240,255,.15), transparent 50%),
    radial-gradient(ellipse 70% 40% at 100% 10%, rgba(255,45,149,.12), transparent 45%),
    #05070f;
  border: 1px solid rgba(0,240,255,.25); border-radius: 4px; padding: 14px;
  position: relative; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.fu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    linear-gradient(rgba(0,240,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.fu > * { position: relative; z-index: 1; }
.fu-hud {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; margin-bottom: 12px;
  background: rgba(0,20,30,.6); border: 1px solid rgba(0,240,255,.35);
  box-shadow: 0 0 20px rgba(0,240,255,.15), inset 0 0 30px rgba(0,240,255,.05);
}
.fu-hud img {
  width: 90px; height: 90px; object-fit: cover;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  border: 2px solid #00f0ff; box-shadow: 0 0 16px rgba(0,240,255,.5);
}
.fu-hud h2 {
  margin: 0; font-size: 1.2rem; color: #00f0ff; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0,240,255,.6); letter-spacing: .08em;
}
.fu-hud .meta { font-size: .72rem; color: #7ad4e8; margin-top: 6px; font-family: Poppins, sans-serif; font-weight: 400; }
.fu-scan {
  font-size: .7rem; color: #00ff88; text-align: right; font-family: Orbitron, monospace;
  line-height: 1.5;
}
.fu-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.fu-bar {
  background: rgba(0,240,255,.06); border: 1px solid rgba(0,240,255,.2); padding: 10px;
  text-align: center;
}
.fu-bar b { display: block; font-size: 1.2rem; color: #00f0ff; text-shadow: 0 0 8px rgba(0,240,255,.4); }
.fu-bar span { font-size: .6rem; color: #6a9aaa; text-transform: uppercase; letter-spacing: .08em; font-family: Poppins, sans-serif; }

/* =========================================================
   PROFESSIONALE — dossier carriera + shelf trofei realistici
   ========================================================= */
.pr {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: #e6e9ef;
}
.pr-head {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 0 0 20px; margin-bottom: 20px;
  border-bottom: 2px solid #c9a227;
}
.pr-head img {
  width: 130px; height: 130px; object-fit: cover;
  border: 1px solid #3a4250; border-radius: 2px;
}
.pr-head h2 {
  margin: 0 0 4px; font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; color: #f4f6fa;
}
.pr-head .role { color: #9aa3b5; font-size: .9rem; margin-bottom: 12px; }
.pr-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pr-kv div {
  border-left: 2px solid #c9a227; padding-left: 10px;
}
.pr-kv small { display: block; font-size: .68rem; color: #8b93a7; text-transform: uppercase; letter-spacing: .06em; }
.pr-kv strong { font-size: .95rem; color: #f0f2f6; font-weight: 600; }

.pr-sec {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: #c9a227; margin: 22px 0 12px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.pr-sec::after { content: ""; flex: 1; height: 1px; background: #2a3140; }

.pr table {
  width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 8px;
}
.pr th {
  text-align: left; padding: 8px 10px; color: #8b93a7; font-weight: 600;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid #2a3140;
}
.pr td { padding: 9px 10px; border-bottom: 1px solid #1a1e28; }
.pr tr:hover td { background: rgba(201,162,39,.04); }

/* ===== TROPHY SHELF (professional, image-like) ===== */
.shelf {
  background: linear-gradient(180deg, #1a1c22 0%, #0e1014 40%, #0a0b0e 100%);
  border: 1px solid #2a2e38; border-radius: 8px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.5);
}
.shelf-header {
  text-align: center; padding: 16px 12px 8px;
  background: linear-gradient(180deg, #22262f, #16181e);
  border-bottom: 1px solid #2a2e38;
  position: relative;
}
.shelf-header::before, .shelf-header::after {
  content: "❖"; position: absolute; top: 18px; color: #c9a227; opacity: .7; font-size: .9rem;
}
.shelf-header::before { left: 18%; }
.shelf-header::after { right: 18%; }
.shelf-header h3 {
  margin: 0; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  color: #e8d5a3; font-weight: 700;
}
.shelf-header p { margin: 6px 0 0; font-size: .75rem; color: #6a7388; }

.shelf-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  padding: 18px 10px 22px; position: relative;
  background:
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,.35) 100%),
    repeating-linear-gradient(90deg, #12141a 0px, #12141a 1px, #16181f 1px, #16181f 14.28%);
  border-bottom: 1px solid #1e222c;
}
.shelf-row::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: 8px; height: 8px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.55), transparent);
  border-radius: 50%; filter: blur(4px); pointer-events: none;
}

.cup-slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; min-height: 130px;
}
.cup-visual {
  width: 64px; height: 88px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  transition: filter .3s, opacity .3s, transform .2s;
}
.cup-slot.on:hover .cup-visual { transform: translateY(-4px); }
.cup-slot.off .cup-visual {
  filter: grayscale(1) brightness(0.45); opacity: 0.42;
}
.cup-slot.off .cup-name { color: #4a5366; }
.cup-slot.off .cup-visual::after {
  content: "🔒"; position: absolute; bottom: 18px; right: -2px; font-size: .7rem;
  filter: none; opacity: 1; z-index: 3;
}

/* CSS trophy shapes inspired by the image */
.cup-body {
  width: 100%; height: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.cup-top {
  width: 42px; height: 36px; border-radius: 4px 4px 40% 40% / 4px 4px 55% 55%;
  position: relative; z-index: 1;
}
.cup-stem { width: 8px; height: 14px; background: linear-gradient(90deg, #888, #ddd, #888); }
.cup-base {
  width: 36px; height: 10px; border-radius: 2px;
  background: linear-gradient(180deg, #555, #222); border: 1px solid #333;
}
.cup-handles::before, .cup-handles::after {
  content: ""; position: absolute; top: 8px; width: 12px; height: 20px;
  border: 3px solid; border-radius: 50%; z-index: 0;
}
.cup-handles::before { left: 2px; border-color: transparent transparent transparent inherit; }
.cup-handles::after { right: 2px; border-color: transparent inherit transparent transparent; }

/* variants */
.cup-silver .cup-top {
  background: linear-gradient(160deg, #f0f4f8, #9aa8b8 40%, #6a7888 70%, #c8d4e0);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 0 12px rgba(180,200,220,.3);
}
.cup-silver .cup-handles { color: #a8b8c8; }
.cup-gold .cup-top {
  background: linear-gradient(160deg, #fff0a0, #e8b020 35%, #a87810 70%, #ffd860);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.4), 0 0 14px rgba(212,160,23,.45);
}
.cup-gold .cup-handles { color: #d4a020; }
.cup-geo .cup-top {
  width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent;
  border-bottom: 48px solid #c0c8d4; border-radius: 0;
  background: none; filter: drop-shadow(0 0 6px rgba(180,190,210,.4));
}
.cup-geo .cup-stem { margin-top: -2px; }
.cup-star .cup-top {
  width: 48px; height: 48px; border-radius: 0; background: none;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(160deg, #ffe566, #d4a017 50%, #8a6800);
  box-shadow: 0 0 12px rgba(212,160,23,.5);
}
.cup-abstract .cup-top {
  width: 28px; height: 52px; border-radius: 4px 4px 20% 20%;
  background: linear-gradient(180deg, #e8ecf0 0%, #8890a0 40%, #c02030 70%, #600818);
  transform: skewX(-8deg);
  box-shadow: 0 0 10px rgba(180,40,50,.35);
}
.cup-snr .cup-top {
  width: 40px; height: 44px; border-radius: 6px 6px 30% 30%;
  background: linear-gradient(160deg, #e8eef8, #7080a0 50%, #203050);
  box-shadow: 0 0 10px rgba(100,120,180,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 800; color: #fff; letter-spacing: .05em;
}
.cup-plaque {
  width: 48px; height: 56px; border-radius: 4px;
  background: linear-gradient(160deg, #2a3038, #151820);
  border: 1px solid #3a4250; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: inset 0 0 12px rgba(0,0,0,.5);
}
.cup-crystal .cup-top {
  width: 36px; height: 52px;
  clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 30%);
  background: linear-gradient(160deg, rgba(200,230,255,.9), rgba(100,140,200,.5) 50%, rgba(40,60,100,.8));
  border-radius: 0; box-shadow: 0 0 16px rgba(140,180,255,.4);
}

.cup-name {
  font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  text-align: center; line-height: 1.2; color: #c8d0dc; max-width: 72px;
}
.cup-plinth {
  width: 52px; height: 18px; background: linear-gradient(180deg, #1a1e28, #0c0e14);
  border: 1px solid #2a3040; border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: #8a94a8; text-transform: uppercase;
}
.cup-slot.on .cup-plinth { border-color: #c9a22755; color: #e8d5a3; }
.cup-cnt {
  position: absolute; top: -2px; right: 4px; z-index: 4;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #c9a227; color: #1a1200; font-size: .6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cup-slot.off .cup-cnt { background: #3a4250; color: #889; }

.shelf-foot {
  display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr 1fr;
  background: #0c0e12; border-top: 1px solid #c9a22744; padding: 12px 8px;
}
.sf-stat { text-align: center; border-right: 1px solid #1e222c; padding: 4px; }
.sf-stat:last-child { border-right: none; }
.sf-stat .v { font-size: 1.15rem; font-weight: 800; color: #e8d5a3; }
.sf-stat .l { font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; color: #6a7388; font-weight: 700; }
.sf-quote {
  font-size: .65rem; font-style: italic; color: #9aa3b5; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid #1e222c; padding: 0 8px; line-height: 1.35;
}
.sf-quote strong { font-style: normal; color: #c45c5c; font-size: .6rem; margin-top: 4px; letter-spacing: .04em; }

/* ===== SHARED: comps, AI, nerd, charts ===== */
.comp-bar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; }
.comp-chip {
  flex: 0 0 auto; padding: 7px 12px; border: 1px solid #2a3140; background: #141820;
  color: #c8d0e0; font-size: .78rem; font-weight: 600; cursor: pointer; border-radius: 8px;
  white-space: nowrap;
}
.comp-chip.on { border-color: var(--accent); background: rgba(0,240,255,.12); color: #fff; }
.pr .comp-chip { border-radius: 2px; }
.pr .comp-chip.on { border-color: var(--gold); background: rgba(201,162,39,.12); color: #e8d5a3; }
.comp-chip.out { opacity: .55; border-style: dashed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: #1a2030; border: 1px solid #2a3140; color: #aab4c8; }
.cta {
  display: none; padding: 14px; border: 1px dashed #ff2d95; background: rgba(255,45,149,.07);
  text-align: center; margin-bottom: 12px; border-radius: 10px;
}
.cta.on { display: block; }

.nerd {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 12px 0;
}
.nerd div {
  background: #141820; border: 1px solid #2a3140; border-radius: 10px; padding: 10px; text-align: center;
}
.nerd b { display: block; font-size: 1.1rem; color: var(--accent); }
.pr .nerd b { color: var(--gold); }
.nerd span { font-size: .65rem; color: #7a8499; text-transform: uppercase; }
.nerd small { display: block; font-size: .68rem; color: #00ff88; margin-top: 2px; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.chart-box {
  background: #141820; border: 1px solid #2a3140; border-radius: 12px; padding: 12px; min-height: 240px;
}
.chart-box h4 { margin: 0 0 8px; font-size: .75rem; color: #7a8499; text-transform: uppercase; }
.chart-box canvas { width: 100% !important; height: 200px !important; }
.pr .chart-box { border-radius: 2px; }

/* AI interactive */
.ai {
  margin: 14px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,240,255,.25);
  background: linear-gradient(135deg, rgba(0,240,255,.06), rgba(255,45,149,.05));
}
.pr .ai { border-color: rgba(201,162,39,.3); background: rgba(201,162,39,.05); border-radius: 2px; }
.ai-hd {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.ai-hd h3 { margin: 0; font-size: .88rem; color: #00f0ff; }
.pr .ai-hd h3 { color: #c9a227; }
.ai-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-filters button {
  font-size: .7rem; padding: 4px 10px; border-radius: 999px; border: 1px solid #2a3140;
  background: #12151c; color: #aab4c8; cursor: pointer;
}
.ai-filters button.on { background: #00f0ff22; border-color: #00f0ff; color: #00f0ff; }
.pr .ai-filters button.on { background: #c9a22722; border-color: #c9a227; color: #e8d5a3; }
.ai-body { padding: 10px 12px; }
.ai-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 10px; margin-bottom: 8px; background: rgba(0,0,0,.28); border-radius: 10px;
  border: 1px solid transparent; transition: border-color .2s;
}
.ai-card:hover { border-color: rgba(0,240,255,.3); }
.ai-card .ico { font-size: 1.2rem; }
.ai-card .txt { font-size: .84rem; line-height: 1.45; }
.ai-card .txt strong { color: #fff; }
.ai-card .vs {
  font-size: .72rem; color: #8a94a8; margin-top: 4px;
}
.ai-card .act { display: flex; flex-direction: column; gap: 4px; }
.ai-card .act button { white-space: nowrap; }

.rival-panel {
  display: none; margin-top: 8px; padding: 12px; background: #0c1018; border-radius: 10px;
  border: 1px solid #2a3140; font-size: .84rem;
}
.rival-panel.open { display: block; }
.rival-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; margin-top: 8px; }
.rival-grid .you { color: #00f0ff; font-weight: 700; }
.rival-grid .them { color: #ff2d95; font-weight: 700; }
.rival-grid .lbl { font-size: .68rem; color: #7a8499; text-transform: uppercase; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #151a24; border: 1px solid #2a3140; border-radius: 12px; padding: 18px;
  width: 100%; max-width: 380px;
}
.modal h3 { margin: 0 0 10px; }
.modal label { display: block; font-size: .75rem; color: #8a94a8; margin: 8px 0 4px; }
.modal input {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid #2a3140;
  background: #0c1018; color: #e8eef8;
}
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 800px) {
  .shelf-row { grid-template-columns: repeat(4, 1fr); }
  .shelf-foot { grid-template-columns: 1fr 1fr; }
  .sf-quote { grid-column: 1/-1; border-right: none; border-top: 1px solid #1e222c; padding: 10px; order: -1; }
  .charts { grid-template-columns: 1fr; }
  .fu-hud, .pr-head { grid-template-columns: 1fr; }
  .fu-bars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shelf-row { grid-template-columns: repeat(3, 1fr); }
}

/* stats bottom tables */
.stats-bottom { margin-top: 18px; }
.stats-bottom h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: #8a94a8; margin: 0 0 10px; font-weight: 700;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.stats-card {
  background: #141820; border: 1px solid #2a3140; border-radius: 12px; overflow: hidden;
}
.pr .stats-card { border-radius: 2px; }
.stats-card .hd {
  padding: 9px 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: rgba(255,255,255,.04); border-bottom: 1px solid #2a3140;
  color: #c9a227;
}
.fu .stats-card .hd { color: #00f0ff; }
.cl .stats-card .hd { color: #ffcc00; }
.stats-card .row {
  display: flex; justify-content: space-between; padding: 7px 12px; font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stats-card .row:last-child { border-bottom: none; }
.stats-card .row span { color: #8a94a8; }
.stats-card .row b { color: #e8eef8; font-weight: 600; }


/* integration helpers */
#gt7p-root {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 12px 100px !important;
  box-sizing: border-box !important;
}
/* force content area full width when profile open */
#content:has(#gt7p-root),
#content:has(.cl),
#content:has(.fu),
#content:has(.pr) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
.main-content:has(#gt7p-root),
.app-main:has(#gt7p-root) {
  max-width: none !important;
}
.gt7p-view-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 12px 0 16px;
}
.gt7p-view-bar .view-btn {
  border: 1px solid #2a3140; background: #12151c; color: #c8d0e0;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .8rem; cursor: pointer;
}
.gt7p-view-bar .view-btn.on { background: linear-gradient(135deg,#00f0ff,#ff2d95); color: #001018; border-color: transparent; }
.gt7p-view-bar .view-btn[data-v="pro"].on { background: #c9a227; color: #1a1408; }
.gt7p-view-bar .view-btn[data-v="classic"].on { background: #ffcc00; color: #1a1400; }

/* extras for production integration */
.btn {
  border: 1px solid #2a3140; background: #151922; color: #e0e6f0;
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .82rem; cursor: pointer;
}
.btn-p { background: #00f0ff; color: #041018; border: none; }
.btn-a { background: #ff2d95; color: #fff; border: none; }
.btn-sm { padding: 5px 10px; font-size: .74rem; }
.stats-bottom { margin-top: 18px; }
.stats-bottom h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: #8a94a8; margin: 0 0 10px; font-weight: 700;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.stats-card {
  background: #141820; border: 1px solid #2a3140; border-radius: 12px; overflow: hidden;
}
.pr .stats-card { border-radius: 2px; }
.stats-card .hd {
  padding: 9px 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; background: rgba(255,255,255,.04); border-bottom: 1px solid #2a3140;
  color: #c9a227;
}
.fu .stats-card .hd { color: #00f0ff; }
.cl .stats-card .hd { color: #ffcc00; }
.stats-card .row {
  display: flex; justify-content: space-between; padding: 7px 12px; font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stats-card .row:last-child { border-bottom: none; }
.stats-card .row span { color: #8a94a8; }
.stats-card .row b { color: #e8eef8; font-weight: 600; }
.rival-panel.open { display: block; }


/* ========== FULL SCREEN PROFILE ========== */
.cl, .fu, .pr, #gt7p-root {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.cl-license {
  display: grid !important;
  grid-template-columns: 1fr;
  width: 100% !important;
  max-width: 100% !important;
}
@media (min-width: 900px) {
  .cl-license {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
  .cl-license-body { padding: 20px 24px !important; }
  .cl-license-stats {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    padding: 16px 20px !important;
  }
}
.cl-premium {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}
.charts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}
.chart-box { min-height: 280px !important; }
.chart-box canvas { height: 240px !important; }
.nerd {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}
.comp-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  overflow-x: visible !important;
}
.comp-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.shelf {
  width: 100% !important;
  max-width: 100% !important;
}
.shelf-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
  gap: 10px !important;
  justify-items: center;
  width: 100% !important;
}
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}
.ai, .ai-body { width: 100% !important; }
.fu-hud {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 16px !important;
  width: 100% !important;
  align-items: center;
}
.fu-bars {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
.pr-head {
  display: grid !important;
  grid-template-columns: 140px 1fr !important;
  gap: 20px !important;
  width: 100% !important;
}
.pr-kv {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}
.pr table { width: 100% !important; }
.gt7p-view-bar {
  width: 100% !important;
  justify-content: center !important;
  margin: 12px 0 20px !important;
}
.view-btn {
  padding: 10px 18px !important;
  font-size: .85rem !important;
}
@media (max-width: 700px) {
  .fu-hud { grid-template-columns: 1fr !important; text-align: center; }
  .fu-bars { grid-template-columns: repeat(2, 1fr) !important; }
  .pr-head { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
}

/* ===== charts crisp ===== */
.charts { width: 100%; }
.chart-box {
  background: #12161f;
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 14px 14px 8px;
  min-height: 320px;
}
.chart-box h4 {
  margin: 0 0 8px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa6bd;
  font-weight: 700;
}
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}
.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===== shelf centered ===== */
.shelf {
  width: 100%;
  max-width: 960px;
  margin: 18px auto !important;
  display: block;
}
.shelf-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.shelf-row {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 12px 14px !important;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.cup-slot { justify-self: center; }

/* ===== AI interactive ===== */
.ai-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-hd h3 { margin: 0; }
.ai-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-f {
  border: 1px solid #2a3140;
  background: #12151c;
  color: #c8d0e0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
}
.ai-f.on {
  background: var(--gt7-accent, #00f0ff);
  color: #041018;
  border-color: transparent;
}
.ai-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.ai-card .ico { font-size: 1.35rem; line-height: 1; }
.ai-card .txt { font-size: .86rem; line-height: 1.45; }
.ai-card .act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ai-empty { padding: 14px; opacity: .7; text-align: center; }
.rival-panel { display: none; margin-top: 10px; }
.rival-panel.open {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #0a0d14;
  border: 1px solid #2a3140;
}
.rival-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px 10px;
  text-align: center;
  align-items: center;
  font-size: .84rem;
}
.rival-grid .rg-h { font-weight: 700; font-size: .9rem; }
.rival-grid .you { color: var(--gt7-accent, #00f0ff); }
.rival-grid .them { color: #ff2d95; }
.rival-grid .vs { color: #7a8499; font-size: .75rem; }
.rival-grid .rg-l { color: #7a8499; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.rival-grid .rg-v { font-weight: 700; }
.rival-grid .rg-v.win { color: #00ff88; }
.rival-grid .rg-v.lose { color: #ff6b6b; }

/* ===== personalizza ===== */
.view-custom { border-style: dashed !important; }
.gt7p-custom {
  margin: 0 auto 16px;
  max-width: 920px;
  width: 100%;
}
.gt7p-custom-inner {
  background: #10141c;
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 14px;
}
.gt7p-custom-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.gt7p-custom-sec {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a94a8;
  margin: 10px 0 8px;
  font-weight: 700;
}
.gt7p-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.gt7p-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #151922;
  color: #e0e6f0;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  text-align: left;
}
.gt7p-team.on {
  border-color: var(--t, #00f0ff);
  box-shadow: 0 0 0 1px var(--t, #00f0ff), 0 0 16px var(--gt7-glow, transparent);
}
.gt7p-team .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.gt7p-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.gt7p-tog {
  font-size: .82rem;
  color: #c8d0e0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.gt7p-custom-note {
  margin: 12px 0 0;
  font-size: .75rem;
  color: #7a8499;
}

/* accent hooks */
.comp-chip.on,
.view-btn.on {
  border-color: var(--gt7-accent, #00f0ff) !important;
}
.fu .fu-scan { color: var(--gt7-accent, #00ff88); }
.fu h2 { color: var(--gt7-accent, #00f0ff) !important; text-shadow: 0 0 14px var(--gt7-glow, transparent) !important; }

.gt7p-classic-extra {
  width: 100%;
  max-width: 100%;
  padding: 0 4px 40px;
  box-sizing: border-box;
}
.cl-extra-inner { width: 100%; max-width: 100%; }

/* ===== CLASSIC HEADER (super card + hero) ===== */
.gt7p-classic-top {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 16px;
  width: 100%;
  margin: 0 0 18px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .gt7p-classic-top { grid-template-columns: 1fr; }
}
.gt7p-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(135deg, #0d1520 0%, #152030 50%, #0a1018 100%);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.gt7p-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, var(--gt7-glow, rgba(255,204,0,.25)), transparent 60%);
  pointer-events: none;
}
.gt7p-hero-logo {
  position: absolute;
  right: 12px; bottom: 8px;
  width: min(55%, 220px);
  height: auto;
  opacity: .92;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.45));
  pointer-events: none;
}
.gt7p-hero-top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 55%; }
.gt7p-hero-coins {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 12px; border-radius: 10px; font-weight: 700; width: fit-content;
}
.gt7p-hero-update { font-size: .72rem; color: #9aa6bd; text-transform: uppercase; letter-spacing: .06em; }
.gt7p-hero-update small { display: block; color: #e8eef8; font-size: .85rem; text-transform: none; letter-spacing: 0; margin-top: 2px; }

/* reuse app license card when available */
.gt7p-classic-top .card-container { width: 100%; max-width: 420px; margin: 0; }
.gt7p-classic-top .card-front,
.gt7p-classic-top .card-back {
  border-color: var(--gt7-accent, #ffcc00) !important;
  box-shadow: 0 0 0 1px var(--gt7-accent, #ffcc00), 0 12px 40px rgba(0,0,0,.35);
}

/* ===== AI INBOX ===== */
.ai-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-tab {
  border: 1px solid #2a3140; background: #12151c; color: #c8d0e0;
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; cursor: pointer;
}
.ai-tab.on { background: var(--gt7-accent, #00f0ff); color: #041018; border-color: transparent; }
.ai-tab .badge {
  display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px;
  border-radius: 999px; background: rgba(0,0,0,.25); font-size: .68rem;
}
.ai-card.read { opacity: .72; }
.ai-card.read .txt strong::after { content: " · letto"; font-weight: 500; opacity: .6; font-size: .75em; }
.ai-continues {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px dashed rgba(0,240,255,.35); background: rgba(0,240,255,.05);
  font-size: .82rem; color: #9ad8e8; text-align: center;
}

/* ===== PRO TROPHY CABINET (image-like) ===== */
.shelf {
  max-width: 1000px !important;
  margin: 20px auto !important;
  padding: 18px 16px 12px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, #161a22 0%, #0c0e14 100%) !important;
  border: 1px solid rgba(201,162,39,.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.35) !important;
}
.shelf-header h3 {
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: .18em;
  font-size: .95rem !important;
}
.shelf-row {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  justify-items: center;
  padding: 10px 4px 14px;
  border-bottom: 2px solid #1a1e28;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
  max-width: none !important;
}
@media (max-width: 900px) {
  .shelf-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.cup-slot {
  width: 100%;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.cup-slot .cup-panel {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,.35);
}
.cup-slot .cup-panel::before {
  content: "";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.cup-slot .cup-panel .panel-icon {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-size: .95rem; opacity: .85;
}
.cup-slot.off .cup-panel { filter: grayscale(1) brightness(.45); opacity: .55; }
.cup-slot.off .cup-name { opacity: .45; }
.cup-slot.on .cup-panel { filter: none; opacity: 1; }

.panel-classificate { background: linear-gradient(180deg, #2a3038, #12151a); }
.panel-campionato { background: linear-gradient(180deg, #3a2e18, #1a1408); }
.panel-endurance { background: linear-gradient(180deg, #14301c, #0a1810); }
.panel-assetto { background: linear-gradient(180deg, #142838, #0a141c); }
.panel-dream { background: linear-gradient(180deg, #2a1840, #140a20); }
.panel-budget { background: linear-gradient(180deg, #3a1818, #1a0a0a); }
.panel-snr { background: linear-gradient(180deg, #142030, #0a1018); }
.panel-plaque { background: linear-gradient(180deg, #1a1e28, #0c0e14); }
.panel-costanza { background: linear-gradient(180deg, #3a3010, #1a1608); }
.panel-legend { background: linear-gradient(180deg, #1a2838, #0c1018); }

.cup-visual { position: relative; z-index: 1; }
.cup-name {
  margin-top: 6px;
  font-size: .58rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.25;
  color: #d0d7e5;
  max-width: 100%;
}
.cup-plinth {
  width: 78%;
  height: 16px;
  margin-top: 4px;
  background: linear-gradient(180deg, #1e2430, #0c0e14);
  border: 1px solid #2a3140;
  border-radius: 3px;
  font-size: .55rem;
  display: flex; align-items: center; justify-content: center;
  color: #8a94a8;
  letter-spacing: .08em;
}
.cup-slot.on .cup-plinth { color: #e8d5a3; border-color: rgba(201,162,39,.4); }
.cup-cnt {
  position: absolute;
  top: 4px; right: 4px;
  z-index: 2;
  background: #c9a227;
  color: #1a1200;
  font-size: .6rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}
.shelf-foot {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,162,39,.25);
  text-align: center;
  align-items: center;
}
@media (max-width: 700px) {
  .shelf-foot { grid-template-columns: 1fr 1fr !important; }
  .sf-quote { grid-column: 1 / -1; order: -1; }
}

/* ===== FULL-WIDTH BACHECA (allineata agli altri riquadri) ===== */
.shelf {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 !important;
  box-sizing: border-box !important;
  padding: 22px 20px 16px !important;
}
.shelf-rows {
  width: 100% !important;
  max-width: 100% !important;
}
.shelf-row {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
  padding: 14px 8px 18px !important;
}
.cup-slot {
  max-width: none !important;
  width: 100% !important;
}
.cup-slot .cup-panel {
  min-height: 120px;
  aspect-ratio: 3/3.6;
}
.cup-name {
  font-size: .62rem !important;
  letter-spacing: .03em;
}
.cup-plaque-pro {
  width: 56px !important;
  height: 70px !important;
  border-radius: 8px !important;
  background: linear-gradient(160deg, #2a3140 0%, #12151c 60%, #0a0c10 100%) !important;
  border: 1px solid rgba(200, 210, 230, .25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12) !important;
  font-size: 1.35rem !important;
  color: #e8eef8 !important;
}
.cup-plaque-pro span {
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.cup-slot.on .cup-plaque-pro {
  border-color: rgba(201,162,39,.55) !important;
  background: linear-gradient(160deg, #3a3420 0%, #1a160c 100%) !important;
  color: #f0e0a8 !important;
}

/* ===== GLASS / SATIN ===== */
.gt7p-glass,
.gt7p-hero.gt7p-glass {
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 16px 40px rgba(0,0,0,.35) !important;
}
.gt7p-classic-top .card-front,
.gt7p-classic-top .card-back {
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  background-color: rgba(12, 16, 24, .55) !important;
  background-blend-mode: soft-light, normal;
}

/* Team picker with real logos */
.gt7p-team {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  background-size: cover !important;
  background-position: center !important;
}
.gt7p-team::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 0;
}
.gt7p-team .team-thumb,
.gt7p-team .swatch,
.gt7p-team .team-label {
  position: relative;
  z-index: 1;
}
.gt7p-team .team-thumb {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
}
.gt7p-team .team-label {
  font-size: .72rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.gt7p-team-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}
.gt7p-hero-logo {
  max-height: 160px;
  object-fit: contain;
}

/* Align stats / charts / shelf same width rhythm */
.cl .stats-bottom,
.fu .stats-bottom,
.pr .stats-bottom,
.cl .charts,
.fu .charts,
.pr .charts,
.cl .ai,
.fu .ai,
.pr .ai,
.cl .shelf,
.fu .shelf,
.pr .shelf {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   RESPONSIVE — mobile S / M / L · tablet · laptop
   Breakpoints:
     mobile-s  ≤360
     mobile-m  ≤400
     mobile-l  ≤600
     tablet    ≤900
     laptop    ≤1200
     desktop   >1200 (base styles)
   ============================================================ */

/* --- Laptop (≤1200) --- */
@media (max-width: 1200px) {
  #gt7p-root,
  .cl, .fu, .pr {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .shelf-row {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
  }
  .chart-canvas-wrap { height: 240px; }
  .nerd {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
}

/* --- Tablet (≤900) --- */
@media (max-width: 900px) {
  .gt7p-classic-top {
    grid-template-columns: 1fr !important;
  }
  .gt7p-classic-top .card-container {
    max-width: 100% !important;
    width: 100% !important;
  }
  .gt7p-hero {
    min-height: 180px;
  }
  .gt7p-hero-logo {
    max-width: 42%;
    max-height: 130px;
  }
  .fu-hud {
    grid-template-columns: 72px 1fr !important;
  }
  .fu-hud .fu-scan {
    grid-column: 1 / -1;
    text-align: left;
  }
  .pr-head {
    grid-template-columns: 100px 1fr !important;
  }
  .shelf-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .shelf-foot {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sf-quote {
    grid-column: 1 / -1;
    order: -1;
  }
  .charts {
    grid-template-columns: 1fr !important;
  }
  .chart-box { min-height: 280px; }
  .chart-canvas-wrap { height: 220px; }
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .fu-bars {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cl-license-stats {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .gt7p-view-bar {
    gap: 6px !important;
  }
  .view-btn {
    padding: 8px 12px !important;
    font-size: .78rem !important;
  }
  .ai-card {
    grid-template-columns: 36px 1fr !important;
  }
  .ai-card .act {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .gt7p-team-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  }
  .comp-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px !important;
  }
  .comp-chip {
    flex: 0 0 auto !important;
  }
}

/* --- Mobile L (≤600) --- */
@media (max-width: 600px) {
  #gt7p-root,
  .cl, .fu, .pr {
    padding: 6px 8px 88px !important;
  }
  .gt7p-view-bar {
    justify-content: flex-start !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    margin: 8px 0 12px !important;
  }
  .view-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .fu-hud {
    grid-template-columns: 1fr !important;
    text-align: center;
    justify-items: center;
  }
  .fu-hud img {
    width: 88px;
    height: 88px;
    margin: 0 auto;
  }
  .pr-head {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
  }
  .pr-kv {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .shelf-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 6px !important;
  }
  .cup-slot .cup-panel {
    min-height: 96px;
  }
  .cup-plaque-pro {
    width: 44px !important;
    height: 56px !important;
    font-size: 1.1rem !important;
  }
  .cup-name {
    font-size: .55rem !important;
  }
  .nerd {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ai-hd {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .ai-filters,
  .ai-tabs {
    width: 100%;
  }
  .rival-grid {
    font-size: .78rem;
  }
  .gt7p-hero-top {
    max-width: 100% !important;
  }
  .gt7p-hero-logo {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 50% !important;
    max-width: 160px;
    margin: 12px auto 0;
    display: block;
  }
  .gt7p-hero {
    text-align: center;
  }
  .gt7p-hero-top {
    align-items: center;
  }
  .cl-license-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cl-premium {
    grid-template-columns: 1fr !important;
  }
  .gt7p-custom-inner {
    padding: 12px 10px;
  }
  .gt7p-team-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .pr table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .8rem;
  }
  .chart-canvas-wrap { height: 200px; }
  .chart-box { min-height: 250px; padding: 12px 10px 6px; }
}

/* --- Mobile M (≤400) --- */
@media (max-width: 400px) {
  #gt7p-root,
  .cl, .fu, .pr {
    padding: 4px 6px 96px !important;
  }
  .view-btn {
    padding: 7px 10px !important;
    font-size: .72rem !important;
  }
  .shelf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .shelf-foot {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px;
  }
  .sf-stat .v { font-size: 1rem; }
  .nerd {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .nerd > div {
    padding: 8px 6px;
  }
  .nerd b { font-size: .95rem; }
  .fu-bars {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .gt7p-team-grid {
    grid-template-columns: 1fr !important;
  }
  .comp-chip {
    font-size: .72rem;
    padding: 6px 10px;
  }
  .ai-card {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .ai-card .ico {
    font-size: 1.2rem;
  }
  .ai-card .act {
    grid-column: 1;
  }
  .license-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .gt7p-classic-top .card-container {
    font-size: .9rem;
  }
  .chart-canvas-wrap { height: 180px; }
}

/* --- Mobile S (≤360) --- */
@media (max-width: 360px) {
  .view-btn {
    padding: 6px 8px !important;
    font-size: .68rem !important;
  }
  .shelf-header h3 {
    font-size: .78rem !important;
    letter-spacing: .1em !important;
  }
  .shelf-header p {
    font-size: .68rem;
  }
  .cup-name {
    font-size: .5rem !important;
  }
  .cup-plinth {
    font-size: .5rem;
    height: 14px;
  }
  .stats-card .row {
    font-size: .78rem;
    padding: 6px 10px;
  }
  .pr-kv {
    grid-template-columns: 1fr !important;
  }
  .gt7p-hero-coins {
    font-size: .85rem;
  }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
  .view-btn,
  .comp-chip,
  .btn,
  .ai-f,
  .ai-tab,
  .gt7p-team {
    min-height: 40px;
  }
  .cup-slot {
    padding: 4px 0;
  }
}

/* Safe area for notched phones + bottom nav */
@supports (padding: max(0px)) {
  #gt7p-root,
  .cl, .fu, .pr {
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom))) !important;
  }
}

/* ===== CLASSIC: solo velo satinato leggero (niente brightness che spegne i colori) ===== */
.cl .gt7p-hero.gt7p-glass {
  background-color: rgba(8, 10, 14, 0.25) !important;
}

/* ===== CLASSIC MOBILE: un solo blocco header ===== */
@media (max-width: 900px) {
  .gt7p-classic-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #0a0c10;
  }
  .gt7p-classic-top .card-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .gt7p-classic-top .card-front,
  .gt7p-classic-top .card-back {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }
  .gt7p-classic-top .gt7p-hero {
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    min-height: 140px;
    margin: 0 !important;
  }
}

/* ===== RIVAL RESET ===== */
.rival-actions {
  margin-top: 10px;
  text-align: center;
}
.rival-actions .btn {
  width: 100%;
  max-width: 220px;
}

/* ===== PROFESSIONAL CUPS (forme più vicine all'immagine) ===== */
.cup-pro {
  position: relative;
  width: 54px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.cup-pro .cp-stem {
  width: 7px;
  height: 12px;
  background: linear-gradient(90deg, #6a6a6a, #d0d0d0, #6a6a6a);
  border-radius: 1px;
}
.cup-pro .cp-base {
  width: 34px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3a3a, #111);
  border: 1px solid #555;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* classic goblet */
.cup-pro-classic .cp-bowl {
  width: 36px;
  height: 28px;
  border-radius: 4px 4px 40% 40% / 4px 4px 70% 70%;
  position: relative;
  z-index: 1;
}
.cup-pro-classic .cp-handles {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 22px;
  border: 3px solid transparent;
  border-top-color: inherit;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.cup-pro-classic.is-silver .cp-bowl {
  background: linear-gradient(145deg, #f0f0f0, #9a9a9a 40%, #e8e8e8 60%, #707070);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.35);
}
.cup-pro-classic.is-silver .cp-handles { border-top-color: #c0c0c0; }
.cup-pro-classic.is-gold .cp-bowl {
  background: linear-gradient(145deg, #ffe9a0, #c9a227 40%, #fff0c0 55%, #8a7010);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.45), 0 4px 14px rgba(201,162,39,.35);
}
.cup-pro-classic.is-gold .cp-handles { border-top-color: #d4af37; }
.cup-pro-classic.is-gold .cp-stem {
  background: linear-gradient(90deg, #8a7010, #f0d78c, #8a7010);
}
.cup-pro-classic.is-gold .cp-base {
  border-color: #c9a227;
  background: linear-gradient(180deg, #5a4510, #1a1408);
}

/* geometric prism (Endurance / AL) */
.cup-pro-geo .cp-prism {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 36px solid #c0c8d4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.panel-endurance .cup-pro-geo .cp-prism { border-bottom-color: #b8c4d0; }
.panel-assetto .cup-pro-geo .cp-prism { border-bottom-color: #c9a06a; }

/* star (Dream Team) */
.cup-pro-star .cp-star {
  font-size: 2rem;
  line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255,215,0,.5), 0 4px 8px rgba(0,0,0,.4);
  margin-bottom: 2px;
}

/* abstract blades (Budget) */
.cup-pro-abs .cp-blade {
  width: 28px;
  height: 40px;
  background: linear-gradient(135deg, #e8e8e8 0%, #888 40%, #ff2d2d 70%, #400 100%);
  clip-path: polygon(50% 0%, 100% 100%, 50% 85%, 0% 100%);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

/* SNR shield */
.cup-pro-snr .cp-shield {
  width: 40px;
  height: 44px;
  background: linear-gradient(160deg, #2a2a2a, #0a0a0a);
  border: 2px solid #ddd;
  border-radius: 6px 6px 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2);
}

/* crystal gem */
.cup-pro-crystal .cp-gem {
  width: 28px;
  height: 40px;
  background: linear-gradient(145deg, rgba(200,230,255,.9), rgba(120,160,220,.5) 40%, rgba(255,255,255,.7) 50%, rgba(80,120,180,.6));
  clip-path: polygon(50% 0%, 100% 40%, 80% 100%, 20% 100%, 0% 40%);
  box-shadow: 0 0 16px rgba(150,200,255,.35);
}

/* plaque professional */
.cup-pro-plaque .cp-face {
  width: 40px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(160deg, #2a3140, #12151c);
  border: 1px solid rgba(200,210,230,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8eef8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px rgba(0,0,0,.35);
}
.cup-slot.on .cup-pro-plaque .cp-face {
  border-color: rgba(201,162,39,.5);
  color: #f0e0a8;
  background: linear-gradient(160deg, #3a3420, #1a160c);
}

.cup-slot.off .cup-pro {
  filter: grayscale(1) brightness(0.45);
  opacity: 0.55;
}

/* ===== Header actions (PIN + Modifica) ===== */
.gt7p-hero-actions,
.gt7p-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.gt7p-head-actions .btn,
.gt7p-hero-actions .btn {
  font-size: .75rem;
}

/* ===== Realistic trophies ===== */
.tr {
  position: relative;
  width: 58px;
  height: 78px;
  margin: 0 auto 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
}
.tr-bowl {
  width: 34px;
  height: 26px;
  border-radius: 3px 3px 42% 42% / 3px 3px 75% 75%;
  position: relative;
  z-index: 2;
}
.tr-ear {
  position: absolute;
  top: 14px;
  width: 14px;
  height: 18px;
  border: 3px solid #bbb;
  border-radius: 50%;
  z-index: 1;
  background: transparent;
}
.tr-ear-l { left: 2px; border-right: none; }
.tr-ear-r { right: 2px; border-left: none; }
.tr-neck {
  width: 8px;
  height: 11px;
  background: linear-gradient(90deg, #555, #ccc, #555);
  z-index: 2;
}
.tr-plinth {
  width: 36px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2a2a2a, #0c0c0c);
  border: 1px solid #4a4a4a;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.tr-silver .tr-bowl {
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, transparent 35%),
    linear-gradient(145deg, #f5f5f5 0%, #a8a8a8 35%, #ececec 50%, #6e6e6e 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.55);
}
.tr-silver .tr-ear { border-color: #c8c8c8; }

.tr-gold .tr-bowl {
  background:
    radial-gradient(circle at 30% 25%, #fff6d0 0%, transparent 35%),
    linear-gradient(145deg, #ffe9a8 0%, #d4af37 35%, #fff1c0 52%, #8a6b12 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.4), 0 0 12px rgba(212,175,55,.25);
}
.tr-gold .tr-ear { border-color: #d4af37; }
.tr-gold .tr-neck { background: linear-gradient(90deg, #8a6b12, #f0d78c, #8a6b12); }
.tr-gold .tr-plinth { border-color: #a88b20; background: linear-gradient(180deg, #4a3a10, #1a1408); }

/* geometric trophy */
.tr-geo .tr-prism {
  width: 32px;
  height: 42px;
  background: linear-gradient(160deg, #e8eef5 0%, #9aa8b8 40%, #dfe6ee 55%, #5a6570 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow: inset -4px 0 8px rgba(0,0,0,.2);
}
.panel-assetto .tr-geo .tr-prism {
  background: linear-gradient(160deg, #f0e0c8 0%, #c9a06a 40%, #8a6040 100%);
}

/* star */
.tr-star-body {
  font-size: 2.1rem;
  line-height: 1;
  background: linear-gradient(180deg, #ffe566, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
  margin-bottom: 2px;
}

/* abstract budget fins */
.tr-abs .tr-fin {
  width: 30px;
  height: 44px;
  background: linear-gradient(160deg, #f0f0f0 0%, #888 30%, #ff3030 65%, #2a0000 100%);
  clip-path: polygon(50% 0, 100% 100%, 55% 82%, 50% 100%, 45% 82%, 0 100%);
}

/* SNR */
.tr-snr-cup {
  width: 38px;
  height: 42px;
  border-radius: 5px 5px 45% 45%;
  background: linear-gradient(160deg, #3a3a3a, #0a0a0a 70%);
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 10px rgba(255,210,0,.15);
}
.tr-snr-cup span {
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
}

/* crystal */
.tr-diamond {
  width: 26px;
  height: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(160,200,255,.55) 40%, rgba(255,255,255,.8) 50%, rgba(90,140,200,.65));
  clip-path: polygon(50% 0%, 100% 38%, 78% 100%, 22% 100%, 0 38%);
  box-shadow: 0 0 14px rgba(140,190,255,.4);
}

/* plaque / awards */
.tr-plaque .tr-glass {
  width: 38px;
  height: 48px;
  border-radius: 5px;
  background: linear-gradient(160deg, rgba(40,48,60,.95), rgba(12,14,20,.98));
  border: 1px solid rgba(220,230,245,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #e8eef8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 6px 12px rgba(0,0,0,.35);
}
.cup-slot.on .tr-plaque .tr-glass {
  border-color: rgba(201,162,39,.55);
  color: #f0e0a8;
}

.cup-slot.off .tr {
  filter: grayscale(1) brightness(0.42) drop-shadow(0 4px 6px rgba(0,0,0,.3));
  opacity: 0.6;
}

.cup-slot .cup-visual {
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ===== Trofei più grandi (~3/4+ del box) ===== */
.cup-slot .cup-panel {
  min-height: 150px !important;
  aspect-ratio: 3 / 4.2 !important;
  padding-bottom: 4px !important;
}
.tr {
  width: 78px !important;
  height: 110px !important;
  transform: scale(1.15);
  transform-origin: center bottom;
}
.tr-bowl {
  width: 44px !important;
  height: 34px !important;
}
.tr-ear {
  top: 18px !important;
  width: 16px !important;
  height: 22px !important;
  border-width: 3.5px !important;
}
.tr-neck {
  width: 10px !important;
  height: 14px !important;
}
.tr-plinth {
  width: 46px !important;
  height: 11px !important;
}
.tr-geo .tr-prism {
  width: 42px !important;
  height: 56px !important;
}
.tr-star-body { font-size: 2.6rem !important; }
.tr-abs .tr-fin {
  width: 38px !important;
  height: 56px !important;
}
.tr-snr-cup {
  width: 48px !important;
  height: 54px !important;
}
.tr-snr-cup span { font-size: .62rem !important; }
.tr-diamond {
  width: 34px !important;
  height: 50px !important;
}
.tr-plaque .tr-glass {
  width: 48px !important;
  height: 62px !important;
  font-size: 1.45rem !important;
}
.cup-slot .cup-visual {
  min-height: 118px !important;
}
.panel-icon {
  font-size: 1.15rem !important;
  top: 8px !important;
}
@media (max-width: 600px) {
  .cup-slot .cup-panel { min-height: 120px !important; }
  .tr {
    width: 64px !important;
    height: 92px !important;
    transform: scale(1.08);
  }
}

/* Confronta AI sempre visibile */
.ai-card .act {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.ai-card .gt7p-confronta {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, #00c2ff, #0066cc) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  cursor: pointer;
}

/* ===== Competizione: contesto + swipe ===== */
.comp-swipe {
  width: 100%;
  margin: 8px 0 14px;
  touch-action: pan-y;
}
.comp-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,16,24,.65);
}
.comp-context.is-global {
  border-color: rgba(0,183,255,.35);
  background: linear-gradient(90deg, rgba(0,183,255,.12), rgba(12,16,24,.5));
}
.comp-context.is-comp {
  border-color: rgba(255,204,0,.35);
  background: linear-gradient(90deg, rgba(255,204,0,.1), rgba(12,16,24,.5));
}
.comp-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  color: #e8eef8;
}
.comp-context.is-global .comp-badge { background: rgba(0,183,255,.25); color: #9ae8ff; }
.comp-context.is-comp .comp-badge { background: rgba(255,204,0,.22); color: #ffe08a; }
.comp-ctx-name { font-weight: 700; font-size: .92rem; color: #e8eef8; }
.comp-swipe-hint {
  margin-left: auto;
  font-size: .68rem;
  color: #7a8499;
  letter-spacing: .02em;
}
@media (min-width: 901px) {
  .comp-swipe-hint { opacity: .7; }
}

.ai-ctx {
  width: 100%;
  margin: 6px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .8rem;
  color: #c8d0e0;
  border: 1px solid rgba(255,255,255,.08);
}
.ai-ctx.is-global { border-color: rgba(0,183,255,.3); background: rgba(0,183,255,.08); }
.ai-ctx.is-comp { border-color: rgba(255,204,0,.3); background: rgba(255,204,0,.08); }
.ai-ctx strong { color: #fff; }

/* Personalizza locked */
.view-btn.locked {
  opacity: .75;
  cursor: default;
  border-style: dashed;
}
.gt7p-lock-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: #a8b0c0;
}
.gt7p-team-grid.is-locked {
  pointer-events: none;
  opacity: .85;
  filter: saturate(0.92);
}
.gt7p-team-grid.is-locked .gt7p-team { cursor: default; }

/* ===== CLASSIC MOBILE — layout pulito ===== */
@media (max-width: 900px) {
  .cl#gt7p-root,
  .cl {
    padding: 8px 10px 96px !important;
  }
  .gt7p-classic-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    background: #0a0c12 !important;
    margin-bottom: 14px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
  }
  .gt7p-classic-top .card-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    perspective: 1000px;
  }
  .gt7p-classic-top .card-front,
  .gt7p-classic-top .card-back {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  .gt7p-classic-top .license-body {
    gap: 12px;
    padding: 12px 14px;
  }
  .gt7p-classic-top .license-avatar {
    width: 72px !important;
    height: 72px !important;
  }
  .gt7p-classic-top .gt7p-hero {
    position: relative !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
    padding: 14px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
  }
  .gt7p-classic-top .gt7p-hero-top {
    max-width: 100% !important;
    gap: 8px !important;
  }
  .gt7p-classic-top .gt7p-hero-logo {
    position: static !important;
    width: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    margin: 0 !important;
    opacity: .95;
  }
  .gt7p-classic-top .gt7p-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .gt7p-classic-top .gt7p-hero-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }
  .cl .pr-sec {
    margin: 12px 0 6px;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a94a8;
  }
  .cl .nerd {
    margin-top: 8px;
  }
  .cl .charts,
  .cl .ai,
  .cl .shelf,
  .cl .stats-bottom {
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .gt7p-classic-top .license-body {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
  }
  .gt7p-classic-top .license-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px;
    padding: 8px 10px 12px;
    font-size: .72rem;
  }
  .comp-swipe-hint { display: none; }
  .comp-context { padding: 8px 10px; }
  .gt7p-classic-top .gt7p-hero {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
  .gt7p-classic-top .gt7p-hero-logo {
    width: 72px !important;
    max-height: 72px !important;
    justify-self: start;
  }
}

.rival-scope {
  font-size: .78rem;
  color: #9aa6bd;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.rival-scope strong { color: #e8eef8; }


/* ===== Login modal profilo ===== */
.gt7p-login-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gt7p-login-modal[hidden] { display: none !important; }
.gt7p-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.gt7p-login-box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(165deg, #161a22 0%, #0c0e14 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  color: #e8eef8;
}
.gt7p-login-box h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.gt7p-login-hint {
  margin: 0 0 16px;
  font-size: .82rem;
  color: #9aa6bd;
  line-height: 1.4;
}
.gt7p-login-lab {
  display: block;
  margin-bottom: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a94a8;
}
.gt7p-login-lab input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #0a0c12;
  color: #e8eef8;
  font-size: 1rem;
  box-sizing: border-box;
}
.gt7p-login-lab input:focus {
  outline: none;
  border-color: var(--gt7-accent, #00b7ff);
  box-shadow: 0 0 0 2px rgba(0,183,255,.2);
}
.gt7p-login-err {
  color: #ff8a8a;
  font-size: .82rem;
  margin: 0 0 10px;
}
.gt7p-login-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.gt7p-login-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #9aa6bd;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}


/* ===== Hall of Trophies: immagini reali grandi ===== */
.shelf-trophy-img {
  width: 100% !important;
  max-width: 140px !important;
  height: auto !important;
  max-height: 132px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.6));
  position: relative;
  z-index: 1;
}
.cup-slot.off .shelf-trophy-img {
  filter: grayscale(.55) brightness(.75) drop-shadow(0 4px 8px rgba(0,0,0,.4));
  opacity: .8;
}
.cup-slot.on .shelf-trophy-img {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.65)) drop-shadow(0 0 14px rgba(255,204,0,.28));
}
.cup-visual {
  min-height: 120px !important;
  width: 100% !important;
  height: 132px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cup-slot {
  min-height: 170px !important;
}
.cup-slot .cup-panel,
.cup-panel {
  padding: 6px 2px 4px !important;
  min-height: 140px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.cup-panel:has(.shelf-trophy-img) .panel-icon {
  display: none !important;
}
@media (max-width: 700px) {
  .shelf-trophy-img {
    max-width: 100px !important;
    max-height: 100px !important;
  }
  .cup-visual {
    height: 100px !important;
    min-height: 100px !important;
  }
}

