/* ==========================================================================
   VICE LAYER — qbcore_vi_drugtablet
   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-style: normal; font-display: block; }
@font-face { font-family: "GTAArtDeco"; src: url("../fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 500 900; font-style: normal; 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-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-sunset-line: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%);
  --v-sunset-deep: linear-gradient(120deg, #f4717c 0%, #e963c7 100%);
  --v-glow-top: radial-gradient(70% 220px at 50% 0%, rgba(255, 223, 128, 0.10), rgba(244, 113, 124, 0.07) 50%, transparent 100%);
  --v-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* bundle tokens → Vice */
  --color-frame: #07070f;
  --color-frame-stroke: rgba(229, 221, 255, 0.14);
  --color-screen: #0c0d1b;
  --color-modal: #151628;
  --color-modal-stroke: rgba(229, 221, 255, 0.12);
  --accent-rgb: 255, 178, 198;
  --color-text: #ffffff;
  --color-text-muted: #ccc2f5;
  --color-text-faint: rgba(229, 221, 255, 0.42);
  --color-text-inverse: #0f0c1a;
  --color-surface: rgba(229, 221, 255, 0.05);
  --color-stroke: rgba(229, 221, 255, 0.09);
  --color-stroke-strong: rgba(229, 221, 255, 0.18);
  --color-warning: #ffdf80;
  --color-warning-soft: rgba(255, 223, 128, 0.14);
  --color-danger: #f4717c;
  --color-danger-soft: rgba(244, 113, 124, 0.15);
  --color-tag: rgba(229, 221, 255, 0.07);
  --color-action: rgba(229, 221, 255, 0.07);
  --color-action-hover: rgba(229, 221, 255, 0.13);
  --color-boost: #e6ffa3;
  --color-boost-soft: rgba(230, 255, 163, 0.14);
  --color-accent-glow: rgba(255, 178, 199, 0.4);
  --color-badge: rgba(12, 13, 27, 0.86);
}

body, #app, #app button, #app input, #app textarea, #app select { font-family: var(--v-font) !important; letter-spacing: -0.01em; }
#app *, #app code, #app kbd, #app pre { font-family: var(--v-font) !important; }

/* ---------------------------------------------------------------- frame */
#app .tablet { background: #07070f; border: 0; border-radius: 38px; box-shadow: 0 0 0 1px rgba(229, 221, 255, 0.10), 0 40px 90px rgba(7, 7, 15, 0.55); }
#app .screen {
  background: var(--v-glow-top), radial-gradient(900px 520px at 100% 100%, rgba(233, 99, 199, 0.06), transparent 70%), var(--v-grad-night);
  border-radius: 26px;
}
#app .screen::before { content: ""; position: absolute; left: 44px; top: 0; width: 64px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v-sunset-line); z-index: 2; pointer-events: none; }

/* ----------------------------------------------------- new layout: rail */
#app .screen-body { flex-direction: row; gap: 22px; }
#app .tab-nav {
  flex-direction: column; flex-shrink: 0; width: 214px; height: auto; gap: 4px; padding: 16px 12px;
  border-radius: 24px; background: var(--v-glow-top), var(--v-grad-v1); position: relative;
}
#app .tab {
  justify-content: flex-start; height: 46px; padding: 0 18px; gap: 12px; border-radius: 1000px;
  background: transparent; box-shadow: none; color: var(--v-lilac-soft);
  transition: background-color 0.26s var(--v-ease), color 0.26s var(--v-ease);
}
#app .tab:hover { background: rgba(229, 221, 255, 0.07); color: #fff; }
#app .tab--active, #app .tab--active:hover { background: var(--v-cream); color: var(--v-ink); box-shadow: none; }
#app .tab-icon { width: 18px; height: 18px; opacity: 0.9; }
#app .tab-label { font-size: 14px; font-weight: 500; letter-spacing: -0.015em; }

/* --------------------------------------------------------------- header */
#app .tablet-header { padding: 2px 4px 0; }
#app .avatar { outline: 0; border-radius: 50%; width: 46px; height: 46px; box-shadow: 0 0 0 2px #0c0d1b, 0 0 0 3px rgba(255, 178, 198, 0.55); }
#app .profile-name { color: var(--v-cream); font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
#app .profile-meta { color: var(--v-lilac-soft); font-size: 13px; }
#app .role-chip { background: var(--v-pink); color: var(--v-cta-ink); box-shadow: none; border-radius: 1000px; padding: 4px 10px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; }
#app .admin-toggle, #app .crew-button, #app .boost, #app .exit-button {
  border-radius: 1000px; background: rgba(229, 221, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); height: 42px;
}
#app .exit-button { width: 42px; }
#app .admin-toggle:hover, #app .crew-button:hover, #app .exit-button:hover { background: rgba(229, 221, 255, 0.10); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
#app .crew-button-badge { background: var(--v-sunset-deep); }

/* ---------------------------------------------------- page title stack */
#app .page { gap: 22px; }
#app .page-title { gap: 14px; }
#app .page-heading { font-size: 34px; line-height: 0.92; font-weight: 500; color: var(--v-cream); text-transform: uppercase; letter-spacing: 0; }
#app .page-subheading { font-size: 14px; color: var(--v-lilac); opacity: 0.9; }
#app .page-title:not(.shop-balance):not(.jobs-summary) .page-heading::before {
  content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; margin: 0 0 14px; background: var(--v-sunset-line);
}

/* ------------------------------------------------------ panels / cards */
#app .panel { border-radius: 24px; background: rgba(229, 221, 255, 0.045); box-shadow: none; }
#app .panel-title, #app [class*="-title"].trim { color: var(--v-cream); }
#app .panel-title { font-size: 17px; text-transform: uppercase; letter-spacing: 0.01em; }
#app img { border-radius: inherit; }

/* labels / small uppercase meta */
#app [class*="-label"]:not(.tab-label):not(.boost-text) { letter-spacing: -0.005em; }

/* every button / chip is a pill */
#app button[class*="-button"]:not(.tab):not(.crew-button):not(.exit-button):not(.admin-toggle):not([class*="-icon-button"]),
#app [class*="-chip"]:not(.role-chip),
#app .stat-pill, #app .small-button, #app .action-button { border-radius: 1000px; }
#app [class*="-icon-button"] { border-radius: 50%; }

/* primary actions: accent fills become the Vice CTA pill */
#app .tab-nav ~ * button[class*="--primary"],
#app button[class*="--accent"],
#app button[class*="-button--primary"],
#app .job-button, #app .purchase-button, #app .entrance-button, #app .confirm-button--primary, #app .path-button {
  font-weight: 500; letter-spacing: -0.015em;
}

/* progress / meters keep the accent but read as sunset */
#app [class*="progress-fill"], #app [class*="-bar-fill"], #app [class*="meter-fill"] { background: var(--v-sunset-line); }

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

/* inputs */
#app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #app select { border-radius: 1000px; }
#app textarea { border-radius: 18px; }

/* modals / overlays */
#app [class*="modal"]:not([class*="modal-"]) { border-radius: 24px; }

/* active tabs / selected chips fill cream with ink (Vice rule) */
#app .crew-tab--active, #app .crew-tab--active:hover,
#app .job-tab--active, #app .job-tab--active:hover,
#app .empire-view--active, #app .empire-view--active:hover,
#app .achievements-filter--active,
#app .filter-chip--active, #app .filter-chip--active:hover,
#app .picker-chip--active, #app .picker-chip--active:hover,
#app .visuals-tone--on, #app .visuals-tone--on:hover { background: #fff9cb; color: #0f0c1a; box-shadow: none; }
#app .crew-tab, #app .job-tab, #app .empire-view, #app .achievements-filter, #app .filter-chip { border-radius: 1000px; }

/* perf: no always-running decorative loops while the tablet is idle */
#app .boost-icon, #app .op-badge, #app .op-badge *, #app .op-badge::before, #app .op-badge::after { animation: none !important; }
