/* ======================================================================
   Garage du client — écran façon jeu vidéo (sélection de véhicule)
   ====================================================================== */
.gr {
    --gr-bg: #07090f; --gr-panel: #0f1420; --gr-line: rgba(255,255,255,.08); --gr-ink: #f4f6fb; --gr-mute: #8a93a8;
    --gr-accent: var(--sr-blue, #2f6bff); --gr-hot: var(--sr-red, #ff3b4a);
    position: relative; color: var(--gr-ink); background: var(--gr-bg); border-radius: 26px; overflow: hidden;
    padding: 26px clamp(16px, 3vw, 34px) 30px; font-feature-settings: "tnum";
    box-shadow: 0 30px 80px -30px rgba(7,9,15,.6);
}
.gr a { color: inherit; }
.gr-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gr-accent); }

/* HUD */
.gr-hud { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gr-hud h1 { margin: 2px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.gr-level { margin-left: auto; display: grid; grid-template-columns: auto 160px auto; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--gr-line); border-radius: 999px; background: rgba(255,255,255,.03); }
.gr-level-n { font-size: 12px; color: var(--gr-mute); text-transform: uppercase; letter-spacing: .1em; }
.gr-level-n b { color: #fff; font-size: 16px; margin-left: 2px; }
.gr-xp { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.gr-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--gr-accent), var(--gr-hot)); border-radius: 6px; }
.gr-level small { color: var(--gr-mute); font-size: 11px; }
.gr-count { font-size: 13px; color: var(--gr-mute); }
.gr-count b { color: #fff; font-size: 18px; }
.gr-toast { position: relative; z-index: 2; margin: 16px 0 0; padding: 11px 16px; border-radius: 12px; background: rgba(47,107,255,.14); border: 1px solid rgba(47,107,255,.35); font-size: 14px; }

/* Scène */
.gr-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); align-items: center; gap: 24px; min-height: 430px; margin-top: 10px; }
.gr-spot { position: absolute; inset: -80px -40px auto; height: 520px; background: radial-gradient(ellipse 45% 60% at 34% 40%, rgba(120,150,255,.20), transparent 70%); pointer-events: none; }
.gr-floor { position: absolute; left: -40px; right: -40px; bottom: -30px; height: 190px; pointer-events: none;
    background: linear-gradient(transparent, rgba(47,107,255,.06)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 30px);
    transform: perspective(500px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(transparent, #000 40%); -webkit-mask-image: linear-gradient(transparent, #000 40%); }
.gr-machine { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 380px; }
.gr-machine img { position: relative; z-index: 2; max-width: 100%; max-height: 360px; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0,0,0,.55)); animation: gr-in .7s cubic-bezier(.2,.8,.2,1) both; }
.gr-noimg { font-size: 120px; opacity: .6; }
.gr-pad { position: absolute; z-index: 1; bottom: 6px; width: 78%; height: 64px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47,107,255,.55), rgba(47,107,255,.12) 60%, transparent);
    box-shadow: 0 0 0 1px rgba(120,160,255,.35), 0 0 40px 6px rgba(47,107,255,.25); animation: gr-glow 3.2s ease-in-out infinite; }
@keyframes gr-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gr-glow { 50% { box-shadow: 0 0 0 1px rgba(120,160,255,.5), 0 0 60px 12px rgba(47,107,255,.32); } }
.gr-tier { position: absolute; z-index: 3; top: 6px; left: 0; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; border: 1px solid currentColor; background: rgba(0,0,0,.35); }
.gr-tier-rookie { color: #7ee2a8; }
.gr-tier-rider { color: #6aa6ff; }
.gr-tier-pro { color: #c18bff; }
.gr-tier-factory { color: #ffb648; box-shadow: 0 0 22px -4px rgba(255,182,72,.6); }
.gr-nav { position: absolute; z-index: 4; top: 44%; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gr-line); background: rgba(255,255,255,.04); font-size: 26px; line-height: 1; text-decoration: none; transition: background .15s; }
.gr-nav:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.gr-prev { left: -6px; } .gr-next { left: calc(56% - 30px); }

/* Fiche du véhicule */
.gr-card { position: relative; z-index: 2; padding: 22px; border-radius: 20px; background: rgba(15,20,32,.82); border: 1px solid var(--gr-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gr-nick { margin: 0 0 2px; color: var(--gr-hot); font-weight: 700; font-size: 14px; }
.gr-card h2 { margin: 0; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.gr-variant { margin: 4px 0 0; color: var(--gr-mute); font-size: 13px; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.gr-chips span { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.06); color: #cfd5e3; }
.gr-stats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.gr-stats li { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; }
.gr-stat-l { color: var(--gr-mute); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 700; }
.gr-stat-v { color: #fff; font-weight: 600; max-width: 130px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-bar { height: 8px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); overflow: hidden; }
.gr-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gr-accent), #7dd3fc); transition: width 1s cubic-bezier(.2,.8,.2,1); border-radius: 3px; }
.gr.is-ready .gr-bar i { width: var(--w); }
.gr-stats li:nth-child(2) .gr-bar i { background: linear-gradient(90deg, #a855f7, #f0abfc); transition-delay: .1s; }
.gr-stats li:nth-child(3) .gr-bar i { background: linear-gradient(90deg, #22c55e, #bef264); transition-delay: .2s; }
.gr-stats li:nth-child(4) .gr-bar i { background: linear-gradient(90deg, var(--gr-hot), #fdba74); transition-delay: .3s; }
.gr-origin { margin: 16px 0 0; font-size: 12.5px; color: var(--gr-mute); line-height: 1.6; }
.gr-origin a { text-decoration: underline; text-underline-offset: 3px; }
.gr-origin strong { color: #fff; }

/* Emplacements */
.gr-slots { position: relative; z-index: 2; display: flex; gap: 10px; margin: 22px 0 0; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gr-slot { flex: 0 0 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 112px; padding: 8px; border-radius: 14px; border: 1px solid var(--gr-line); background: rgba(255,255,255,.03); font-size: 11.5px; text-align: center; line-height: 1.25; color: #cfd5e3; text-decoration: none; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; font-family: inherit; }
.gr-slot:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); text-decoration: none; }
.gr-slot img { height: 58px; max-width: 100%; object-fit: contain; }
.gr-slot.is-on { border-color: var(--gr-accent); background: rgba(47,107,255,.12); box-shadow: 0 0 0 1px var(--gr-accent), 0 10px 30px -12px rgba(47,107,255,.7); color: #fff; }
.gr-slot-add b, .gr-slot-lock b { font-size: 26px; font-weight: 300; color: #fff; }
.gr-slot-add { border-style: dashed; }
.gr-slot-lock { opacity: .75; }

/* Pièces */
.gr-parts { position: relative; z-index: 2; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gr-line); }
.gr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.gr-tabs button { border: 1px solid var(--gr-line); background: transparent; color: #cfd5e3; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.gr-tabs button small { opacity: .6; margin-left: 4px; }
.gr-tabs button.is-on { background: #fff; color: #07090f; border-color: #fff; }
.gr-hint { margin: 0 0 16px; color: var(--gr-mute); font-size: 13.5px; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gr-part { display: flex; flex-direction: column; border-radius: 16px; background: var(--gr-panel); border: 1px solid var(--gr-line); overflow: hidden; transition: border-color .15s, transform .15s; }
.gr-part:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.gr-part-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; }
.gr-part-img img { max-width: 88%; max-height: 88%; object-fit: contain; }
.gr-part-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px 13px; flex: 1; }
.gr-part-body small { color: var(--gr-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.gr-part-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; text-decoration: none; color: #fff; }
.gr-part-note { font-size: 12px; color: #fbbf24; }
.gr-part-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gr-part-foot strong { font-size: 15px; color: #fff; }
.gr-part-foot form { margin: 0; }
.gr-add { border: 0; border-radius: 999px; padding: 7px 14px; background: var(--gr-accent); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.gr-add:hover { filter: brightness(1.12); text-decoration: none; color: #fff; }
.gr-out { font-size: 12px; color: var(--gr-mute); }

/* Fiche / formulaires */
.gr-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-width: 760px; }
.gr-form .gr-wide { grid-column: 1 / -1; }
.gr label span, .gr-dialog label span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-mute); margin-bottom: 6px; }
.gr input, .gr textarea, .gr-dialog input { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 14px; }
.gr input:focus, .gr textarea:focus { outline: 2px solid var(--gr-accent); outline-offset: 0; border-color: transparent; }
.gr input[type=date] { color-scheme: dark; }
.gr-form-foot { display: flex; justify-content: flex-start; }
.gr-leave { margin-top: 18px; }
.gr-leave button { border: 0; background: none; color: var(--gr-mute); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
.gr-leave button:hover { color: var(--gr-hot); }
.gr-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.gr-btn:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.gr-btn-main { background: var(--gr-accent); border-color: var(--gr-accent); }
.gr-btn-main:hover { background: var(--gr-accent); filter: brightness(1.12); }

/* Garage vide : porte de garage */
.gr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 10px; min-height: 420px; }
.gr-empty h2 { margin: 18px 0 0; font-size: 28px; color: #fff; }
.gr-empty p { margin: 0; max-width: 460px; color: var(--gr-mute); line-height: 1.6; }
.gr-door { width: min(360px, 80%); height: 170px; border-radius: 10px 10px 0 0; border: 2px solid rgba(255,255,255,.14); display: grid; padding: 8px; gap: 6px; background: linear-gradient(#141a28, #0b0f19); box-shadow: 0 30px 60px -20px rgba(47,107,255,.35); }
.gr-door span { border-radius: 3px; background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); }
.gr-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* Fenêtre d'ajout */
.gr-dialog { border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 32px)); background: #0f1420; color: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.gr-dialog::backdrop { background: rgba(4,6,12,.7); backdrop-filter: blur(4px); }
.gr-dialog form { display: grid; gap: 14px; padding: 24px; }
.gr-dialog h3 { margin: 0; font-size: 21px; }
.gr-dialog p { margin: 0; color: #8a93a8; font-size: 13.5px; line-height: 1.5; }
.gr-dialog input { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font: inherit; }
.gr-dialog label span { color: #8a93a8; }
.gr-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.gr-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

@media (max-width: 860px) {
    .gr { border-radius: 20px; padding: 20px 16px 24px; }
    .gr-level { margin-left: 0; grid-template-columns: auto 1fr auto; width: 100%; box-sizing: border-box; }
    .gr-stage { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
    .gr-machine { min-height: 250px; }
    .gr-machine img { max-height: 240px; }
    .gr-nav { top: 120px; width: 38px; height: 38px; font-size: 22px; }
    .gr-prev { left: -4px; } .gr-next { left: auto; right: -4px; }
    .gr-slot { flex-basis: 112px; height: 100px; }
    .gr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gr-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-machine img, .gr-pad { animation: none; }
    .gr-bar i { transition: none; }
}

/* ======================================================================
   Fiche produit : compatibilité pièces ↔ véhicules
   ====================================================================== */
.gf { padding: 34px 0 10px; }
.gf-vehicle .container { background: #07090f; color: #f4f6fb; border-radius: 26px; padding: 30px clamp(18px, 3vw, 36px); }
.gf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.gf-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--sr-blue, #2f6bff); }
.gf h2 { margin: 4px 0 6px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.01em; }
.gf-vehicle h2 { color: #fff; }
.gf-head p { margin: 0; color: #8a93a8; max-width: 560px; font-size: 14.5px; line-height: 1.55; }
.gf-btn { display: inline-flex; padding: 11px 18px; border-radius: 999px; background: var(--sr-blue, #2f6bff); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.gf-btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.22); }
.gf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 190px); gap: 12px; margin-top: 22px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.gf-part { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: #0f1420; border: 1px solid rgba(255,255,255,.08); color: #fff !important; text-decoration: none; transition: transform .15s, border-color .15s; }
.gf-part:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); text-decoration: none; }
.gf-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border-radius: 10px; overflow: hidden; }
.gf-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.gf-name { font-size: 13px; line-height: 1.3; font-weight: 600; }
.gf-part strong { font-size: 14px; margin-top: auto; }
.gf-part-sec .container { border: 1px solid #e6e8ee; border-radius: 22px; padding: 24px clamp(18px, 3vw, 30px); }
.gf-ok { display: inline-block; margin: 0 0 10px; padding: 7px 14px; border-radius: 999px; background: #e8f7ee; color: #157347; font-weight: 700; font-size: 14px; }
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gf-chips a { padding: 8px 14px; border-radius: 999px; background: #f2f4f8; color: #1d1d1f; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.gf-chips a:hover { background: #e6e9f0; text-decoration: none; }
.gf-chips .gf-univ { background: #fff7e6; color: #8a5a00; }
.gf-hint { margin: 12px 0 0; color: #6e6e73; font-size: 13px; }

/* ======================================================================
   Microfiche : pièces détachées du véhicule (achat groupé)
   ====================================================================== */
.gp-back { position: relative; z-index: 2; display: inline-block; margin-bottom: 14px; color: #8a93a8 !important; font-size: 13.5px; text-decoration: none; }
.gp-back:hover { color: #fff !important; text-decoration: none; }
.gp-head { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr minmax(240px, 340px); gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--gr-line); }
.gp-thumb { width: 110px; height: 80px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.04); }
.gp-head h1 { margin: 2px 0 0; font-size: clamp(22px, 3vw, 30px); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.gp-sub { margin: 4px 0 0; color: var(--gr-mute); font-size: 13.5px; }
.gp-search input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: 14px; }
.gp-search input:focus { outline: 2px solid var(--gr-accent); border-color: transparent; }
.gp-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; margin-top: 22px; }
.gp-nav { position: sticky; top: calc(var(--header-h, 64px) + 16px); align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.gp-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; color: #cfd5e3 !important; font-size: 13.5px; text-decoration: none; }
.gp-nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.gp-nav small { color: var(--gr-mute); }
.gp-nav-help { margin-top: 10px; border: 1px dashed rgba(255,255,255,.18); color: #fff !important; font-weight: 600; }
.gp-sec { margin-bottom: 26px; scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.gp-sec h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gr-accent); font-weight: 800; }
.gp-diagram { margin: 0 0 12px; padding: 12px; background: #fff; border-radius: 14px; }
.gp-diagram img { display: block; max-width: 100%; max-height: 420px; margin: 0 auto; object-fit: contain; }
.gp-rows { border: 1px solid var(--gr-line); border-radius: 16px; overflow: hidden; background: var(--gr-panel); }
.gp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 90px 118px; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--gr-line); transition: background .15s; }
.gp-row:first-child { border-top: 0; }
.gp-row:hover { background: rgba(255,255,255,.03); }
.gp-row.is-on { background: rgba(47,107,255,.12); }
.gp-row[hidden], .gp-sec[hidden] { display: none; }
.gp-pos { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-weight: 700; font-size: 13px; }
.gp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-name a { color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.3; }
.gp-name a:hover { text-decoration: underline; }
.gp-name small { color: var(--gr-mute); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gp-stock { font-size: 12px; font-weight: 600; }
.gp-stock.is-in { color: #4ade80; }
.gp-stock.is-order { color: #fbbf24; }
.gp-price { color: #fff; font-size: 14.5px; text-align: right; }
.gp-qty { display: inline-grid; grid-template-columns: 32px 40px 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; justify-self: end; }
.gp-qty button { border: 0; background: transparent; color: #fff; font-size: 17px; cursor: pointer; height: 32px; }
.gp-qty button:hover { background: rgba(255,255,255,.1); }
.gp .gp-qty input { width: 40px; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; color: #fff; font-weight: 700; -moz-appearance: textfield; }
.gp-qty input::-webkit-outer-spin-button, .gp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gp-noresult { color: var(--gr-mute); }
.gp-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 12px 14px 12px 20px; border-radius: 999px; background: rgba(15,20,32,.92); border: 1px solid var(--gr-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #cfd5e3; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.gp-bar b { color: #fff; }
.gp-bar.is-on { border-color: var(--gr-accent); box-shadow: 0 16px 40px -14px rgba(47,107,255,.7); }
.gp-bar .gr-btn[disabled] { opacity: .45; cursor: default; }
.gp-empty { position: relative; z-index: 2; padding: 40px 0 10px; text-align: center; }
.gp-empty h2 { color: #fff; margin: 0 0 8px; }
.gp-empty p { color: var(--gr-mute); margin: 0; }
.gp-request { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; margin-top: 28px; padding: 24px; border-radius: 20px; border: 1px dashed rgba(255,255,255,.18); scroll-margin-top: 90px; }
.gp-request h2 { margin: 0 0 8px; color: #fff; font-size: 21px; }
.gp-request p { margin: 0; color: var(--gr-mute); font-size: 14px; line-height: 1.55; }
.gp-request .gr-form { max-width: none; }
.gr select { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: #151b28; color: #fff; font: inherit; font-size: 14px; }
.gr-parts-cta { display: inline-flex; margin-top: 16px; }
@media (max-width: 860px) {
    .gp-head { grid-template-columns: auto 1fr; }
    .gp-search { grid-column: 1 / -1; }
    .gp-layout { grid-template-columns: 1fr; }
    .gp-nav { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
    .gp-nav a { flex: 0 0 auto; border: 1px solid var(--gr-line); border-radius: 999px; }
    .gp-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "pos name name" "stock price qty"; row-gap: 8px; }
    .gp-pos { grid-area: pos; } .gp-name { grid-area: name; } .gp-stock { grid-area: stock; } .gp-price { grid-area: price; } .gp-qty, .gp-row > .gr-add { grid-area: qty; }
    .gp-bar { border-radius: 18px; padding: 12px 14px; }
    .gp-request { grid-template-columns: 1fr; }
}
.gr-owned { position: relative; z-index: 2; margin: 10px 0 0; color: var(--gr-mute); font-size: 13px; }
.gr-owned button { border: 0; background: none; padding: 0; color: #cfd5e3; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.gr-owned button:hover { color: #fff; }
.gr-part-img.is-empty { background: linear-gradient(135deg, #161c2a, #0f1420); }
.gr-part-img.is-empty span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #8a93a8; letter-spacing: .06em; }
.gr-part-img.is-empty span::before { content: "🔧"; display: block; text-align: center; font-size: 26px; margin-bottom: 6px; }
.gp-pos { width: auto; min-width: 32px; padding: 0 7px; border-radius: 16px; box-sizing: border-box; font-size: 12.5px; white-space: nowrap; }
