/* ==========================================================================
   NEXUS LIFE OS | EXECUTIVE DASHBOARD STYLESHEET
   Theme: Cyber-Luxury Dark Neon (Emerald Green & Neon Gold)
   Tech Stack: Pure Modern CSS3 with Variables, Glassmorphism & Keyframe FX
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121c;
  --bg-tertiary: #131b29;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-hover: rgba(23, 32, 51, 0.85);
  --bg-glass-overlay: rgba(8, 12, 20, 0.88);

  /* Neon Accents */
  --neon-emerald: #00ff9d;
  --neon-emerald-dim: rgba(0, 255, 157, 0.15);
  --neon-emerald-glow: rgba(0, 255, 157, 0.35);
  --neon-emerald-strong: #05f190;
  
  --neon-gold: #ffd700;
  --neon-gold-dim: rgba(255, 215, 0, 0.15);
  --neon-gold-glow: rgba(255, 215, 0, 0.35);
  --neon-gold-dark: #b89700;

  --neon-cyan: #00e5ff;
  --neon-cyan-dim: rgba(0, 229, 255, 0.15);
  --neon-cyan-glow: rgba(0, 229, 255, 0.35);

  --neon-purple: #c084fc;
  --neon-purple-dim: rgba(192, 132, 252, 0.15);

  --neon-danger: #ff4757;
  --neon-danger-dim: rgba(255, 71, 87, 0.15);

  /* Neutrals & Text */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 255, 157, 0.4);

  /* Layout & Sizing */
  --sidebar-width: 290px;
  --topbar-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows & Glows */
  --glow-emerald-box: 0 0 25px rgba(0, 255, 157, 0.22);
  --glow-gold-box: 0 0 25px rgba(255, 215, 0, 0.22);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* --- RESET & GLOBAL SETTINGS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body.dark-neon-theme {
  font-family: 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Ambient Glow Background Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

.orb-emerald {
  width: 500px;
  height: 500px;
  background: var(--neon-emerald);
  top: -100px;
  left: 20%;
  animation: orbDrift 20s infinite alternate ease-in-out;
}

.orb-gold {
  width: 450px;
  height: 450px;
  background: var(--neon-gold);
  bottom: 10%;
  right: 5%;
  animation: orbDrift 24s infinite alternate-reverse ease-in-out;
}

.orb-cyan {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  top: 40%;
  left: -100px;
  animation: orbDrift 18s infinite alternate ease-in-out;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 157, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-emerald);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Mobile Topbar (Hidden on Desktop) */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: rgba(13, 18, 28, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.menu-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--neon-emerald);
  font-size: 1.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.menu-toggle-btn:hover {
  border-color: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  padding: 1.5rem 1.25rem;
  transition: var(--transition-normal);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), rgba(255, 215, 0, 0.15));
  border: 1px solid var(--neon-emerald);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-emerald);
  font-size: 1.4rem;
  box-shadow: 0 0 15px var(--neon-emerald-glow);
}

.logo-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.system-status {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulseGlow 2s infinite ease-in-out;
}

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

.close-sidebar-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.4rem 0;
  padding: 0.75rem 0.9rem;
  background: rgba(18, 25, 40, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.user-profile-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--neon-emerald), var(--neon-gold));
}

.avatar-container {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  color: #050505;
  font-size: 0.95rem;
}

.user-meta .user-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-role {
  font-size: 0.65rem;
  background: var(--neon-emerald-dim);
  color: var(--neon-emerald);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.user-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Navigation List */
.sidebar-nav {
  flex: 1;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  padding-left: 0.4rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
}

.nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  transition: var(--transition-fast);
}

.nav-text {
  flex: 1;
}

.nav-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

.nav-badge.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); }
.nav-badge.gold { background: var(--neon-gold-dim); color: var(--neon-gold); }
.nav-badge.purple { background: var(--neon-purple-dim); color: var(--neon-purple); }
.nav-badge.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); }

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.14), rgba(255, 215, 0, 0.05));
  color: #ffffff;
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.1);
}

.nav-link.active .nav-icon {
  color: var(--neon-emerald);
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--neon-emerald-glow));
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.quick-system-card {
  background: rgba(18, 25, 40, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.8rem;
}

.quick-sys-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.sys-percent {
  color: var(--neon-gold);
}

.sys-subtext {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 1.8rem 2.2rem 3.5rem;
  min-height: 100vh;
  transition: var(--transition-normal);
}

/* Top Action Bar */
.top-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.top-action-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-emerald), var(--neon-gold), transparent);
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 25, 40, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.language-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-pill.active {
  color: var(--neon-emerald);
}

.lang-divider {
  color: var(--text-dim);
}

/* ==========================================================================
   GLASSMORPHISM & CORE CARDS
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Glowing Border Modifiers */
.border-glow-emerald {
  border-color: rgba(0, 255, 157, 0.22);
}
.border-glow-emerald:hover {
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.14);
}

.border-glow-gold {
  border-color: rgba(255, 215, 0, 0.22);
}
.border-glow-gold:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.14);
}

.border-glow-cyan {
  border-color: rgba(0, 229, 255, 0.22);
}
.border-glow-cyan:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.14);
}

.border-glow-purple {
  border-color: rgba(192, 132, 252, 0.22);
}

/* Tab Panes Visibility */
.content-tab-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

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

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

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */
.dashboard-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.dashboard-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.col-span-2 {
  grid-column: span 2;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.4rem; }
.mb-2 { margin-bottom: 0.6rem; }

/* Stat Cards */
.stat-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-icon-badge.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); }
.stat-icon-badge.gold { background: var(--neon-gold-dim); color: var(--neon-gold); }
.stat-icon-badge.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); }
.stat-icon-badge.purple { background: var(--neon-purple-dim); color: var(--neon-purple); }

.stat-value-group {
  margin-bottom: 0.8rem;
}

.stat-number {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.stat-progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* Generic Content Card */
.content-card {
  padding: 1.6rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-icon.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); border: 1px solid rgba(0, 255, 157, 0.3); }
.card-icon.gold { background: var(--neon-gold-dim); color: var(--neon-gold); border: 1px solid rgba(255, 215, 0, 0.3); }
.card-icon.purple { background: var(--neon-purple-dim); color: var(--neon-purple); border: 1px solid rgba(192, 132, 252, 0.3); }
.card-icon.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ar-badge {
  font-family: 'Cairo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-gold);
  background: var(--neon-gold-dim);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Progress Bars */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.emerald {
  background: linear-gradient(90deg, #10b981, var(--neon-emerald));
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.progress-bar-fill.gold {
  background: linear-gradient(90deg, #f59e0b, var(--neon-gold));
  box-shadow: 0 0 10px var(--neon-gold-glow);
}

.progress-bar-fill.progress-gradient {
  background: linear-gradient(90deg, var(--neon-emerald), var(--neon-gold));
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.btn-neon {
  background: var(--neon-emerald);
  color: #030806;
  font-weight: 700;
  box-shadow: 0 0 15px var(--neon-emerald-glow);
}
.btn-neon:hover {
  background: var(--neon-emerald-strong);
  box-shadow: 0 0 22px rgba(0, 255, 157, 0.6);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--neon-gold);
  color: #0a0801;
  font-weight: 700;
  box-shadow: 0 0 15px var(--neon-gold-glow);
}
.btn-gold:hover {
  background: #ffe347;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

.btn-neon-outline {
  background: transparent;
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
}
.btn-neon-outline:hover {
  background: var(--neon-emerald-dim);
  box-shadow: 0 0 15px var(--neon-emerald-glow);
}

.btn-outline-cyan {
  background: transparent;
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.btn-outline-cyan:hover {
  background: var(--neon-cyan-dim);
}

.btn-outline-emerald {
  background: transparent;
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-pill.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); border: 1px solid rgba(0, 255, 157, 0.25); }
.badge-pill.gold { background: var(--neon-gold-dim); color: var(--neon-gold); border: 1px solid rgba(255, 215, 0, 0.25); }
.badge-pill.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); border: 1px solid rgba(0, 229, 255, 0.25); }

/* Text Color Classes */
.text-neon { color: var(--neon-emerald); }
.text-gold { color: var(--neon-gold); }
.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.text-danger { color: var(--neon-danger); }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 0.85rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 18, 28, 0.4);
}

.data-table td {
  padding: 0.95rem 1rem;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-btn-delete {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.table-btn-delete:hover {
  color: var(--neon-danger);
  background: var(--neon-danger-dim);
}

/* ==========================================================================
   SECTION 1: HEALTH & FITNESS SPECIFICS
   ========================================================================== */
.macro-gauges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.9rem;
  background: rgba(13, 18, 28, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.macro-pill {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.macro-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.macro-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.macro-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}
.macro-protein { background: var(--neon-emerald); }
.macro-carbs { background: var(--neon-gold); }
.macro-fats { background: var(--neon-purple); }

.step-counter-widget {
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.step-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.step-actions {
  display: flex;
  gap: 0.5rem;
}

/* Chart Canvas Container */
.chart-container-box {
  position: relative;
  height: 240px;
  width: 100%;
  margin: 1rem 0;
}

.weight-milestone-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.m-val {
  font-size: 0.98rem;
  font-weight: 700;
}

/* Pill Tabs (Workout Split) */
.pill-tabs {
  display: flex;
  background: rgba(13, 18, 28, 0.7);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.pill-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-tab:hover {
  color: var(--text-main);
}

.pill-tab.active {
  background: var(--neon-gold);
  color: #000;
  box-shadow: 0 0 10px var(--neon-gold-glow);
}

.workout-table .checkbox-cell {
  text-align: center;
}

.workout-check {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-emerald);
  cursor: pointer;
}

/* ==========================================================================
   SECTION 2: FINANCE & THNDR
   ========================================================================== */
.neon-balance-hero {
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.balance-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}

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

.balance-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.currency-symbol {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dim);
}

.balance-huge {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 0 20px var(--neon-gold-glow);
}

.balance-trend.up {
  color: var(--neon-emerald);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--neon-emerald-dim);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.balance-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.balance-stats-subgrid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.balance-mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: rgba(13, 18, 28, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.b-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-val {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Thndr Investment Strip */
.investment-tags-strip {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.fund-tag-badge {
  flex: 1;
  min-width: 160px;
  padding: 0.85rem;
  background: rgba(13, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--transition-fast);
}

.fund-tag-badge.active, .fund-tag-badge:hover {
  border-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.fund-code {
  font-weight: 800;
  font-size: 1rem;
  color: var(--neon-gold);
}

.fund-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fund-yield {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
}

.asset-cell {
  display: flex;
  flex-direction: column;
}

.asset-symbol {
  font-weight: 800;
  font-size: 0.95rem;
}
.asset-symbol.gold { color: var(--neon-gold); }
.asset-symbol.emerald { color: var(--neon-emerald); }
.asset-symbol.cyan { color: var(--neon-cyan); }

.asset-full {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tag-status.success {
  color: var(--neon-emerald);
  background: var(--neon-emerald-dim);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

.investment-summary-box {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(13, 18, 28, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.inv-metric {
  display: flex;
  flex-direction: column;
}

.inv-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inv-val {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ==========================================================================
   SECTION 3: SIDE HUSTLE & AI CONTENT
   ========================================================================== */
.milestone-hero {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.milestone-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem;
}

.milestone-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* Milestone Roadmap Line */
.milestone-tiers {
  display: flex;
  align-items: center;
  margin-top: 1.8rem;
  width: 100%;
}

.tier-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.tier-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tier-node.done .tier-dot {
  background: var(--neon-emerald);
  border-color: var(--neon-emerald);
  color: #000;
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.tier-node.current .tier-dot {
  background: var(--neon-gold);
  border-color: var(--neon-gold);
  color: #000;
  box-shadow: 0 0 15px var(--neon-gold);
}

.pulse-gold {
  animation: pulseGoldAnim 1.8s infinite ease-in-out;
}

@keyframes pulseGoldAnim {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--neon-gold); }
  50% { transform: scale(1.15); box-shadow: 0 0 20px var(--neon-gold); }
}

.tier-title {
  font-size: 0.78rem;
  font-weight: 700;
}

.tier-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.tier-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 8px;
  margin-bottom: 24px;
}

.tier-line.done {
  background: var(--neon-emerald);
}

.tier-line.active {
  background: linear-gradient(90deg, var(--neon-emerald), var(--neon-gold));
}

/* Radial Progress SVG */
.milestone-circle-wrap {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.radial-fill {
  fill: none;
  stroke: var(--neon-gold);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 6px var(--neon-gold-glow));
}

.radial-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-percent {
  font-size: 1.25rem;
  font-weight: 900;
}

.radial-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Platform Filter Chips */
.platform-chips-filter {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.plat-chip {
  background: rgba(13, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.plat-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.plat-chip.active {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
}

/* Schedule List */
.schedule-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.schedule-item-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.schedule-meta-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.plat-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.schedule-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.schedule-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.schedule-status-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.schedule-status-badge.planned { background: var(--neon-cyan-dim); color: var(--neon-cyan); }
.schedule-status-badge.scripting { background: var(--neon-gold-dim); color: var(--neon-gold); }
.schedule-status-badge.published { background: var(--neon-emerald-dim); color: var(--neon-emerald); }

/* Quick Prompt Input Box */
.quick-prompt-input-box {
  background: rgba(13, 18, 28, 0.6);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
}

.prompt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

/* Stored AI Prompts */
.stored-prompts-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 360px;
  overflow-y: auto;
}

.prompt-vault-card {
  background: rgba(13, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  transition: var(--transition-fast);
}

.prompt-vault-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.08);
}

.prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.tool-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}
.tool-tag.veo { background: rgba(0, 229, 255, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.tool-tag.sora { background: rgba(192, 132, 252, 0.15); color: var(--neon-purple); border: 1px solid rgba(192, 132, 252, 0.3); }
.tool-tag.eleven { background: rgba(0, 255, 157, 0.15); color: var(--neon-emerald); border: 1px solid rgba(0, 255, 157, 0.3); }

.prompt-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  margin: 0.4rem 0;
  white-space: pre-wrap;
  max-height: 80px;
  overflow-y: auto;
}

.prompt-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ==========================================================================
   SECTION 4: STUDY & MECHATRONICS
   ========================================================================== */
.timetable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.timetable-card {
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--neon-cyan);
}

.day-tag {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
}

.subject-entry {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--text-dim);
}

.subject-entry.highlight-gold {
  border-left-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.04);
}

.subject-entry.highlight-emerald {
  border-left-color: var(--neon-emerald);
  background: rgba(0, 255, 157, 0.04);
}

.subject-title {
  font-weight: 700;
  font-size: 0.86rem;
}

.subject-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* German Habit List */
.habit-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.habit-item {
  padding: 0.8rem 0.9rem;
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.habit-item:hover {
  border-color: rgba(0, 255, 157, 0.25);
}

.custom-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-dim);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-checkbox-wrap input[type="checkbox"]:checked ~ .checkmark {
  background: var(--neon-emerald);
  border-color: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

.custom-checkbox-wrap input[type="checkbox"]:checked ~ .checkmark::after {
  content: '✓';
  color: #000;
  font-size: 0.78rem;
  font-weight: 900;
}

.habit-text {
  font-size: 0.86rem;
  font-weight: 600;
  display: block;
}

.habit-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
}

.streak-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
}

/* GPA Summary Badges */
.gpa-summary-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gpa-badge-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 18, 28, 0.7);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.gpa-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.gpa-score {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   SECTION 5: GRADUATION PROJECT
   ========================================================================== */
.grad-hero {
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.grad-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem;
}

.grad-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 620px;
}

.grad-metrics {
  display: flex;
  gap: 1.4rem;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.metric-block .m-val {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}

.metric-block .m-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Hardware Checklist Container */
.hw-checklist-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hw-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  background: rgba(13, 18, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.hw-item-card:hover {
  border-color: rgba(0, 255, 157, 0.3);
}

.hw-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hw-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.hw-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hw-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.hw-status-badge.ready { background: var(--neon-emerald-dim); color: var(--neon-emerald); }
.hw-status-badge.progress { background: var(--neon-gold-dim); color: var(--neon-gold); }
.hw-status-badge.pending { background: var(--neon-danger-dim); color: var(--neon-danger); }

/* Kanban Board Layout */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.kanban-column {
  background: rgba(13, 18, 28, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.col-indicator.todo { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.col-indicator.inprog { background: var(--neon-gold); box-shadow: 0 0 8px var(--neon-gold); }
.col-indicator.done { background: var(--neon-emerald); box-shadow: 0 0 8px var(--neon-emerald); }

.col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.task-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.kanban-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.kanban-card {
  background: rgba(20, 28, 44, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: grab;
  transition: var(--transition-fast);
  position: relative;
}

.kanban-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.kanban-task-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.kanban-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon-cyan);
}

.kanban-priority {
  font-size: 0.66rem;
  font-weight: 700;
}
.kanban-priority.High { color: var(--neon-danger); }
.kanban-priority.Medium { color: var(--neon-gold); }
.kanban-priority.Low { color: var(--neon-emerald); }

.kanban-move-btns {
  display: flex;
  gap: 3px;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.k-btn-move {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.k-btn-move:hover {
  background: var(--neon-gold);
  color: #000;
  border-color: var(--neon-gold);
}

/* ==========================================================================
   SECTION 6: CERTIFICATES GALLERY (WITH CONTINUOUS SMOOTH FLOATING ANIMATION)
   ========================================================================== */
.cert-header-banner {
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem;
}

.cert-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 650px;
}

.cert-actions {
  display: flex;
  gap: 0.8rem;
}

/* Masonry / Responsive Grid for Certificates */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* --- CONTINUOUS FLOATING KEYFRAME ANIMATIONS --- */
@keyframes floatGentle1 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-11px) rotate(0.4deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatGentle2 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatGentle3 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-13px) rotate(0.3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatGentle4 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.4deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Apply Floating Animations with Staggered Durations & Delays */
.float-anim-1 {
  animation: floatGentle1 6.2s ease-in-out infinite;
}

.float-anim-2 {
  animation: floatGentle2 7.1s ease-in-out infinite 0.5s;
}

.float-anim-3 {
  animation: floatGentle3 5.8s ease-in-out infinite 1.2s;
}

.float-anim-4 {
  animation: floatGentle4 6.8s ease-in-out infinite 1.8s;
}

/* Class to pause floating globally if user toggles it */
.floating-paused {
  animation-play-state: paused !important;
}

/* --- CERTIFICATE CARD CONTAINER & HOVER REQUIREMENT ---
   "When hovering over a certificate (e.g., PLC Control, Quality Assurance), 
    the floating pauses and the image scales up slightly with a glowing gold/emerald border."
*/
.cert-card-wrap {
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* PAUSE FLOATING & SCALE UP ON HOVER WITH GLOWING GOLD & EMERALD BORDER */
.cert-card-wrap:hover {
  animation-play-state: paused !important;
  transform: translateY(-7px) scale(1.035);
  z-index: 10;
}

.cert-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 20, 32, 0.78);
  height: 100%;
}

.cert-card-wrap:hover .cert-card {
  border-color: var(--neon-emerald);
  box-shadow: 
    0 0 20px rgba(0, 255, 157, 0.4),
    0 0 35px rgba(255, 215, 0, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Certificate Visual Preview Box (Stylized Diploma Aesthetic) */
.cert-preview {
  height: 175px;
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-preview.plc-theme {
  background: linear-gradient(135deg, #09201a, #0c2b23, #153e34);
}
.cert-preview.qa-theme {
  background: linear-gradient(135deg, #2b1f09, #38280b, #4a350e);
}
.cert-preview.ai-theme {
  background: linear-gradient(135deg, #0a1f2b, #0d2b3c, #133b52);
}
.cert-preview.robotics-theme {
  background: linear-gradient(135deg, #0b221d, #11332c, #18443b);
}
.cert-preview.embedded-theme {
  background: linear-gradient(135deg, #1c102a, #26163b, #321d4d);
}
.cert-preview.german-theme {
  background: linear-gradient(135deg, #281a0b, #3b2710, #473014);
}

.cert-watermark {
  position: absolute;
  right: -15px;
  bottom: -20px;
  font-size: 7.5rem;
  opacity: 0.06;
  color: #fff;
  pointer-events: none;
}

.cert-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--neon-gold);
  border: 1px solid var(--neon-gold);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  letter-spacing: 0.5px;
}

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

.cert-org {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3px;
}

.cert-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.cert-recipient {
  font-size: 0.72rem;
  color: var(--neon-gold);
  margin-top: 3px;
  font-weight: 600;
}

.cert-footer-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* Certificate Info Body */
.cert-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.cert-main-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.cert-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.cert-tag.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); }
.cert-tag.gold { background: var(--neon-gold-dim); color: var(--neon-gold); }
.cert-tag.cyan { background: var(--neon-cyan-dim); color: var(--neon-cyan); }
.cert-tag.purple { background: var(--neon-purple-dim); color: var(--neon-purple); }

.cert-details {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.cert-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-cert-inspect {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cert-inspect:hover {
  background: var(--neon-gold);
  color: #000;
  border-color: var(--neon-gold);
  box-shadow: 0 0 10px var(--neon-gold-glow);
}

/* ==========================================================================
   MODAL WINDOWS & FORMS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: rgba(14, 20, 32, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-normal);
}

.modal-card.modal-lg {
  max-width: 720px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: rgba(6, 10, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--neon-emerald);
  box-shadow: 0 0 12px var(--neon-emerald-glow);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

/* Certificate Inspection Modal Body */
.cert-inspect-body {
  padding: 1rem 0;
}

.cert-large-diploma {
  border: 2px solid var(--neon-gold);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  text-align: center;
  background: radial-gradient(circle at center, #182333 0%, #0d131f 100%);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.15);
  margin-bottom: 1.2rem;
}

.diploma-org {
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--neon-gold);
  text-transform: uppercase;
}

.diploma-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 1rem 0 0.5rem;
  color: #fff;
}

.diploma-awarded {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diploma-recipient {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--neon-emerald);
  margin-bottom: 1.2rem;
}

.diploma-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2.2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  background: rgba(14, 20, 32, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--neon-emerald);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--neon-emerald-glow);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-fast);
}

.toast.gold {
  border-color: var(--neon-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--neon-gold-glow);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Smaller Desktops (Under 1200px) */
@media (max-width: 1200px) {
  .dashboard-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid-3 {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .timetable-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablets (Under 992px) */
@media (max-width: 992px) {
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
  .neon-balance-hero {
    grid-template-columns: 1fr;
  }
  .milestone-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .milestone-circle-wrap {
    align-self: center;
    margin-top: 1rem;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (Under 768px) */
@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .close-sidebar-btn {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 1.2rem 1rem 3rem;
  }

  .top-action-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
  }

  .top-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .dashboard-grid-4 {
    grid-template-columns: 1fr;
  }

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

  .balance-huge {
    font-size: 2.2rem;
  }

  .form-grid-2, .form-grid-4 {
    grid-template-columns: 1fr;
  }

  .macro-gauges-row {
    grid-template-columns: 1fr;
  }

  .weight-milestone-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .pill-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }

  .pill-tab {
    flex: 1 1 45%;
    text-align: center;
  }
}


/* ==========================================================================
   ENHANCED INTERACTIVE CONTROLS & BILINGUAL EXTENSIONS
   ========================================================================== */

/* Language Switcher Buttons */
.lang-pill {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.lang-pill:hover {
  color: var(--text-main);
}

.lang-pill.active {
  color: var(--neon-emerald);
  background: var(--neon-emerald-dim);
  box-shadow: 0 0 8px var(--neon-emerald-glow);
}

/* Workout Controls */
.workout-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: 100%;
}

.workout-actions-btns {
  display: flex;
  gap: 0.5rem;
}

/* Streak & Habit Controls */
.streak-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.habit-footer-btns {
  display: flex;
  justify-content: flex-end;
}

/* Certificate Category Filter Pills */
.cert-filter-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.cert-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.cert-filter-pill:hover {
  border-color: rgba(0, 255, 157, 0.4);
  color: var(--text-main);
  transform: translateY(-1px);
}

.cert-filter-pill.active {
  background: var(--neon-emerald-dim);
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
  box-shadow: 0 0 15px var(--neon-emerald-glow);
}

.cert-card-wrap.cert-hidden {
  display: none !important;
}

/* Kanban Drag and Drop Interactive States */
.kanban-card[draggable="true"] {
  cursor: grab;
}

.kanban-card[draggable="true"]:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45;
  transform: scale(0.96) rotate(1.5deg);
  border-color: var(--neon-gold) !important;
  box-shadow: 0 0 20px var(--neon-gold-glow) !important;
}

.kanban-cards-container.drag-over {
  background: rgba(0, 255, 157, 0.08) !important;
  border-radius: var(--radius-sm);
  outline: 2px dashed var(--neon-emerald);
  outline-offset: -3px;
}

/* Thndr Asset Row Highlight */
.asset-row-highlight {
  background: rgba(255, 215, 0, 0.12) !important;
  outline: 1px solid var(--neon-gold);
  animation: pulseThndrRow 1.6s infinite alternate ease-in-out;
}

@keyframes pulseThndrRow {
  0% { box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.15); }
  100% { box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.35); }
}

/* Arabic / RTL Styling Mode */
body.arabic-mode {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  direction: rtl;
}

body.arabic-mode .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

body.arabic-mode .main-content {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

body.arabic-mode .nav-link:hover {
  transform: translateX(-4px);
}

body.arabic-mode .data-table {
  text-align: right;
}

body.arabic-mode .toast-container {
  right: auto;
  left: 2.2rem;
}

@media (max-width: 768px) {
  body.arabic-mode .sidebar {
    transform: translateX(100%);
  }

  body.arabic-mode .sidebar.open {
    transform: translateX(0);
  }

  body.arabic-mode .main-content {
    margin-right: 0;
  }
}


/* ==========================================================================
   EDIT ANY NUMBER INLINE INTERACTION STYLES
   ========================================================================== */
.editable-val {
  cursor: pointer !important;
  border-bottom: 1.5px dashed rgba(255, 215, 0, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-block;
  user-select: none;
  position: relative;
}

.editable-val:hover {
  background: rgba(255, 215, 0, 0.16) !important;
  color: var(--neon-gold) !important;
  border-bottom-color: var(--neon-gold);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

/* Edit Mode Toggle Active State */
body.edit-mode-active .editable-val {
  border-bottom: 2px dashed var(--neon-gold) !important;
  background: rgba(255, 215, 0, 0.08);
  animation: pulseEditBorder 2s infinite alternate ease-in-out;
}

body.edit-mode-active .editable-val::after {
  content: '\f304';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.62em;
  margin-left: 5px;
  color: var(--neon-gold);
  opacity: 0.85;
}

body.arabic-mode.edit-mode-active .editable-val::after {
  margin-left: 0;
  margin-right: 5px;
}

@keyframes pulseEditBorder {
  0% { box-shadow: 0 0 4px rgba(255, 215, 0, 0.15); }
  100% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.5); }
}

.inline-number-edit-input {
  background: rgba(8, 12, 20, 0.98) !important;
  color: #ffffff !important;
  border: 2px solid var(--neon-gold) !important;
  box-shadow: 0 0 20px var(--neon-gold-glow) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  border-radius: var(--radius-sm) !important;
  padding: 2px 8px !important;
  outline: none !important;
  width: auto !important;
  min-width: 65px !important;
  max-width: 200px !important;
  text-align: inherit !important;
  display: inline-block !important;
  z-index: 50;
  position: relative;
}

.btn.active-edit-mode {
  background: var(--neon-gold) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 18px var(--neon-gold-glow) !important;
  border-color: var(--neon-gold) !important;
}


/* ==========================================================================
   CERTIFICATES DUAL-VIEW, IMAGE UPLOAD & TARGET ROADMAP STYLES
   ========================================================================== */

/* Dual View Switcher (Earned vs Target) */
.cert-view-switcher {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cert-view-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  background: rgba(13, 18, 28, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cert-view-tab:hover {
  border-color: rgba(0, 255, 157, 0.4);
  color: var(--text-main);
  background: rgba(20, 28, 44, 0.85);
  transform: translateY(-1px);
}

.cert-view-tab.active {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.16), rgba(255, 215, 0, 0.08));
  border-color: var(--neon-emerald);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.18);
}

.count-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 800;
}
.count-pill.emerald { background: var(--neon-emerald-dim); color: var(--neon-emerald); border: 1px solid rgba(0, 255, 157, 0.3); }
.count-pill.gold { background: var(--neon-gold-dim); color: var(--neon-gold); border: 1px solid rgba(255, 215, 0, 0.3); }

/* Target Badge */
.cert-badge-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--neon-gold);
  border: 1px solid var(--neon-gold);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  letter-spacing: 0.5px;
}

/* Image Upload Dropzone */
.image-upload-dropzone {
  border: 2px dashed rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(6, 10, 16, 0.6);
}

.image-upload-dropzone:hover, .image-upload-dropzone.drag-over {
  border-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.image-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: rgba(13, 18, 28, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

#certImagePreviewImg {
  max-height: 160px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neon-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  object-fit: contain;
}

/* Target Certificate Body Controls */
.cert-target-progress-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  margin: 0.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-target-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-adjust-group {
  display: flex;
  gap: 3px;
}

.btn-micro {
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-micro:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-micro-gold {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--neon-gold);
}

.btn-micro-neon {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.35);
  color: var(--neon-emerald);
}

/* Certificate Preview with Uploaded Image */
.cert-preview.has-image {
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.cert-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.45) 55%, rgba(7, 9, 14, 0.75) 100%);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Lightbox Modal with Uploaded Image */
.cert-inspect-image-hero {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--neon-gold);
  box-shadow: 0 0 30px var(--neon-gold-glow);
  margin-bottom: 1.2rem;
  background: #000;
}
