/* ==========================================================================
   ICEE STYLE.CSS - Modern Indian Election Explorer Design System
   ========================================================================== */

/* Design System Variables */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(20, 28, 48, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(255, 255, 255, 0.18);

  /* Indian Tricolor & Aesthetic Accents */
  --saffron: #ff9933;
  --saffron-glow: rgba(255, 153, 51, 0.35);
  --emerald: #128807;
  --emerald-glow: rgba(18, 136, 7, 0.35);
  --accent-blue: #000080;
  /* Ashoka Chakra Deep Navy Blue */
  --accent-cyan: #00d2ff;
  --accent-yellow: #ffd700;

  /* Text and States */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --error-red: #ef4444;
  --error-red-glow: rgba(239, 68, 68, 0.35);
  --success-green: #22c55e;

  /* Layout */
  --sidebar-width: 280px;
  --header-height: 80px;
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Base Reset & Core Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 153, 51, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(18, 136, 7, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.02) 0%, transparent 60%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

button,
select,
input {
  font-family: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Surface Helpers */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-active);
}

/* Main Layout Grid */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: rgba(10, 15, 28, 0.95);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 8px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--saffron), #fff, var(--emerald));
  padding: 2px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.15), rgba(18, 136, 7, 0.05));
  color: var(--text-primary);
  border: 1px solid rgba(255, 153, 51, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-item.active svg {
  color: var(--saffron);
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(18, 136, 7, 0.7);
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 10px 4px rgba(18, 136, 7, 0);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(18, 136, 7, 0);
  }
}

/* Mobile Nav (Hidden by Default) */
.mobile-nav {
  display: none;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex-grow: 1;
  height: 100%;
  overflow-y: auto;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
  flex-shrink: 0;
}

.breadcrumb {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--saffron);
  font-weight: 700;
}

.main-header h2 {
  font-size: 26px;
  font-weight: 750;
  margin-top: 4px;
}

.time-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.time-widget svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
}

/* Views Management */
.content-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  animation-fill-mode: forwards;
}

.content-view.active {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation-name: fadeSlideUp;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), #ffaa44);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-red), #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 15px var(--error-red-glow);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW 1: HOME/DASHBOARD VIEW
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.85) 0%, rgba(10, 15, 28, 0.75) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.04) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-top: 15px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.pill-saffron {
  background: rgba(255, 153, 51, 0.12);
  border: 1px solid rgba(255, 153, 51, 0.3);
  color: var(--saffron);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tricolor-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ring-saffron,
.ring-white,
.ring-green {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: rotate-ring 8s linear infinite;
}

.ring-saffron {
  width: 100%;
  height: 100%;
  border-top-color: var(--saffron);
}

.ring-white {
  width: 82%;
  height: 82%;
  border-right-color: #ffffff;
  animation-duration: 6s;
  animation-direction: reverse;
}

.ring-green {
  width: 64%;
  height: 64%;
  border-bottom-color: var(--emerald);
  animation-duration: 4s;
}

.ring-inner {
  width: 46%;
  height: 46%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.1);
}

.ring-inner svg {
  width: 38px;
  height: 38px;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Stats Cards Grid */
.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 3px solid var(--saffron);
  padding-left: 12px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stats-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.stats-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}

.stats-icon svg {
  width: 28px;
  height: 28px;
}

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

.text-white {
  color: #ffffff;
}

.text-green {
  color: var(--emerald);
}

.text-accent {
  color: var(--accent-cyan);
}

.stats-details {
  display: flex;
  flex-direction: column;
}

.stats-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-family-title);
}

.stats-unit {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stats-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--saffron);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: justify;
}

/* ==========================================================================
   VIEW 2: TIMELINE VIEW
   ========================================================================== */
.timeline-container {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-intro h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.timeline-intro p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 780px;
}

/* Horizontal stepper */
.timeline-stepper {
  position: relative;
  padding: 20px 0;
  margin-bottom: 10px;
}

.timeline-progress-bar {
  position: absolute;
  top: 36px;
  left: 50px;
  right: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  z-index: 1;
}

.timeline-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--saffron), var(--emerald));
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.step-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-node {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100px;
}

.node-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-family-title);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.step-node:hover .node-dot {
  border-color: rgba(255, 153, 51, 0.5);
  color: var(--text-primary);
}

.step-node.active .node-dot {
  border-color: var(--saffron);
  background: var(--saffron);
  color: #000;
  box-shadow: 0 0 15px var(--saffron-glow);
}

.step-node.completed .node-dot {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 0 15px var(--emerald-glow);
}

.node-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-align: center;
}

.step-node.active .node-label {
  color: var(--saffron);
}

.step-node.completed .node-label {
  color: var(--emerald);
}

/* Step content card detail */
.step-content-display {
  background: rgba(10, 15, 28, 0.6);
  border: 1px solid var(--border-glass-active);
  padding: 30px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.step-badge {
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.3);
  color: var(--saffron);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.step-header h3 {
  font-size: 22px;
}

.step-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
  margin-bottom: 30px;
}

.step-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14.5px;
  margin-bottom: 24px;
}

.mini-title {
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 20px;
  margin-bottom: 8px;
  position: relative;
  text-align: justify;
}

.step-list li:last-child {
  margin-bottom: 0;
}

.step-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--saffron);
}

.step-graphic-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.graphic-placeholder {
  height: 170px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Custom mini CSS graphics for phases */
.graphic-mic-mcc {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
  width: 60px;
}

.mic-base {
  width: 14px;
  height: 28px;
  background-color: var(--text-secondary);
  border-radius: 7px;
  position: relative;
}

.mic-base::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 4px;
  width: 6px;
  height: 8px;
  background: var(--text-muted);
}

.wave {
  position: absolute;
  border: 2px solid var(--saffron);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.wave-2 {
  width: 60px;
  height: 60px;
  animation-delay: 0.5s;
}

.pulse {
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.step-fun-fact {
  background: rgba(255, 153, 51, 0.04);
  border-left: 3px solid var(--saffron);
  padding: 12px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.step-fun-fact h5 {
  font-size: 12px;
  color: var(--saffron);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.step-fun-fact p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-navigation-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

/* ==========================================================================
   VIEW 3: EVM SIMULATOR VIEW
   ========================================================================== */
.evm-tabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.evm-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: var(--transition-smooth);
}

.evm-tab:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.evm-tab.active {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.08), rgba(0, 210, 255, 0.03));
  border-color: var(--saffron);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tab-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.evm-tab.active .tab-num {
  background: var(--saffron);
  color: #000;
  border-color: var(--saffron);
}

.tab-meta h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.tab-meta span {
  font-size: 10px;
  color: var(--text-muted);
}

.evm-tab-content {
  display: none;
  animation: fadeSlideUp 0.35s forwards;
}

.evm-tab-content.active {
  display: block;
}

/* Voting Subtab Layout */
.sim-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.device-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.device-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.devices-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Balloting Unit (BU) */
.balloting-unit {
  flex: 1.1;
  background: #ccd3de;
  border: 4px solid #9ba5b5;
  color: #1e293b;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  min-width: 320px;
}

.bu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #9ba5b5;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.bu-logo {
  font-family: var(--font-family-title);
  font-weight: 850;
  font-size: 11px;
  color: #475569;
  letter-spacing: 0.5px;
}

.bu-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indicator-label {
  font-size: 9px;
  font-weight: 700;
  color: #475569;
}

.indicator-led {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #475569;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.green-led.active {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.red-led.active {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation: buzzer-flash 0.5s infinite;
}

.candidates-ballot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Ballot Row */
.ballot-row {
  display: grid;
  grid-template-columns: 24px 35px 1fr 40px 45px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  gap: 10px;
  position: relative;
}

.ballot-row.nota-row {
  background: #f8fafc;
}

.c-num-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}

.c-symbol-img {
  font-size: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-meta-info {
  display: flex;
  flex-direction: column;
}

.c-name-lbl {
  font-size: 13px;
  font-weight: 750;
  color: #0f172a;
}

.c-party-lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

/* Red candidate light */
.c-led-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 0 auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.c-led-light.active {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Blue Vote Button */
.c-btn-blue {
  width: 36px;
  height: 24px;
  background: linear-gradient(to bottom, #2563eb, #1d4ed8);
  border: 1px solid #1e40af;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
}

.c-btn-blue:active {
  transform: scale(0.92);
  background: #1e40af;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.c-btn-blue:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* VVPAT Machine Box */
.vvpat-unit {
  flex: 0.9;
  min-width: 200px;
  background: #334155;
  border: 4px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.vvpat-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 1px;
}

.vvpat-glass-view {
  height: 200px;
  background: #0f172a;
  border-radius: 8px;
  border: 2px solid #1e293b;
  box-shadow: inset 0 5px 25px rgba(0, 0, 0, 0.8);
  padding: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Visual slip view */
.vvpat-paper-window {
  width: 140px;
  height: 100%;
  position: relative;
}

.vvpat-slip {
  width: 100%;
  background: #fdfdfd;
  color: #000;
  border: 1px solid #d1d5db;
  border-bottom: 2px dashed #9ca3af;
  padding: 12px;
  font-family: monospace;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: -210px;
  /* Hidden above */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vvpat-slip.printing {
  transform: translateY(220px);
  /* slide in to window */
}

.vvpat-slip.dropped {
  transform: translateY(450px);
  /* drop down and out */
  transition: transform 0.6s cubic-bezier(0.55, 0, 1, 0.45);
}

.slip-header {
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  color: #374151;
}

.slip-divider {
  border-bottom: 1px dashed #000;
  margin: 6px 0;
}

.slip-candidate-number {
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4px;
}

.slip-candidate-name {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.slip-candidate-symbol {
  font-size: 26px;
  text-align: center;
  margin: 4px 0;
}

.slip-party {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  color: #4b5563;
}

.slip-footer {
  font-size: 7px;
  color: #9ca3af;
  text-align: center;
  margin-top: 6px;
}

.vvpat-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vvpat-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.vvpat-led.busy {
  background: var(--saffron);
  box-shadow: 0 0 8px var(--saffron);
  animation: pulse-busy 1s infinite alternate;
}

.vvpat-led-label {
  font-size: 9px;
  color: var(--text-secondary);
}

@keyframes pulse-busy {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* Guide & Logs */
.instruction-box h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.step-guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  list-style-position: inside;
}

.step-guide-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.step-guide-list li.active {
  color: var(--text-primary);
  border-left: 3px solid var(--saffron);
  padding-left: 10px;
}

.step-guide-list li ul {
  list-style: circle;
  margin-left: 20px;
  margin-top: 4px;
}

.voting-log-console {
  background: #090d16;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 20px;
}

.console-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.console-entries {
  height: 75px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.console-entries .entry {
  color: var(--text-secondary);
}

.console-entries .select-entry {
  color: var(--accent-cyan);
}

.console-entries .success-entry {
  color: var(--success-green);
}

.interactive-stats-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 15px 20px;
}

.interactive-stats-box h5 {
  font-size: 13px;
  color: var(--text-secondary);
}

.live-cu-counter {
  font-size: 28px;
  font-weight: 850;
  color: var(--accent-yellow);
  font-family: var(--font-family-title);
}

/* ==========================================================================
   EVM SEALING SUB-TAB
   ========================================================================== */
.seal-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.seal-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 15px;
}

.seal-stage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stage-illustration {
  height: 120px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.seal-stage-card h4 {
  font-size: 16px;
  color: var(--saffron);
}

.seal-stage-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.strongroom-interactive-experience {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
}

.vault-panel {
  background: linear-gradient(135deg, rgba(18, 136, 7, 0.04), rgba(20, 28, 48, 0.7));
  border: 1px solid rgba(18, 136, 7, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
}

.vault-panel h4 {
  margin-bottom: 6px;
  color: #fff;
}

.vault-panel p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.monitors-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.status-indicator-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.green-dot {
  background-color: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}

/* ==========================================================================
   CU COUNTING SUB-TAB
   ========================================================================== */
.cu-counting-machine {
  background: #475569;
  border: 5px solid #1e293b;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  min-width: 320px;
}

.cu-model {
  font-family: var(--font-family-title);
  font-weight: 850;
  font-size: 10px;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 8px;
}

.cu-display-screen {
  background: #020617;
  border: 3px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.7);
  font-family: monospace;
}

.cu-screen-text {
  font-size: 16px;
  color: #22c55e;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
}

.cu-screen-text.text-yellow {
  color: var(--accent-yellow);
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.cu-panels-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Paper Sealing */
.cu-paper-seal-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-glass-active);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.paper-seal-strip {
  width: 100%;
  background: #fef08a;
  border: 1px solid #ca8a04;
  color: #854d0e;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
  gap: 4px;
  border-radius: 3px;
}

.agent-signatures {
  display: flex;
  gap: 15px;
  font-size: 8px;
  color: #a16207;
}

/* Control buttons compartment */
.cu-buttons-compartment {
  background: #334155;
  border: 2px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-smooth);
}

.cu-buttons-compartment.locked {
  opacity: 0.3;
  pointer-events: none;
}

.compartment-door-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 12px;
  text-align: center;
}

.compartment-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cu-btn-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.cu-close-btn {
  background: #3b82f6;
  color: #fff;
}

.cu-result-btn {
  background: #1e293b;
  color: #f1f5f9;
  border: 2px solid #475569;
}

.cu-result-btn:hover:not(:disabled) {
  background: #0f172a;
}

.cu-clear-btn {
  background: #e2e8f0;
  color: #1e293b;
}

.cu-btn-round:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Counting Day Protocol Steps */
.counting-steps {
  list-style-position: outside;
  padding-left: 20px;
  margin: 15px 0 20px 0;
}

.counting-steps li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.counting-steps li strong {
  color: var(--text-primary);
}

/* Counting Results Board */
.results-board {
  background: rgba(10, 15, 28, 0.7);
  padding: 20px;
  margin-top: 20px;
}

.results-board h5 {
  margin-bottom: 15px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
}

.results-table th {
  border-bottom: 1px solid var(--border-glass-active);
  color: var(--text-secondary);
}

.results-table td {
  border-bottom: 1px solid var(--border-glass);
}

.text-center {
  text-align: center;
}

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

.tally-chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}

.chart-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(to right, var(--saffron), var(--emerald));
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RANDOM VVPAT AUDIT SUB-TAB
   ========================================================================== */
.audit-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.audit-game-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.audit-booth-status-bar {
  background: rgba(255, 153, 51, 0.08);
  border: 1px solid rgba(255, 153, 51, 0.25);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 20px;
}

.comparison-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.comp-box {
  flex: 1;
  text-align: center;
  padding: 15px;
}

.comp-box h5 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.comp-value {
  font-size: 32px;
  font-weight: 850;
  color: #fff;
  font-family: var(--font-family-title);
  margin-bottom: 4px;
}

.comp-box span {
  font-size: 9px;
  color: var(--text-muted);
}

.comp-vs {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.audit-game-actions {
  display: flex;
  gap: 15px;
}

.audit-playfield {
  min-height: 280px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.playfield-cover-message {
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.playfield-cover-message svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.playfield-cover-message h4 {
  font-size: 16px;
}

.playfield-cover-message p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* Draggable / Sorting audit elements */
.audit-game-board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
  padding: 10px;
}

.board-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.slips-sorter-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sorter-column {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.column-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}

.slips-hopper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  justify-content: center;
  flex-grow: 1;
}

.audit-paper-slip {
  width: 70px;
  height: 90px;
  background: #ffffff;
  border: 1px solid #9ca3af;
  border-radius: 2px;
  padding: 6px;
  cursor: grab;
  user-select: none;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.audit-paper-slip:active {
  cursor: grabbing;
}

.audit-slip-symbol {
  font-size: 24px;
}

.audit-slip-meta {
  font-size: 7px;
  color: #374151;
  font-weight: 700;
}

/* ==========================================================================
   VIEW 4: ECI TECH & APPS VIEW
   ========================================================================== */
.tech-intro-banner {
  padding: 30px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(10, 15, 28, 0.8));
  border-color: rgba(0, 210, 255, 0.15);
}

.tech-intro-banner h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.tech-intro-banner p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.tech-tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 2px;
}

.tech-subtab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.tech-subtab:hover {
  color: var(--text-primary);
}

.tech-subtab.active {
  border-bottom-color: var(--saffron);
  color: var(--saffron);
}

.tech-tab-panel {
  display: none;
  animation: fadeSlideUp 0.35s forwards;
}

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

/* Mock Phone Frame */
.mock-phone {
  width: 290px;
  height: 520px;
  background: #0f172a;
  border: 10px solid #1e293b;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #090d16;
  border: 1px solid #334155;
  overflow: hidden;
}

.cvigil-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.app-title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.app-badge {
  font-size: 7px;
  background: rgba(255, 153, 51, 0.15);
  color: var(--saffron);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.cvigil-app-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
}

.cvigil-app-body h5 {
  font-size: 13px;
  font-weight: 800;
}

.app-instruction {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.cv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  padding: 0;
}

.cv-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
  text-align: justify;
}

.cv-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success-green);
  font-weight: bold;
}

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

.form-group label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--saffron);
  background: rgba(255, 255, 255, 0.06);
}

select.form-control option {
  background-color: var(--bg-main);
  color: #fff;
}

.mock-camera-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mock-camera-btn:hover {
  border-color: var(--saffron);
  background: rgba(255, 255, 255, 0.04);
}

.mock-camera-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.mock-camera-btn span {
  font-size: 9px;
  color: var(--text-muted);
}

.mock-camera-btn.attached {
  border-color: var(--success-green);
  background: rgba(34, 197, 94, 0.05);
}

.mock-camera-btn.attached svg {
  color: var(--success-green);
}

.mock-camera-btn.attached span {
  color: var(--success-green);
}

.tracker-success-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-green);
  margin: 15px auto 5px;
}

.tracker-success-icon svg {
  width: 22px;
  height: 22px;
}

.case-id {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  font-family: monospace;
  margin-bottom: 12px;
}

.live-tracker-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tracker-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tracker-timer {
  font-size: 20px;
  font-weight: 850;
  text-align: center;
  color: var(--accent-cyan);
  font-family: monospace;
}

.progress-bar-cv {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill-cv {
  height: 100%;
  background: var(--accent-cyan);
  width: 100%;
}

.audit-logs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}

.log-line {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* KYC Mock Portal styling */
.kyc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  margin-top: 15px;
}

.kyc-sidebar {
  border-right: 1px solid var(--border-glass);
  padding-right: 15px;
}

.kyc-sidebar h5 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.candidate-kyc-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kyc-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.kyc-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.kyc-item.active {
  border-color: var(--saffron);
  background: rgba(255, 153, 51, 0.08);
}

.kyc-item h6 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.kyc-item span {
  font-size: 9px;
  color: var(--text-muted);
}

.kyc-profile-display {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass-active);
  padding: 24px;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.profile-meta-title h4 {
  font-size: 20px;
  font-weight: 750;
}

.profile-meta-title p {
  font-size: 12px;
  color: var(--saffron);
  font-weight: 600;
}

.profile-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 15px;
  border-radius: var(--radius-md);
}

.profile-block h5 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-block .block-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.profile-block .block-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.badge-red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--error-red);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--success-green);
  color: var(--success-green);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-block;
}

/* Home Voting tab */
.hv-step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hv-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #000;
}

.saffron-glow {
  background: var(--saffron);
  box-shadow: 0 0 10px var(--saffron-glow);
}

.white-glow {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.green-glow {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
  color: #fff;
}

.accent-glow {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.home-voting-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.hv-step-card h4 {
  font-size: 14px;
  color: #fff;
}

.hv-step-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: justify;
}

.hv-video-explanation {
  margin-top: 35px;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
}

.hv-video-explanation blockquote {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--saffron);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* ==========================================================================
   VIEW 5: SMART VOTER TOOLKIT VIEW
   ========================================================================== */
.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.toolkit-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolkit-panel h3 {
  font-size: 22px;
}

.toolkit-panel p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Eligibility Checker Wizard */
.eligibility-wizard {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass-active);
  padding: 24px;
  border-radius: var(--radius-md);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.wizard-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--saffron), var(--emerald));
  width: 25%;
  transition: var(--transition-smooth);
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideUp 0.35s forwards;
}

.wizard-step.active {
  display: flex;
}

.wizard-step h5 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.wizard-step p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  text-align: justify;
}

.wizard-btns {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.wizard-btns.flex-col {
  flex-direction: column;
}

.outcome-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.action-link {
  font-size: 12.5px;
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
  display: block;
}

.forms-guide {
  background: rgba(255, 255, 255, 0.01);
  padding: 20px;
}

.form-item-guide {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-glass);
}

.form-item-guide:last-child {
  border-bottom: none;
}

/* Quiz Box styling */
.quiz-box {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-progress-bar-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5px;
}

.quiz-bar-fill {
  height: 100%;
  background: var(--saffron);
  width: 20%;
  transition: var(--transition-smooth);
}

.quiz-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.quiz-header h4 {
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-smooth);
  width: 100%;
  outline: none;
}

.quiz-opt-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.quiz-opt-btn.correct-ans {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--success-green);
  color: var(--success-green);
  pointer-events: none;
}

.quiz-opt-btn.wrong-ans {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--error-red);
  color: #ef4444;
  pointer-events: none;
}

.quiz-opt-btn.disabled-btn {
  pointer-events: none;
  opacity: 0.6;
}

.quiz-feedback-box {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#feedback-status {
  font-size: 13px;
  font-weight: 700;
}

.correct-feed {
  color: var(--success-green);
}

.wrong-feed {
  color: #ef4444;
}

#feedback-explanation {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 4px 0;
  text-align: justify;
}

/* Certificate Display */
.quiz-certificate-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.badge-icon {
  margin: 10px 0;
}

.gold-seal {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  border: 4px double #fef08a;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 850;
  font-size: 8px;
  text-transform: uppercase;
}

.gold-seal span:first-child {
  font-size: 9px;
  margin-bottom: 2px;
}

.badge-voter-details {
  width: 100%;
  max-width: 260px;
  text-align: left;
}

.badge-buttons {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile UI Shift)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .sim-grid {
    grid-template-columns: 1fr;
  }

  .devices-layout {
    flex-direction: column;
    align-items: center;
  }

  .balloting-unit {
    width: 100%;
  }

  .vvpat-unit {
    width: 100%;
    max-width: 320px;
  }

  .timeline-stepper {
    overflow-x: auto;
    padding-bottom: 30px;
  }

  .step-nodes {
    width: 700px;
    /* Force spacing for scroll */
  }

  .timeline-progress-bar {
    width: 600px;
    left: 50px;
    right: auto;
  }

  .step-body-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .kyc-layout {
    grid-template-columns: 1fr;
  }

  .kyc-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding-right: 0;
    padding-bottom: 15px;
  }

  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .audit-game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    display: none;
    /* Hide desktop sidebar */
  }

  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    background: rgba(10, 15, 28, 0.96);
    border-top: 1px solid var(--border-glass);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
  }

  .mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
  }

  .mobile-nav-item.active {
    color: var(--saffron);
    background: rgba(255, 153, 51, 0.08);
  }

  .main-content {
    padding: 20px 20px 84px;
    /* Room for bottom bar */
  }

  .main-header {
    height: auto;
    padding-top: 10px;
  }

  .evm-tabs-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-btns {
    flex-direction: column;
  }

  /* Mobile Chat Adjustments */
  .chat-container {
    height: calc(100vh - var(--header-height) - 150px);
  }

  .msg-bubble {
    max-width: 90%;
  }

  .suggest-chips-wrapper {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }

  .suggest-chip {
    white-space: nowrap;
  }

  /* Mobile Tech Tabs Adjustments */
  .tech-tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .tech-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tech-subtab {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 12px;
  }

  /* Timeline Navigation mobile adjustments */
  .step-navigation-actions {
    gap: 12px;
    justify-content: center;
    padding-top: 15px !important;
  }

  .step-navigation-actions .btn {
    padding: 8px 14px;
    font-size: 12.5px;
    flex: 1;
    min-height: 38px;
  }

  /* Counting & Results Table Mobile Adjustments */
  .instruction-box h4 {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }

  .instruction-box p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .counting-steps {
    padding-left: 18px !important;
    margin: 12px 0 15px 0 !important;
  }

  .counting-steps li {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  .results-board {
    padding: 12px !important;
    margin-top: 15px !important;
  }

  .results-board h5 {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  .results-table th,
  .results-table td {
    padding: 8px 8px !important;
    font-size: 11px !important;
  }
}

/* LED Buzzer flash helper */
@keyframes buzzer-flash {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* ==========================================================================
   VIEW 1.5: DEMOCRACY AI CHATBOT STYLES [NEW]
   ========================================================================== */
#chatbot-view.content-view.active {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  /* Secure a tall stable display viewport on desktop */
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 15, 28, 0.4);
  border-bottom: 1px solid var(--border-glass);
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-avatar {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 153, 51, 0.1);
}

.bot-status-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--emerald);
  animation: pulse-glow 2s infinite;
}

.chat-feed {
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
  /* Allows feed to shrink to fit container, keeping input panel fully visible */
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(9, 13, 22, 0.2);
}

/* Chat Bubbles */
.msg-bubble {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: msg-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msg-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 4px;
}

.msg-text {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Bot Message specific details */
.bot-msg {
  align-self: flex-start;
}

.bot-msg .msg-text {
  background: rgba(20, 28, 48, 0.85);
  border: 1px solid var(--border-glass);
  border-left: 3.5px solid var(--saffron);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

/* User Message specific details */
.user-msg {
  align-self: flex-end;
}

.user-msg .msg-meta {
  text-align: right;
}

.user-msg .msg-text {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.2);
}

/* Suggested chips styling */
.chat-suggestions {
  padding: 14px 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 15, 28, 0.2);
}

.suggest-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.suggest-chips-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
}

.suggest-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.suggest-chip:hover {
  border-color: var(--saffron);
  color: #fff;
  background: rgba(255, 153, 51, 0.06);
  transform: translateY(-1.5px);
}

/* Input area */
.chat-input-panel {
  padding: 20px 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 15, 28, 0.4);
}

.chat-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input-field {
  flex-grow: 1;
  padding: 12px 18px;
  font-size: 13.5px;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  color: #fff !important;
  transition: var(--transition-smooth);
}

.chat-input-field:focus {
  border-color: var(--saffron) !important;
  box-shadow: 0 0 10px rgba(255, 153, 51, 0.1) !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

.chat-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Bouncing typing dots animation */
.typing-indicator-wrapper {
  align-self: flex-start;
  max-width: 75%;
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: rgba(20, 28, 48, 0.85);
  border: 1px solid var(--border-glass);
  border-left: 3.5px solid var(--saffron);
  border-radius: var(--radius-lg);
  border-top-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Extreme Responsiveness & Overflow Protection (Mobile Screens under 480px) */
@media (max-width: 480px) {

  /* Reduce content area margins and paddings globally */
  .main-content {
    padding: 12px 12px 84px;
    /* Tighter padding for mobile scroll */
    gap: 20px;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
  }

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

  /* Compact cards */
  .glass-card {
    padding: 14px !important;
  }

  .hero-section {
    padding: 20px 14px !important;
  }

  .hero-section h2 {
    font-size: 24px !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* Compact Stats Cards */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Force nice 2-column layout */
    gap: 10px !important;
  }

  .stats-card {
    padding: 10px !important;
    gap: 8px !important;
  }

  .stats-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  .stats-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .stats-number {
    font-size: 20px !important;
  }

  .stats-unit {
    font-size: 10px !important;
  }

  .stats-label {
    font-size: 8px !important;
  }

  /* Prevent EVM overflows */
  .balloting-unit {
    min-width: 260px !important;
    padding: 12px !important;
  }

  .ballot-row {
    grid-template-columns: 20px 24px 1fr 24px 36px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  .c-name-lbl {
    font-size: 11px !important;
  }

  .c-party-lbl {
    font-size: 8px !important;
  }

  .c-btn-blue {
    width: 32px !important;
    height: 20px !important;
  }

  .vvpat-unit {
    max-width: 100% !important;
  }

  /* Audit game column stacking & text overflows */
  .comparison-flex {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .comp-box {
    padding: 10px !important;
  }

  .comp-value {
    font-size: 24px !important;
  }

  .audit-game-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .slips-sorter-workspace {
    grid-template-columns: 1fr !important;
    /* Stack columns */
  }

  /* KYC detail profile grids */
  .profile-body-grid {
    grid-template-columns: 1fr !important;
    /* Stack vertically to prevent clipping */
    gap: 10px !important;
  }

  .profile-block {
    padding: 10px !important;
  }

  /* Toolkit and Quiz adjustments */
  .toolkit-grid {
    gap: 20px !important;
  }

  .quiz-box {
    padding: 14px !important;
  }

  .quiz-opt-btn {
    font-size: 11.5px !important;
    padding: 10px 12px !important;
  }

  /* Compact Chatbot dimensions and paddings */
  .chat-container {
    height: calc(100vh - var(--header-height) - 130px) !important;
  }

  .chat-header {
    padding: 10px 14px !important;
  }

  .bot-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
  }

  .chat-feed {
    padding: 12px !important;
    gap: 10px !important;
  }

  .msg-bubble {
    max-width: 95% !important;
  }

  .msg-text {
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }

  .chat-suggestions {
    padding: 8px 12px !important;
  }

  .chat-input-panel {
    padding: 12px 8px !important;
  }

  .chat-input-row {
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
  }

  .chat-input-field {
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }

  #btn-send-chat {
    padding: 10px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #btn-send-chat span {
    display: none !important;
    /* Hide "Send" text on mobile screens to prevent horizontal overflow */
  }

  #btn-send-chat svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }

  .chat-disclaimer {
    font-size: 9px !important;
    margin-top: 6px !important;
    line-height: 1.3 !important;
  }

  /* Compact Timeline Navigation mobile adjustments */
  .step-navigation-actions {
    gap: 10px !important;
  }

  .step-navigation-actions .btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Counting & Results Table Extra Compact Overrides */
  .instruction-box h4 {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  .instruction-box p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  .counting-steps {
    padding-left: 14px !important;
    margin: 10px 0 12px 0 !important;
  }

  .counting-steps li {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .results-board {
    padding: 8px !important;
    margin-top: 10px !important;
  }

  .results-board h5 {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .results-table th,
  .results-table td {
    padding: 6px 3px !important;
    font-size: 9.5px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .chart-bar-label {
    font-size: 10px !important;
  }

  .tally-chart-container {
    gap: 8px !important;
  }

  .chart-bar-row {
    gap: 3px !important;
  }
}
