:root {
  --bg-deep: #060913;
  --bg-surface: #0d1424;
  --bg-card: #121c31;
  --bg-card-hover: #182540;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-gold: rgba(251, 191, 36, 0.45);
  --gold: #fbbf24;
  --gold-soft: #fde68a;
  --emerald: #34d399;
  --crimson: #fb7185;
  --cyan: #38bdf8;
  --purple: #a78bfa;
  --pink: #f472b6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-glow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(circle at 20% 0%, #131f3a 0%, var(--bg-deep) 58%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

.app-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 18px 36px;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(13, 20, 36, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 55%, #d97706 100%);
  color: #111827;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-title-row h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.gold-text {
  color: var(--gold);
}

.amber-text {
  color: #fcd34d;
}

.brand-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.35); }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ceo-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--border-gold);
  font-size: 12.5px;
  color: var(--gold-soft);
}

.pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fecdd3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pending-pill:hover {
  transform: translateY(-1px);
  background: rgba(251, 113, 133, 0.25);
}

.pending-pill strong {
  background: var(--crimson);
  color: #fff;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.ctrl-btn, .ghost-btn {
  padding: 7px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ctrl-btn:hover, .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
}

.gold-btn {
  padding: 8px 16px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0b1120;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.42);
}

.approve-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.reject-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.15);
  color: #fecdd3;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.approve-btn:hover { filter: brightness(1.08); }
.reject-btn:hover { background: rgba(251, 113, 133, 0.28); }

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 10px;
  scrollbar-width: thin;
}

.nav-tab {
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 20, 36, 0.72);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  border-color: rgba(251, 191, 36, 0.35);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.1));
  color: var(--gold-soft);
  border-color: var(--border-gold);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.14);
}

.tab-panel {
  display: none;
  animation: fadeSlide 0.24s ease;
}

.tab-panel.active {
  display: block;
}

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

/* Office Display Screen */
.office-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.office-toolbar h2 {
  font-size: 20px;
  font-weight: 800;
}

.office-toolbar p {
  font-size: 13px;
  color: var(--text-muted);
}

.office-toolbar-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.office-floor-wrapper {
  border-radius: 22px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #0b1224 0%, #070c18 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 80px rgba(56, 189, 248, 0.04);
  overflow: hidden;
  margin-bottom: 22px;
}

.office-floor {
  position: relative;
  min-height: 670px;
  padding: 20px;
  overflow: hidden;
}

.floor-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.corridor-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  pointer-events: none;
}

.corridor-h {
  top: 53%;
  left: 6%;
  right: 6%;
  height: 2px;
}

.corridor-v {
  top: 20%;
  bottom: 12%;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.25), rgba(56, 189, 248, 0.16), transparent);
}

/* CEO Suite & Wall Screen */
.ceo-zone {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.wall-screen {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.12);
}

.wall-screen-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.wall-screen-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ws-metric {
  background: rgba(6, 9, 19, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 7px 10px;
}

.ws-metric small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.ws-metric strong {
  font-size: 13px;
}

.ceo-desk-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(15, 23, 42, 0.92));
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.14);
  cursor: pointer;
}

.ceo-crown {
  font-size: 30px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ceo-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold);
}

.ceo-info h3 {
  font-size: 16px;
  font-weight: 900;
}

.ceo-info p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.ceo-monitor {
  margin-right: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #060913;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-soft);
  text-align: center;
  position: relative;
}

.vs-floor-badge {
  position: absolute;
  left: 29%;
  top: 72%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(251, 113, 133, 0.24));
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  padding: 5px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.25);
  pointer-events: none;
}

.vs-floor-badge strong {
  color: var(--gold);
  font-size: 12px;
}

/* Workstations Grid inside Office Floor */
.workstations-layer {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px 14px;
  padding-top: 10px;
}

/* Row 1: 3 stations (4 cols each); Row 2: 4 stations (3 cols each) */
.desk-station.emp-1,
.desk-station.emp-2,
.desk-station.emp-3 {
  grid-column: span 4;
}

.desk-station.emp-4,
.desk-station.emp-5,
.desk-station.emp-6,
.desk-station.emp-7 {
  grid-column: span 3;
}

.desk-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.desk-station:hover {
  transform: translateY(-4px);
  border-color: var(--emp-accent, var(--gold));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--emp-accent, #fbbf24) 24%, transparent);
}

/* FLOATING REQUIREMENT BUBBLE RIGHT ABOVE COMPUTER */
.req-bubble {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 25, 45, 0.98), rgba(25, 36, 62, 0.96));
  border: 1.5px solid var(--bubble-color, var(--gold));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--bubble-color, #fbbf24) 22%, transparent);
  animation: floatBubble 3.2s ease-in-out infinite;
  z-index: 6;
}

.req-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 13px;
  height: 13px;
  background: rgba(23, 33, 56, 0.98);
  border-right: 1.5px solid var(--bubble-color, var(--gold));
  border-bottom: 1.5px solid var(--bubble-color, var(--gold));
}

.req-bubble.priority-approval { --bubble-color: #fbbf24; }
.req-bubble.priority-challenge { --bubble-color: #fb7185; }
.req-bubble.priority-info { --bubble-color: #38bdf8; }
.req-bubble.priority-idea { --bubble-color: #f59e0b; }
.req-bubble.priority-done { --bubble-color: #34d399; animation: none; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.req-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--bubble-color, var(--gold));
}

.req-bubble-text {
  font-size: 11.8px;
  line-height: 1.45;
  color: #f8fafc;
  font-weight: 600;
}

/* Computer Desk Visual */
.computer-rig {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.pc-monitor {
  width: 88%;
  max-width: 195px;
  background: #050a14;
  border: 2px solid color-mix(in srgb, var(--emp-accent, #38bdf8) 65%, #334155);
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--emp-accent, #38bdf8) 25%, transparent);
  position: relative;
}

.pc-screen-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pc-screen-bars span {
  height: 4px;
  border-radius: 99px;
  background: var(--emp-accent, var(--cyan));
  opacity: 0.7;
  animation: screenPulse 2.4s ease-in-out infinite;
}

.pc-screen-bars span:nth-child(1) { width: 38%; }
.pc-screen-bars span:nth-child(2) { width: 26%; animation-delay: 0.4s; }
.pc-screen-bars span:nth-child(3) { width: 18%; animation-delay: 0.8s; }

@keyframes screenPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.pc-screen-label {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pc-stand {
  width: 24px;
  height: 7px;
  background: #334155;
}

.pc-desk-surface {
  width: 94%;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Animated Employee Avatar at Desk */
.emp-seat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.emp-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--emp-accent, #fbbf24) 35%, #1e293b), #0b1222);
  border: 2px solid var(--emp-accent, var(--gold));
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  animation: workingBob 2.2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.desk-station.away-walking .emp-avatar-wrap {
  opacity: 0.25;
  animation: none;
}

@keyframes workingBob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-2.5px) rotate(-2deg); }
  75% { transform: translateY(-1.5px) rotate(2deg); }
}

.emp-num-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emp-accent, var(--gold));
  color: #060913;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.emp-meta {
  min-width: 0;
  flex: 1;
}

.emp-meta-name {
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emp-meta-role {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-status-chip {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: color-mix(in srgb, var(--emp-accent, #fbbf24) 16%, transparent);
  color: var(--emp-accent, var(--gold));
}

/* Walking Animated Character Layer */
.walkers-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.walker-agent {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 2.4s cubic-bezier(0.42, 0, 0.2, 1), top 2.4s cubic-bezier(0.42, 0, 0.2, 1), opacity 0.35s ease;
  transform: translate(-50%, -50%);
}

.walker-tag {
  background: rgba(6, 9, 19, 0.94);
  border: 1px solid var(--walker-color, var(--gold));
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.walker-body {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  border: 2.5px solid var(--walker-color, var(--gold));
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--walker-color, #fbbf24) 50%, transparent);
  animation: walkStep 0.45s ease-in-out infinite alternate;
}

@keyframes walkStep {
  from { transform: translateY(0px) rotate(-5deg); }
  to { transform: translateY(-5px) rotate(5deg); }
}

.motion-paused .emp-avatar-wrap,
.motion-paused .req-bubble,
.motion-paused .walker-body {
  animation-play-state: paused !important;
}

/* Live Ticker */
.live-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  background: rgba(6, 9, 19, 0.86);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}

.ticker-label {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.ticker-text {
  color: #e2e8f0;
  font-weight: 600;
}

/* Quick Roster Cards */
.quick-roster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-roster-header h3 {
  font-size: 16px;
}

.hint-text {
  font-size: 12px;
  color: var(--text-muted);
}

.quick-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.roster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--emp-accent, var(--gold));
  border-radius: var(--radius-md);
  padding: 13px 14px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.roster-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.roster-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.roster-card-bubble {
  font-size: 12px;
  background: rgba(6, 9, 19, 0.55);
  border-radius: 9px;
  padding: 7px 9px;
  color: #e2e8f0;
  border: 1px dashed rgba(251, 191, 36, 0.35);
}

/* Storefront */
.store-hero {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(244, 114, 182, 0.08), rgba(13, 20, 36, 0.92));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

.store-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  margin-bottom: 8px;
}

.store-hero h2 {
  font-size: 26px;
  font-weight: 900;
}

.store-hero p {
  color: var(--text-muted);
  margin: 6px 0 16px;
}

.store-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills, .stores-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stores-switcher {
  margin-bottom: 14px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--gold);
  color: #090d16;
  border-color: var(--gold);
}

.store-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--gold-soft);
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.product-visual {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 56px;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 9, 19, 0.82);
  color: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

.product-title {
  font-size: 16px;
  font-weight: 800;
}

.product-quality {
  font-size: 12.5px;
  color: var(--text-muted);
}

.product-colors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.product-price-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price-lyd {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
}

.price-pending {
  font-size: 12px;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  padding: 4px 9px;
  border-radius: 8px;
}

.price-usd-ceo {
  font-size: 11.5px;
  color: var(--emerald);
  font-weight: 700;
}

/* Shared Cards & Grids */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 20px;
}

.section-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.panel-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.muted-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.amber-tag { background: rgba(251, 191, 36, 0.16); color: var(--gold); }
.pink-tag { background: rgba(244, 114, 182, 0.16); color: var(--pink); }
.purple-tag { background: rgba(167, 139, 250, 0.16); color: var(--purple); }
.green-tag { background: rgba(52, 211, 153, 0.16); color: var(--emerald); }
.red-tag { background: rgba(251, 113, 133, 0.16); color: var(--crimson); }

/* Approvals */
.approvals-list, .challenges-list, .stack-cards, .mini-list, .audit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--gold);
  border-radius: 15px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.approval-card.status-approved { border-right-color: var(--emerald); opacity: 0.85; }
.approval-card.status-rejected { border-right-color: var(--crimson); opacity: 0.72; }

.approval-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.approval-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Forms & Calculator */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.form-row input, .form-row textarea, .form-row select {
  background: rgba(6, 9, 19, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.calc-result-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(6, 9, 19, 0.65);
  border: 1px solid var(--border-gold);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.calc-metric small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.calc-metric strong {
  font-size: 16px;
  color: var(--gold);
}

/* Challenge Arena */
.scoreboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  font-weight: 800;
  font-size: 13.5px;
}

.challenge-round-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px;
}

.challenge-round-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.challenge-vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.hunter-offer {
  background: rgba(6, 9, 19, 0.55);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hunter-offer.hunter-a { border-color: rgba(52, 211, 153, 0.45); }
.hunter-offer.hunter-b { border-color: rgba(251, 113, 133, 0.45); }
.hunter-offer.is-winner {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}

.vs-divider {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--gold);
  padding: 0 6px;
}

.offer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 12px;
  margin: 4px 0;
}

.offer-stats span {
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  border-radius: 8px;
}

/* Studio / Trainer / Advisor Cards */
.sub-card {
  background: rgba(6, 9, 19, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 13px 14px;
}

.sub-card h4 {
  font-size: 14.5px;
  margin-bottom: 5px;
}

.sub-card ul {
  padding-right: 18px;
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 6px 0 10px;
}

.reference-box {
  background: rgba(6, 9, 19, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  font-family: 'Cairo', monospace;
  font-size: 12.5px;
  white-space: pre-wrap;
  max-height: 540px;
  overflow-y: auto;
  color: #e2e8f0;
}

.audit-item {
  background: rgba(6, 9, 19, 0.55);
  border-right: 3px solid var(--gold);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.audit-item small {
  color: var(--text-muted);
  display: block;
}

/* Slide-Over Employee Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 18, 0.68);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.employee-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(460px, 94vw);
  background: #0c1324;
  border-right: 1.5px solid var(--border-gold);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.65);
  z-index: 100;
  transform: translateX(-104%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.employee-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
}

.drawer-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-section {
  background: rgba(6, 9, 19, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 13px;
}

.drawer-section h4 {
  font-size: 13.5px;
  color: var(--gold);
  margin-bottom: 7px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #101a30;
  border: 1px solid var(--border-gold);
  color: #f8fafc;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: fadeSlide 0.22s ease;
}

/* Desktop PIN Modal & Synced Chat */
.ceo-pin-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.92);
  backdrop-filter: blur(10px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ceo-pin-box {
  width: min(400px, 94vw);
  background: #0d1527;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.desktop-chat-feed {
  background: rgba(6, 9, 19, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.d-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13px;
  white-space: pre-wrap;
}

.d-msg.ceo {
  align-self: flex-start;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid var(--border-gold);
}

.d-msg.hq, .d-msg.system {
  align-self: flex-end;
  background: #142038;
  border: 1px solid var(--border-subtle);
}

.d-url-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #060913;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12.5px;
  direction: ltr;
}

/* Responsive */
@media (max-width: 1120px) {
  .desk-station.emp-1,
  .desk-station.emp-2,
  .desk-station.emp-3,
  .desk-station.emp-4,
  .desk-station.emp-5,
  .desk-station.emp-6,
  .desk-station.emp-7 {
    grid-column: span 6;
  }
  .vs-floor-badge { display: none; }
}

@media (max-width: 820px) {
  .ceo-zone, .two-col-grid, .challenge-vs-grid {
    grid-template-columns: 1fr;
  }
  .desk-station.emp-1,
  .desk-station.emp-2,
  .desk-station.emp-3,
  .desk-station.emp-4,
  .desk-station.emp-5,
  .desk-station.emp-6,
  .desk-station.emp-7 {
    grid-column: span 12;
  }
  .vs-divider { padding: 4px 0; }
}
