@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --sidebar-width: 260px;

  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.4);

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --accent-yellow: #eab308;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --bg-hover: rgba(16, 185, 129, 0.08);
  --bg-active: rgba(16, 185, 129, 0.12);
  --bg-dark: #f1f5f9;
  --bg-card-hover: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border: #e2e8f0;

  --secondary: #0ea5e9;
  --accent: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --card-glow: 0 0 0 transparent;

  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-focus: var(--primary);

  --glow-primary: rgba(16, 185, 129, 0.25);
  --glow-secondary: rgba(14, 165, 233, 0.25);
  --bg-navbar: rgba(255, 255, 255, 0.8);
  --bg-section: rgba(241, 245, 249, 0.8);
  --bg-footer: rgba(255, 255, 255, 0.9);

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);

  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);

  --scroll-progress-bg: rgba(16, 185, 129, 0.1);
  --scroll-progress-bg: rgba(16, 185, 129, 0.1);

  /* Asset Hero Light Mode Overrides */
  --asset-hero-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.95));
  --asset-value-color: linear-gradient(135deg, #1e293b 20%, var(--primary-dark) 80%);
  --asset-glow: 0 0 20px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] {
  --bg-primary: #0c1222;
  --bg-secondary: #141d2f;
  --bg-tertiary: #1c2a42;
  --bg-card: #182136;
  --bg-sidebar: linear-gradient(180deg, #141d2f 0%, #0f1829 100%);
  --bg-hover: rgba(16, 185, 129, 0.12);
  --bg-active: rgba(16, 185, 129, 0.2);
  --bg-dark: #0c1222;
  --bg-card-hover: #1c2a42;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  --border-color: #1e3050;
  --border-light: #243652;
  --border: #1e3050;

  --secondary: #0ea5e9;
  --accent: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;

  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
  --card-glow: 0 0 40px rgba(16, 185, 129, 0.12);

  --input-bg: #1c2a42;
  --input-border: #243652;
  --input-focus: var(--primary);

  --neon-glow: 0 0 20px var(--primary-glow), 0 0 40px rgba(16, 185, 129, 0.2);

  --glow-primary: rgba(16, 185, 129, 0.4);
  --glow-secondary: rgba(14, 165, 233, 0.4);
  --bg-navbar: rgba(15, 23, 42, 0.9);
  --bg-section: rgba(30, 41, 59, 0.5);
  --bg-footer: rgba(15, 23, 42, 0.8);

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);

  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.25);

  --scroll-progress-bg: rgba(16, 185, 129, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-normal), transform var(--transition-normal);
  backdrop-filter: blur(20px);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.sidebar-logo-text span {
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 4px;
  cursor: pointer;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 24px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  transition: transform var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item:hover .nav-icon {
  color: var(--primary);
}

.nav-item.active {
  background: var(--bg-active);
  color: var(--primary);
}

.nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-item.active .nav-icon {
  color: var(--primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.theme-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.theme-switch.active {
  background: var(--primary);
}

.theme-switch.active::after {
  transform: translateX(24px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px 32px;
  min-height: 100vh;
  transition: margin var(--transition-normal);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.page-title p {
  font-size: 14px;
  color: var(--text-secondary);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--card-shadow-hover), var(--card-glow);
  transform: translateY(-2px);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.stat-card {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--stat-color, var(--primary));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), 0 0 30px rgba(var(--stat-rgb, 16, 185, 129), 0.2);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--stat-color, var(--primary)) 0%, var(--stat-color-dark, var(--primary-dark)) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--stat-rgb, 16, 185, 129), 0.3);
}

.stat-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

.stat-card-change.positive {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.stat-card-change.negative {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-floating {
  position: relative;
}

.form-floating .form-input {
  padding-top: 24px;
  padding-bottom: 8px;
}

.form-floating .form-label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: all var(--transition-fast);
  margin: 0;
}

.form-floating .form-input:focus~.form-label,
.form-floating .form-input:not(:placeholder-shown)~.form-label {
  top: 12px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.progress-bar {
  height: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-label-text {
  color: var(--text-secondary);
}

.progress-label-value {
  font-weight: 600;
  color: var(--primary);
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: background var(--transition-fast);
}

.table tr:hover td {
  background: var(--bg-hover);
}

.table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.badge-primary {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 60vh;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-tertiary);
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--chip-bg, var(--bg-tertiary));
  color: var(--chip-color, var(--text-primary));
  border: 1px solid var(--chip-border, var(--border-color));
}

.category-chip-icon {
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-tertiary);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-5 {
  gap: 20px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 20px;
}

.text-2xl {
  font-size: 24px;
}

.text-3xl {
  font-size: 28px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-tertiary);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.text-warning {
  color: var(--warning);
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-5 {
  margin-top: 20px;
}

.mb-1 {
  margin-bottom: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-5 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.w-full {
  width: 100%;
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-md);
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
}

.icon-picker-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
  border: 2px solid transparent;
}

.icon-picker-item:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

.icon-picker-item.selected {
  border-color: var(--primary);
  background: var(--bg-active);
}

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.landing-hero h1 {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.landing-feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: left;
  transition: all var(--transition-normal);
}

.landing-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover), var(--card-glow);
}

.landing-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: var(--shadow-xl);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 80px 16px 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .modal {
    max-width: 100%;
    margin: 20px;
    max-height: 85vh;
  }

  .table-container {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .auth-card {
    padding: 24px;
  }

  .toast-container {
    left: 16px;
    right: 16px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .stat-card-value {
    font-size: 22px;
  }

  .page-title h1 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 16px;
  }

  .card-body {
    padding: 16px;
  }
}

.app-version {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-color);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(16, 185, 129, 0.2);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 24px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.action-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.action-icon.edit:hover {
  color: var(--accent-blue);
}

.action-icon.delete:hover {
  color: var(--error);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quick-action-btn span:first-child {
  font-size: 28px;
}

.quick-action-btn span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.skeleton-label {
  width: 80px;
  height: 14px;
  margin-bottom: 12px;
}

.skeleton-value {
  width: 120px;
  height: 28px;
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-title {
  width: 150px;
  height: 20px;
}

.skeleton-btn {
  width: 80px;
  height: 32px;
}

.skeleton-card-body {
  padding: 24px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.skeleton-row:last-child {
  border-bottom: none;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
}

.skeleton-text-sm {
  width: 60px;
}

.skeleton-text-md {
  width: 100px;
}

.skeleton-text-lg {
  width: 150px;
}

.skeleton-text-xl {
  width: 200px;
}

.skeleton-progress {
  width: 100%;
  height: 12px;
  border-radius: var(--radius-full);
  margin: 12px 0;
}

.skeleton-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.skeleton-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.skeleton-quick-text {
  width: 80px;
  height: 12px;
}

.lottie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lottie-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lottie-container {
  width: 280px;
  height: 280px;
  position: relative;
}

.lottie-message {
  text-align: center;
  margin-top: 16px;
}

.lottie-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.lottie-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.success-checkmark {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #10b981;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: var(--bg-primary);
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #10b981;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 56px;
  left: 18px;
  width: 30px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 48px;
  right: 14px;
  width: 55px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-fix {
  top: 8px;
  width: 5px;
  left: 34px;
  z-index: 1;
  height: 105px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: var(--bg-primary);
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }

  5% {
    transform: rotate(-45deg);
  }

  12% {
    transform: rotate(-405deg);
  }

  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 47px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 54px;
  }

  100% {
    width: 30px;
    left: 18px;
    top: 56px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 56px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 56px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 55px;
    right: 14px;
    top: 48px;
  }
}

.trophy-animation {
  text-align: center;
  animation: trophy-bounce 0.6s ease-out;
}

.trophy-animation .trophy-icon {
  font-size: 100px;
  display: block;
  animation: trophy-shine 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
  0% {
    transform: scale(0) rotate(-15deg);
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }

  70% {
    transform: scale(0.9) rotate(-5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes trophy-shine {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.8));
  }
}

.celebration-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: ring-expand 1s ease-out;
  opacity: 0;
}

@keyframes ring-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: sparkle-burst 0.8s ease-out forwards;
}

@keyframes sparkle-burst {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1) translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.footer-premium {
  margin-top: 60px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.supported-by-premium {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16, 185, 129, .10), rgba(59, 130, 246, .10));
  color: var(--text-primary);
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  min-width: 280px;
}

.supported-by-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .35);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
}

.supported-pill {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.supported-brand {
  font-weight: 800;
  font-size: 16px;
}

.supported-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

.supported-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, .25), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, .22), transparent 55%);
  filter: blur(18px);
  opacity: .9;
  pointer-events: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-dot {
  opacity: .6;
}


.nav-item {
  position: relative;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}

.nav-item .nav-icon {
  transition: transform .15s ease, filter .15s ease;
}

.nav-item:hover {
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(16, 185, 129, .10), rgba(59, 130, 246, .08));
  border-color: rgba(16, 185, 129, .18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 10px rgba(16, 185, 129, .18));
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(59, 130, 246, .10));
  border-color: rgba(16, 185, 129, .28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 1), rgba(59, 130, 246, 1));
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  z-index: 9998;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.onboarding-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-spotlight {
  position: absolute;
  z-index: 9999;
  border-radius: 14px;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, .18),
    0 0 0 9999px rgba(0, 0, 0, .55),
    0 18px 60px rgba(0, 0, 0, .45);
  animation: highlightPulse 1.8s ease-in-out infinite;
}

@keyframes highlightPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(16, 185, 129, .18),
      0 0 0 9999px rgba(0, 0, 0, .55),
      0 18px 60px rgba(0, 0, 0, .45);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(59, 130, 246, .22),
      0 0 0 9999px rgba(0, 0, 0, .55),
      0 22px 80px rgba(0, 0, 0, .55);
  }
}

/* ===== FORCE ONBOARDING LOOK (anti-ketimpa) ===== */
#onboarding-tooltip.onboarding-tooltip {
  position: fixed !important;
  z-index: 100000 !important;
  width: 380px !important;
  max-width: calc(100vw - 28px) !important;
  padding: 16px 16px 14px !important;
  border-radius: 18px !important;
  text-align: center !important;

  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(16, 185, 129, .30), transparent 55%),
    radial-gradient(120% 120% at 90% 60%, rgba(59, 130, 246, .25), transparent 55%),
    rgba(14, 18, 26, .92) !important;

  box-shadow:
    0 18px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;

  backdrop-filter: blur(10px) !important;
}

/* Badge */
#onboarding-tooltip .onboarding-step-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .06) !important;
  margin: 0 auto 10px !important;
}

/* Title & desc (sesuai h4 + p yang kamu pakai) */
#onboarding-tooltip h4.onboarding-title {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .55) !important;
}

#onboarding-tooltip p.onboarding-desc {
  margin: 0 0 12px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, .88) !important;
}

/* Button area (biar gak ketekan ke samping) */
#onboarding-tooltip .onboarding-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: center !important;
}

/* kalau tombol kamu punya class ini, tetap aman */
#onboarding-tooltip button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
}

/* Spotlight & overlay */
#onboarding-overlay.onboarding-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, .55) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 99990 !important;
}

#onboarding-spotlight.onboarding-spotlight {
  position: absolute !important;
  z-index: 99999 !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, .18),
    0 0 0 9999px rgba(0, 0, 0, .55),
    0 18px 60px rgba(0, 0, 0, .45) !important;
  animation: highlightPulse 1.8s ease-in-out infinite !important;
}

/* =========================
   PREMIUM UI (button + modal + toast)
   Tempel di BAWAH theme.css
========================= */

.premium-cta {
  margin-top: 10px;
}

.premium-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  transform: translateZ(0);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(34, 211, 238, 1));
  box-shadow:
    0 10px 26px rgba(124, 58, 237, .18),
    0 10px 26px rgba(34, 211, 238, .12);
}

.premium-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
}

.premium-btn:active {
  transform: translateY(0) scale(.99);
}

.premium-btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
}

.premium-btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .30), transparent);
  transform: rotate(18deg) translateX(-60%);
  animation: premiumShine 2.2s ease-in-out infinite;
}

.premium-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

@keyframes premiumShine {
  0% {
    transform: rotate(18deg) translateX(-70%);
    opacity: .2;
  }

  55% {
    opacity: .55;
  }

  100% {
    transform: rotate(18deg) translateX(70%);
    opacity: .2;
  }
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, .95);
  background: rgba(124, 58, 237, .18);
  border: 1px solid rgba(124, 58, 237, .35);
}

/* Modal */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.premium-modal {
  width: min(520px, 100%);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(18, 18, 24, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  transform: translateY(8px) scale(.98);
  opacity: .0;
  transition: all .18s ease;
}

.premium-modal-overlay.show {
  display: flex;
}

.premium-modal-overlay.show .premium-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.premium-modal-header {
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(34, 211, 238, .22));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.premium-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, .95);
}

.premium-modal-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12.5px;
}

.premium-modal-body {
  padding: 14px 16px 16px;
}

.premium-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .95);
  outline: none;
  font-weight: 700;
  letter-spacing: .4px;
}

.premium-input:focus {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

.premium-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.premium-cancel {
  flex: 1;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
  cursor: pointer;
}

.premium-submit {
  flex: 1;
  border-radius: 14px;
  padding: 10px 12px;
  border: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(34, 211, 238, 1));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.premium-submit::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: rotate(12deg) translateX(-60%);
  animation: premiumShine 2.2s ease-in-out infinite;
}

/* Toast */
.premium-toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: grid;
  gap: 10px;
}

.premium-toast {
  width: min(360px, calc(100vw - 32px));
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(18, 18, 24, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.premium-toast::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 1), rgba(34, 211, 238, 1));
}

.premium-toast-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, .18);
  border: 1px solid rgba(124, 58, 237, .35);
}

.premium-toast-title {
  margin: 0;
  font-weight: 900;
  color: rgba(255, 255, 255, .95);
  font-size: 13.5px;
}

.premium-toast-desc {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  line-height: 1.3;
}

/* premium block sebagai sibling di sidebar footer */
.sidebar-footer .premium-cta {
  margin-top: 12px;
}

.sidebar-footer .premium-cta .premium-btn {
  width: 100%;
}


/* history kalau ditaruh di sidebar kiri */
.historySidebar--inSidebar {
  position: relative;
  top: auto;
  height: 300px;
  margin: 12px;
  width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

.historySidebar--inSidebar .historyTools {
  grid-template-columns: 1fr;
  /* biar rapi di sidebar */
}

.historySidebar--inSidebar .historyList {
  overflow: auto;
  height: calc(300px - 120px);
  /* head+tools kira2 */
}

/* ===== HISTORY SIDEBAR BASE STYLE ===== */
.historySidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.historyHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 0;
}

.historyTitle {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
}

.historyClearBtn {
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.historyClearBtn:hover {
  transform: translateY(-1px);
  background: var(--bg-hover);
  border-color: rgba(16, 185, 129, .35);
}

.historyTools {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.historyTools input,
.historyTools select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  font-weight: 600;
}

.historyTools input:focus,
.historyTools select:focus {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.historyList {
  padding: 0 10px 12px;
  display: grid;
  gap: 8px;
}

/* item history (yang dirender JS) */
.historyItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.historyItem:hover {
  transform: translateY(-1px);
  background: rgba(16, 185, 129, .08);
  border-color: rgba(16, 185, 129, .25);
}

.historyItem .historyIco {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .22);
  flex: 0 0 auto;
}

.historyItem .historyText {
  min-width: 0;
  flex: 1;
}

.historyItem .historySummary {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 3px;
}

.historyItem .historyMeta {
  font-size: 11.5px;
  color: var(--text-secondary);
  opacity: .9;
}

/* ===== IN-SIDEBAR CARD LOOK (pakai warna theme, bukan putih polos) ===== */
.historySidebar--inSidebar {
  height: 320px;
  margin: 12px;
  width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.historySidebar--inSidebar .historyList {
  overflow: auto;
  height: calc(320px - 118px);
  padding-bottom: 14px;
}

/* biar scroll area bisa (penting untuk flex container sidebar) */
.sidebar-nav {
  min-height: 0;
}

/* ======================================================
   HISTORY PRO UI (cards + detail) — paste at bottom
====================================================== */

/* Toolbar */
.historyToolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  margin: 14px 0;
}

.historyToolbarLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.historyToolbarRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.historyPill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .05));
  border: 1px solid rgba(16, 185, 129, .25);
}

.historyPillIco {
  font-size: 16px;
}

.historyPillText {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .2px;
}

.historySearchWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.historySearchIco {
  position: absolute;
  left: 12px;
  opacity: .65;
  font-weight: 700;
}

.historySearchWrap input {
  width: 320px;
  max-width: 64vw;
  padding: 10px 12px 10px 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.historySearchWrap input:focus {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.historySelectWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.historySelectIco {
  position: absolute;
  left: 12px;
  opacity: .65;
}

.historySelectWrap select {
  padding: 10px 34px 10px 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.historySelectWrap select:focus {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.historyBtnDanger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: linear-gradient(180deg, rgba(239, 68, 68, .14), rgba(239, 68, 68, .06));
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.historyBtnDanger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(239, 68, 68, .18);
}

/* Cards list */
.historyCards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.historyEmpty {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  background: rgba(2, 6, 23, .02);
}

/* One card */
.historyCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.historyCard:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
}

.historyCardLeft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.historyBadge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .25);
  flex: 0 0 auto;
}

.historyCardText {
  min-width: 0;
}

.historyCardSummary {
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 760px;
}

.historyCardMeta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.historyMetaChip {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, .02);
}

.historyCardRight {
  flex: 0 0 auto;
}

.historyArrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, .02);
  font-size: 20px;
  opacity: .75;
}

/* Detail area */
.historyDetailHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.historyDetailTitle {
  font-weight: 900;
  color: var(--text-primary);
  font-size: 16px;
  letter-spacing: .2px;
}

.historyDetailSub {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, .02);
}

.hTagStrong {
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .25);
  color: var(--text-primary);
  font-weight: 800;
}

/* Panels */
.hGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .hGrid {
    grid-template-columns: 1fr;
  }
}

.hPanel {
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, .01);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.hPanelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hKV {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: var(--bg-card);
}

.hKey {
  font-weight: 800;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: lowercase;
  opacity: .9;
}

.hVal {
  text-align: right;
  color: var(--text-primary);
  font-weight: 800;
  word-break: break-word;
  max-width: 70%;
}

.hEmptyNice {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  background: rgba(2, 6, 23, .02);
}

/* Changes list */
.hChange {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hChangeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: var(--bg-card);
}

.hFromTo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  text-align: right;
}

.hFrom {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .25);
  background: rgba(239, 68, 68, .08);
  font-weight: 900;
  color: var(--text-primary);
}

.hTo {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .10);
  font-weight: 900;
  color: var(--text-primary);
}

.hArrowMini {
  opacity: .6;
  font-weight: 900;
}

#btnCloseHistoryDetail {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-weight: 800 !important;
}

.historyDetailTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.historyDetailCloseBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .30);
  background: rgba(2, 6, 23, .02);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.historyDetailCloseBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, .08);
}

/* =========================
   HERO SLIDER (Landing) - FIX 1000x400
========================= */

/* ===== HERO SLIDER: FIX 1000 x 400, CENTER, NO-CROP ===== */
.hero-slider {
  width: min(1000px, 100%);
  margin: 18px auto 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  background: rgba(255, 255, 255, .06);
  position: relative;
}

/* ===== 3D TRANSITION ===== */
.hero-slides {
  perspective: 1200px;
  transform-style: preserve-3d;
  height: 400px;
  /* PAKSA TINGGI 400PX */
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 0, -80px) scale(.98);
  filter: blur(1px);
  transition:
    transform .65s cubic-bezier(.2, .8, .2, 1),
    opacity .45s ease,
    filter .45s ease;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  filter: blur(0);
  z-index: 2;
}

/* posisi “sebelum masuk” dari kanan */
.hero-slide.is-next {
  opacity: 0;
  transform: translate3d(70px, 0, -120px) rotateY(-18deg) scale(.98);
  z-index: 1;
}

/* posisi “sebelum masuk” dari kiri */
.hero-slide.is-prev {
  opacity: 0;
  transform: translate3d(-70px, 0, -120px) rotateY(18deg) scale(.98);
  z-index: 1;
}

/* glow halus biar berasa depth */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% 50%, rgba(0, 0, 0, .12), transparent 60%);
  opacity: .35;
}

.hero-slide.is-active {
  opacity: 1;
}

/* INI KUNCI: gambar dipaksa masuk kotak 1000x400 */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* PAKSA GAMPAR PENUH */
  object-position: center;
  /* selalu tengah */
  display: block;
  background: #1e293b;
}

/* panah kiri kanan */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.hero-nav.prev {
  left: 12px;
}

.hero-nav.next {
  right: 12px;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, .38);
}

/* dots bawah */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
}

/* mobile: tetap 1000:400 rasio, tapi tinggi menyesuaikan */
@media (max-width: 768px) {
  .hero-slides {
    height: 220px;
  }
}

/* =========================================
   LEVEL PRO: AI INSIGHTS & SMART UI
   ========================================= */

#ai-insights-container {
  overflow: hidden;
  border-radius: 24px;
}

.ai-card-pro {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(30, 41, 59, 0.4));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-card-pro:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Responsive Grid utility for Charts */
.grid-cols-1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ApexCharts Overrides for Theme Harmony */
.apexcharts-canvas {
  font-family: 'Outfit', sans-serif !important;
}

.apexcharts-tooltip {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
  border-radius: 12px !important;
}

.apexcharts-tooltip-title {
  background: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Toast Enhanced for PRO */
.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

[data-theme="dark"] .ai-card-pro {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(15, 23, 42, 0.8));
}

/* Premium Asset Item Card */
.asset-item-card-premium {
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  perspective: 1000px;
}

.asset-item-card-premium:hover {
  transform: translateY(-5px) rotateX(4deg) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--bg-rgb), 0.85);
}

.asset-item-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: 0.5s;
}

.asset-item-card-premium:hover::before {
  left: 100%;
}

.asset-item-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px var(--glow-primary);
  margin-right: 20px;
}

.asset-item-info-premium {
  flex: 1;
}

.asset-item-name-premium {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.asset-item-nominal-premium {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 30%, #ec4899 60%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  animation: holoShine 5s linear infinite;
}

@keyframes holoShine {
  to {
    background-position: 200% center;
  }
}

.asset-item-arrow-premium {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.asset-item-card-premium:hover .asset-item-arrow-premium {
  background: var(--primary);
  color: white;
  transform: translateX(3px);
}

/* =========================
   SIMPLE PREMIUM (Table UI)
   ========================= */

.premium-aura-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-premium);
  padding: 50px;
  box-shadow: var(--aura-shadow);
  position: relative;
  transition: all 0.4s ease;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="dark"] .premium-aura-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.premium-icon-box {
  width: 90px;
  height: 90px;
  background: var(--bg-tertiary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.premium-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  text-align: left;
}

.premium-data-table tr {
  border-bottom: 1px solid var(--border-color);
}

.premium-data-table tr:last-child {
  border-bottom: none;
}

.premium-data-table td {
  padding: 16px 0;
  font-size: 15px;
}

.premium-data-table .label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  width: 45%;
}

.premium-data-table .value {
  color: var(--text-primary);
  font-weight: 800;
  text-align: right;
  font-size: 1.05rem;
}

.premium-data-table .value.nominal {
  color: var(--primary);
  font-size: 1.4rem;
}

.premium-progress-mini-wrap {
  width: 120px;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 6px;
  margin-left: auto;
}

.aura-btn-group {
  display: flex;
  flex-direction: row;
  /* Force side-by-side */
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
  width: 100%;
}

.aura-btn {
  flex: 1;
  max-width: 180px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 13px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.aura-btn-primary {
  background: var(--primary);
  color: #fff;
}

.aura-btn-danger {
  background: #fee2e2;
  color: #ef4444;
}

[data-theme="dark"] .aura-btn-danger {
  background: rgba(239, 68, 68, 0.1);
}

.aura-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.asset-tree-node:hover {
  background: var(--bg-hover);
  border-radius: 12px;
}

.asset-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.asset-glass-card {
  background: rgba(var(--bg-rgb), 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.asset-glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--card-glow);
}

.asset-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  box-shadow: 0 8px 16px var(--glow-primary);
}

.asset-progress-mini {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin: 12px 0;
  overflow: hidden;
}

.asset-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.asset-detail-view {
  animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-premium {
  background: var(--gradient-accent);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-premium:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* --- NEW PREMIUM ADDITIONS --- */

.asset-hero-card {
  background: linear-gradient(135deg, rgba(var(--stat-rgb, 139, 92, 246), 0.25), rgba(var(--bg-rgb), 0.95));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(var(--stat-rgb, 139, 92, 246), 0.4);
  border-radius: 36px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
  margin-bottom: 35px;
  animation: heroAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .asset-hero-card {
  background: var(--asset-hero-bg);
  border-color: rgba(var(--stat-rgb, 139, 92, 246), 0.2);
  box-shadow: 0 15px 40px -12px rgba(0, 0, 0, 0.1);
}

@keyframes heroAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.asset-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--stat-rgb, 139, 92, 246), 0.15) 0%, transparent 70%);
  animation: rotateGlow 15s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.asset-value-premium {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 950;
  background: linear-gradient(135deg, #ffffff 20%, var(--primary) 50%, #60a5fa 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -3px;
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.3));
  margin: 5px 0;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  animation: assetValuePulse 4s ease-in-out infinite;
}

[data-theme="light"] .asset-value-premium {
  background: var(--asset-value-color);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.2));
  text-shadow: none;
}

@keyframes assetValuePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 35px rgba(var(--primary-rgb), 0.6));
    transform: scale(1.02);
  }
}

.asset-label-premium {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 14px;
}

#sisa-modal-hero {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

[data-theme="light"] #sisa-modal-hero {
  color: var(--text-primary);
  filter: none;
}

/* Sidebar Tree Modern Redesign */
.nav-subtree-premium {
  margin-top: 15px;
  padding: 10px;
  background: rgba(var(--bg-rgb), 0.4);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.tree-node-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.tree-node-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateX(5px);
}

.tree-node-item.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 16px var(--glow-primary);
}

.tree-node-item.active .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.tree-node-item .node-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 10px;
  transition: inherit;
}

.tree-node-item.active .node-icon {
  background: rgba(255, 255, 255, 0.2);
}

.tree-badge {
  font-size: 10px;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.tree-node-item.active .tree-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* mobile: tetap 1000:400 rasio, tapi tinggi menyesuaikan */
@media (max-width: 768px) {
  .hero-slides {
    height: 220px;
  }
}

/* =========================================
   PREMIUM ONBOARDING V2 (Redesign)
   ========================================= */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  /* Override flex if set elsewhere */
}

.onboarding-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SPOTLIGHT: The "Hole" + Glowing Ring */
.onboarding-spotlight {
  position: absolute;
  border-radius: 16px;
  /* Massive shadow to create the dark mask around the hole */
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Glowing Border Ring */
  border: 2px solid rgba(16, 185, 129, 0.6);
  background: transparent;

  /* Pulse Animation */
  animation: spotlightPulse 3s infinite;
}

@keyframes spotlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4), 0 0 0 9999px rgba(0, 0, 0, 0.85);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(16, 185, 129, 0), 0 0 0 9999px rgba(0, 0, 0, 0.85);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 9999px rgba(0, 0, 0, 0.85);
  }
}

/* TOOLTIP: Glass Card */
.onboarding-tooltip {
  position: absolute;
  width: 340px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.onboarding-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Badge: "Langkah 1/5" */
.onboarding-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  /* Emerald 400 */
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* Content Typography */
.onboarding-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.onboarding-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  /* Slate 400 */
  margin-bottom: 24px;
}

/* Actions Bar */
.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Progress Dots */
.onboarding-progress {
  display: flex;
  gap: 6px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.onboarding-dot.active {
  background: #10b981;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.onboarding-dot.completed {
  background: #3b82f6;
}

/* Buttons */
.onboarding-btns {
  display: flex;
  gap: 12px;
}

.onboarding-btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.onboarding-btn-skip {
  background: transparent;
  color: #94a3b8;
}

.onboarding-btn-skip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.onboarding-btn-next {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.onboarding-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* ====== HERO SLIDER FIX (FINAL) ====== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 400px;
  margin: 40px auto;
  border-radius: var(--radius-xl);
  overflow: hidden !important;
  /* Wajib hidden untuk masking */
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  /* Di atas particles */
}

.hero-slides {
  display: flex !important;
  /* Wajib flex row */
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  /* Jangan menyusut */
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigasi Slider */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 20px;
}

.hero-nav.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.is-active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ====== PARTICLES BG FIX ====== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Di atas body bg, tapi di bawah konten */
  pointer-events: none;
}

/* Ensure content sits ABOVE particles */
.landing-hero,
.testimonials-section,
.faq-section,
.cta-section,
.landing-footer,
.auth-container,
.landing-nav {
  position: relative;
  z-index: 1;
  /* Supaya teks bisa diklik dan jelas */
}

/* Khusus Navigasi harus paling atas */
.landing-nav {
  z-index: 100;
}