/* GTAUP V452. Only visual UI; server, RNG, item balances and rates remain V451. */
html[data-feature-v451="1"] body:has(#page-cases.active) #page-cases{background:#0b1b2e!important;background-image:none!important;}
html[data-feature-v451="1"] body #page-cases .case-breadcrumb-v196{padding-block:9px 13px!important;opacity:.85;background:none!important;}
html[data-feature-v451="1"] body #page-cases .v452-cases-banner{width:100%;margin:0 0 22px;overflow:hidden;position:relative;border:1px solid #325574;border-radius:16px;background:#0a1b34;box-shadow:0 14px 40px rgba(1,12,30,.22);}
html[data-feature-v451="1"] body #page-cases .v452-banner-link{display:block;width:100%;height:clamp(220px,18.2vw,358px);margin:0;padding:0;overflow:hidden;border:0;outline-offset:3px;background:#0a1b34;cursor:pointer;position:relative;text-align:left;}
html[data-feature-v451="1"] body #page-cases .v452-banner-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center 53%;filter:none;opacity:1;transition:transform .35s ease;}
html[data-feature-v451="1"] body #page-cases .v452-banner-link:hover .v452-banner-image{transform:scale(1.013);}
html[data-feature-v451="1"] body #page-cases .v452-banner-link:focus-visible{outline:3px solid #91cfff;outline-offset:-4px;}
html[data-feature-v451="1"] body #page-cases .v452-banner-mobile-copy{display:none;}
/* The banner is the hero; the legacy catalog heading becomes a compact section bar. */
html[data-feature-v451="1"] body #page-cases .case-catalog-v214{padding-top:0!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214{margin:0 0 13px!important;min-height:0!important;padding:0 1px!important;background:none!important;border:0!important;box-shadow:none!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214 h1{font-size:24px!important;line-height:1.14!important;letter-spacing:-.6px!important;margin:6px 0 5px!important;color:#edf7ff!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214 span{color:#89c9fa!important;font-size:9px!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214 p{color:#abc4dc!important;font-size:11px!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214 em{border-color:#375d7b!important;background:#173652!important;color:#c2e2f8!important;}
/* Keep the entire top-level case wrapper the same shade, including the awkward top strip. */
html[data-feature-v451="1"] body #page-cases,html[data-feature-v451="1"] body #page-cases .case-catalog-v214,html[data-feature-v451="1"] body #page-cases .v374-case-toolbar,html[data-feature-v451="1"] body #page-cases .v374-case-top{background-color:#0b1b2e!important;background-image:none!important;}
html[data-feature-v451="1"] body #page-cases .case-catalog-grid-v214{gap:16px!important;}
/* Profile: a genuinely consistent layout instead of an array of coloured nested panels. */
html[data-feature-v451="1"] body #profileModal .profile-modal-v31{background:#0d2136!important;border:1px solid #345772!important;border-radius:20px!important;box-shadow:0 30px 80px #03101f9c!important;overflow:auto;}
html[data-feature-v451="1"] body #profileModal .profile-side-v31{background:#102940!important;background-image:none!important;border-right:1px solid #31536d!important;padding:20px 16px!important;}
html[data-feature-v451="1"] body #profileModal .profile-main-v31{background:#0e2238!important;background-image:none!important;padding:20px!important;min-width:0!important;}
html[data-feature-v451="1"] body #profileModal :is(.profile-main-head-v31,.profile-person-v31,.profile-best-drop-v86,.profile-wallet-v31,.profile-progress-row-v31>section,.profile-stats-v31>article){background:#152f49!important;background-image:none!important;border:1px solid #305473!important;box-shadow:none!important;color:#e9f5ff!important;border-radius:13px!important;}
html[data-feature-v451="1"] body #profileModal .profile-main-head-v31{padding:18px 20px!important;}
html[data-feature-v451="1"] body #profileModal .profile-nav-v31{display:grid!important;gap:5px!important;padding:10px 0!important;background:transparent!important;}
html[data-feature-v451="1"] body #profileModal .profile-nav-v31 .profile-tab{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:42px!important;text-align:left!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;padding:9px 12px!important;color:#b8d2e8!important;font-size:12px!important;line-height:1.15!important;transition:background .15s,border-color .15s!important;}
html[data-feature-v451="1"] body #profileModal .profile-nav-v31 .profile-tab:hover{background:#1a3a56!important;}
html[data-feature-v451="1"] body #profileModal .profile-nav-v31 .profile-tab.active{background:#204866!important;border-color:#4d7ca0!important;color:#fff!important;box-shadow:inset 3px 0 0 #85cfff!important;}
html[data-feature-v451="1"] body #profileModal .profile-nav-v31 .profile-tab i{margin-left:auto!important;font-style:normal!important;color:#8dc9f1!important;font-size:10px!important;background:transparent!important;}
html[data-feature-v451="1"] body #profileModal .profile-pane{background:#10273d!important;background-image:none!important;border:1px solid #30526d!important;border-radius:15px!important;box-shadow:none!important;padding:17px!important;}
html[data-feature-v451="1"] body #profileModal .profile-pane-head-v31{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 15px!important;background:transparent!important;border:0!important;padding:0 0 13px!important;border-bottom:1px solid #30516d!important;}
html[data-feature-v451="1"] body #profileModal .profile-pane-head-v31 h3{margin:0 0 4px!important;color:#f4f9ff!important;font-size:19px!important;}
html[data-feature-v451="1"] body #profileModal .profile-pane-head-v31 p{margin:0!important;color:#a8c4dd!important;font-size:11px!important;}
html[data-feature-v451="1"] body #profileModal #g448SellAll{flex-shrink:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:0 16px!important;border-radius:10px!important;border:1px solid #588eb0!important;background:#2a729c!important;color:#fff!important;font-weight:800!important;font-size:11px!important;cursor:pointer!important;box-shadow:none!important;}
html[data-feature-v451="1"] body #profileModal #g448SellAll:disabled{opacity:.45!important;cursor:not-allowed!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(196px,1fr))!important;gap:12px!important;width:100%!important;background:transparent!important;align-items:stretch!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item.quality-card-v190{min-width:0!important;min-height:308px!important;display:flex!important;flex-direction:column!important;gap:7px!important;padding:13px!important;border-radius:14px!important;border:1px solid #3b5c77!important;border-top:1px solid #3b5c77!important;background:#183149!important;background-image:none!important;box-shadow:0 4px 18px #05162934!important;overflow:hidden!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item:before,html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item:after{display:none!important;content:none!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .quality-strip-v190{position:static!important;inset:auto!important;width:100%!important;display:flex!important;align-items:center!important;min-height:20px!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .quality-strip-v190 span{font-size:8px!important;letter-spacing:.3px!important;background:#244560!important;color:#d7eaff!important;border:1px solid #4b6d88!important;border-radius:6px!important;padding:5px 7px!important;}
/* Contrast-enhancing cool image well: black clothing/bags visible but without the fake square backgrounds. */
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .car-img{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:145px!important;min-height:145px!important;margin:2px 0 4px!important;padding:8px!important;border:1px solid #42617a!important;border-radius:11px!important;background:radial-gradient(ellipse at 50% 50%,#35678a9e 0%,#284864b0 45%,#1a314a 95%)!important;background-image:radial-gradient(ellipse at 50% 50%,#35678a9e 0%,#284864b0 45%,#1a314a 95%)!important;box-shadow:inset 0 1px #ffffff0b!important;overflow:hidden!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .car-img img{opacity:1!important;visibility:visible!important;display:block!important;max-width:100%!important;width:100%!important;max-height:100%!important;height:100%!important;object-fit:contain!important;mix-blend-mode:normal!important;filter:brightness(1.38) saturate(1.08) contrast(1.05) drop-shadow(0 7px 9px #07132266)!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item:not([data-type="vehicle"]) .car-img img{filter:brightness(1.72) saturate(1.12) contrast(1.05) drop-shadow(0 7px 9px #07132266)!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item>b{display:block!important;font-size:12px!important;line-height:1.35!important;min-height:32px!important;max-height:44px!important;margin:1px 0 0!important;color:#f2f8ff!important;text-shadow:none!important;overflow-wrap:anywhere!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .collection-kind-v31{display:block!important;width:100%!important;padding:0!important;border:0!important;background:transparent!important;color:#8eb8d7!important;font-size:9px!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item>small{display:block!important;font-size:13px!important;font-weight:900!important;color:#f7d18c!important;margin:2px 0 7px!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:auto!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;flex:1 1 90px!important;border:1px solid #4b80a5!important;border-radius:8px!important;padding:6px!important;background:#28648d!important;background-image:none!important;color:#f3fbff!important;font-size:10px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-actions .withdraw{background:#193c57!important;}
html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-actions button:hover{background:#367caa!important;}
/* Header strip: one continuous dark blue background without competing overlay gradients. */
html[data-feature-v451="1"] body .topbar.topbar-v5{background:#101d33!important;background-image:none!important;border:0!important;border-bottom:1px solid #2d516e!important;box-shadow:none!important;}
html[data-feature-v451="1"] body .topbar.topbar-v5:before,html[data-feature-v451="1"] body .topbar.topbar-v5:after{box-shadow:none!important;background:transparent!important;}
html[data-feature-v451="1"] body .topbar.topbar-v5 .header-dock-v24{background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;}
/* Preserve existing V451 LC, 1-20 sliders, quantity purchasing, sell-all and owner-only online code. */
@media(max-width:950px){
 html[data-feature-v451="1"] body #profileModal #profileGarage{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-link{height:250px;}
}
@media(max-width:700px){
 html[data-feature-v451="1"] body #page-cases .v452-cases-banner{border-radius:13px!important;margin-bottom:17px!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-link{height:180px!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-image{opacity:.46!important;object-position:76% center!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-link:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#09192de8 0%,#091b2a71 100%);}
 html[data-feature-v451="1"] body #page-cases .v452-banner-mobile-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:9px!important;position:absolute!important;inset:12px 14px!important;z-index:1!important;color:white!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-mobile-copy b{font-size:20px!important;line-height:1.08!important;max-width:225px!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-mobile-copy small{font-size:10px!important;color:#c9ddf0!important;max-width:220px!important;}
 html[data-feature-v451="1"] body #page-cases .v452-banner-mobile-copy em{font-size:10px!important;font-style:normal!important;font-weight:900!important;background:#4d58da!important;padding:10px 14px!important;border-radius:9px!important;}
 html[data-feature-v451="1"] body #page-cases .case-catalog-head-v214 h1{font-size:22px!important;}
 html[data-feature-v451="1"] body #profileModal .profile-modal-v31{border-radius:13px!important;}
 html[data-feature-v451="1"] body #profileModal .profile-side-v31,html[data-feature-v451="1"] body #profileModal .profile-main-v31{padding:12px!important;}
 html[data-feature-v451="1"] body #profileModal #profileGarage{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
 html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item.quality-card-v190{padding:9px!important;min-height:285px!important;}
 html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item .car-img{height:100px!important;min-height:100px!important;}
 html[data-feature-v451="1"] body #profileModal #profileGarage .profile-garage-item>b{font-size:10px!important;}
 html[data-feature-v451="1"] body #profileModal .profile-pane-head-v31{align-items:flex-start!important;flex-wrap:wrap!important;}
}
@media(prefers-reduced-motion:reduce){html[data-feature-v451="1"] body #page-cases .v452-banner-image{transition:none!important;}}
