/* ==========================================================================
   F2FUN — Interactive In-Browser Private Menu Showcase
   100% Browser-Isolated DOM/CSS Component (Zero Native OS Dialogs)
   ========================================================================== */

.container--menu {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
}

.section--compact {
  padding-top: 24px;
  padding-bottom: 56px;
}

.menu-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Stage Top Bar */
.stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 15, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.stage-controls-left,
.stage-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.web-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.web-demo-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.web-demo-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.web-demo-dots i:nth-child(1) { background: #ef4444; }
.web-demo-dots i:nth-child(2) { background: #f59e0b; }
.web-demo-dots i:nth-child(3) { background: #10b981; }

.demo-toggle-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.demo-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.mode-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn {
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #8b95ab;
  transition: all 0.16s ease;
}

.mode-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Interactive Stage Container
   ========================================================================== */

.f2-stage {
  --m-bg: #0a0a0c;
  --m-bg-2: #0d0d10;
  --m-bg-3: #101014;
  --m-gray: #18181e;
  --m-gray-2: #1e1e26;
  --m-gray-4: #323232;
  --m-primary: #ffffff;
  --m-border: rgba(255, 255, 255, 0.94);
  --m-glow: rgba(255, 255, 255, 0.43);
  --m-text: #e8e8e8;
  --m-text-dim: #727272;

  position: relative;
  min-height: 648px;
  padding: 54px 18px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 18%, rgba(36, 46, 66, 0.34) 0%, transparent 56%),
    linear-gradient(180deg, #0b0e14 0%, #06080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 34px 90px -28px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Top-left Origin Logo Button */
.f2-origin-logo {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 32;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 9px;
  background: rgba(12, 12, 16, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.16s ease;
}

.f2-origin-logo:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(20, 20, 26, 0.94);
}

.f2-origin-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Top-right Stage Telemetry */
.f2-stage-telemetry {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 26;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(10, 11, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8e98ad;
}

.f2-stage-telemetry strong {
  color: #10b981;
  font-weight: 600;
}

/* Simulated Stage World Background */
.f2-world-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.f2-world-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.9) 15%, transparent 82%);
}

.f2-world-fov {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.18s ease, width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
}

.f2-world-fov.is-visible {
  opacity: 1;
}

.f2-world-actor {
  position: absolute;
  bottom: 34px;
  width: 118px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.36;
  transition: opacity 0.2s ease;
}

.f2-world-actor--left {
  left: 34px;
}

.f2-world-actor--right {
  right: 34px;
}

.f2-world-actor img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0.75) contrast(1.05);
}

.f2-actor-esp {
  position: absolute;
  inset: 8px 14px 6px;
  border: 1.4px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.f2-actor-name {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.f2-actor-hp {
  position: absolute;
  top: 8px;
  bottom: 6px;
  left: 8px;
  width: 3px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.f2-actor-hp span {
  display: block;
  width: 100%;
  height: 84%;
  margin-top: auto;
  background: #32f268;
}

.f2-stage.has-world-esp:not(.is-stream-mode) .f2-actor-esp,
.f2-stage.has-world-esp:not(.is-stream-mode) .f2-actor-name,
.f2-stage.has-world-esp:not(.is-stream-mode) .f2-actor-hp {
  opacity: 1;
}

/* StreamProof Mode */
.f2-stream-clean-pill {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 30;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 28px rgba(16, 185, 129, 0.16);
  color: #d1fae5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.f2-stage.is-stream-mode .f2-stream-clean-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.f2-stage.is-stream-mode .f2-world-fov,
.f2-stage.is-stream-mode .f2-origin-logo,
.f2-stage.is-stream-mode .f2-stage-telemetry {
  opacity: 0 !important;
  pointer-events: none;
}

/* Toast Notifications Inside Stage */
.f2-toast-stack {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.f2-toast {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 500;
  animation: f2ToastIn 0.18s ease forwards;
}

@keyframes f2ToastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Main Menu Assembly (920×540 Window + 300×540 Companion)
   ========================================================================== */

.f2-menu-assembly {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  transform-origin: center center;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.f2-stage.no-anim .f2-menu-assembly,
.f2-stage.no-anim .f2-switch,
.f2-stage.no-anim .f2-switch::after {
  transition: none !important;
}

.f2-stage.is-menu-closed .f2-menu-assembly,
.f2-stage.is-stream-mode .f2-menu-assembly {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

/* Main 920×540 Frameless Window */
.f2-window {
  width: 920px;
  height: 540px;
  border-radius: 12px;
  background: var(--m-bg);
  border: 1.2px solid var(--m-border);
  box-shadow:
    0 0 18px -2px var(--m-glow),
    0 30px 75px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Top & Bottom Sidebar Layout Modes */
.f2-window.sidebar-top {
  width: 840px;
  height: 610px;
  flex-direction: column;
}

.f2-window.sidebar-bottom {
  width: 840px;
  height: 610px;
  flex-direction: column-reverse;
}

/* Legacy Edition Mode */
.f2-window.ui-legacy .f2-sidebar {
  background: rgba(30, 30, 38, 0.65);
}

.f2-window.ui-legacy .f2-group {
  background: rgba(20, 20, 26, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  padding: 10px 12px 10px;
}

/* ==========================================================================
   Sidebar (200px Left / 70px Top-Bottom)
   ========================================================================== */

.f2-sidebar {
  width: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
}

/* Glowing Inset Vertical Separator (top: 18px, bottom: 18px) */
.f2-sidebar::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 0;
  width: 1px;
  background: var(--m-border);
  box-shadow: 0 0 8px 1px var(--m-glow);
  pointer-events: none;
}

.f2-window.sidebar-top .f2-sidebar,
.f2-window.sidebar-bottom .f2-sidebar {
  width: 100%;
  height: 70px;
  flex-direction: row;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.f2-window.sidebar-top .f2-sidebar::after {
  top: auto;
  bottom: 0;
  left: 18px;
  right: 18px;
  width: auto;
  height: 1px;
}

.f2-window.sidebar-bottom .f2-sidebar::after {
  top: 0;
  bottom: auto;
  left: 18px;
  right: 18px;
  width: auto;
  height: 1px;
}

/* Sidebar Brand Header */
.f2-sidebar-logo {
  height: 82px;
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: grab;
  flex-shrink: 0;
}

.f2-sidebar-logo:active {
  cursor: grabbing;
}

.f2-sidebar-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.f2-legacy-brand {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.f2-legacy-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.f2-legacy-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #828292;
}

.f2-window.ui-legacy .f2-sidebar-logo {
  justify-content: flex-start;
  height: 74px;
  padding: 12px 16px;
}

.f2-window.ui-legacy .f2-sidebar-logo img {
  width: 38px;
  height: 38px;
}

.f2-window.ui-legacy .f2-legacy-brand {
  display: flex;
}

.f2-window.sidebar-top .f2-sidebar-logo,
.f2-window.sidebar-bottom .f2-sidebar-logo {
  height: 100%;
  padding: 0 6px 0 2px;
}

.f2-window.sidebar-top .f2-sidebar-logo img,
.f2-window.sidebar-bottom .f2-sidebar-logo img {
  width: 38px;
  height: 38px;
}

/* Sidebar Navigation */
.f2-nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f2-window.sidebar-top .f2-nav-scroll,
.f2-window.sidebar-bottom .f2-nav-scroll {
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px;
  gap: 4px;
}

.f2-nav-group {
  display: flex;
  flex-direction: column;
}

.f2-cat-btn {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--m-text-dim);
  font-size: 12.8px;
  font-weight: 600;
  border: 1px solid transparent;
  position: relative;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.f2-cat-btn:hover {
  color: #d8d8e2;
  background: rgba(255, 255, 255, 0.03);
}

.f2-cat-btn.is-active {
  color: #f5f5fa;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.035);
}

.f2-cat-btn.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 2.5px;
  border-radius: 99px;
  background: var(--m-primary);
  box-shadow: 0 0 7px var(--m-glow);
}

.f2-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.f2-cat-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--m-text-dim);
  transition: color 0.15s ease;
}

.f2-cat-btn.is-active .f2-cat-icon {
  color: var(--m-primary);
  filter: drop-shadow(0 0 5px var(--m-glow));
}

.f2-cat-icon svg {
  width: 15px;
  height: 15px;
}

.f2-cat-chev {
  width: 12px;
  height: 12px;
  color: var(--m-text-dim);
  opacity: 0.7;
  transition: transform 0.16s ease, color 0.16s ease;
}

.f2-cat-btn.is-active .f2-cat-chev {
  transform: rotate(90deg);
  color: #e8e8f0;
}

/* Expanded Subtabs in Left Sidebar */
.f2-subtab-list {
  margin: 3px 0 6px 18px;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f2-window.sidebar-top .f2-subtab-list,
.f2-window.sidebar-bottom .f2-subtab-list,
.f2-window.sidebar-top .f2-cat-chev,
.f2-window.sidebar-bottom .f2-cat-chev {
  display: none;
}

.f2-subtab-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.8px;
  font-weight: 500;
  color: var(--m-text-dim);
  transition: all 0.14s ease;
}

.f2-subtab-btn::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.14s ease;
}

.f2-subtab-btn:hover {
  color: #d4d4de;
  background: rgba(255, 255, 255, 0.028);
}

.f2-subtab-btn.is-active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.055);
}

.f2-subtab-btn.is-active::before {
  background: var(--m-primary);
  box-shadow: 0 0 6px var(--m-glow);
}

/* Sidebar User Footer */
.f2-sidebar-footer {
  height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
}

.f2-sidebar-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.f2-window.sidebar-top .f2-sidebar-footer::before,
.f2-window.sidebar-bottom .f2-sidebar-footer::before {
  display: none;
}

.f2-window.sidebar-top .f2-sidebar-footer,
.f2-window.sidebar-bottom .f2-sidebar-footer {
  padding: 0 0 0 8px;
}

.f2-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(145deg, #24242f, #131319);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #f5f5fa;
  position: relative;
  flex-shrink: 0;
}

.f2-avatar-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--m-bg);
}

.f2-user-meta {
  min-width: 0;
  line-height: 1.22;
}

.f2-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #ececf4;
  white-space: nowrap;
}

.f2-user-tier {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--m-text-dim);
  white-space: nowrap;
}

/* ==========================================================================
   Content Pane (Section Header + Scrollable Body)
   ========================================================================== */

.f2-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.f2-section-header {
  height: 60px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
  cursor: grab;
}

.f2-section-header:active {
  cursor: grabbing;
}

.f2-section-header::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.f2-section-header::before {
  content: '';
  position: absolute;
  left: 14px;
  width: 36px;
  bottom: 0;
  height: 1px;
  background: var(--m-border);
  box-shadow: 0 0 8px var(--m-glow);
  z-index: 1;
}

.f2-sh-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.f2-sh-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(20, 20, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-primary);
  flex-shrink: 0;
}

.f2-sh-icon svg {
  width: 15px;
  height: 15px;
}

.f2-sh-title {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5fa;
  line-height: 1.2;
}

.f2-sh-desc {
  font-size: 11.5px;
  color: #9191a0;
  line-height: 1.25;
  margin-top: 2px;
}

/* Inline Header Subtabs (shown when Sidebar is Top/Bottom) */
.f2-inline-subtabs {
  display: none;
  align-items: center;
  gap: 5px;
}

.f2-window.sidebar-top .f2-inline-subtabs,
.f2-window.sidebar-bottom .f2-inline-subtabs {
  display: inline-flex;
}

.f2-inline-sub-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--m-text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.14s ease;
}

.f2-inline-sub-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Scrollable Content Area */
.f2-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 14px 16px;
}

.f2-nav-scroll::-webkit-scrollbar,
.f2-body::-webkit-scrollbar,
.f2-entity-list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.f2-nav-scroll::-webkit-scrollbar-thumb,
.f2-body::-webkit-scrollbar-thumb,
.f2-entity-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

/* Grid Layouts */
.f2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.f2-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.f2-weapon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
}

.f2-full-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Content Group & Individual Widgets
   ========================================================================== */

.f2-group {
  padding: 6px 10px 6px;
  display: flex;
  flex-direction: column;
}

.f2-group.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.f2-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 3px;
  position: relative;
}

.f2-group-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.f2-group-head::before {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  bottom: 0;
  height: 1px;
  background: var(--m-border);
  box-shadow: 0 0 6px var(--m-glow);
  z-index: 1;
}

.f2-group-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m-primary);
  box-shadow: 0 0 7px 1.5px var(--m-glow);
  flex-shrink: 0;
}

.f2-group-title {
  font-size: 12.2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f8;
}

.f2-group-body {
  display: flex;
  flex-direction: column;
}

/* Standard Widget Row */
.f2-row {
  min-height: 34px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.f2-group-body > *:last-child {
  border-bottom: none;
}

.f2-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.f2-row-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--m-text);
  line-height: 1.22;
}

.f2-row-desc {
  font-size: 10.6px;
  font-weight: 400;
  color: var(--m-text-dim);
  line-height: 1.22;
  margin-top: 2px;
}

.f2-row-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 32×19 Rounded Toggle Switch */
.f2-switch {
  width: 32px;
  height: 19px;
  border-radius: 10px;
  background: rgba(24, 24, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.f2-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6e6e7d;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background 0.16s ease;
}

.f2-switch.is-on {
  background: var(--m-primary);
  border-color: var(--m-border);
  box-shadow: 0 0 10px -1px var(--m-glow);
}

.f2-switch.is-on::after {
  transform: translateX(13px);
  background: #0e0e12;
}

/* Gear Icon Button (checkbox_setting) */
.f2-gear-btn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--m-text-dim);
  transition: color 0.15s ease, transform 0.2s ease;
}

.f2-gear-btn:hover {
  color: var(--m-text);
  transform: rotate(35deg);
}

.f2-gear-btn svg {
  width: 13px;
  height: 13px;
}

/* Keybind Pill (19px tall) */
.f2-key-pill {
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  color: #cfcfd8;
  transition: all 0.14s ease;
}

.f2-key-pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.f2-key-pill.is-listening {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.16);
}

.f2-key-pill svg {
  width: 11px;
  height: 11px;
  opacity: 0.72;
}

/* 15×15 Circular Color Swatch */
.f2-color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-image:
    linear-gradient(45deg, #2a2a32 25%, transparent 25%),
    linear-gradient(-45deg, #2a2a32 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2a32 75%),
    linear-gradient(-45deg, transparent 75%, #2a2a32 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.f2-row:hover .f2-color-dot,
.f2-color-dot:hover {
  border-color: #e8e8e8;
  transform: scale(1.08);
}

.f2-color-dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* 24px Custom Combo Trigger */
.f2-combo-btn {
  height: 24px;
  min-width: 118px;
  max-width: 176px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 11.2px;
  font-weight: 500;
  color: #e4e4ec;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.f2-combo-btn:hover,
.f2-combo-btn.is-open {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.2);
}

.f2-combo-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f2-combo-btn svg {
  width: 11px;
  height: 11px;
  color: #8f8fa0;
  flex-shrink: 0;
}

/* Slider Row (5px Track + Glowing Thumb) */
.f2-slider-row {
  padding: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.f2-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.f2-slider-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--m-text);
}

.f2-slider-val {
  font-size: 11.2px;
  font-weight: 500;
  color: var(--m-text-dim);
  font-variant-numeric: tabular-nums;
}

.f2-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    90deg,
    var(--m-primary) 0%,
    var(--m-primary) var(--fill-pct, 50%),
    #18181e var(--fill-pct, 50%),
    #18181e 100%
  );
  outline: none;
  cursor: pointer;
}

.f2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 0 8px 2px var(--m-glow);
  cursor: pointer;
}

.f2-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 0 8px 2px var(--m-glow);
  cursor: pointer;
}

/* Action Buttons */
.f2-btn-wrap {
  padding: 4px 0;
}

.f2-btn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px 0;
}

.f2-act-btn {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8f0;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.f2-act-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.f2-act-btn--sm {
  height: 27px;
  border-radius: 6px;
  font-size: 11.4px;
}

.f2-act-btn--inv {
  background: #f5f5fa;
  border-color: #ffffff;
  color: #0c0c10;
}

.f2-act-btn--inv:hover {
  background: #ffffff;
  color: #050507;
}

/* ==========================================================================
   Special Tabs: Tactical AI Banner, World Split Panel, Config List
   ========================================================================== */

.f2-tactical-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #12141c;
  border: 1px solid rgba(245, 158, 11, 0.45);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.f2-tactical-banner.is-unlocked {
  border-color: rgba(34, 197, 94, 0.55);
}

.f2-tactical-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f59e0b;
}

.f2-tactical-banner.is-unlocked .f2-tactical-tag {
  color: #22c55e;
}

.f2-tactical-sub {
  font-size: 11.2px;
  color: #9ca3af;
}

/* World Players / Vehicles Split View */
.f2-world-split {
  display: grid;
  grid-template-columns: 56% 1fr;
  gap: 14px;
  align-items: start;
}

.f2-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.f2-search-input {
  flex: 1;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e8e8f0;
  font-size: 11.8px;
  outline: none;
}

.f2-search-input:focus {
  border-color: rgba(255, 255, 255, 0.24);
}

.f2-world-count {
  font-size: 11.2px;
  font-weight: 600;
  color: var(--m-text-dim);
}

.f2-entity-list {
  margin-top: 8px;
  max-height: 292px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f2-entity-item {
  height: 31px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #d4d4de;
  transition: all 0.14s ease;
}

.f2-entity-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

.f2-entity-item.is-selected {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.f2-entity-dist {
  font-size: 11px;
  color: var(--m-text-dim);
  font-variant-numeric: tabular-nums;
}

.f2-detail-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 11.8px;
}

.f2-detail-kv span {
  color: var(--m-text-dim);
}

.f2-detail-kv strong {
  color: #ececf4;
  font-weight: 600;
}

/* Config Item Rows */
.f2-cfg-create-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

.f2-cfg-item {
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.f2-cfg-item.is-loaded {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.f2-cfg-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.f2-cfg-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(24, 24, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8e8f0;
}

.f2-cfg-icon svg {
  width: 14px;
  height: 14px;
}

.f2-cfg-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f0f0f8;
}

.f2-cfg-date {
  font-size: 10.6px;
  color: var(--m-text-dim);
}

.f2-cfg-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.f2-cfg-actions .f2-act-btn {
  width: auto;
  min-width: 62px;
  height: 26px;
  border-radius: 6px;
  font-size: 11.2px;
}

/* ==========================================================================
   Companion Window (300 × 540px — Bone Selector & Live ESP Preview)
   ========================================================================== */

.f2-companion {
  width: 300px;
  height: 540px;
  border-radius: 8px;
  background-color: rgba(10, 10, 12, 0.72);
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1.2px solid var(--m-border);
  box-shadow:
    0 0 18px -2px var(--m-glow),
    0 30px 75px rgba(0, 0, 0, 0.88);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.f2-companion[hidden] {
  display: none !important;
}

.f2-comp-title {
  position: absolute;
  top: 11px;
  left: 13px;
  z-index: 6;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #727272;
}

.f2-comp-canvas {
  position: absolute;
  left: 5px;
  top: 35px;
  width: 290px;
  height: 500px;
}

.f2-comp-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
}

.f2-comp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Bone Selector Nodes */
.f2-bone-node {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.f2-bone-node:hover {
  transform: scale(1.22);
  border-color: #ffffff;
  z-index: 8;
}

.f2-bone-node.is-selected {
  background: var(--m-primary);
  border-color: #ffffff;
  box-shadow: 0 0 10px 2px var(--m-glow);
}

.f2-bone-node.is-selected::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0b0b0e;
}

.f2-bone-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 5px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
  color: #f3f3f8;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.f2-bone-node:hover .f2-bone-tip {
  opacity: 1;
}

.f2-bone-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.94) 48%);
  text-align: center;
  z-index: 6;
  pointer-events: none;
}

.f2-bone-status {
  font-size: 12px;
  font-weight: 600;
  color: #e8e8e8;
}

.f2-bone-hint {
  font-size: 10.5px;
  color: #727272;
  margin-top: 1px;
}

/* Interactive ESP Preview Stage */
.f2-esp-box-wrap {
  position: absolute;
  left: 54px;
  top: 26px;
  width: 182px;
  height: 432px;
  z-index: 4;
}

.f2-esp-rect {
  position: absolute;
  inset: 0;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.f2-esp-corner {
  position: absolute;
  width: 24%;
  height: 16%;
  border-color: #ffffff;
  border-style: solid;
  pointer-events: none;
}

.f2-esp-corner--tl { top: 0; left: 0; border-width: 1.8px 0 0 1.8px; }
.f2-esp-corner--tr { top: 0; right: 0; border-width: 1.8px 1.8px 0 0; }
.f2-esp-corner--bl { bottom: 0; left: 0; border-width: 0 0 1.8px 1.8px; }
.f2-esp-corner--br { bottom: 0; right: 0; border-width: 0 1.8px 1.8px 0; }

/* Movable ESP Bars & Text Tags */
.f2-esp-bars-slot {
  position: absolute;
  display: flex;
  gap: 3px;
  z-index: 6;
}

.f2-esp-bars-slot--left {
  top: 0;
  bottom: 0;
  right: calc(100% + 5px);
  flex-direction: row-reverse;
}

.f2-esp-bars-slot--right {
  top: 0;
  bottom: 0;
  left: calc(100% + 5px);
  flex-direction: row;
}

.f2-esp-bars-slot--bottom {
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  flex-direction: column;
}

.f2-esp-bar {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.9);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.f2-esp-bars-slot--left .f2-esp-bar,
.f2-esp-bars-slot--right .f2-esp-bar {
  width: 4px;
  height: 100%;
}

.f2-esp-bars-slot--bottom .f2-esp-bar {
  width: 100%;
  height: 4px;
}

.f2-esp-bar.is-picked {
  box-shadow: 0 0 0 2px #ffffff;
}

.f2-esp-bar i {
  display: block;
  width: 100%;
  height: 100%;
}

.f2-esp-tags-slot {
  position: absolute;
  left: -30px;
  right: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 6;
}

.f2-esp-tags-slot--top {
  bottom: calc(100% + 4px);
}

.f2-esp-tags-slot--bottom {
  top: calc(100% + 14px);
}

.f2-esp-tag {
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  cursor: pointer;
  transition: background 0.12s ease;
}

.f2-esp-tag:hover,
.f2-esp-tag.is-picked {
  background: rgba(255, 255, 255, 0.16);
}

/* Pulsing Drop Zones When Repositioning ESP Item */
.f2-esp-dropzone {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: 9;
  cursor: pointer;
  animation: f2PulseSlot 1s ease-in-out infinite alternate;
}

.f2-esp-dropzone--left { top: 0; bottom: 0; left: -14px; width: 10px; }
.f2-esp-dropzone--right { top: 0; bottom: 0; right: -14px; width: 10px; }
.f2-esp-dropzone--bottom-bar { left: 0; right: 0; bottom: -11px; height: 8px; }
.f2-esp-dropzone--top { left: 10px; right: 10px; top: -24px; height: 18px; }
.f2-esp-dropzone--bottom-tag { left: 10px; right: 10px; bottom: -32px; height: 18px; }

@keyframes f2PulseSlot {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* ==========================================================================
   In-Browser Floating Popups (Combo, Color Picker, Dangerous Modal)
   ========================================================================== */

.f2-combo-popup {
  position: absolute;
  z-index: 70;
  min-width: 132px;
  padding: 6px;
  border-radius: 7px;
  background: #18181e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f2-combo-popup[hidden] {
  display: none !important;
}

.f2-combo-opt {
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11.4px;
  font-weight: 500;
  color: #cfcfd8;
  text-align: left;
  display: flex;
  align-items: center;
  transition: background 0.12s ease, color 0.12s ease;
}

.f2-combo-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.f2-combo-opt.is-selected {
  background: #323232;
  color: #ffffff;
  font-weight: 600;
}

/* 192px Custom HSV + Alpha + Hex Color Picker Popup */
.f2-color-popup {
  position: absolute;
  z-index: 72;
  width: 192px;
  padding: 12px;
  border-radius: 9px;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f2-color-popup[hidden] {
  display: none !important;
}

.f2-cp-sv {
  position: relative;
  width: 168px;
  height: 148px;
  border-radius: 6px;
  background: #ff0000;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.f2-cp-sv-white {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.f2-cp-sv-black {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.f2-cp-sv-cursor {
  position: absolute;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.f2-cp-bars-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.f2-cp-dropper {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.f2-cp-dropper svg {
  width: 13px;
  height: 13px;
}

.f2-cp-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f2-cp-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.f2-cp-hue {
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
}

.f2-cp-alpha {
  background-image:
    linear-gradient(45deg, #2b2b34 25%, transparent 25%),
    linear-gradient(-45deg, #2b2b34 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2b2b34 75%),
    linear-gradient(-45deg, transparent 75%, #2b2b34 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0;
  overflow: visible;
}

.f2-cp-alpha-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.f2-cp-bar-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #0b0b0e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.f2-cp-hex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.f2-cp-hex-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #8c8c9e;
}

.f2-cp-hex-box {
  flex: 1;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  background: #18181e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.f2-cp-hex-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.f2-cp-hex-swatch i {
  position: absolute;
  inset: 0;
}

#f2CpHexInput {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f8;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Dangerous Function Confirmation Modal (350 × 180px) */
.f2-confirm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(4, 5, 8, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f2-confirm-backdrop[hidden] {
  display: none !important;
}

.f2-confirm-card {
  width: 350px;
  min-height: 176px;
  padding: 20px 22px;
  border-radius: 12px;
  background: #101014;
  border: 1.2px solid var(--m-border);
  box-shadow: 0 0 22px -4px var(--m-glow), 0 24px 60px rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.f2-confirm-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.f2-confirm-warn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(235, 87, 87, 0.14);
  border: 1px solid rgba(235, 87, 87, 0.35);
  color: #eb5757;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f2-confirm-warn svg {
  width: 16px;
  height: 16px;
}

.f2-confirm-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f5f5fa;
}

.f2-confirm-desc {
  font-size: 12.2px;
  color: #8c8c9a;
}

.f2-confirm-desc strong {
  color: #ffffff;
  font-weight: 700;
}

.f2-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Responsive Scaling & Stacking
   ========================================================================== */

@media (max-width: 1300px) {
  .f2-menu-assembly {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .f2-window,
  .f2-window.sidebar-top,
  .f2-window.sidebar-bottom {
    width: 100%;
    max-width: 920px;
    height: auto;
    min-height: 520px;
  }

  .f2-stage {
    padding: 54px 12px 20px;
  }
}

@media (max-width: 740px) {
  .f2-window {
    flex-direction: column;
  }

  .f2-sidebar {
    width: 100%;
    height: auto;
    padding: 8px 10px;
  }

  .f2-sidebar::after {
    top: auto;
    bottom: 0;
    left: 14px;
    right: 14px;
    width: auto;
    height: 1px;
  }

  .f2-sidebar-logo,
  .f2-sidebar-footer,
  .f2-subtab-list,
  .f2-cat-chev {
    display: none !important;
  }

  .f2-nav-scroll {
    flex-direction: row;
    overflow-x: auto;
    padding: 2px;
  }

  .f2-inline-subtabs {
    display: inline-flex;
    flex-wrap: wrap;
  }

  .f2-section-header {
    height: auto;
    min-height: 58px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .f2-cols,
  .f2-weapon-grid,
  .f2-world-split {
    grid-template-columns: 1fr;
  }

  .f2-companion {
    width: 100%;
    max-width: 300px;
  }
}
