/* ==========================================================================
   VICE LAYER — qbcore_vi_containers (storage manager, PIN pad, unit menu,
   burner phone, NPC dialog, admin). GTA VI design system.
   Type: GTA Art Deco 400 / 500 only. Accent comes from the active theme
   (Config.ActiveTheme = 'vice' → #ffb2c6).
   ========================================================================== */
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 500 900; font-display: block; }

html, body, #root, #root * { font-family: "GTAArtDeco", Arial, sans-serif !important; }
#root { letter-spacing: -0.01em; }
#root .font-bold, #root .font-semibold, #root .font-extrabold, #root .font-black { font-weight: 500; }
/* no backdrop blur on a transparent NUI page */
#root *, #root *::before, #root *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ------------------------------------------------------------ main panel */
#root .panel-stage .ui-panel {
  position: relative; border: 0 !important; border-radius: 24px !important;
  background: radial-gradient(70% 220px at 60% 0%, rgba(255, 223, 128, 0.10), rgba(244, 113, 124, 0.07) 50%, transparent 100%),
              linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%) !important;
  box-shadow: 0 40px 90px rgba(7, 7, 15, 0.55) !important;
}
#root .panel-stage .ui-panel::before { content: ""; position: absolute; left: 32px; top: 0; width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%); z-index: 3; }

/* left rail: floating violet plate with pill nav */
#root .panel-stage .ui-panel > div:first-child { margin: 12px 0 12px 12px; border: 0 !important; border-radius: 20px; background: linear-gradient(189deg, #2f2e52 0.55%, #252644 30.38%, #1f1f38 65.19%, #18182d 100%); }
#root .panel-stage .ui-panel > div:first-child > div:first-child { border: 0 !important; padding-top: 22px; }
#root .panel-stage .ui-panel > div:first-child > div:first-child > div:first-child { border-radius: 50%; }
#root .panel-stage .ui-panel > div:first-child > div:first-child p:first-child { color: #fff9cb; font-size: 18px; letter-spacing: 0.08em; }
#root .panel-stage .ui-panel > div:first-child > div:first-child p + p { color: #ffd4a8; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
#root .panel-stage .ui-panel nav button { border-radius: 1000px !important; border: 0 !important; padding: 11px 16px; color: #ccc2f5; }
#root .panel-stage .ui-panel nav button:hover { background: rgba(229, 221, 255, 0.07) !important; color: #fff; }
#root .panel-stage .ui-panel nav button[class*="bg-accent"] { background: #fff9cb !important; color: #0f0c1a !important; }
#root .panel-stage .ui-panel nav button[class*="bg-accent"] svg { color: #0f0c1a !important; }
#root .panel-stage .ui-panel > div:first-child > div:last-child { border-top-color: rgba(229, 221, 255, 0.08) !important; }

/* content header: title + subtitle */
#root .panel-stage .ui-panel h1 { color: #fff9cb !important; font-size: 30px !important; line-height: 0.92 !important; font-weight: 500 !important; letter-spacing: 0 !important; }
#root .panel-stage .ui-panel h1 + p { margin-top: 8px !important; color: #e5ddff !important; font-size: 13px !important; opacity: 0.9; }
#root .panel-stage .ui-panel > div:last-child > div:first-child { border-bottom-color: rgba(229, 221, 255, 0.08) !important; padding-top: 26px; padding-bottom: 22px; }
#root .panel-stage .ui-panel > div:last-child > div:first-child > button:last-child { width: 40px; height: 40px; border-radius: 50% !important; border: 0 !important; background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: #fff; }

/* cards */
#root .panel-stage .ui-panel [class*="rounded-xl"] { border-radius: 24px !important; }
#root .stat-card, #root [class*="stat-card"] { border-radius: 16px !important; border: 0 !important; background: rgba(229, 221, 255, 0.05) !important; }
#root .panel-stage .ui-panel .rounded-lg:not(button):not(svg) { border-radius: 12px; }
#root .panel-stage .ui-panel :not(button)[class*="uppercase"][class*="tracking"] { color: #ffd4a8; }

/* buttons → pills */
#root button[class*="btn-"], #root .btn-primary, #root .btn-ghost, #root .btn-danger { border-radius: 1000px !important; justify-content: center; }
#root .btn-primary { background: #fed1df !important; color: #603a55 !important; box-shadow: 0 2px 30px rgba(255, 178, 199, 0.28); font-weight: 500; }
#root .btn-primary:hover:not(:disabled) { background: #ffe1ea !important; box-shadow: 0 2px 71px rgba(255, 178, 199, 0.4); }
#root .btn-ghost { border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); background: transparent; }
#root .btn-ghost:hover { background: rgba(229, 221, 255, 0.09) !important; }
#root .btn-danger { border: 0 !important; background: rgba(244, 113, 124, 0.16) !important; color: #ffc6d4 !important; }
#root button.rounded, #root button.rounded-md, #root button.rounded-lg:not(nav button) { border-radius: 1000px; }

/* inputs */
#root input:not([type="range"]):not([type="checkbox"]) { border-radius: 1000px !important; }
#root input:focus { outline: none; border-color: rgba(255, 249, 203, 0.45) !important; }

/* progress fill → sunset */
#root .panel-stage .ui-panel [class*="bg-accent"][class*="h-"]:not(button):not(nav *) { background: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%) !important; }

/* scrollbars */
#root ::-webkit-scrollbar { width: 6px; height: 6px; }
#root ::-webkit-scrollbar-thumb { background: rgba(229, 221, 255, 0.16); border-radius: 1000px; }
#root ::-webkit-scrollbar-track { background: transparent; }

/* the bundle paints each column with an inline dark radial; swap to Vice plates */
#root .panel-stage .ui-panel > div:first-child { background: linear-gradient(189deg, #2f2e52 0.55%, #252644 30.38%, #1f1f38 65.19%, #18182d 100%) !important; box-shadow: none !important; }
#root .panel-stage .ui-panel > div:last-child { background: transparent !important; }
/* stage clip uses a 14px round; let the 24px plate corners show */
#root .panel-stage { clip-path: none !important; }
#root .panel-stage::after { display: none; }
/* small outlined badges → pills */
#root .panel-stage .ui-panel span[class*="border"][class*="uppercase"], #root .panel-stage .ui-panel span[class*="rounded"][class*="text-[10px]"], #root .panel-stage .ui-panel span[class*="rounded"][class*="text-xs"] { border-radius: 1000px !important; padding-left: 10px; padding-right: 10px; }
#root h2, #root h3 { color: #fff9cb; font-weight: 500; letter-spacing: 0.02em; }
#root h2 + p, #root h3 + p { color: #e5ddff; }
#root .panel-stage .ui-panel nav button[class*="border-l-2"] { background: #fff9cb !important; color: #0f0c1a !important; }
#root .panel-stage .ui-panel nav button[class*="border-l-2"] svg { color: #0f0c1a !important; }

/* resolution scaling (--vs from vice-scale.js): fixed-pixel panels keep 1080p proportions.
   `scale` composes with the bundle's own open/close transforms. */
#root .panel-stage { scale: var(--vs, 1); }
#root .bphone-wrapper { scale: var(--vs, 1); transform-origin: 100% 100%; }

/* NPC dialog (a bottom subtitle box, not the manager panel) */
#root > .ui-panel > div { position: relative; scale: var(--vs, 1); transform-origin: 50% 100%; border: 0 !important; border-radius: 24px !important;
  background: radial-gradient(70% 140px at 50% 0%, rgba(255, 223, 128, 0.10), rgba(244, 113, 124, 0.07) 50%, transparent 100%), linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%) !important;
  box-shadow: 0 30px 70px rgba(7, 7, 15, 0.55) !important; }
#root > .ui-panel > div::before { content: ""; position: absolute; left: 24px; top: 0; width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%); }
#root > .ui-panel > div > div:first-child { border-bottom-color: rgba(229, 221, 255, 0.08) !important; }
#root > .ui-panel > div > div:first-child p { color: #fff9cb !important; }
#root > .ui-panel > div > div:last-child p { color: #e5ddff !important; }
#root > .ui-panel > div button { border-radius: 50% !important; border: 0 !important; background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: #fff !important; }
/* accent-filled action buttons = Vice CTA pill (ink text on pink) */
#root button.bg-accent { background: #fed1df !important; color: #603a55 !important; border-radius: 1000px !important; box-shadow: 0 2px 30px rgba(255, 178, 199, 0.28) !important; }
#root button.bg-accent:hover { background: #ffe1ea !important; }
#root button.bg-accent svg { color: #603a55 !important; }

/* pills never wrap their label (e.g. "Vacate Unit" in the stash footer) */
#root button { white-space: nowrap; }
