/* ==========================================================================
   VICE LAYER — qbcore_vi_contracts tablet
   GTA VI design system override, loaded after the compiled bundle CSS.
   Type: GTA Art Deco 400 / 500 only.
   ========================================================================== */
@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; }

:root {
  --v-font: "GTAArtDeco", Arial, sans-serif;
  --v-cream: #fff9cb; --v-pink: #ffb2c6; --v-pink-text: #ffc6d4; --v-lilac: #e5ddff; --v-lilac-soft: #ccc2f5;
  --v-peach: #ffd4a8; --v-lime: #e6ffa3; --v-gold: #ffdf80; --v-ink: #0f0c1a; --v-cta: #fed1df; --v-cta-ink: #603a55;
  --v-s1: rgba(229, 221, 255, 0.05); --v-s2: rgba(229, 221, 255, 0.09); --v-ghost: rgba(255, 255, 255, 0.2);
  --v-grad-night: linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%);
  --v-grad-v1: linear-gradient(189deg, #2f2e52 0.55%, #252644 30.38%, #1f1f38 65.19%, #18182d 100%);
  --v-glow-top: radial-gradient(70% 12.7315rem at 50% 0%, rgba(255, 223, 128, 0.10), rgba(244, 113, 124, 0.07) 50%, transparent 100%);
  --v-sunset-line: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%);
  --v-sunset-deep: linear-gradient(120deg, #f4717c 0%, #e963c7 100%);
  --v-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body, #root, #root * { font-family: var(--v-font) !important; }
#root { letter-spacing: -0.01em; }
#root .font-semibold, #root .font-bold { font-weight: 500; }

/* ----------------------------------------------------------------- frame */
#root .vc-frame { background: #07070f; border: 0; border-radius: 2.3148rem; padding: 1.0417rem; box-shadow: 0 0 0 1px rgba(229, 221, 255, 0.10), 0 2.3148rem 5.2083rem rgba(7, 7, 15, 0.55); }
#root .vc-screen { background: var(--v-glow-top), radial-gradient(46.2963rem 27.7778rem at 100% 100%, rgba(233, 99, 199, 0.06), transparent 70%), var(--v-grad-night); border-radius: 1.5046rem; display: flex; flex-direction: column; }
#root .vc-screen::before { content: ""; position: absolute; left: 2.0833rem; top: 0; width: 3.7037rem; height: 0.1736rem; border-radius: 0 0 0.1736rem 0.1736rem; background: var(--v-sunset-line); z-index: 3; pointer-events: none; }
#root .vc-screen > div:last-child { flex: 1; height: auto; min-height: 0; }

/* ------------------------------------------------- header: new layout */
#root .vc-header { height: 5.3241rem; flex-shrink: 0; padding: 0 1.6204rem 0 1.8519rem; gap: 1.1574rem; background: transparent !important; border-bottom: 1px solid rgba(229, 221, 255, 0.08); border-radius: 0; }
#root .vc-section { order: -1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.463rem; }
#root .vc-section-title { font: 500 1.7361rem/0.92 var(--v-font); color: var(--v-cream); text-transform: uppercase; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root .vc-section-sub { font: 400 0.7523rem/1.3 var(--v-font); color: var(--v-lilac); opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root .vc-header > div:first-child { margin: 0; flex-direction: row-reverse; gap: 0.8102rem; padding: 0.3472rem 0.3472rem 0.3472rem 1.0417rem; border-radius: 57.8704rem; background: var(--v-s1); }
#root .vc-header > div:first-child > div:first-child { --tw-ring-color: rgba(255, 178, 198, 0.55); width: 2.5463rem; height: 2.5463rem; }
#root .vc-header > div:first-child img { width: 2.5463rem; height: 2.5463rem; }
#root .vc-user { font-size: 0.8102rem; font-weight: 500; color: #fff; text-align: right; }
#root .vc-user + div { justify-content: flex-end; font-size: 0.7523rem; color: var(--v-lilac-soft); }
#root .vc-user + div > div[class*="rounded-full"] { border-color: var(--v-peach); color: var(--v-peach); }
#root .vc-back { height: 2.4306rem; padding: 0 1.2731rem; margin: 0; border-radius: 57.8704rem; background: transparent; box-shadow: inset 0 0 0 1px var(--v-ghost); font-size: 0.8102rem; transition: background 0.26s var(--v-ease), box-shadow 0.26s var(--v-ease); }
#root .vc-back:hover { background: var(--v-s2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
#root .vc-close { width: 2.4306rem; height: 2.4306rem; margin: 0; border-radius: 50%; font-size: 0.9259rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--v-ghost); transition: background 0.26s var(--v-ease); }
#root .vc-close:hover { background: var(--v-s2); }

/* ------------------------------------------------------------- home */
#root .vc-home { padding: 1.6204rem 1.8519rem 1.8519rem; gap: 1.0417rem; }
#root .vc-home > div { gap: 1.0417rem; }
#root .vc-home button { border-radius: 1.3889rem !important; outline: 0 !important; box-shadow: none !important; text-align: left; align-items: flex-start; justify-content: flex-end; padding: 1.8519rem; display: flex; flex-direction: column; transition: transform 0.3s var(--v-ease), filter 0.3s var(--v-ease); }
#root .vc-home button:hover { transform: translateY(-0.1157rem); }
#root .vc-home button::after { content: ""; position: absolute; left: 1.8519rem; top: 0; width: 3.7037rem; height: 0.1736rem; border-radius: 0 0 0.1736rem 0.1736rem; background: var(--v-sunset-line); }
#root .vc-home button > svg { opacity: 0.25; }
#root .vc-tile-title { position: relative; font: 500 2.3148rem/0.92 var(--v-font) !important; color: var(--v-cream) !important; text-transform: uppercase; }
#root .vc-tile-sub { position: relative; margin-top: 0.6944rem; font: 400 0.8681rem/1.4 var(--v-font) !important; color: var(--v-lilac) !important; opacity: 0.9; }

/* ---------------------------------------------------- cards / panels */
#root [class*="grow-0"][class*="shadow-sm"] { border-radius: 1.3889rem !important; background: var(--v-grad-v1) !important; box-shadow: none !important; padding: 0.9259rem; outline: 0 !important; }
#root [class*="grow-0"][class*="shadow-sm"] > div:first-child > p:first-child { color: var(--v-cream); text-transform: uppercase; font-size: 0.9838rem; letter-spacing: 0; }
#root .bg-background5.text-primary { border-radius: 57.8704rem; padding: 0 0.5787rem; font-size: 0.6366rem; letter-spacing: 0.08em; text-transform: uppercase; }
#root img.rounded-lg, #root img[class*="rounded-lg"] { border-radius: 0.6944rem; }
#root .rounded-xl { border-radius: 1.3889rem; }
#root .bg-background2.rounded-xl { box-shadow: none; }

/* metadata rows */
#root [class*="min-h-10"][class*="justify-between"], #root .w-48.h-10, #root .w-14.h-10 { border-radius: 0.6944rem !important; background: rgba(229, 221, 255, 0.05) !important; outline: 0 !important; box-shadow: none !important; }
#root p.text-left { color: var(--v-lilac-soft); }

/* every button is a pill */
#root button[class*="hover:brightness-110"], #root button.bg-background5, #root button[class*="bg-[#23a532"] { border-radius: 57.8704rem !important; outline: 0 !important; }
#root button.bg-background5 { background: var(--v-cta) !important; color: var(--v-cta-ink) !important; font-weight: 500; }
#root button.bg-background5:hover { background: #ffe1ea !important; box-shadow: 0 0.1157rem 1.7361rem rgba(255, 178, 199, 0.28); }
#root button.bg-background5:disabled, #root button[disabled].bg-background5 { background: var(--v-s2) !important; color: var(--v-lilac-soft) !important; box-shadow: none; }

/* inputs → dark pills */
#root input.bg-gray-50, #root input[class*="bg-gray-50"], #root select[class*="bg-gray-50"] { background: rgba(229, 221, 255, 0.06) !important; border: 1px solid transparent !important; color: #fff !important; border-radius: 57.8704rem !important; box-shadow: none !important; }
#root input[class*="bg-gray-50"]:focus { border-color: rgba(255, 249, 203, 0.45) !important; }
#root input::placeholder { color: rgba(229, 221, 255, 0.4); }

/* modals */
#root [class*="z-20"][class*="bg-background"][class*="rounded-lg"] { border-radius: 1.3889rem !important; background: var(--v-glow-top), var(--v-grad-night) !important; box-shadow: 0 2.3148rem 5.2083rem rgba(7, 7, 15, 0.6) !important; padding: 1.6204rem !important; }
#root .font-semibold.text-2xl, #root .text-2xl.font-semibold { color: var(--v-cream); text-transform: uppercase; font-size: 1.5046rem; line-height: 0.95; letter-spacing: 0; }

/* tables (leaderboard / admin) */
#root thead, #root .bg-background4 { background: rgba(229, 221, 255, 0.06) !important; }
#root th { color: var(--v-peach); font-size: 0.6366rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
#root [class*="text-[#aaa]"] { color: var(--v-lilac-soft) !important; }
#root [class*="text-[#ccc]"] { color: var(--v-lilac) !important; }

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

/* toasts (sonner) */
[data-sonner-toast] { font-family: var(--v-font) !important; border-radius: 0.9259rem !important; background: #1b1b30 !important; color: #fff !important; border: 0 !important; }

/* resource-info button (injected by reddev-admin.js): dock it as the rightmost
   header control inside the tablet instead of floating over the profile pill */
#root .vc-header { padding-right: 4.6296rem; }
.reddev-info-button {
  top: calc(50vh - 22.5rem + 2.5463rem) !important; left: calc(50vw + 38rem - 1.0417rem - 1.6204rem - 2.4306rem) !important; right: auto !important;
  width: 2.4306rem !important; height: 2.4306rem !important; border: 0 !important; border-radius: 50% !important;
  background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  font: 500 0.9259rem "GTAArtDeco", Arial, sans-serif !important;
}
.reddev-info-button:hover { background: rgba(229, 221, 255, 0.09) !important; filter: none !important; }
.reddev-info-card { border: 0 !important; border-radius: 1.3889rem !important; background: radial-gradient(70% 10.4167rem at 50% 0%, rgba(255, 223, 128, 0.12), rgba(244, 113, 124, 0.08) 50%, transparent 100%), linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%) !important; font-family: "GTAArtDeco", Arial, sans-serif !important; }
.reddev-info-card h2 { color: #fff9cb !important; font-weight: 500 !important; text-transform: uppercase; }
.reddev-info-card p { color: #e5ddff !important; }
.reddev-info-card a { color: #ffb2c6 !important; }
.reddev-info-close { border: 0 !important; border-radius: 57.8704rem !important; background: #fed1df !important; color: #603a55 !important; font-family: "GTAArtDeco", Arial, sans-serif !important; }
.reddev-info-modal { backdrop-filter: none !important; background: rgba(12, 13, 27, 0.6) !important; }
#root [class*="grow-0"][class*="shadow-sm"] button { border-radius: 57.8704rem !important; }
/* gradient primary buttons → Vice CTA pill (status-coloured buttons keep their inline colour) */
#root button[style*="var(--background-gradient)"] { background: #fed1df !important; color: #603a55 !important; box-shadow: 0 0.1157rem 1.7361rem rgba(255, 178, 199, 0.28) !important; outline: 0 !important; border-radius: 57.8704rem !important; font-weight: 500; }
#root button[style*="var(--background-gradient)"]:hover { background: #ffe1ea !important; box-shadow: 0 0.1157rem 4.1088rem rgba(255, 178, 199, 0.4) !important; }
#root button[style*="var(--background-gradient)"] svg { color: #603a55; fill: currentColor; }
