:root {
  --bg-darker: #090d16;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-input: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Screen Views */
.view-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-darker);
}

/* =====================================================
   DASHBOARD VIEW STYLES
   ===================================================== */
.dash-header {
  height: 70px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 40;
  flex-shrink: 0;
}

.dash-header-left,
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.logo-text-group h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.global-stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.stat-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(51, 65, 85, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.dash-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease;
}

.dash-sort-group:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.dash-sort-group label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-sort-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 4px center;
  background-size: 13px 13px;
  color: #f8fafc;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  padding-right: 24px;
  padding-left: 2px;
}

.dash-sort-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.dash-sort-group select option {
  background: #0b1329;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.dash-loading-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.15);
}

.project-card-cover {
  height: 140px;
  background: #090d16;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-cover img {
  transform: scale(1.04);
}

.project-cover-placeholder {
  font-size: 2.2rem;
  opacity: 0.4;
}

.project-pct-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #60a5fa;
  font-family: var(--font-mono);
}

.project-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-progress-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.project-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.project-classes-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.project-classes-row::-webkit-scrollbar {
  height: 4px;
}

.project-classes-row::-webkit-scrollbar-track {
  background: transparent;
}

.project-classes-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-classes-row::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.class-tag-pill {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.btn-card-open {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-card-open:hover {
  background: #1d4ed8;
}

.btn-card-tool {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-card-tool:hover {
  background: rgba(71, 85, 105, 0.8);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   EDITOR VIEW: HEADER BAR
   ===================================================== */
.app-header {
  position: relative;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  z-index: 50;
  flex-shrink: 0;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-dash {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-nav-dash:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

.category-select-wrapper,
.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

select {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover,
select:focus {
  border-color: var(--accent-primary);
}

/* Nav Stepper */
.nav-btn {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.image-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.image-stepper input {
  width: 55px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.stepper-separator {
  color: var(--text-dim);
  margin: 0 4px;
}

#totalImagesCount {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-right: 4px;
}

/* Auto Save Toggle Switch */
.auto-save-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  user-select: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .2s ease;
  border-radius: 20px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s ease;
  border-radius: 50%;
}

.toggle-switch input:checked+.slider {
  background-color: var(--accent-success);
}

.toggle-switch input:checked+.slider:before {
  transform: translateX(16px);
}

.btn-save {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.btn-save:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.btn-approve {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.btn-approve:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

/* Status Indicator Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-badge.saved .status-dot {
  background: var(--accent-success);
  box-shadow: 0 0 6px var(--accent-success);
}

.status-badge.saved {
  color: #a7f3d0;
}

.status-badge.unsaved .status-dot {
  background: var(--accent-warning);
  box-shadow: 0 0 6px var(--accent-warning);
}

.status-badge.unsaved {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

/* Icon Toggle Buttons in Header */
.icon-toggle-btn {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-active);
}

.icon-toggle-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Header Progress Line at Bottom of Header */
.header-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  z-index: 10;
  pointer-events: none;
}

/* =====================================================
   MAIN WORKSPACE LAYOUT (3-Column Grid)
   ===================================================== */
.workspace-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr 310px;
  height: calc(100vh - 60px);
  overflow: hidden;
  position: relative;
  transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.workspace-layout.left-collapsed {
  grid-template-columns: 0px 1fr 310px;
}

.workspace-layout.right-collapsed {
  grid-template-columns: 260px 1fr 0px;
}

.workspace-layout.left-collapsed.right-collapsed {
  grid-template-columns: 0px 1fr 0px;
}

.sidebar-left,
.sidebar-right {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.workspace-layout.left-collapsed .sidebar-left {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.workspace-layout.right-collapsed .sidebar-right {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =====================================================
   LEFT SIDEBAR: IMAGE LIST
   ===================================================== */
.sidebar-left {
  background: var(--bg-dark);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.sidebar-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  min-height: 28px;
}

.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.sidebar-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-sidebar-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.btn-sidebar-icon:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  transform: translateY(-1px);
}

.btn-sidebar-icon:active {
  transform: scale(0.95);
}

.btn-sidebar-icon .btn-icon-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #38bdf8;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.70rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-primary {
  background: var(--accent-primary);
  color: white;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
}

.search-input-wrapper input {
  width: 100%;
  padding: 6px 10px 6px 30px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--accent-primary);
}

.image-list-container {
  flex: 1;
  overflow-y: scroll !important;
  padding: 0 !important;
  gap: 0 !important;
  display: flex;
  flex-direction: column;
}

.image-list-item {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex-shrink: 0;
  padding: 0 12px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.image-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.image-list-item.active {
  background: rgba(59, 130, 246, 0.18);
  border-left: 3px solid var(--accent-primary);
  font-weight: 600;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  padding-right: 6px;
}

.item-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.item-status-dot.has-box {
  background: var(--accent-success);
}

.item-status-dot.no-box {
  background: #64748b;
}

.item-box-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.item-flag-badge {
  color: #ef4444;
  font-size: 0.75rem;
  margin-left: 4px;
}

.btn-img-item-del {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-list-item:hover .btn-img-item-del {
  opacity: 1;
}

.btn-img-item-del:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.btn-delete-image {
  margin-top: 10px;
  width: 100%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-delete-image:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* =====================================================
   CENTER VIEWPORT & CANVAS WORKSPACE
   ===================================================== */
.viewport-main {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-darker);
  overflow: hidden;
  flex: 1;
  height: 100%;
}

.canvas-floating-toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 20;
  max-width: calc(100% - 24px);
  overflow-x: auto;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 3px;
  flex-shrink: 0;
}

.tool-btn,
.tool-btn-icon {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.tool-btn-icon {
  padding: 5px 7px;
}

.tool-btn:hover:not(:disabled),
.tool-btn-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tool-btn.active,
.tool-btn-icon.active {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.tool-btn:disabled,
.tool-btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tool-btn-icon.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.tool-btn.btn-ai {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  font-weight: 600;
}

.tool-btn.btn-ai:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.45));
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.tool-btn.btn-ai.loading {
  opacity: 0.6;
  pointer-events: none;
  animation: pulse 1s infinite alternate;
}

.class-picker-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.class-picker-group label {
  font-weight: 600;
  color: var(--text-secondary);
}

.class-picker-group select {
  height: 28px;
  min-width: 120px;
  max-width: 180px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.class-picker-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.zoom-text {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 38px;
  text-align: center;
}

/* Canvas Viewport */
.canvas-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-darker);
  cursor: crosshair;
}

.canvas-viewport.panning {
  cursor: grab !important;
}

.canvas-viewport.panning:active {
  cursor: grabbing !important;
}

.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #1e1e2f;
  will-change: transform;
  transform-origin: 0 0;
}

canvas {
  display: block;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 30;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loupe Lens Tool */
.loupe-canvas {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3.5px solid #60a5fa;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(96, 165, 250, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  background: #0f172a;
}

/* =====================================================
   RIGHT SIDEBAR: METADATA, BOX LIST, STATS
   ===================================================== */
.sidebar-right {
  background: var(--bg-dark);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  height: 100%;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section.flex-grow {
  flex: 1;
  min-height: 180px;
}

.section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--accent-danger);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.meta-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  color: var(--text-main);
  font-weight: 600;
}

.box-items-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
}

.box-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.box-item:hover {
  background: var(--bg-card-hover);
}

.box-item.active {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.box-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.box-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.box-class-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.box-delete-btn:hover {
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.1);
}

.box-item-coords {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.empty-state {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  padding: 16px 8px;
  line-height: 1.4;
}

/* Shortcuts list */
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 160px;
  overflow-y: auto;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--text-muted);
}

kbd {
  background: #334155;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-btn-small {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}

.icon-btn-small:hover {
  color: var(--text-main);
}

/* Stats list */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.stat-cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stat-numbers {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.stat-box-count {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* =====================================================
   CONTEXT MENU
   ===================================================== */
.context-menu {
  position: fixed;
  z-index: 9999;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.3);
  padding: 6px;
  min-width: 190px;
  backdrop-filter: blur(16px);
  animation: ctxIn 0.12s ease-out;
}

@keyframes ctxIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.1s;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.ctx-item.ctx-danger {
  color: var(--accent-danger);
}

.ctx-item.ctx-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.ctx-divider {
  height: 1px;
  background: var(--border-color);
  margin: 5px 0;
}

/* =====================================================
   MODALS (MODERN DARK GLASSMORPHISM)
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.modal-lg {
  max-width: 820px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-active);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.class-inline-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.class-inline-row input[type="color"] {
  width: 40px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Modern Batch Info Box */
.batch-info-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.batch-info-box strong {
  color: #60a5fa;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.batch-info-box p {
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  font-size: 0.82rem;
}

/* Modern Batch Progress Bar */
.batch-status-row,
.batch-counts-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 6px;
}

.batch-counts-row {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.batch-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.batch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  border-radius: 99px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* Danger Button (Durdur) Fix */
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35) !important;
  transition: all 0.15s ease !important;
}

/* Modern Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  outline: none;
  margin: 10px 0;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
}

display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
background: rgba(30, 41, 59, 0.6);
border: 1px solid var(--border-color);
padding: 14px;
border-radius: var(--radius-sm);
}

.export-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.export-stat-item strong {
  color: var(--text-main);
  font-size: 0.88rem;
}

.export-success-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  color: #34d399;
}

.similar-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-height: 50vh;
  overflow-y: auto;
}

.similar-match-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
}

.similar-match-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 88px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100000;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s ease-out forwards;
}

.toast.success {
  border-left: 3px solid var(--accent-success);
}

.toast.info {
  border-left: 3px solid var(--accent-primary);
}

.toast.warning {
  border-left: 3px solid var(--accent-warning);
}

.toast.error {
  border-left: 3px solid var(--accent-danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* =====================================================
   HEADER SETTINGS BUTTON & BULK ACTIONS
   ===================================================== */
.btn-settings-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-settings-header:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Multi-select Header in Sidebar */
.box-list-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-select-checkbox-head,
.box-select-checkbox-item {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: var(--transition);
  margin: 0;
  flex-shrink: 0;
}

.box-select-checkbox-head:checked,
.box-select-checkbox-item:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.box-select-checkbox-head:checked::before,
.box-select-checkbox-item:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.box-header-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-box-history {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.btn-box-history:not(:disabled):hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.btn-box-history:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.box-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-sel-count {
  font-size: 0.72rem;
  padding: 2px 6px;
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border-radius: 4px;
  font-weight: 600;
}

.btn-bulk-delete {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-bulk-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

.bulk-class-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.bulk-lbl {
  color: #93c5fd;
  font-weight: 600;
  white-space: nowrap;
}

.bulk-select {
  flex-grow: 1;
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  cursor: pointer;
}

/* =====================================================
   PROJECT SETTINGS MODAL STYLES
   ===================================================== */
.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.modal-tab-btn:hover {
  color: var(--text-main);
}

.modal-tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stats-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-num.green {
  color: var(--accent-success);
}

.stat-num.orange {
  color: var(--accent-warning);
}

.stat-num.blue {
  color: #60a5fa;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.classes-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-sm-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm-primary:hover {
  filter: brightness(1.15);
}

.classes-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.classes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.classes-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 2;
}

.classes-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.classes-table input[type="text"],
.classes-table input[type="number"] {
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  width: 100%;
}

.classes-table input[type="color"] {
  border: none;
  width: 32px;
  height: 28px;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.btn-row-del {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-row-del:hover {
  background: #ef4444;
  color: #ffffff;
}

.ai-tips-card {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 14px;
}

.ai-tips-card h4 {
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 6px;
}

.ai-tips-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ai-tips-card code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  color: #38bdf8;
}

.class-dist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.class-dist-name {
  width: 120px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.class-dist-bar-wrap {
  flex-grow: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.class-dist-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.class-dist-count {
  width: 60px;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

/* =====================================================
   SIDEBAR UPLOAD & DROPZONE STYLES
   ===================================================== */
.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sidebar-upload {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sidebar-upload:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.5);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: var(--transition);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
}

.upload-selected-text {
  font-size: 0.75rem;
  color: var(--accent-success);
  font-weight: 600;
  margin-top: 4px;
}

.upload-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  z-index: 2;
}

.btn-sm-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sm-secondary:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.settings-danger-zone {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-zone-text h4 {
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 4px;
}

.danger-zone-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

.btn-danger-solid {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-danger-solid:hover {
  background: #b91c1c;
}

.new-proj-classes-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 4px;
}

.new-proj-cls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.empty-project-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 32px;
}

.empty-welcome-card {
  background: rgba(15, 23, 42, 0.85);
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  text-align: center;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.empty-welcome-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 6px;
}

.empty-welcome-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* =====================================================
   FULL SCREEN PREMIUM GLASSMORPHIC LOADING OVERLAY
   ===================================================== */
.full-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.full-loading-card {
  background: linear-gradient(145deg, rgba(22, 30, 52, 0.95), rgba(12, 17, 34, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75), 0 0 50px rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.full-loading-overlay.active .full-loading-card {
  transform: scale(1);
}

/* Glowing Orbital Spinner */
.full-loading-orb {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.orb-ring.ring-1 {
  border-top-color: #6366f1;
  border-right-color: #38bdf8;
  animation: orbSpin 1.4s linear infinite;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.orb-ring.ring-2 {
  inset: 8px;
  border-bottom-color: #ec4899;
  border-left-color: #8b5cf6;
  animation: orbSpinRev 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.4);
}

.orb-ring.ring-3 {
  inset: 18px;
  border-top-color: #10b981;
  border-left-color: #06b6d4;
  animation: orbSpin 2.6s linear infinite;
}

.orb-core {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
  animation: orbPulse 2s ease-in-out infinite alternate;
}

.orb-icon {
  width: 32px;
  height: 32px;
  animation: orbIconSpin 8s linear infinite;
}

@keyframes orbSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbSpinRev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes orbPulse {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  }

  100% {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
  }
}

@keyframes orbIconSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Loading Typography */
.full-loading-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loading-main-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loading-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.45;
  max-width: 380px;
}

/* Progress Bar Track & Fill */
.loading-progress-wrap {
  width: 100%;
  margin: 6px 0 14px;
}

.loading-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1, #ec4899);
  border-radius: 99px;
  transition: width 0.22s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
}

.loading-progress-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 1.6s infinite;
}

/* =====================================================
   ROBOFLOW-STYLE CREATE PROJECT & HUB VIEW STYLES
   ===================================================== */

/* 1. Create Project View (Full Screen) */
.create-proj-header {
  height: 64px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.create-proj-nav {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Arka Planda Yükle Butonu */
.loading-minimize-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.loading-minimize-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Çoklu Arka Plan Görev Yöneticisi (Multi-Task Floating Hub) */
.floating-tasks-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100vw - 48px);
}

.floating-tasks-container > * {
  pointer-events: auto;
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 !important;
}

/* Floating Background Upload Widget (Sağ Alt Köşe Belirteci) */
.floating-upload-widget {
  cursor: pointer;
  user-select: none;
  animation: floatWidgetIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-upload-widget:hover {
  transform: translateY(-2px);
}

.floating-upload-glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(236, 72, 153, 0.5));
  filter: blur(8px);
  opacity: 0.6;
  z-index: 0;
  animation: floatGlowPulse 2.4s ease-in-out infinite alternate;
}

.floating-upload-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-width: 280px;
  max-width: 340px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.floating-upload-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-upload-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: #818cf8;
  border-radius: 50%;
  animation: orbSpin 1s linear infinite;
}

.floating-upload-content {
  flex: 1;
  min-width: 0;
}

.floating-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.floating-upload-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-upload-pct {
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
}

.floating-upload-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.floating-upload-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.floating-upload-bar {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #ec4899);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.floating-upload-expand-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.floating-upload-expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@keyframes floatWidgetIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatGlowPulse {
  from { opacity: 0.4; filter: blur(6px); }
  to { opacity: 0.8; filter: blur(12px); }
}

.proj-badge-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 99px;
  color: #cbd5e1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.mini-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.btn-close-view {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-close-view:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.create-proj-main {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
}

.create-proj-container {
  width: 100%;
  max-width: 960px;
}

.create-proj-heading h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.create-proj-sub {
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 28px;
}

.create-proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.form-row-2 {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.req-star {
  color: var(--accent-danger);
}

.input-error-msg {
  color: var(--accent-danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

.radio-pill-group {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Project Type Cards Grid */
.project-types-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.type-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-card.selected {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.type-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.type-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.type-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.type-badge.active {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.type-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 540px;
}

.type-card-status {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-dim);
}

.preview-mini-box {
  display: flex;
  gap: 8px;
}

.demo-box {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-box.box-1 {
  border: 2px solid #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.demo-box.box-2 {
  border: 2px solid #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* Classes Editor List */
.classes-pills-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.cls-row-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.cls-name-input {
  font-weight: 600;
  flex: 1.2;
}

.cls-color-input {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.cls-del-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

.cls-del-btn:hover:not(:disabled) {
  color: var(--accent-danger);
}

.create-proj-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-large {
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* =====================================================
   2. PROJECT HUB VIEW (ROBOFLOW WORKSPACE & TABS)
   ===================================================== */
#projectHubView {
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  display: none;
  flex-direction: column !important;
}

#projectHubView.active {
  display: flex !important;
}

.hub-main-viewport {
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  display: block !important;
}

.hub-back-btn:hover {
  color: #fff;
}

.hub-project-badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.hub-project-icon {
  font-size: 1.4rem;
}

.hub-project-meta h3 {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.hub-type-tag {
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.hub-nav-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.hub-nav-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding: 0 10px 8px 10px;
}

.hub-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.hub-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.hub-nav-item.active {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.hub-count-badge {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--text-dim);
}

.hub-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-launch-studio {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s, filter 0.2s;
}

.btn-launch-studio:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hub Main Viewport & Tabs */
.hub-main-viewport {
  flex: 1;
  background: var(--bg-darker);
  overflow-y: auto;
  padding: 32px 40px;
}

.hub-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hub-panel-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hub-panel-header p {
  color: var(--text-muted);
  margin-top: 4px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions-row {
  display: flex;
  gap: 12px;
}

/* Upload Screen Large Dropzone */
.hub-large-dropzone {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  transition: all 0.25s ease;
  margin-top: 12px;
}

.hub-large-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
}

.dropzone-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.dropzone-buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.supported-formats-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.fmt-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--text-dim);
}

.staged-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

/* Kanban Board (Annotate Screen) */
.kanban-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.kanban-col {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: calc(100vh - 180px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kanban-col-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-col-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.dot-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-status.unassigned {
  background: #94a3b8;
}

.dot-status.annotating {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.dot-status.completed {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.kanban-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--text-muted);
}

.kanban-cards-list {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-batch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kanban-batch-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.k-card-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.k-card-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Roboflow Batch Review View Styling */
.rf-batch-review-container {
  padding: 24px 32px;
}

.rf-batch-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rf-back-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.rf-back-pill-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(-2px);
}

.rf-batch-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.rf-batch-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.rf-batch-pill-badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
}

.rf-batch-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rf-btn-glass {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.rf-btn-glass:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.rf-btn-danger-glass {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rf-btn-danger-glass:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fee2e2;
  transform: translateY(-1px);
}

.rf-btn-primary-glow {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35), 0 0 15px rgba(79, 70, 229, 0.2);
  transition: all 0.25s ease;
}
.rf-btn-primary-glow:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

/* ═════ UNIFIED CONTROLS COMMAND CENTER ═════ */
.rf-controls-panel {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.rf-controls-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rf-search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.rf-search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}
.rf-search-box input:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.rf-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.rf-batch-select-wrap {
  width: 280px;
  position: relative;
}
.rf-batch-select-wrap select {
  width: 100%;
  padding: 10px 14px 10px 34px;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.rf-batch-select-wrap select:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.rf-batch-select-wrap .batch-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}

.rf-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(11, 18, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.rf-toggle-pill:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.rf-controls-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rf-status-pill-group {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 18, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
}

.rf-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  outline: none !important;
}
.rf-tab-btn:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.rf-tab-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(79, 70, 229, 0.4)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
}

.rf-tab-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}
.rf-tab-btn.active .rf-tab-badge {
  background: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.45) !important;
}

.rf-sort-select {
  padding: 8px 14px;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rf-sort-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.rf-btn-select-all {
  padding: 8px 14px;
  background: rgba(11, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rf-btn-select-all:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.rf-image-card:hover {
  border-color: rgba(139, 92, 246, 0.6) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.rf-image-card.selected {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
}

.rf-back-link:hover {
  text-decoration: underline;
  color: #a78bfa !important;
}

/* Dataset Gallery */
.dataset-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.dataset-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding-bottom: 80px;
}

.gallery-item-card {
  position: relative;
  aspect-ratio: 1;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-item-card.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.gallery-select-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dataset-selection-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}



/* =====================================================
   PROJECT META BADGES (Visibility · Type · License)
   ===================================================== */

.proj-meta-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  margin-top: 4px;
}

.proj-meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-public {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-private {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-type-det {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-type-cls {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-license {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Classification mode info hint in cls-row-pill */
.cls-prompts-input[style*="display:none"] {
  display: none !important;
}

/* =======================================================
   LANDING PAGE STYLES
   ======================================================= */

.landing-view {
  background: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-sans);
}

/* Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.landing-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-brand-accent {
  color: var(--accent-primary);
}

.landing-nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.landing-nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.landing-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.landing-nav-cta {
  display: flex;
  gap: 10px;
}

.btn-landing-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.2s, background 0.2s;
}

.btn-landing-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.btn-landing-primary {
  background: var(--accent-primary);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.15s;
}

.btn-landing-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

/* Landing sections shared */
.landing-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.landing-section-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.landing-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.landing-section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero */
.landing-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 32px 60px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.12);
  top: -100px;
  left: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  bottom: -50px;
  right: 100px;
}

.landing-hero-inner {
  flex: 1;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-badge-new {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  transition: background 0.2s, border-color 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 500;
}

/* Hero demo mockup */
.hero-demo-mockup {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.demo-window {
  background: #0d1527;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Antigravity Ultra-Smooth Floating Keyframe */
.antigravity-floating {
  animation: antigravity-float 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: center center;
}

@keyframes antigravity-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-14px) rotate(0.4deg);
  }

  50% {
    transform: translateY(-6px) rotate(-0.3deg);
  }

  75% {
    transform: translateY(-18px) rotate(0.2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.demo-window-bar {
  background: #111c35;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dots-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-window-title-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-window-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #6ee7b7;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.antigravity-pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 1.8s infinite;
}

.demo-window-content {
  display: flex;
  height: 320px;
}

.demo-sidebar {
  width: 135px;
  background: #080e1d;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-sidebar-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: all 0.2s ease;
}

.demo-sidebar-item.active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-canvas-area {
  flex: 1;
  position: relative;
  padding: 12px;
  background: #060b14;
}

.demo-canvas-img {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, #1e2d4a 0%, #09101d 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Futuristic Laser Scanning Beam */
.laser-scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
  box-shadow: 0 0 14px 3px rgba(56, 189, 248, 0.8), 0 0 30px 6px rgba(59, 130, 246, 0.5);
  animation: laserScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 10;
}

@keyframes laserScan {
  0% {
    top: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.laser-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Dynamic Bounding Boxes with Target Reticle Corners */
.demo-bbox {
  position: absolute;
  border: 1.5px solid;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-bbox.bbox-person {
  animation: bbox-hover-1 7s ease-in-out infinite;
}

.demo-bbox.bbox-car {
  animation: bbox-hover-2 8s ease-in-out infinite;
}

.demo-bbox.bbox-helmet {
  animation: bbox-hover-3 6s ease-in-out infinite;
}

@keyframes bbox-hover-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3px, -4px) scale(1.02);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  }
}

@keyframes bbox-hover-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-4px, 3px) scale(0.98);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  }
}

@keyframes bbox-hover-3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(2px, 2px) scale(1.03);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  }
}

.demo-bbox-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: inherit;
}

.demo-bbox-corner.tl {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.demo-bbox-corner.tr {
  top: -2px;
  right: -2px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.demo-bbox-corner.bl {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.demo-bbox-corner.br {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.demo-bbox-label {
  position: absolute;
  top: -20px;
  left: -1px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Telemetry HUD in Demo */
.demo-telemetry-hud {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(10, 16, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.hud-item strong {
  color: #38bdf8;
}

.demo-ai-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.demo-ai-pulse {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

/* Stats */
.landing-stats {
  padding: 60px 32px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-card {
  padding: 12px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Features Grid */
.landing-features {
  padding: 100px 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  cursor: default;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.feature-card-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.08));
  border-color: rgba(59, 130, 246, 0.25);
  grid-column: span 2;
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* How it Works */
.landing-how {
  padding: 48px 32px 32px;
  background: rgba(255, 255, 255, 0.015);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.how-step-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.3);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.how-step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.how-step-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  padding-top: 40px;
  flex-shrink: 0;
}

/* Use Cases */
.landing-usecases {
  padding: 100px 32px;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.usecase-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.usecase-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.usecase-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.usecase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.usecase-tags span {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Showcase */
.landing-showcase {
  padding: 32px 32px 48px;
  background: rgba(255, 255, 255, 0.015);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row-reverse {
  direction: rtl;
}

.showcase-row-reverse>* {
  direction: ltr;
}

.showcase-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.check-icon {
  color: #10b981;
  font-weight: 700;
}

/* Code block */
.showcase-code-block {
  background: #0a1020;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
}

.code-line {
  white-space: pre;
}

.code-comment {
  color: #4a5568;
}

.code-keyword {
  color: #93c5fd;
}

.code-str {
  color: #6ee7b7;
}

.code-fn {
  color: #c4b5fd;
}

.code-output {
  background: rgba(16, 185, 129, 0.06);
  border-radius: 4px;
  padding: 0 8px;
}

/* File tree */
.showcase-file-tree {
  background: #0a1020;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 2;
}

.file-tree-item {
  color: var(--text-muted);
}

.file-tree-item:first-child {
  color: var(--text-main);
  font-weight: 700;
}

.file-tree-indent {
  padding-left: 20px;
}

.file-tree-indent2 {
  padding-left: 40px;
}

.file-count {
  color: var(--text-dim);
  margin-left: 8px;
}

/* Pricing */
.landing-pricing {
  padding: 100px 32px;
}

.pricing-card-single {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  position: relative;
}

.pricing-free-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  padding: 5px 20px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card-single h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.pricing-features-list {
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feat {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
}

.pricing-feat span {
  color: #10b981;
  font-weight: 700;
}

.btn-pricing-cta {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
}

/* Final CTA */
.landing-final-cta {
  padding: 120px 32px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.landing-final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.landing-final-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  position: relative;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* Footer */
.landing-footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* =======================================================
   AUTH VIEW STYLES (Fixed Side-by-Side Centered)
   ======================================================= */

.auth-view {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-darker);
  overflow: hidden;
}

.auth-view.active {
  display: flex;
}

.auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.auth-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.1);
  top: -100px;
  left: -100px;
}

.auth-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.08);
  bottom: 0;
  right: -80px;
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

/* Auth Left Panel */
.auth-left {
  width: 420px;
  max-width: 38vw;
  flex-shrink: 0;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding-top: 64px;
  overflow-y: auto;
}

.auth-left-inner {
  padding: 0 40px;
  width: 100%;
}

.auth-brand-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  padding: 10px 14px;
  margin-left: -14px;
  border-radius: var(--radius-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.auth-brand-area:hover {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

.auth-brand-area:hover .auth-brand-logo {
  transform: scale(1.08) rotate(-3deg);
}

.auth-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.auth-left-headline {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 32px;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 12px;
}

.auth-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.auth-feat-icon-svg {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  color: #60a5fa;
  flex-shrink: 0;
}

.auth-feat-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.auth-feat-item p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
}

.auth-back-landing-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.auth-back-landing-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.auth-mobile-header {
  display: none;
}

/* Auth Right Panel (Side-by-side centered) */
.auth-right {
  flex: 1;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.auth-form-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 34px 30px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.15);
  margin: auto 0;
}

/* Auth form */
.auth-mode {}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #ffffff;
}

.auth-form-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}




/* Google button */
.btn-google {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1a202c;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  margin-bottom: 18px;
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Form fields */
.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #e2e8f0;
}

.auth-hint {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.8rem;
}

.auth-field input[type="email"],
.auth-field input[type="text"],
.auth-field input[type="password"] {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.auth-field input.input-error {
  border-color: var(--accent-danger);
}

.auth-field-error {
  display: block;
  color: var(--accent-danger);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
  min-height: 0;
}


/* Password wrap */
.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 44px;
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
}

.auth-eye-btn:hover {
  opacity: 1;
}

/* Password strength */
.password-strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s, background 0.4s;
}

.password-strength-label {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Auth row */
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
  transition: color 0.2s;
}

.auth-link-btn:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Terms row */
.auth-terms-row {
  margin-bottom: 22px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-terms-row.has-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.auth-terms-row.has-error label {
  color: #fca5a5 !important;
}

.auth-terms-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.auth-terms-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #38bdf8;
}

/* Submit btn */
.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
  margin-bottom: 22px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.55);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.auth-switch-row {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH WORKSPACE ANALYSIS LOADER (Analiz & Doğrulama Ekranı)
   ══════════════════════════════════════════════════════════════════════════ */
.auth-analysis-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: authFadeIn 0.25s ease-out both;
  padding: 24px;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.auth-analysis-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-analysis-spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-analysis-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: #38bdf8;
  border-right-color: #818cf8;
  animation: authSpin 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.auth-analysis-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.3);
  border-bottom-color: #10b981;
  animation: authSpinRev 2.2s linear infinite;
}

.auth-analysis-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

@keyframes authSpinRev {
  to { transform: rotate(-360deg); }
}

.auth-analysis-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-analysis-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 22px;
  line-height: 1.4;
}

.auth-analysis-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 16px;
  box-sizing: border-box;
}

.auth-analysis-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  transition: all 0.25s ease;
}

.auth-analysis-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.auth-analysis-step.done {
  color: #10b981;
}

.auth-analysis-step.done .step-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.auth-analysis-step.active {
  color: #38bdf8;
  font-weight: 700;
}

.auth-analysis-step.active .step-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  animation: stepPulse 1.2s infinite alternate;
}

@keyframes stepPulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to { transform: scale(1.3); opacity: 1; }
}


.auth-switch-row .auth-link-btn {
  font-size: 0.92rem;
  margin-left: 6px;
}

/* Back btn */
.auth-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
  margin-bottom: 16px;
  display: block;
  transition: color 0.2s;
}

.auth-back-btn:hover {
  color: var(--text-main);
}

/* Info box */
.auth-info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 20px;
}

/* Alert */
.auth-alert {
  margin: 12px 0 16px 0;
  padding: 12px 16px;
  border-radius: var(--radius-md, 8px);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: authAlertFadeIn 0.25s ease-out;
}

@keyframes authAlertFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-alert.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.1);
}

.auth-alert.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.auth-alert.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

/* Field level error text */
.auth-field-error {
  display: block;
  color: #f87171;
  font-size: 0.80rem;
  font-weight: 500;
  margin-top: 5px;
  min-height: 18px;
  transition: all 0.2s ease;
}

/* Highlighted invalid input */
.auth-field input.input-error,
.auth-password-wrap input.input-error {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Shake animation on failure */
.auth-form-card.shake {
  animation: authCardShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authCardShake {

  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(3px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-5px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(5px, 0, 0);
  }
}

/* Dashboard header user avatar */
.dash-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
  position: relative;
}

.dash-user-menu:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(59, 130, 246, 0.2);
}

.dash-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  display: none;
}

.dash-user-dropdown.open {
  display: block;
}

.dash-user-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.dash-user-dropdown-email {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.dash-user-dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-user-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.dash-user-dropdown-btn.btn-logout {
  color: #fca5a5;
}

.dash-user-dropdown-btn.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .landing-hero {
    flex-direction: column;
    min-height: auto;
    padding: 60px 24px;
  }

  .hero-demo-mockup {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card-primary {
    grid-column: span 1;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row-reverse {
    direction: ltr;
  }

  .how-steps {
    flex-direction: column;
  }

  .how-step-arrow {
    display: none;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 20px;
  }

  .landing-nav-links {
    display: none;
  }
}

/* =======================================================
   ROBOFLOW-STYLE DUAL-SIDEBAR APP SHELL
   ======================================================= */

.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-darker);
}

/* =======================================================
   1. MAIN APP SHELL (Workspace Fixed Layout)
   ======================================================= */

.app-shell {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100 !important;
  display: none;
  flex-direction: row !important;
  align-items: stretch !important;
  background: var(--bg-darker) !important;
  overflow: hidden !important;
}

.app-shell.active {
  display: flex !important;
}

/* ───────────────────────────────────────────────────────
   A. GLOBAL WORKSPACE SIDEBAR
   ─────────────────────────────────────────────────────── */
.global-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  box-sizing: border-box;
  background: #0d1322;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 500;
  user-select: none;
  overflow: visible !important;
}

/* Compact Icon Rail Mode (When Project is Active) */
.global-sidebar.compact {
  width: 58px;
  min-width: 58px;
}

.global-sidebar.compact .ws-brand-text,
.global-sidebar.compact .ws-selector-box,
.global-sidebar.compact .ws-nav-text,
.global-sidebar.compact .ws-nav-badge-new,
.global-sidebar.compact .ws-nav-badge-soon,
.global-sidebar.compact .ws-nav-badge-admin,
.global-sidebar.compact .ws-nav-count,
.global-sidebar.compact .ws-free-plan-badge,
.global-sidebar.compact .ws-user-meta {
  display: none !important;
}

.global-sidebar.compact .ws-brand-logo {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  margin: 0 auto !important;
}

.global-sidebar.compact .ws-sidebar-header {
  padding: 12px 6px;
}

.global-sidebar.compact .ws-brand-row {
  justify-content: center;
  margin-bottom: 0;
}

.global-sidebar.compact .ws-nav-item {
  justify-content: center;
  padding: 11px 0;
}

.global-sidebar.compact .ws-user-row {
  justify-content: center;
  padding: 10px 0;
  cursor: pointer;
}

/* User Popover Dropup Menu (Default & Expanded Mode) */
.ws-user-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 9999;
  animation: popoverFadeIn 0.18s ease-out;
  overflow: hidden;
}

.ws-popover-header {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ws-popover-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-popover-texts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-popover-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-popover-email {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-popover-badge {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.ws-popover-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.ws-popover-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.ws-popover-footer {
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.global-sidebar.compact .ws-user-popover {
  position: fixed !important;
  left: 68px !important;
  right: auto !important;
  bottom: 16px !important;
  width: 280px !important;
  min-width: 280px !important;
  z-index: 999999 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.global-sidebar.compact .ws-user-logout-btn {
  display: none;
}

/* Sidebar Header */
.ws-sidebar-header {
  position: relative !important;
  padding: 18px 12px 14px;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
  z-index: 1050 !important;
}

.ws-brand-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  text-align: center !important;
}

.ws-brand-logo {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  background: #1e293b !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ws-brand-logo:hover {
  transform: scale(1.05);
}

.ws-brand-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.landing-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
}

.landing-brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.45);
}

.auth-brand-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ws-selector-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ws-selector-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ws-selector-info {
  flex: 1 1 0%;
  min-width: 0;
  max-width: calc(100% - 22px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ws-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  line-height: 1.25;
}

.ws-plan-badge {
  display: block;
  font-size: 0.68rem;
  color: #60a5fa;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  line-height: 1.2;
}

.ws-selector-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

/* Workspace Switcher Popover Dropdown */
.ws-workspace-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 10px;
  right: 10px;
  width: auto;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.88), 0 0 25px rgba(59, 130, 246, 0.2);
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  padding: 10px;
  animation: popoverFadeIn 0.18s ease-out;
}

.ws-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.ws-dropdown-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ws-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-add-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.ws-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.ws-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.02);
}

.ws-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.ws-item.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
}

.ws-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.ws-item-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ws-item-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ws-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-item-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-item-check {
  flex-shrink: 0;
  color: #38bdf8;
  margin-left: 4px;
}
  color: #94a3b8;
}

.ws-item-check {
  color: #38bdf8;
  flex-shrink: 0;
}

.ws-dropdown-footer {
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-create-workspace-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-create-workspace-action:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.45));
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

/* Navigation Menu */
.ws-nav-menu {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.ws-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.ws-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ws-nav-item.active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.ws-nav-badge-sparkle {
  margin-left: auto;
  font-size: 0.85rem;
}

.ws-nav-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 99px;
  color: #e2e8f0;
}

/* Sidebar Bottom */
.ws-sidebar-bottom {
  padding: 12px 10px;
  border-top: 1px solid var(--border-color);
}

.ws-credits-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ws-credits-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fcd34d;
}

.ws-credits-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
  margin-bottom: 8px;
}

.ws-btn-upgrade {
  width: 100%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}

.ws-free-plan-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.global-sidebar.compact .ws-free-plan-badge,
.global-sidebar.compact .ws-sidebar-footer .ws-free-plan-badge {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ws-free-plan-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ws-free-plan-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.ws-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.ws-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(59, 130, 246, 0.2);
}

.ws-user-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ws-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-user-role {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.ws-user-logout-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.ws-user-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ───────────────────────────────────────────────────────
   B. PROJECT CONTEXTUAL SIDEBAR
   ─────────────────────────────────────────────────────── */
.project-sidebar {
  width: 220px;
  min-width: 220px;
  background: #0a0f1d;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 40;
  user-select: none;
  animation: sidebarSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sidebarSlideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.proj-sidebar-header {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
}

.btn-back-workspace {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  margin-bottom: 14px;
}

.btn-back-workspace:hover {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

.proj-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proj-cover-mini {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.proj-cover-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-info-mini {
  overflow: hidden;
}

.proj-name-mini {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proj-type-badge-mini {
  font-size: 0.75rem;
  color: #93c5fd;
  font-weight: 600;
}

.proj-nav-menu {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

.proj-nav-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 8px 12px 4px;
  text-transform: uppercase;
}

.proj-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.proj-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.proj-nav-item.active {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.proj-nav-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  color: #e2e8f0;
}

.proj-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border-color);
}

.btn-proj-launch {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-proj-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

/* ───────────────────────────────────────────────────────
   C. MAIN WORKSPACE CONTENT & VIEWS
   ─────────────────────────────────────────────────────── */
.main-workspace-content {
  flex: 1;
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  background: var(--bg-darker);
  display: flex;
  flex-direction: column;
}

.workspace-view {
  display: none;
  flex: 1;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
}

.workspace-view.active {
  display: flex !important;
}


/* Common View Headers */
.view-content-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 50;
}

.view-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.view-header-title-row h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.view-content-body {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* ───────────────────────────────────────────────────────
   VIEW 1: AGENT WORKSPACE ("What are you building?")
   ─────────────────────────────────────────────────────── */
#agentWorkspaceView {
  position: relative;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 12%, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.12) 35%, #090d16 80%);
}

#agentWorkspaceView.in-chat-mode {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

#agentWorkspaceView.in-chat-mode .agent-chat-container {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#agentWorkspaceView.in-chat-mode .agent-chat-layout {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

#agentWorkspaceView.in-chat-mode .agent-chat-main-col {
  height: 100% !important;
  max-height: 100% !important;
  padding: 16px 24px 16px 24px !important;
  overflow: hidden !important;
}

#agentWorkspaceView.in-chat-mode .agent-chat-messages {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

#agentWorkspaceView.in-chat-mode .agent-chat-input-wrapper {
  flex-shrink: 0 !important;
  margin-top: 10px !important;
}

.agent-cosmic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1 !important;
  display: block;
}

.agent-view-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px 60px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.agent-hero-block {
  text-align: center;
  margin-bottom: 48px;
}

.agent-greeting-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-main);
}

.agent-prompt-box-wrap {
  max-width: 720px;
  margin: 0 auto 20px;
  position: relative;
}

.agent-prompt-box {
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 16px 18px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.agent-prompt-box:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(139, 92, 246, 0.2);
}

.agent-prompt-box textarea {
  width: 100%;
  height: 64px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-sans);
  resize: none;
  line-height: 1.5;
}

.agent-prompt-box textarea::placeholder {
  color: #64748b;
}

.agent-prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.agent-selector-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.agent-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.agent-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Stop AI button (shown while AI is thinking) */
.agent-stop-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  animation: stopBtnPulse 1.5s ease-in-out infinite;
}

.agent-stop-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  transform: scale(1.08);
}

@keyframes stopBtnPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15);
  }
}

/* Textarea auto-expand */
.agent-chat-input-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  resize: none;
  min-height: 24px;
  max-height: 180px;
  line-height: 1.5;
  overflow-y: auto;
}

/* Copy button on messages */
.chat-msg-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-msg-bubble:hover .chat-msg-copy-btn {
  opacity: 1;
}

.chat-msg-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.chat-msg-copy-btn.copied {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  opacity: 1;
}

/* Quick Action Pills */
.agent-quick-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.quick-action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.quick-action-pill:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.quick-action-pill svg {
  color: #818cf8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-action-pill:hover svg {
  transform: scale(1.15);
  color: #a5b4fc;
}

/* Roboflow Workflow Action Cards */
.agent-workflow-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.workflow-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.workflow-action-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.workflow-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-action-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.workflow-action-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.workflow-action-icon.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.workflow-action-icon.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.workflow-action-content {
  flex: 1;
  min-width: 0;
}

.workflow-action-content h4 {
  margin: 0 0 2px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.workflow-action-content p {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-action-arrow {
  color: #64748b;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.workflow-action-card:hover .workflow-action-arrow {
  transform: translateX(3px);
  color: #cbd5e1;
}

/* Blueprint Card */
.agent-blueprint-card {
  max-width: 760px;
  margin: 28px auto 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(16px);
  animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────────────────────────────────────────────────
   AI CHAT ROOM / CONVERSATION UI & ANIMATIONS
   ─────────────────────────────────────────────────────── */
.agent-avatar-glow-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.agent-avatar-glow {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5), 0 10px 25px rgba(59, 130, 246, 0.3);
  animation: floatAvatar 3s ease-in-out infinite;
}

@keyframes floatAvatar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.agent-hero-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

/* Chat Room Container */
.agent-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 0;
  animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* The two-column layout inside the chat container */
.agent-chat-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

/* Main chat column */
.agent-chat-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px 20px 24px;
  overflow: hidden;
}

/* Right Chat History Sidebar */
.agent-chat-history-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: rgba(10, 15, 28, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden !important;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.agent-chat-history-sidebar.collapsed {
  width: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.agent-history-sidebar-header {
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
}

.agent-history-sidebar-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.agent-new-chat-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}

.agent-new-chat-sidebar-btn:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger toggle button */
.agent-history-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.agent-history-toggle-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.agent-chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.agent-chat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
}

.agent-chat-status {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chat Messages Scroll */
.agent-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 4px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Message Bubbles */
.chat-msg {
  display: flex;
  gap: 14px;
  max-width: 85%;
  animation: msgPop 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.assistant {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.user .chat-msg-avatar {
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
}

.chat-msg.assistant .chat-msg-avatar {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* When AI is thinking, avatar turns into the orbital spinner */
.chat-msg.assistant .chat-msg-avatar.is-thinking {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
}

.chat-msg.assistant .chat-msg-avatar.is-thinking svg.default-avatar-icon {
  display: none;
}

.chat-msg-bubble {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.6;
  position: relative;
}

.chat-msg.user .chat-msg-bubble {
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.chat-msg.assistant .chat-msg-bubble {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Chat Input Bar */
.agent-chat-input-wrapper {
  margin-top: 10px;
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.agent-chat-input-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-chat-input-box:focus-within {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.25);
}

.agent-chat-input-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  resize: none;
  min-height: 24px;
  max-height: 180px;
  line-height: 1.5;
  overflow-y: auto;
  padding: 4px 0;
}

.agent-attach-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.agent-attach-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #60a5fa;
}

.agent-attachment-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: slideUpFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-attachment-preview img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

/* Chat History Drawer */
.agent-history-drawer {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideUpFade 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.agent-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-close-drawer-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.agent-close-drawer-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.agent-history-list {
  overflow-y: auto;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.agent-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.agent-history-item:hover,
.agent-history-item.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.agent-history-item-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.agent-history-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  display: block;
}

.agent-history-item-date {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  display: block;
}

.agent-history-del-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 4px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.agent-history-item:hover .agent-history-del-btn {
  opacity: 1;
}

.agent-history-del-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Skeleton Loading for Agent History */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.agent-history-skeleton-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 6px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.agent-history-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.agent-history-skeleton-line.short {
  width: 45%;
  height: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.agent-history-skeleton-line.long {
  width: 80%;
}

/* Chat Thinking Mini Orb Animation (Orbital Loading Icon in AI bubble) */
.ai-mini-orb-loader {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 4px;
}

.mini-orb-spinner {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-orb-spinner .m-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.mini-orb-spinner .m-ring-1 {
  border-top-color: #6366f1;
  border-right-color: #38bdf8;
  animation: orbSpin 1.2s linear infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.mini-orb-spinner .m-ring-2 {
  inset: 5px;
  border-bottom-color: #ec4899;
  border-left-color: #8b5cf6;
  animation: orbSpinRev 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.mini-orb-spinner .m-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  animation: orbPulse 1.8s ease-in-out infinite alternate;
}

.mini-orb-spinner .m-core svg {
  width: 10px;
  height: 10px;
  animation: orbIconSpin 6s linear infinite;
}

.ai-typing-status-txt {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-typing-sub {
  font-size: 0.76rem;
  color: #818cf8;
  font-weight: 600;
}

.agent-attached-filename {
  font-size: 0.82rem;
  color: #f8fafc;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-remove-attach-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.agent-remove-attach-btn:hover {
  background: #ef4444;
  color: #fff;
}

@keyframes blueprintPop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blueprint-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.blueprint-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.blueprint-title-group h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.blueprint-title-group p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.blueprint-classes-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blueprint-cls-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Examples & Recent Grid */
.agent-bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}

.agent-section-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.agent-bottom-grid > .agent-section-block:nth-child(2) {
  height: 295px;
  max-height: 295px;
  overflow: hidden;
}

.recent-list-wrap,
#agentHeroHistoryList {
  flex: 1 1 0%;
  min-height: 0;
  max-height: 215px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
}

#agentHeroHistoryList::-webkit-scrollbar {
  width: 5px;
}
#agentHeroHistoryList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
#agentHeroHistoryList::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 10px;
}
#agentHeroHistoryList::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.agent-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.agent-section-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.agent-link-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.examples-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.example-proj-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}

.example-proj-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.5);
}

.example-card-thumb {
  height: 90px;
  position: relative;
  padding: 8px;
}

.thumb-bottle {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.thumb-traffic {
  background: linear-gradient(135deg, #312e81, #0f172a);
}

.thumb-ppe {
  background: linear-gradient(135deg, #78350f, #0f172a);
}

.example-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.example-card-body {
  padding: 12px;
}

.example-card-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.35;
  color: #f8fafc;
}

.example-card-body p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.recent-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#agentHeroHistoryList {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

#agentHeroHistoryList::-webkit-scrollbar {
  width: 6px;
}

#agentHeroHistoryList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

#agentHeroHistoryList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

#agentHeroHistoryList::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.4);
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.recent-icon {
  font-size: 1.3rem;
}

.recent-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recent-meta strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.recent-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ───────────────────────────────────────────────────────
   VIEW 3: ASSET LIBRARY & TOOLBARS
   ─────────────────────────────────────────────────────── */
.assets-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Global Modern Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-width: 320px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.search-box svg {
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-box:focus-within svg {
  color: #60a5fa;
}

.search-box input {
  background: transparent;
  border: none;
  color: #f8fafc;
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  width: 100%;
}

.search-box input::placeholder {
  color: #64748b;
  font-weight: 500;
}

/* Modern Custom Dropdown UI (Replaces native OS select popups) */
.custom-dropdown-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
  z-index: 100;
}

.custom-dropdown-wrap:has(.custom-dropdown-btn.open) {
  z-index: 9999;
}

.custom-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.custom-dropdown-btn.open {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.custom-dropdown-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-dropdown-val {
  color: #f8fafc;
  font-weight: 600;
}

.custom-dropdown-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.custom-dropdown-btn.open .custom-dropdown-arrow {
  transform: rotate(180deg);
  color: #60a5fa;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 6px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.custom-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #ffffff;
  transform: translateX(2px);
}

.custom-dropdown-item.active {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  font-weight: 700;
}

.custom-dropdown-item svg {
  opacity: 0;
  color: #60a5fa;
  transition: opacity 0.15s ease;
}

.custom-dropdown-item.active svg {
  opacity: 1;
}

/* Native select hide when upgraded */
select.custom-upgraded {
  display: none !important;
}

/* Premium Empty State Modern */
.empty-state-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  margin: 20px auto;
  max-width: 580px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.empty-state-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

.empty-state-modern h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.empty-state-modern p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}

.assets-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.asset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
}

.asset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.asset-card-proj-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #93c5fd;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───────────────────────────────────────────────────────
   VIEW 4: EXPLORE
   ─────────────────────────────────────────────────────── */
.explore-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.explore-card {
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px -4px rgba(99, 102, 241, 0.2);
}

.explore-card-banner {
  height: 120px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  background-size: cover;
  background-position: center;
}

.explore-banner-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.4px;
}

.banner-safety {
  background: linear-gradient(135deg, #d97706 0%, #78350f 50%, #0f172a 100%);
}

.banner-fire {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 50%, #0f172a 100%);
}

.banner-traffic {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #0f172a 100%);
}

.banner-parking {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
}

.banner-bottle {
  background: linear-gradient(135deg, #059669 0%, #065f46 50%, #0f172a 100%);
}

.banner-pcb {
  background: linear-gradient(135deg, #0d9488 0%, #115e59 50%, #0f172a 100%);
}

.banner-retail {
  background: linear-gradient(135deg, #db2777 0%, #9d174d 50%, #0f172a 100%);
}

.banner-logistics {
  background: linear-gradient(135deg, #ea580c 0%, #9a3412 50%, #0f172a 100%);
}

.banner-agriculture {
  background: linear-gradient(135deg, #16a34a 0%, #166534 50%, #0f172a 100%);
}

.banner-drone {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #0f172a 100%);
}

.banner-medical {
  background: linear-gradient(135deg, #0891b2 0%, #155e75 50%, #0f172a 100%);
}

.explore-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.explore-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.explore-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

.badge-safety {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-traffic {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-industry {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-retail {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-agri {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-medical {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-security {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-sports {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.banner-energy {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 50%, #0f172a 100%);
}

.banner-security {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 50%, #0f172a 100%);
}

.banner-sports {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
}

.banner-textile {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 50%, #0f172a 100%);
}

.banner-automotive {
  background: linear-gradient(135deg, #475569 0%, #1e293b 50%, #0f172a 100%);
}

/* Explore Section Headers & Public Projects Grid */
.explore-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-section-header:first-child {
  margin-top: 0;
}

.explore-section-title-wrap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px 0;
}

.explore-section-title-wrap p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.explore-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.explore-type-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.explore-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
  line-height: 1.35;
}

.explore-card-body p {
  color: #94a3b8;
  font-size: 0.83rem;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

.explore-class-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.explore-class-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.explore-class-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.explore-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.explore-model-hint {
  font-size: 0.73rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.explore-use-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.explore-use-btn:hover {
  background: var(--primary-color, #3b82f6);
  color: #fff;
  border-color: var(--primary-color, #3b82f6);
  transform: scale(1.02);
}

/* ───────────────────────────────────────────────────────
   VIEW 5: WORKSPACE SETTINGS (Modern Sleek SaaS Style)
   ─────────────────────────────────────────────────────── */
.ws-settings-card {
  max-width: 820px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.ws-settings-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.ws-settings-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ws-settings-card .form-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Settings Card Header with Icon */
.ws-settings-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-settings-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.ws-settings-card-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.ws-settings-card-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

/* Settings Grid (2-col & 1-col) */
.settings-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .settings-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Group Inside Settings */
.ws-settings-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-settings-card .form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ws-settings-card .form-group input[type="text"],
.ws-settings-card .form-group input[type="email"],
.ws-settings-card .form-group input[type="password"] {
  background: rgba(11, 19, 41, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ws-settings-card .form-group input[readonly] {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  cursor: default;
}

.ws-settings-card .form-group input:focus:not([readonly]) {
  border-color: rgba(59, 130, 246, 0.7) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

/* Modern Setting Toggle Switch Row */
.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.setting-toggle-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.setting-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-toggle-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.setting-toggle-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Modern iOS-Style Toggle Switch */
.switch-slider-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-slider-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.25s;
  border-radius: 99px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.switch-slider-wrap input:checked+.switch-slider {
  background-color: #3b82f6;
  border-color: #2563eb;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.switch-slider-wrap input:checked+.switch-slider:before {
  transform: translateX(20px);
}

/* Recent icon svg wrapper */
.recent-icon-svg {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────
   ADMIN USERS TABLE & DATA CONTROLS
   ─────────────────────────────────────────────────────── */
.admin-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-table-controls input {
  background: rgba(11, 19, 41, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 16px !important;
  color: #f8fafc !important;
  font-size: 0.9rem !important;
  min-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-table-controls input:focus {
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none;
}

.admin-table-count {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.admin-table-wrap {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-data-table th {
  background: rgba(11, 19, 41, 0.95);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-data-table tr:last-child td {
  border-bottom: none;
}

.admin-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* User Cell */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-cell img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: #1e293b;
  flex-shrink: 0;
}

.admin-user-cell strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

/* Role Badges */
.admin-role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-role-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.admin-role-badge.user {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

/* Status Pill */
.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.admin-status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Action Buttons */
.admin-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-action-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.admin-action-btn.danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Logs & Models Modern Styles */
.admin-models-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.admin-model-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.admin-model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
}

.admin-model-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-model-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.admin-model-fname {
  font-size: 0.8rem;
  color: #64748b;
  font-family: monospace;
  margin-top: 3px;
}

.fmt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.fmt-pill.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.fmt-pill.red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.admin-model-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.admin-model-meta-row strong {
  color: #f8fafc;
}

.admin-model-card .preload-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-model-card .preload-btn:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* Modern Linux-Style Terminal Log Console */
.admin-logs-console {
  background: rgba(8, 14, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.admin-logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.admin-logs-body {
  padding: 18px 22px;
  font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
  font-size: 0.85rem;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}

.admin-log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-log-time {
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.admin-log-cat {
  color: #60a5fa;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.admin-log-msg {
  color: #e2e8f0;
  word-break: break-word;
}

/* ───────────────────────────────────────────────────────
   VIEW 5.5: SUPER ADMIN CONSOLE STYLES
   ─────────────────────────────────────────────────────── */
.admin-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.admin-subnav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 4px;
  background: rgba(11, 19, 41, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.admin-tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s, border-color 0.18s;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
}

.admin-m-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-m-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.admin-m-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-m-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.admin-m-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-m-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-m-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-m-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.admin-m-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.admin-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.admin-spec-item span {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-spec-item strong {
  font-size: 0.92rem;
  color: #f8fafc;
  font-weight: 700;
}

/* Keyboard Shortcut Item */
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-action {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
}

.shortcut-key-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93c5fd;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Settings Row Actions */
.settings-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Auth Feature Icon SVG */
.auth-feat-icon-svg {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60a5fa;
}

/* Sidebar NEW Badge */
.ws-nav-badge-new {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Sidebar Soon / Emoji Badge */
.ws-nav-badge-soon {
  margin-left: auto;
  font-size: 0.82rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  user-select: none;
}

.ws-nav-item:hover .ws-nav-badge-soon {
  transform: scale(1.2);
}

/* Agent selector pill label */
.agent-tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Recent icon svg wrapper */
.recent-icon-svg {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===================================================== */
/* MODERN SETTINGS & CLASSES VIEW STYLES */
/* ===================================================== */
.modern-settings-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 12px 40px;
}

.modern-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-header-title h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.settings-header-title p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.settings-header-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-badge-pill {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.settings-badge-pill.active-status {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.modern-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.settings-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.6);
}

.settings-card.full-width-card {
  grid-column: 1 / -1;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header-row.space-between {
  justify-content: space-between;
}

.card-header-row .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.ai-purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.25);
  color: #a78bfa;
}

.card-icon.class-green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.card-header-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.card-header-row .sub-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group-modern:last-child {
  margin-bottom: 0;
}

.form-group-modern label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.modern-input,
.modern-textarea,
.modern-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}

.modern-input:focus,
.modern-textarea:focus,
.modern-select:focus {
  background: rgba(30, 41, 59, 0.95);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.modern-textarea {
  resize: vertical;
  line-height: 1.5;
}

.field-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 6px 0 0 0;
}

.btn-add-class-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-add-class-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.modern-classes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cls-row-pill.modern-cls-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.cls-row-pill.modern-cls-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
}

.cls-badge-idx {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.cls-color-wrapper {
  display: flex;
  align-items: center;
}

.cls-color-input {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  background: none;
  overflow: hidden;
}

.cls-input-group.flex-1 {
  flex: 1;
}

.cls-input-group.flex-2 {
  flex: 2;
}

.action-footer-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
}

.action-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-zone-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.btn-danger-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-danger-modern:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* =======================================================
   MODERN UPLOAD PROGRESS OVERLAY
   ======================================================= */
.upload-progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: 16px;
  padding: 24px;
}

.modern-upload-progress-card {
  width: 100%;
  max-width: 520px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-icon-animated {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseUploadGlow 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseUploadGlow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
  }
}

.progress-text-block {
  flex: 1;
}

.progress-text-block h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.progress-text-block p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.progress-pct-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.modern-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #3b82f6, #38bdf8);
  border-radius: 99px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.progress-footer-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

/* =======================================================
   FULL-SCREEN BATCH AUTO-LABEL PROCESSING OVERLAY
   ======================================================= */
.modal-overlay.full-screen-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(11, 15, 25, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: all !important;
}

.modern-batch-card {
  width: 100%;
  max-width: 560px;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.batch-model-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 99px;
}

.batch-radar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.batch-radar-pulse {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: radarPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes radarPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
  }
}

.batch-status-text-wrap {
  flex: 1;
}

.batch-status-text-wrap h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 3px 0;
}

.batch-status-text-wrap p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.batch-pct-pill {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 14px;
  border-radius: 99px;
}

.batch-live-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.batch-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-stat-card .stat-lbl {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.batch-stat-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

/* Keyboard Shortcut Key Badges */
.kbd-badge {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Floating AI Progress Widget */
#batchFloatingWidget {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

#batchFloatingWidget:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TERMS OF SERVICE & PRIVACY POLICY MODAL
══════════════════════════════════════════════════════════════════════════ */
.terms-modal-body::-webkit-scrollbar {
  width: 7px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

.terms-tab-btn:hover {
  color: #f8fafc !important;
}

.terms-tab-btn.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
}

.terms-panel {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRIVACY POLICY & KVKK VIEW STYLES
══════════════════════════════════════════════════════════════════════════ */
.privacy-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  border-left: 2px solid transparent;
}

.privacy-nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.privacy-nav-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-left-color: #38bdf8;
  font-weight: 700;
}

@media (max-width: 900px) {
  .privacy-container {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 24px 16px !important;
  }

  .privacy-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }
}

@media print {

  .privacy-topbar,
  .privacy-sidebar,
  #termsModal,
  .auth-view,
  .landing-view {
    display: none !important;
  }

  #privacyView {
    display: block !important;
    background: #fff !important;
    color: #000 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .privacy-container {
    padding: 0 !important;
  }

  .privacy-content {
    color: #111 !important;
  }

  .privacy-content h1,
  .privacy-content h2 {
    color: #000 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   IN-APP DIALOG MODAL ENGINE (Confirm, Alert, Prompt)
   Replaces native browser popups with beautiful Dark Glassmorphism UI
══════════════════════════════════════════════════════════════════════════ */
.app-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  animation: appDialogFadeIn 0.18s ease-out forwards;
}

.app-dialog-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 490px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: appDialogPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.app-dialog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.app-dialog-card.dialog-danger::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.app-dialog-card.dialog-warning::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.app-dialog-card.dialog-info::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.app-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-dialog-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.dialog-danger .app-dialog-icon-wrapper {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
}

.dialog-warning .app-dialog-icon-wrapper {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
}

.dialog-info .app-dialog-icon-wrapper {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.28);
}

.app-dialog-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-dialog-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.app-dialog-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-dialog-message {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
}

.app-dialog-input-group {
  margin-top: 4px;
}

.app-dialog-input {
  width: 100%;
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 11px 14px;
  color: #f8fafc;
  font-size: 0.94rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.app-dialog-input:focus {
  border-color: #6366f1;
  background: #0c1220;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.app-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-dialog-cancel {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dialog-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  border-color: #475569;
}

.btn-dialog-confirm {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 20px;
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-dialog-confirm:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

.dialog-danger .btn-dialog-confirm {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.dialog-danger .btn-dialog-confirm:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.dialog-warning .btn-dialog-confirm {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.dialog-info .btn-dialog-confirm {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

@keyframes appDialogFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes appDialogPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   ROBOFLOW-STYLE CREATE PROJECT REDESIGN & RADAR ANIMATIONS
   ========================================================================== */

.modern-glass-card {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

.form-modern-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.form-input-modern {
  width: 100%;
  background: rgba(2, 6, 23, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  padding: 12px 16px 12px 42px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-input-modern:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  background: rgba(2, 6, 23, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Modern Visibility Pill Toggle */
.modern-pill-toggle {
  display: flex;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.modern-pill-toggle .pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-pill-toggle .pill-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.modern-pill-toggle .pill-btn.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Modern Select */
.select-wrapper-modern {
  position: relative;
}

.form-select-modern {
  width: 100%;
  appearance: none;
  background: rgba(2, 6, 23, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  font-size: 0.92rem !important;
  padding: 12px 38px 12px 14px !important;
  cursor: pointer;
  transition: all 0.2s;
}

.form-select-modern:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.select-wrapper-modern::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  rotate: 45deg;
  pointer-events: none;
}

/* Modern Project Type Cards */
.project-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.type-card-modern {
  background: rgba(2, 6, 23, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.type-card-modern:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

.type-card-modern.selected {
  background: rgba(14, 165, 233, 0.06);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2), 0 16px 36px -10px rgba(14, 165, 233, 0.25);
}

.type-card-modern.selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.type-card-left {
  flex: 1;
}

.type-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.type-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cls-badge-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.type-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.type-badges-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.type-badge-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.type-badge-pill.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

.type-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE RADAR & OBJECT DETECTION ANIMATION
   ========================================================================== */

.type-card-preview-animated {
  width: 170px;
  height: 105px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.animated-radar-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
}

.radar-scanline {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 8px #38bdf8;
  animation: radarScan 2.4s ease-in-out infinite;
}

@keyframes radarScan {
  0% {
    top: 0%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.animated-target-bbox {
  position: absolute;
  border-radius: 4px;
  animation: targetPulse 2.8s ease-in-out infinite alternate;
}

.bbox-1 {
  top: 18px;
  left: 14px;
  width: 65px;
  height: 48px;
  border: 1.5px solid #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.bbox-2 {
  bottom: 12px;
  right: 14px;
  width: 70px;
  height: 44px;
  border: 1.5px solid #10b981;
  background: rgba(16, 185, 129, 0.12);
  animation-delay: 0.8s;
}

.bbox-tag {
  position: absolute;
  top: -12px;
  left: -1px;
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.tag-car {
  background: #ef4444;
  color: #ffffff;
}

.tag-drone {
  background: #10b981;
  color: #ffffff;
}

@keyframes targetPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Classification Animated Screen */
.animated-classification-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 75%);
}

.cls-pulse-wave {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.4);
  animation: clsWave 2s linear infinite;
}

@keyframes clsWave {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.cls-result-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cls-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.cls-name-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6ee7b7;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   SLEEK CLASS PILLS & PROMPT INPUTS
   ========================================================================== */

.btn-modern-add-cls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modern-add-cls:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.classes-pills-editor-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.cls-row-pill-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.cls-row-pill-modern:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(2, 6, 23, 0.85);
}

.cls-drag-indicator {
  color: #475569;
  font-size: 0.9rem;
  cursor: grab;
  user-select: none;
}

.cls-name-input-modern,
.cls-prompts-input-modern {
  width: 100%;
  background: transparent !important;
  border: none !important;
  color: #f8fafc !important;
  font-size: 0.9rem !important;
  padding: 6px 4px !important;
}

.cls-name-input-modern:focus,
.cls-prompts-input-modern:focus {
  outline: none !important;
}

.cls-color-picker-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cls-color-input-modern {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  transform: scale(1.5);
}

.cls-del-btn-modern {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.cls-del-btn-modern:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cls-del-btn-modern:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   MODERN FOOTER BUTTONS
   ========================================================================== */

.create-proj-footer-modern {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-modern:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-submit-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb, #4f46e5);
  border: none;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(37, 99, 235, 0.65);
  background: linear-gradient(135deg, #0369a1, #1d4ed8, #4338ca);
}

/* ==========================================================================
   AUTH LEGAL NOTICE (TERMS & PRIVACY)
   ========================================================================== */

.auth-legal-notice {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-legal-notice a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.auth-legal-notice a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Chrome autofill dark background fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d1527 inset !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   MODERN CREATE PROJECT VIEW (ROBOFLOW-INSPIRED REDESIGN)
   ========================================================================== */

.modern-glass-card {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 36px 40px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

.create-proj-heading h1 {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}

.create-proj-sub {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  text-align: center !important;
  margin-bottom: 32px !important;
}

.form-modern-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  margin-bottom: 8px !important;
}

.req-star {
  color: #ef4444 !important;
}

.form-row-2 {
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
  margin-bottom: 24px !important;
}

.flex-1 {
  flex: 1 !important;
}

.flex-2 {
  flex: 2 !important;
}

.input-icon-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.input-icon-wrapper .input-icon {
  position: absolute !important;
  left: 14px !important;
  color: #64748b !important;
  pointer-events: none !important;
}

.form-input-modern {
  width: 100% !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 12px 16px 12px 42px !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
}

.form-input-modern:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Modern Pill Toggle (Genel / Özel) */
.modern-pill-toggle {
  display: flex !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 4px !important;
  gap: 4px !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.modern-pill-toggle .pill-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  padding: 0 8px !important;
}

.modern-pill-toggle .pill-btn:hover {
  color: #f1f5f9 !important;
}

.modern-pill-toggle .pill-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

/* Modern Select Dropdown */
.select-wrapper-modern {
  position: relative !important;
}

.form-select-modern {
  width: 100% !important;
  height: 48px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  color: #f8fafc !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
}

.form-select-modern:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

.form-select-modern option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* Project Types Section */
.project-type-section {
  margin-top: 24px !important;
}

.section-title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.section-label {
  display: block !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

.section-subtext {
  font-size: 0.8rem !important;
  color: #64748b !important;
}

.project-types-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.type-card-modern {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(30, 41, 59, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  gap: 20px !important;
}

.type-card-modern:hover {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-2px) !important;
}

.type-card-modern.selected {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1px #0284c7, 0 8px 24px rgba(2, 132, 199, 0.18) !important;
}

.type-card-left {
  flex: 1 !important;
}

.type-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 8px !important;
}

.type-icon-badge {
  width: 40px !important;
  height: 40px !important;
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.cls-badge-icon {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
}

.type-card-header h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin: 0 !important;
}

.type-badges-list {
  display: flex !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.type-badge-pill {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

.type-badge-pill.active {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
}

.type-card-desc {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ==========================================================================
   ANIMATED RADAR & BOUNDING BOX SCREEN (YOLO TARGET RETICLE)
   ========================================================================== */

.type-card-preview-animated {
  flex-shrink: 0 !important;
  width: 220px !important;
  height: 90px !important;
  position: relative !important;
}

.animated-radar-screen {
  width: 100% !important;
  height: 100% !important;
  background: #090e1a !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8) !important;
}

/* Radar Scan Line Animation */
.radar-scanline {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 40px !important;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0.8)) !important;
  filter: drop-shadow(0 0 8px #38bdf8) !important;
  animation: radarScan 3s infinite linear !important;
  pointer-events: none !important;
}

@keyframes radarScan {
  0% {
    left: -40px;
  }

  100% {
    left: 240px;
  }
}

/* Target BBoxes inside radar */
.animated-target-bbox {
  position: absolute !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}

.bbox-1 {
  top: 14px !important;
  left: 20px !important;
  width: 78px !important;
  height: 48px !important;
  border: 1.5px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  animation: pulseBBoxRed 2.2s infinite ease-in-out !important;
}

.bbox-2 {
  top: 24px !important;
  right: 20px !important;
  width: 76px !important;
  height: 42px !important;
  border: 1.5px solid #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  animation: pulseBBoxGreen 2.8s infinite ease-in-out !important;
}

@keyframes pulseBBoxRed {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  }
}

@keyframes pulseBBoxGreen {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(16, 185, 129, 0);
  }

  50% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
}

.bbox-tag {
  position: absolute !important;
  top: -14px !important;
  left: -1px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  color: #fff !important;
  letter-spacing: 0.02em !important;
}

.tag-car {
  background: #ef4444 !important;
}

.tag-drone {
  background: #10b981 !important;
}

/* Animated Classification Screen */
.animated-classification-screen {
  width: 100% !important;
  height: 100% !important;
  background: #090e1a !important;
  border: 1px solid rgba(192, 132, 252, 0.25) !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cls-pulse-wave {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%) !important;
  animation: clsWave 2.4s infinite ease-in-out !important;
}

@keyframes clsWave {

  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.9;
  }
}

.cls-result-card {
  position: relative !important;
  z-index: 2 !important;
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(192, 132, 252, 0.5) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.cls-icon-dot {
  width: 8px !important;
  height: 8px !important;
  background: #c084fc !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #c084fc !important;
}

.cls-name-text {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
}

/* ==========================================================================
   ANNOTATION CLASSES PILLS (MODERN DARK INPUTS)
   ========================================================================== */

.annotation-group-section {
  margin-top: 24px !important;
}

.btn-modern-add-cls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-modern-add-cls:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.classes-pills-editor-modern {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.cls-row-pill-modern {
  display: flex !important;
  align-items: center !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  gap: 12px !important;
  transition: border-color 0.2s ease !important;
}

.cls-row-pill-modern:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.cls-drag-indicator {
  color: #64748b !important;
  font-size: 1.1rem !important;
  cursor: grab !important;
  user-select: none !important;
}

.cls-input-group {
  display: flex !important;
  align-items: center !important;
}

.classes-pills-editor-modern input[type="text"],
.cls-name-input-modern,
.cls-prompts-input-modern {
  width: 100% !important;
  background: #0d1527 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #f8fafc !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.classes-pills-editor-modern input[type="text"]:focus,
.cls-name-input-modern:focus,
.cls-prompts-input-modern:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  background: #070d19 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.cls-color-picker-wrap {
  position: relative !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.cls-color-input-modern {
  position: absolute !important;
  top: -8px !important;
  left: -8px !important;
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  cursor: pointer !important;
  background: none !important;
}

.cls-del-btn-modern {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cls-del-btn-modern:not(:disabled):hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
}

.cls-del-btn-modern:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   CREATE PROJECT ACTION FOOTER (MODERN BUTTONS)
   ========================================================================== */

.create-proj-footer-modern {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  margin-top: 36px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-cancel-modern {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-cancel-modern:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.btn-submit-modern {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-submit-modern:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1) !important;
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.7) !important;
  transform: translateY(-1px) !important;
}

.btn-submit-modern:active {
  transform: translateY(1px) !important;
}

