 :root {
     --primary: #3b82f6;
     --primary-light: #60a5fa;
     --primary-dark: #2563eb;
     --cyan: #06b6d4;
     --cyan-light: #22d3ee;
     --purple: #8b5cf6;
     --purple-light: #a78bfa;
     --emerald: #10b981;
     --emerald-light: #34d399;
     --rose: #f43f5e;
     --rose-light: #fb7185;
     --amber: #f59e0b;
     --amber-light: #fbbf24;
     --font-jakarta: 'Plus Jakarta Sans', sans-serif;
     --sidebar-width: 272px;
     --sidebar-collapsed: 80px;
     --navbar-height: 68px;
     --transition-fast: 0.15s ease;
     --transition-normal: 0.3s ease;
     --safe-top: env(safe-area-inset-top, 0);
 }

 [data-theme="dark"] {
     --bg-primary: #0a0e1a;
     --bg-secondary: #111827;
     --bg-tertiary: #1f2937;
     --bg-card: rgba(17, 24, 39, 0.85);
     --bg-card-hover: rgba(31, 41, 55, 0.85);
     --bg-card-solid: #111827;
     --text-primary: #f1f5f9;
     --text-secondary: #94a3b8;
     --text-muted: #64748b;
     --border-color: rgba(148, 163, 184, 0.08);
     --border-hover: rgba(148, 163, 184, 0.2);
     --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
     --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
     --gradient-secondary: linear-gradient(135deg, #8b5cf6, #3b82f6);
     --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
     --gradient-danger: linear-gradient(135deg, #f43f5e, #f59e0b);
     --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
 }

 [data-theme="light"] {
     --bg-primary: #f1f5f9;
     --bg-secondary: #ffffff;
     --bg-tertiary: #f8fafc;
     --bg-card: rgba(255, 255, 255, 0.92);
     --bg-card-hover: rgba(241, 245, 249, 0.92);
     --bg-card-solid: #ffffff;
     --text-primary: #0f172a;
     --text-secondary: #475569;
     --text-muted: #94a3b8;
     --border-color: rgba(148, 163, 184, 0.18);
     --border-hover: rgba(148, 163, 184, 0.35);
     --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
     --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
     --gradient-secondary: linear-gradient(135deg, #8b5cf6, #3b82f6);
     --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
     --gradient-danger: linear-gradient(135deg, #f43f5e, #f59e0b);
     --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
 }

 *,
 *::before,
 *::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     -webkit-tap-highlight-color: transparent;
 }

 html {
     scroll-behavior: smooth;
     -webkit-text-size-adjust: 100%;
 }

 body {
     font-family: var(--font-jakarta);
     background: var(--bg-primary);
     color: var(--text-primary);
     line-height: 1.6;
     overflow-x: hidden;
     min-height: 100vh;
     min-height: 100dvh;
     transition: background 0.3s, color 0.3s;
     -webkit-font-smoothing: antialiased;
 }

 body.no-scroll {
     overflow: hidden;
     position: fixed;
     width: 100%;
 }

 ::selection {
     background: rgba(59, 130, 246, 0.3);
     color: var(--text-primary);
 }

 ::-webkit-scrollbar {
     width: 6px;
     height: 6px;
 }

 ::-webkit-scrollbar-track {
     background: transparent;
 }

 ::-webkit-scrollbar-thumb {
     background: var(--text-muted);
     border-radius: 3px;
 }

 ::-webkit-scrollbar-thumb:hover {
     background: var(--text-secondary);
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 ul,
 ol {
     list-style: none;
 }

 img {
     max-width: 100%;
     display: block;
 }

 button {
     cursor: pointer;
     font-family: inherit;
     border: none;
     background: none;
 }

 input,
 select,
 textarea {
     font-family: inherit;
 }

 /* LAYOUT */
 .app-layout {
     display: flex;
     min-height: 100vh;
     min-height: 100dvh;
 }

 .main-content {
     flex: 1;
     margin-left: var(--sidebar-width);
     min-height: 100vh;
     min-height: 100dvh;
     transition: margin-left var(--transition-normal);
     min-width: 0;
     width: 100%;
 }

 .main-content.collapsed {
     margin-left: var(--sidebar-collapsed);
 }

 .page-content {
     padding: 24px;
     padding-top: calc(var(--navbar-height) + 24px);
     display: flex;
     flex-direction: column;
     gap: 24px;
     max-width: 100%;
     overflow-x: hidden;
 }

 /* SIDEBAR */
 .sidebar {
     position: fixed;
     top: 0;
     left: 0;
     width: var(--sidebar-width);
     height: 100vh;
     height: 100dvh;
     background: var(--bg-card-solid);
     border-right: 1px solid var(--border-color);
     z-index: 50;
     transition: width var(--transition-normal), transform var(--transition-normal);
     display: flex;
     flex-direction: column;
     overflow: hidden;
 }

 .sidebar.collapsed {
     width: var(--sidebar-collapsed);
 }

 .sidebar-header {
     padding: 16px 20px;
     display: flex;
     align-items: center;
     gap: 12px;
     border-bottom: 1px solid var(--border-color);
     height: var(--navbar-height);
     flex-shrink: 0;
 }

 .sidebar-logo {
     width: 40px;
     height: 40px;
     border-radius: 12px;
     background: var(--gradient-primary);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     position: relative;
     overflow: hidden;
 }

 .sidebar-logo::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
     animation: shimmer 3s ease infinite;
     background-size: 200% 100%;
 }

 @keyframes shimmer {
     0% {
         background-position: 200% 0;
     }

     100% {
         background-position: -200% 0;
     }
 }

 .sidebar-brand {
     display: flex;
     flex-direction: column;
     overflow: hidden;
     white-space: nowrap;
     transition: opacity var(--transition-normal), width var(--transition-normal);
     min-width: 0;
 }

 .sidebar.collapsed .sidebar-brand {
     opacity: 0;
     width: 0;
     pointer-events: none;
 }

 .sidebar-brand h1 {
     font-size: 18px;
     font-weight: 800;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     line-height: 1.2;
 }

 .sidebar-brand span {
     font-size: 11px;
     color: var(--text-muted);
     font-weight: 500;
 }

 .sidebar-nav {
     flex: 1;
     padding: 16px 12px;
     overflow-y: auto;
     overflow-x: hidden;
     -webkit-overflow-scrolling: touch;
 }

 .sidebar-nav::-webkit-scrollbar {
     width: 3px;
 }

 .nav-section {
     margin-bottom: 24px;
 }

 .nav-section-title {
     font-size: 11px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1.2px;
     color: var(--text-muted);
     padding: 0 12px;
     margin-bottom: 8px;
     white-space: nowrap;
     overflow: hidden;
     transition: opacity var(--transition-normal);
 }

 .sidebar.collapsed .nav-section-title {
     opacity: 0;
     height: 0;
     margin: 0;
 }

 .nav-link {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 11px 12px;
     border-radius: 10px;
     color: var(--text-secondary);
     font-size: 14px;
     font-weight: 500;
     transition: all var(--transition-fast);
     white-space: nowrap;
     margin-bottom: 2px;
     width: 100%;
     text-align: left;
     min-height: 44px;
 }

 .nav-link:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
 }

 .nav-link.active {
     background: var(--gradient-primary);
     color: #fff;
     box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
 }

 .nav-link i,
 .nav-link svg {
     width: 20px;
     height: 20px;
     flex-shrink: 0;
 }

 .nav-link .nav-text {
     overflow: hidden;
     transition: opacity var(--transition-normal), width var(--transition-normal);
 }

 .sidebar.collapsed .nav-link .nav-text,
 .sidebar.collapsed .nav-link .nav-badge,
 .sidebar.collapsed .nav-link .nav-arrow {
     opacity: 0;
     width: 0;
     overflow: hidden;
 }

 .nav-badge {
     margin-left: auto;
     font-size: 10px;
     font-weight: 700;
     padding: 2px 8px;
     border-radius: 6px;
     color: #fff;
     flex-shrink: 0;
 }

 .nav-badge.red {
     background: var(--rose);
 }

 .nav-badge.green {
     background: var(--emerald);
 }

 .nav-badge.blue {
     background: var(--primary);
 }

 .nav-badge.purple {
     background: var(--purple);
 }

 .nav-arrow {
     margin-left: auto;
     width: 16px !important;
     height: 16px !important;
     transition: transform var(--transition-fast);
     flex-shrink: 0;
 }

 .nav-link.expanded .nav-arrow {
     transform: rotate(90deg);
 }

 .nav-submenu {
     max-height: 0;
     overflow: hidden;
     transition: max-height var(--transition-normal);
     padding-left: 8px;
 }

 .nav-submenu.open {
     max-height: 300px;
 }

 .nav-submenu .nav-link {
     padding: 8px 12px 8px 36px;
     font-size: 13px;
     min-height: 40px;
 }

 .sidebar-footer {
     padding: 12px;
     border-top: 1px solid var(--border-color);
     flex-shrink: 0;
 }

 .sidebar-user {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 10px;
     border-radius: 12px;
     background: var(--bg-card-hover);
     cursor: pointer;
     transition: all var(--transition-fast);
     width: 100%;
     text-align: left;
 }

 .sidebar-user:hover {
     background: var(--gradient-primary);
 }

 .sidebar-user:hover .u-name,
 .sidebar-user:hover .u-role {
     color: #fff;
 }

 .sidebar-user-avatar {
     width: 38px;
     height: 38px;
     border-radius: 10px;
     overflow: hidden;
     flex-shrink: 0;
     border: 2px solid var(--border-color);
 }

 .sidebar-user-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .sidebar-user-info {
     overflow: hidden;
     transition: opacity var(--transition-normal);
     min-width: 0;
 }

 .sidebar.collapsed .sidebar-user-info {
     opacity: 0;
     width: 0;
 }

 .u-name {
     font-size: 13px;
     font-weight: 600;
     color: var(--text-primary);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .u-role {
     font-size: 11px;
     color: var(--text-muted);
     white-space: nowrap;
 }

 .sidebar-overlay {
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.6);
     backdrop-filter: blur(4px);
     z-index: 45;
     opacity: 0;
     transition: opacity var(--transition-normal);
 }

 .sidebar-overlay.active {
     display: block;
     opacity: 1;
 }

 /* NAVBAR */
 .navbar {
     position: fixed;
     top: 0;
     right: 0;
     left: var(--sidebar-width);
     height: var(--navbar-height);
     background: var(--bg-card-solid);
     border-bottom: 1px solid var(--border-color);
     z-index: 40;
     display: flex;
     align-items: center;
     padding: 0 24px;
     gap: 12px;
     transition: left var(--transition-normal);
 }

 .navbar.collapsed {
     left: var(--sidebar-collapsed);
 }

 .navbar-left {
     display: flex;
     align-items: center;
     gap: 10px;
     min-width: 0;
     flex: 1;
 }

 .navbar-right {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-shrink: 0;
 }

 .nav-icon-btn {
     width: 40px;
     height: 40px;
     min-width: 40px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: transparent;
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
     position: relative;
     flex-shrink: 0;
 }

 .nav-icon-btn:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
     border-color: var(--border-hover);
 }

 .nav-icon-btn .dot {
     position: absolute;
     top: 8px;
     right: 8px;
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: var(--rose);
     border: 2px solid var(--bg-card-solid);
 }

 .mobile-toggle {
     display: none;
 }

 .navbar-search {
     position: relative;
     width: 300px;
     max-width: 100%;
 }

 .navbar-search input {
     width: 100%;
     height: 40px;
     padding: 0 16px 0 40px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: var(--bg-card-hover);
     color: var(--text-primary);
     font-size: 14px;
     font-family: var(--font-jakarta);
     outline: none;
     transition: all var(--transition-fast);
 }

 .navbar-search input::placeholder {
     color: var(--text-muted);
 }

 .navbar-search input:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
 }

 .navbar-search .s-icon {
     position: absolute;
     left: 12px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-muted);
     pointer-events: none;
 }

 .navbar-search .s-key {
     position: absolute;
     right: 12px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 11px;
     font-weight: 600;
     color: var(--text-muted);
     background: var(--bg-card-solid);
     padding: 2px 6px;
     border-radius: 4px;
     border: 1px solid var(--border-color);
     pointer-events: none;
 }

 .theme-toggle {
     width: 40px;
     height: 40px;
     min-width: 40px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: transparent;
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
     flex-shrink: 0;
 }

 .theme-toggle:hover {
     background: var(--bg-card-hover);
     color: var(--amber);
     border-color: var(--border-hover);
 }

 [data-theme="dark"] .icon-sun {
     display: block;
 }

 [data-theme="dark"] .icon-moon {
     display: none;
 }

 [data-theme="light"] .icon-sun {
     display: none;
 }

 [data-theme="light"] .icon-moon {
     display: block;
 }

 .live-ticker {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 6px 12px;
     border-radius: 10px;
     background: var(--bg-card-hover);
     border: 1px solid var(--border-color);
     flex-shrink: 0;
 }

 .live-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: var(--emerald);
     position: relative;
     flex-shrink: 0;
 }

 .live-dot::after {
     content: '';
     position: absolute;
     inset: -3px;
     border-radius: 50%;
     background: var(--emerald);
     opacity: 0.4;
     animation: pulse-dot 1.5s ease-in-out infinite;
 }

 @keyframes pulse-dot {

     0%,
     100% {
         opacity: 0.4;
         transform: scale(1);
     }

     50% {
         opacity: 0;
         transform: scale(1.8);
     }
 }

 .navbar-profile {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 5px 12px 5px 5px;
     border-radius: 12px;
     border: 1px solid var(--border-color);
     background: transparent;
     cursor: pointer;
     transition: all var(--transition-fast);
     flex-shrink: 0;
 }

 .navbar-profile:hover {
     background: var(--bg-card-hover);
     border-color: var(--border-hover);
 }

 .navbar-profile-avatar {
     width: 36px;
     height: 36px;
     border-radius: 8px;
     overflow: hidden;
     border: 2px solid var(--primary);
     flex-shrink: 0;
 }

 .navbar-profile-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .np-info-text {
     text-align: left;
     min-width: 0;
 }

 .np-name {
     font-size: 13px;
     font-weight: 600;
     color: var(--text-primary);
     line-height: 1.2;
     white-space: nowrap;
 }

 .np-role {
     font-size: 11px;
     color: var(--text-muted);
     white-space: nowrap;
 }

 /* DROPDOWN */
 .dropdown {
     position: relative;
 }

 .dropdown-menu {
     position: absolute;
     top: calc(100% + 8px);
     right: 0;
     min-width: 280px;
     background: var(--bg-card-solid);
     border: 1px solid var(--border-color);
     border-radius: 14px;
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
     opacity: 0;
     visibility: hidden;
     transform: translateY(-10px) scale(0.95);
     transition: all var(--transition-normal);
     z-index: 200;
     overflow: hidden;
 }

 .dropdown-menu.show {
     opacity: 1;
     visibility: visible;
     transform: translateY(0) scale(1);
 }

 .dd-header {
     padding: 16px;
     border-bottom: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
 }

 .dd-body {
     padding: 8px;
     max-height: 340px;
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
 }

 .dd-item {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 10px 12px;
     border-radius: 10px;
     color: var(--text-secondary);
     font-size: 14px;
     cursor: pointer;
     transition: all var(--transition-fast);
     min-height: 44px;
 }

 .dd-item:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
 }

 .dd-footer {
     padding: 12px;
     border-top: 1px solid var(--border-color);
     text-align: center;
 }

 .dd-footer a {
     font-size: 13px;
     font-weight: 600;
     color: var(--primary);
 }

 .notif-item {
     display: flex;
     align-items: flex-start;
     gap: 12px;
     padding: 12px;
     border-radius: 10px;
     cursor: pointer;
     transition: all var(--transition-fast);
 }

 .notif-item:hover {
     background: var(--bg-card-hover);
 }

 .notif-item.unread {
     background: rgba(59, 130, 246, 0.04);
 }

 .notif-icon {
     width: 40px;
     height: 40px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .notif-title {
     font-size: 13px;
     font-weight: 600;
     color: var(--text-primary);
     margin-bottom: 2px;
 }

 .notif-text {
     font-size: 12px;
     color: var(--text-muted);
     line-height: 1.4;
 }

 .notif-time {
     font-size: 11px;
     color: var(--text-muted);
     margin-top: 4px;
 }

 /* CARD */
 .card {
     background: var(--bg-card);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     transition: all var(--transition-normal);
     min-width: 0;
 }

 .card:hover {
     border-color: var(--border-hover);
     box-shadow: var(--shadow-card);
 }

 .card-pad {
     padding: 24px;
 }

 .card-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-bottom: 20px;
     flex-wrap: wrap;
     gap: 12px;
 }

 .card-header>div:first-child {
     min-width: 0;
     flex: 1;
 }

 .card-title {
     font-size: 16px;
     font-weight: 700;
     color: var(--text-primary);
 }

 .card-subtitle {
     font-size: 13px;
     color: var(--text-muted);
     margin-top: 2px;
 }

 /* PAGE HEADER */
 .page-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 16px;
 }

 .page-header-left {
     min-width: 0;
     flex: 1;
 }

 .page-title-wrap {
     display: flex;
     align-items: center;
     gap: 8px;
     margin-bottom: 6px;
     flex-wrap: wrap;
 }

 .page-title {
     font-size: 26px;
     font-weight: 800;
     color: var(--text-primary);
     line-height: 1.2;
 }

 .page-desc {
     font-size: 14px;
     color: var(--text-muted);
 }

 .breadcrumb {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 12px;
     color: var(--text-muted);
     margin-bottom: 4px;
 }

 .breadcrumb a {
     color: var(--text-muted);
     transition: color 0.2s;
 }

 .breadcrumb a:hover {
     color: var(--primary);
 }

 .breadcrumb i {
     width: 12px;
     height: 12px;
 }

 .page-header-actions {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
     flex-shrink: 0;
 }

 /* AI HERO BANNER */
 .ai-hero {
     background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
     border-radius: 20px;
     padding: 32px;
     position: relative;
     overflow: hidden;
     color: #fff;
 }

 .ai-hero::before {
     content: '';
     position: absolute;
     top: -50%;
     right: -20%;
     width: 60%;
     height: 200%;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
     pointer-events: none;
 }

 .ai-hero-grid {
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 32px;
     align-items: center;
     position: relative;
     z-index: 1;
 }

 .ai-hero-badge {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 5px 12px;
     background: rgba(255, 255, 255, 0.15);
     border: 1px solid rgba(255, 255, 255, 0.25);
     border-radius: 100px;
     font-size: 11px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1px;
     margin-bottom: 14px;
 }

 .ai-hero-title {
     font-size: 30px;
     font-weight: 800;
     line-height: 1.1;
     margin-bottom: 10px;
 }

 .ai-hero-desc {
     font-size: 14px;
     opacity: 0.9;
     max-width: 520px;
     margin-bottom: 22px;
     line-height: 1.55;
 }

 .ai-hero-stats {
     display: flex;
     gap: 28px;
     flex-wrap: wrap;
     margin-bottom: 22px;
 }

 .ai-hero-stat-lbl {
     font-size: 12px;
     opacity: 0.8;
     margin-bottom: 2px;
 }

 .ai-hero-stat-val {
     font-size: 22px;
     font-weight: 800;
 }

 .ai-hero-actions {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
 }

 .ai-hero-illustration {
     position: relative;
     z-index: 1;
 }

 .ai-hero-illustration img {
     width: 200px;
     height: auto;
     filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
     animation: floatBot 4s ease-in-out infinite;
 }

 @keyframes floatBot {

     0%,
     100% {
         transform: translateY(0) rotate(-2deg);
     }

     50% {
         transform: translateY(-15px) rotate(2deg);
     }
 }

 /* STAT CARDS */
 .stat-card {
     background: var(--bg-card);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     padding: 24px;
     transition: all var(--transition-normal);
     position: relative;
     overflow: hidden;
     min-width: 0;
     opacity: 1 !important;
     visibility: visible !important;
 }

 .stat-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     border-radius: 16px 16px 0 0;
     opacity: 0;
     transition: opacity var(--transition-normal);
 }

 .stat-card:hover {
     transform: translateY(-4px);
     border-color: var(--border-hover);
     box-shadow: var(--shadow-card);
 }

 .stat-card:hover::before {
     opacity: 1;
 }

 .stat-card.c-blue::before {
     background: var(--gradient-primary);
 }

 .stat-card.c-green::before {
     background: var(--gradient-success);
 }

 .stat-card.c-amber::before {
     background: linear-gradient(135deg, var(--amber), var(--amber-light));
 }

 .stat-card.c-purple::before {
     background: var(--gradient-purple);
 }

 .sc-header {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     margin-bottom: 16px;
 }

 .sc-icon {
     width: 48px;
     height: 48px;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .sc-value {
     font-size: 24px;
     font-weight: 800;
     color: var(--text-primary);
     line-height: 1.2;
     margin-bottom: 4px;
     word-break: break-word;
 }

 .sc-label {
     font-size: 13px;
     color: var(--text-muted);
     font-weight: 500;
     margin-bottom: 12px;
 }

 .sc-trend {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 13px;
     font-weight: 600;
     flex-wrap: wrap;
 }

 .sc-trend.up {
     color: var(--emerald);
 }

 .sc-trend.down {
     color: var(--rose);
 }

 /* TABS */
 .tabs-nav {
     display: flex;
     gap: 4px;
     border-bottom: 1px solid var(--border-color);
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
     scrollbar-width: none;
     margin-bottom: 20px;
 }

 .tabs-nav::-webkit-scrollbar {
     display: none;
 }

 .tab-btn {
     padding: 12px 18px;
     font-size: 14px;
     font-weight: 600;
     color: var(--text-muted);
     background: transparent;
     border: none;
     border-bottom: 2px solid transparent;
     cursor: pointer;
     transition: all var(--transition-fast);
     white-space: nowrap;
     display: flex;
     align-items: center;
     gap: 8px;
     position: relative;
     margin-bottom: -1px;
 }

 .tab-btn i,
 .tab-btn svg {
     width: 16px;
     height: 16px;
 }

 .tab-btn:hover {
     color: var(--text-primary);
 }

 .tab-btn.active {
     color: var(--primary);
     border-bottom-color: var(--primary);
 }

 .tab-btn .tab-count {
     padding: 2px 7px;
     border-radius: 20px;
     background: var(--bg-card-hover);
     font-size: 10px;
     font-weight: 700;
     color: var(--text-muted);
 }

 .tab-btn.active .tab-count {
     background: rgba(59, 130, 246, 0.15);
     color: var(--primary);
 }

 .tab-content {
     display: none;
     animation: fadeSlide 0.4s ease;
 }

 .tab-content.active {
     display: block;
 }

 @keyframes fadeSlide {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* PILL TABS (Sub tabs) */
 .chart-tabs {
     display: flex;
     gap: 4px;
     background: var(--bg-card-hover);
     padding: 4px;
     border-radius: 8px;
     overflow-x: auto;
     scrollbar-width: none;
     max-width: 100%;
     -webkit-overflow-scrolling: touch;
 }

 .chart-tabs::-webkit-scrollbar {
     display: none;
 }

 .chart-tab {
     padding: 6px 12px;
     border-radius: 6px;
     font-size: 12px;
     font-weight: 600;
     color: var(--text-muted);
     transition: all var(--transition-fast);
     font-family: var(--font-jakarta);
     white-space: nowrap;
     flex-shrink: 0;
 }

 .chart-tab:hover {
     color: var(--text-primary);
 }

 .chart-tab.active {
     background: var(--primary);
     color: #fff;
     box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
 }

 /* BUTTONS */
 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 10px 20px;
     border-radius: 10px;
     font-size: 14px;
     font-weight: 600;
     font-family: var(--font-jakarta);
     transition: all var(--transition-fast);
     outline: none;
     position: relative;
     overflow: hidden;
     white-space: nowrap;
     min-height: 44px;
 }

 .btn-primary {
     background: var(--gradient-primary);
     color: #fff;
     box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
 }

 .btn-primary:hover {
     box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
     transform: translateY(-2px);
 }

 .btn-outline {
     background: transparent;
     border: 1px solid var(--border-color);
     color: var(--text-primary);
 }

 .btn-outline:hover {
     background: var(--bg-card-hover);
     border-color: var(--border-hover);
 }

 .btn-ghost {
     background: transparent;
     color: var(--text-secondary);
 }

 .btn-ghost:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
 }

 .btn-success {
     background: var(--gradient-success);
     color: #fff;
     box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
 }

 .btn-success:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
 }

 .btn-danger {
     background: var(--gradient-danger);
     color: #fff;
 }

 .btn-purple {
     background: var(--gradient-purple);
     color: #fff;
     box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
 }

 .btn-purple:hover {
     transform: translateY(-2px);
 }

 .btn-sm {
     padding: 6px 12px;
     font-size: 12px;
     border-radius: 8px;
     min-height: 32px;
 }

 .btn-glass {
     background: rgba(255, 255, 255, 0.15);
     color: #fff;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.25);
 }

 .btn-glass:hover {
     background: rgba(255, 255, 255, 0.25);
 }

 /* BADGE */
 .badge {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     padding: 4px 10px;
     border-radius: 6px;
     font-size: 12px;
     font-weight: 600;
     white-space: nowrap;
 }

 .badge-primary {
     background: rgba(59, 130, 246, 0.15);
     color: var(--primary-light);
 }

 .badge-success {
     background: rgba(16, 185, 129, 0.15);
     color: var(--emerald-light);
 }

 .badge-danger {
     background: rgba(244, 63, 94, 0.15);
     color: var(--rose-light);
 }

 .badge-warning {
     background: rgba(245, 158, 11, 0.15);
     color: var(--amber-light);
 }

 .badge-purple {
     background: rgba(139, 92, 246, 0.15);
     color: var(--purple-light);
 }

 /* FILTER BAR */
 .filter-bar {
     display: flex;
     align-items: center;
     gap: 12px;
     flex-wrap: wrap;
     padding: 16px 20px;
     background: var(--bg-card);
     border: 1px solid var(--border-color);
     border-radius: 14px;
 }

 .filter-search {
     position: relative;
     flex: 1;
     min-width: 240px;
 }

 .filter-search input {
     width: 100%;
     height: 40px;
     padding: 0 16px 0 40px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: var(--bg-card-hover);
     color: var(--text-primary);
     font-size: 14px;
     font-family: var(--font-jakarta);
     outline: none;
     transition: all var(--transition-fast);
 }

 .filter-search input:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
 }

 .filter-search .s-icon {
     position: absolute;
     left: 12px;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-muted);
     pointer-events: none;
 }

 .filter-select {
     height: 40px;
     padding: 0 36px 0 16px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: var(--bg-card-hover);
     color: var(--text-primary);
     font-size: 13px;
     font-family: var(--font-jakarta);
     outline: none;
     appearance: none;
     cursor: pointer;
     font-weight: 500;
     background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
     background-repeat: no-repeat;
     background-position: right 12px center;
     transition: all var(--transition-fast);
 }

 .filter-select:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
 }

 .filter-btn {
     height: 40px;
     padding: 0 14px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: var(--bg-card-hover);
     color: var(--text-secondary);
     font-size: 13px;
     font-weight: 600;
     font-family: var(--font-jakarta);
     display: flex;
     align-items: center;
     gap: 6px;
     cursor: pointer;
     transition: all var(--transition-fast);
 }

 .filter-btn:hover {
     background: var(--bg-card);
     color: var(--text-primary);
     border-color: var(--border-hover);
 }

 .filter-btn.active {
     background: var(--primary);
     color: #fff;
     border-color: var(--primary);
 }

 .filter-btn i {
     width: 14px;
     height: 14px;
 }

 .filter-btn .count {
     background: rgba(255, 255, 255, 0.2);
     padding: 1px 6px;
     border-radius: 10px;
     font-size: 10px;
     font-weight: 700;
 }

 .view-toggle {
     display: flex;
     gap: 2px;
     padding: 3px;
     background: var(--bg-card-hover);
     border-radius: 10px;
     border: 1px solid var(--border-color);
 }

 .view-btn {
     width: 34px;
     height: 34px;
     border-radius: 8px;
     background: transparent;
     color: var(--text-muted);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
 }

 .view-btn:hover {
     color: var(--text-primary);
 }

 .view-btn.active {
     background: var(--primary);
     color: #fff;
 }

 .view-btn i {
     width: 16px;
     height: 16px;
 }

 /* BOT CARD */
 .bot-card {
     background: var(--bg-card);
     backdrop-filter: blur(20px);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     padding: 24px;
     position: relative;
     overflow: hidden;
     transition: all var(--transition-normal);
 }

 .bot-card:hover {
     transform: translateY(-4px);
     border-color: var(--border-hover);
     box-shadow: var(--shadow-card);
 }

 .bot-card.premium::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: var(--gradient-purple);
 }

 .bot-card-header {
     display: flex;
     align-items: center;
     gap: 14px;
     margin-bottom: 16px;
 }

 .bot-avatar {
     width: 56px;
     height: 56px;
     border-radius: 14px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     position: relative;
     overflow: hidden;
 }

 .bot-avatar.g1 {
     background: linear-gradient(135deg, #3b82f6, #06b6d4);
 }

 .bot-avatar.g2 {
     background: linear-gradient(135deg, #8b5cf6, #ec4899);
 }

 .bot-avatar.g3 {
     background: linear-gradient(135deg, #10b981, #06b6d4);
 }

 .bot-avatar.g4 {
     background: linear-gradient(135deg, #f59e0b, #f43f5e);
 }

 .bot-avatar.g5 {
     background: linear-gradient(135deg, #ef4444, #f97316);
 }

 .bot-avatar.g6 {
     background: linear-gradient(135deg, #06b6d4, #8b5cf6);
 }

 .bot-avatar i {
     width: 26px;
     height: 26px;
     color: #fff;
     position: relative;
     z-index: 1;
 }

 .bot-avatar::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
     animation: shimmer 3s ease infinite;
     background-size: 200% 100%;
 }

 .bot-info {
     flex: 1;
     min-width: 0;
 }

 .bot-name {
     font-size: 16px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 4px;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .bot-status {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 12px;
     font-weight: 600;
 }

 .bot-status.running {
     color: var(--emerald);
 }

 .bot-status.paused {
     color: var(--amber);
 }

 .bot-status.stopped {
     color: var(--rose);
 }

 .bot-status-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     flex-shrink: 0;
     position: relative;
 }

 .bot-status.running .bot-status-dot {
     background: var(--emerald);
 }

 .bot-status.running .bot-status-dot::after {
     content: '';
     position: absolute;
     inset: -3px;
     border-radius: 50%;
     background: var(--emerald);
     opacity: 0.4;
     animation: pulse-dot 1.5s ease-in-out infinite;
 }

 .bot-status.paused .bot-status-dot {
     background: var(--amber);
 }

 .bot-status.stopped .bot-status-dot {
     background: var(--rose);
 }

 .bot-menu-btn {
     width: 32px;
     height: 32px;
     border-radius: 8px;
     background: transparent;
     color: var(--text-muted);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
     flex-shrink: 0;
 }

 .bot-menu-btn:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
 }

 .bot-menu-btn i {
     width: 16px;
     height: 16px;
 }

 .bot-desc {
     font-size: 13px;
     color: var(--text-muted);
     margin-bottom: 16px;
     line-height: 1.5;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .bot-tags {
     display: flex;
     gap: 6px;
     flex-wrap: wrap;
     margin-bottom: 16px;
 }

 .bot-tag {
     padding: 3px 8px;
     border-radius: 6px;
     font-size: 10px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     background: var(--bg-card-hover);
     color: var(--text-secondary);
 }

 .bot-tag.hot {
     background: rgba(244, 63, 94, 0.15);
     color: var(--rose-light);
 }

 .bot-tag.new {
     background: rgba(16, 185, 129, 0.15);
     color: var(--emerald-light);
 }

 .bot-tag.pro {
     background: rgba(139, 92, 246, 0.15);
     color: var(--purple-light);
 }

 .bot-stats-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
     margin-bottom: 16px;
 }

 .bot-stat-box {
     padding: 12px;
     border-radius: 10px;
     background: var(--bg-card-hover);
     border: 1px solid var(--border-color);
 }

 .bot-stat-lbl {
     font-size: 11px;
     color: var(--text-muted);
     margin-bottom: 4px;
     font-weight: 500;
 }

 .bot-stat-val {
     font-size: 16px;
     font-weight: 700;
     color: var(--text-primary);
 }

 .bot-stat-val.up {
     color: var(--emerald);
 }

 .bot-stat-val.down {
     color: var(--rose);
 }

 .bot-progress {
     margin-bottom: 16px;
 }

 .bot-progress-header {
     display: flex;
     justify-content: space-between;
     margin-bottom: 6px;
 }

 .bot-progress-lbl {
     font-size: 12px;
     color: var(--text-muted);
 }

 .bot-progress-val {
     font-size: 12px;
     font-weight: 700;
     color: var(--text-primary);
 }

 .progress-track {
     width: 100%;
     height: 6px;
     background: var(--bg-card-hover);
     border-radius: 3px;
     overflow: hidden;
 }

 .progress-fill {
     height: 100%;
     border-radius: 3px;
     position: relative;
     transition: width 1s ease;
 }

 .progress-fill::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
     animation: shimmerBar 2s linear infinite;
     background-size: 200% 100%;
 }

 @keyframes shimmerBar {
     0% {
         background-position: 200% 0;
     }

     100% {
         background-position: -200% 0;
     }
 }

 .bot-actions {
     display: flex;
     gap: 8px;
 }

 .bot-actions .btn {
     flex: 1;
     padding: 9px 12px;
     font-size: 13px;
     min-height: 40px;
 }

 .bot-action-icon {
     width: 40px;
     height: 40px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: transparent;
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
     flex-shrink: 0;
 }

 .bot-action-icon:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
     border-color: var(--border-hover);
 }

 .bot-action-icon i {
     width: 16px;
     height: 16px;
 }

 .bot-crypto-badges {
     display: flex;
     align-items: center;
     gap: 4px;
     margin-bottom: 16px;
 }

 .bot-crypto-badges img {
     width: 22px;
     height: 22px;
     border-radius: 50%;
     border: 2px solid var(--bg-card-solid);
     margin-left: -6px;
 }

 .bot-crypto-badges img:first-child {
     margin-left: 0;
 }

 .bot-crypto-count {
     font-size: 12px;
     font-weight: 600;
     color: var(--text-muted);
     margin-left: 6px;
 }

 /* LOGS / ACTIVITY */
 .log-item {
     display: flex;
     align-items: flex-start;
     gap: 14px;
     padding: 14px;
     border-radius: 10px;
     transition: background var(--transition-fast);
 }

 .log-item:hover {
     background: var(--bg-card-hover);
 }

 .log-icon {
     width: 36px;
     height: 36px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .log-content {
     flex: 1;
     min-width: 0;
 }

 .log-title {
     font-size: 14px;
     font-weight: 600;
     color: var(--text-primary);
     margin-bottom: 3px;
 }

 .log-desc {
     font-size: 12px;
     color: var(--text-muted);
 }

 .log-time {
     font-size: 11px;
     color: var(--text-muted);
     flex-shrink: 0;
     white-space: nowrap;
 }

 /* STRATEGY TEMPLATE */
 .strategy-card {
     padding: 20px;
     border-radius: 14px;
     background: var(--bg-card-hover);
     border: 1px solid var(--border-color);
     cursor: pointer;
     transition: all var(--transition-fast);
     position: relative;
 }

 .strategy-card:hover {
     transform: translateY(-3px);
     border-color: var(--primary);
     box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
 }

 .strategy-card.selected {
     border-color: var(--primary);
     background: rgba(59, 130, 246, 0.08);
 }

 .strategy-card.selected::before {
     content: '';
     position: absolute;
     top: 12px;
     right: 12px;
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background: var(--primary);
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .strategy-icon {
     width: 42px;
     height: 42px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 12px;
 }

 .strategy-name {
     font-size: 15px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 6px;
 }

 .strategy-desc {
     font-size: 12px;
     color: var(--text-muted);
     line-height: 1.5;
     margin-bottom: 12px;
 }

 .strategy-tags {
     display: flex;
     gap: 6px;
     flex-wrap: wrap;
 }

 /* TABLE */
 .table-wrap {
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
     border-radius: 12px;
     width: 100%;
 }

 .data-table {
     width: 100%;
     border-collapse: collapse;
     white-space: nowrap;
     min-width: 900px;
 }

 .data-table th {
     padding: 12px 16px;
     text-align: left;
     font-size: 12px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     color: var(--text-muted);
     border-bottom: 1px solid var(--border-color);
 }

 .data-table td {
     padding: 14px 16px;
     font-size: 14px;
     color: var(--text-primary);
     border-bottom: 1px solid var(--border-color);
     vertical-align: middle;
 }

 .data-table tbody tr {
     transition: background var(--transition-fast);
 }

 .data-table tbody tr:hover {
     background: var(--bg-card-hover);
 }

 .data-table tbody tr:last-child td {
     border-bottom: none;
 }

 .crypto-cell {
     display: flex;
     align-items: center;
     gap: 12px;
 }

 .crypto-cell-icon {
     width: 34px;
     height: 34px;
     border-radius: 50%;
     overflow: hidden;
     flex-shrink: 0;
     background: var(--bg-card-hover);
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .crypto-cell-icon img {
     width: 22px;
     height: 22px;
 }

 .price-up {
     color: var(--emerald);
 }

 .price-down {
     color: var(--rose);
 }

 /* SWITCH */
 .switch {
     position: relative;
     display: inline-block;
     width: 44px;
     height: 24px;
     flex-shrink: 0;
 }

 .switch input {
     opacity: 0;
     width: 0;
     height: 0;
 }

 .switch-slider {
     position: absolute;
     cursor: pointer;
     inset: 0;
     background: var(--bg-card-hover);
     border: 1px solid var(--border-color);
     transition: 0.3s;
     border-radius: 24px;
 }

 .switch-slider::before {
     position: absolute;
     content: '';
     height: 16px;
     width: 16px;
     left: 3px;
     bottom: 3px;
     background: var(--text-muted);
     transition: 0.3s;
     border-radius: 50%;
 }

 .switch input:checked+.switch-slider {
     background: var(--gradient-primary);
     border-color: transparent;
 }

 .switch input:checked+.switch-slider::before {
     transform: translateX(20px);
     background: #fff;
 }

 /* MODAL */
 .modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.7);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     z-index: 9998;
     opacity: 0;
     visibility: hidden;
     transition: all var(--transition-normal);
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
     overflow-y: auto;
 }

 .modal-overlay.show {
     opacity: 1;
     visibility: visible;
 }

 .modal-box {
     background: var(--bg-card-solid);
     border: 1px solid var(--border-color);
     border-radius: 20px;
     width: 100%;
     max-width: 600px;
     max-height: 90vh;
     max-height: 90dvh;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     transform: scale(0.9) translateY(20px);
     transition: transform var(--transition-normal);
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
 }

 .modal-overlay.show .modal-box {
     transform: scale(1) translateY(0);
 }

 .modal-head {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 20px 24px;
     border-bottom: 1px solid var(--border-color);
     flex-shrink: 0;
 }

 .modal-head h3 {
     font-size: 18px;
     font-weight: 700;
     color: var(--text-primary);
 }

 .modal-close-btn {
     width: 36px;
     height: 36px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: transparent;
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all var(--transition-fast);
 }

 .modal-close-btn:hover {
     background: rgba(244, 63, 94, 0.1);
     color: var(--rose);
     border-color: var(--rose);
 }

 .modal-body {
     padding: 24px;
     overflow-y: auto;
     flex: 1;
 }

 .modal-foot {
     display: flex;
     align-items: center;
     justify-content: flex-end;
     gap: 12px;
     padding: 16px 24px;
     border-top: 1px solid var(--border-color);
     flex-wrap: wrap;
     flex-shrink: 0;
 }

 .form-label {
     display: block;
     font-size: 13px;
     font-weight: 600;
     color: var(--text-secondary);
     margin-bottom: 6px;
 }

 .form-input,
 .form-select {
     width: 100%;
     height: 44px;
     padding: 0 16px;
     border-radius: 10px;
     border: 1px solid var(--border-color);
     background: var(--bg-card-hover);
     color: var(--text-primary);
     font-size: 14px;
     font-family: var(--font-jakarta);
     outline: none;
     transition: all var(--transition-fast);
 }

 .form-input:focus,
 .form-select:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
 }

 .form-select {
     appearance: none;
     cursor: pointer;
 }

 /* TOAST */
 .toast-container {
     position: fixed;
     top: calc(20px + var(--safe-top));
     right: 20px;
     z-index: 99999;
     display: flex;
     flex-direction: column;
     gap: 10px;
     pointer-events: none;
     max-width: calc(100vw - 40px);
 }

 .toast {
     min-width: 320px;
     max-width: 420px;
     padding: 14px 20px;
     border-radius: 12px;
     background: var(--bg-card-solid);
     border: 1px solid var(--border-color);
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
     display: flex;
     align-items: center;
     gap: 12px;
     pointer-events: all;
     animation: toast-in 0.3s ease-out;
 }

 .toast.closing {
     animation: toast-out 0.3s ease-in forwards;
 }

 .toast.t-success {
     border-left: 3px solid var(--emerald);
 }

 .toast.t-error {
     border-left: 3px solid var(--rose);
 }

 .toast.t-warning {
     border-left: 3px solid var(--amber);
 }

 .toast.t-info {
     border-left: 3px solid var(--primary);
 }

 @keyframes toast-in {
     from {
         transform: translateX(120%);
         opacity: 0;
     }

     to {
         transform: translateX(0);
         opacity: 1;
     }
 }

 @keyframes toast-out {
     from {
         transform: translateX(0);
         opacity: 1;
     }

     to {
         transform: translateX(120%);
         opacity: 0;
     }
 }

 .toast-title {
     font-size: 14px;
     font-weight: 600;
     color: var(--text-primary);
 }

 .toast-msg {
     font-size: 13px;
     color: var(--text-muted);
 }

 .toast-close {
     width: 24px;
     height: 24px;
     background: transparent;
     color: var(--text-muted);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     border-radius: 6px;
     transition: all var(--transition-fast);
 }

 .toast-close:hover {
     background: var(--bg-card-hover);
     color: var(--text-primary);
 }

 /* LOADER */
 .page-loader {
     position: fixed;
     inset: 0;
     background: var(--bg-primary);
     z-index: 999999;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 20px;
     transition: opacity 0.5s ease, visibility 0.5s ease;
 }

 .page-loader.hidden {
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
 }

 .loader-ring {
     width: 48px;
     height: 48px;
     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);
     }
 }

 .loader-label {
     font-size: 14px;
     font-weight: 700;
     color: var(--text-muted);
     letter-spacing: 3px;
     text-transform: uppercase;
 }

 /* FOOTER */
 .main-footer {
     padding: 20px 0;
     border-top: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 12px;
 }

 .main-footer a {
     font-size: 13px;
     color: var(--text-muted);
     transition: color 0.2s;
 }

 .main-footer a:hover {
     color: var(--primary);
 }

 /* GRIDS */
 .grid-4 {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 24px;
 }

 .grid-3 {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 24px;
 }

 .grid-2 {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 24px;
 }

 .grid-2-1 {
     display: grid;
     grid-template-columns: 2fr 1fr;
     gap: 24px;
 }

 .empty-state {
     text-align: center;
     padding: 60px 20px;
 }

 .empty-state img {
     width: 160px;
     margin: 0 auto 20px;
     opacity: 0.6;
 }

 .empty-state h3 {
     font-size: 18px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 8px;
 }

 .empty-state p {
     font-size: 14px;
     color: var(--text-muted);
     margin-bottom: 20px;
     max-width: 400px;
     margin-left: auto;
     margin-right: auto;
 }

 .flex-between {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .scroll-hint {
     display: none;
     font-size: 11px;
     color: var(--text-muted);
     margin-bottom: 8px;
     align-items: center;
     gap: 4px;
 }

 /* RESPONSIVE */
 @media (max-width: 1400px) {
     .navbar-search {
         width: 260px;
     }
 }

 @media (max-width: 1280px) {
     .navbar-search {
         width: 220px;
     }

     .live-ticker {
         display: none;
     }

     .grid-3 {
         grid-template-columns: 1fr 1fr;
     }
 }

 @media (max-width: 1100px) {
     .navbar-search {
         display: none;
     }

     .np-info-text {
         display: none;
     }

     .navbar-profile {
         padding: 5px;
     }

     .grid-4 {
         grid-template-columns: repeat(2, 1fr);
     }

     .grid-3 {
         grid-template-columns: 1fr 1fr;
     }

     .grid-2 {
         grid-template-columns: 1fr;
     }

     .grid-2-1 {
         grid-template-columns: 1fr;
     }

     .ai-hero-grid {
         grid-template-columns: 1fr;
         text-align: center;
     }

     .ai-hero-illustration {
         display: flex;
         justify-content: center;
     }

     .ai-hero-illustration img {
         width: 160px;
     }

     .ai-hero-stats {
         justify-content: center;
     }

     .ai-hero-actions {
         justify-content: center;
     }
 }

 @media (max-width: 900px) {
     :root {
         --navbar-height: 64px;
     }

     .page-content {
         padding: 20px;
         padding-top: calc(var(--navbar-height) + 20px);
         gap: 20px;
     }

     .ai-hero {
         padding: 24px;
     }

     .ai-hero-title {
         font-size: 24px;
     }

     .page-title {
         font-size: 22px;
     }
 }

 @media (max-width: 768px) {
     :root {
         --navbar-height: 60px;
     }

     .sidebar {
         transform: translateX(-100%);
         z-index: 60;
         width: 280px !important;
         box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
     }

     .sidebar.mobile-open {
         transform: translateX(0);
     }

     .main-content {
         margin-left: 0 !important;
     }

     .navbar {
         left: 0 !important;
         padding: 0 12px;
         gap: 8px;
     }

     .mobile-toggle {
         display: flex;
     }

     .desktop-toggle {
         display: none;
     }

     .page-content {
         padding: 14px;
         padding-top: calc(var(--navbar-height) + 14px);
         gap: 16px;
     }

     .grid-4 {
         grid-template-columns: 1fr 1fr;
         gap: 12px;
     }

     .grid-3,
     .grid-2 {
         grid-template-columns: 1fr;
         gap: 16px;
     }

     .stat-card {
         padding: 16px;
     }

     .sc-value {
         font-size: 20px;
     }

     .sc-label {
         font-size: 12px;
         margin-bottom: 10px;
     }

     .sc-trend {
         font-size: 12px;
     }

     .sc-trend>span:last-child {
         display: none;
     }

     .sc-icon {
         width: 40px;
         height: 40px;
     }

     .sc-header {
         margin-bottom: 12px;
     }

     .card-pad {
         padding: 16px;
     }

     .card-header {
         margin-bottom: 16px;
         gap: 8px;
     }

     .card-title {
         font-size: 15px;
     }

     .ai-hero {
         padding: 20px;
         border-radius: 16px;
     }

     .ai-hero-title {
         font-size: 20px;
     }

     .ai-hero-desc {
         font-size: 13px;
     }

     .ai-hero-illustration img {
         width: 130px;
     }

     .ai-hero-stats {
         gap: 16px;
     }

     .ai-hero-stat-val {
         font-size: 18px;
     }

     .ai-hero-actions .btn {
         flex: 1;
         min-width: 130px;
     }

     .toast-container {
         top: calc(12px + var(--safe-top));
         right: 12px;
         left: 12px;
         max-width: calc(100vw - 24px);
     }

     .toast {
         min-width: auto;
         max-width: 100%;
         padding: 12px 14px;
     }

     .modal-overlay {
         padding: 12px;
         align-items: flex-end;
     }

     .modal-box {
         border-radius: 18px;
         max-height: 88vh;
         max-height: 88dvh;
     }

     .modal-head {
         padding: 16px 18px;
     }

     .modal-body {
         padding: 18px;
     }

     .modal-foot {
         padding: 14px 18px;
     }

     .modal-foot .btn {
         flex: 1;
     }

     .dropdown-menu {
         position: fixed;
         top: calc(var(--navbar-height) + 8px) !important;
         right: 12px !important;
         left: 12px !important;
         min-width: auto !important;
         max-width: none !important;
     }

     .navbar-profile {
         border: none;
         padding: 3px;
     }

     .main-footer {
         padding: 16px 0;
     }

     .main-footer>* {
         text-align: center;
         width: 100%;
     }

     .main-footer>div:last-child {
         justify-content: center;
     }

     .navbar-right {
         gap: 4px;
     }

     .nav-icon-btn,
     .theme-toggle {
         width: 38px;
         height: 38px;
         min-width: 38px;
     }

     .page-title {
         font-size: 20px;
     }

     .page-header-actions {
         width: 100%;
     }

     .page-header-actions .btn {
         flex: 1;
     }

     .filter-bar {
         padding: 12px;
         gap: 8px;
     }

     .filter-search {
         min-width: 100%;
     }

     .filter-select,
     .filter-btn {
         flex: 1;
         min-width: calc(50% - 4px);
     }

     .view-toggle {
         display: none;
     }

     .tab-btn {
         padding: 10px 14px;
         font-size: 13px;
     }

     .scroll-hint {
         display: flex;
     }

     .hide-mobile {
         display: none !important;
     }
 }

 @media (max-width: 640px) {
     .page-content {
         padding: 12px;
         padding-top: calc(var(--navbar-height) + 12px);
         gap: 14px;
     }

     .grid-4 {
         grid-template-columns: 1fr 1fr;
         gap: 10px;
     }

     .stat-card {
         padding: 14px;
     }

     .sc-value {
         font-size: 18px;
     }

     .btn {
         padding: 9px 16px;
         font-size: 13px;
         min-height: 40px;
     }

     .btn-sm {
         padding: 5px 10px;
         font-size: 11px;
         min-height: 28px;
     }

     .bot-card {
         padding: 18px;
     }

     .ai-hero-title {
         font-size: 18px;
     }
 }

 @media (max-width: 480px) {
     :root {
         --navbar-height: 56px;
     }

     .page-content {
         padding: 10px;
         padding-top: calc(var(--navbar-height) + 10px);
     }

     .grid-4 {
         grid-template-columns: 1fr;
     }

     .stat-card {
         padding: 16px;
     }

     .sc-value {
         font-size: 24px;
     }

     .sc-trend>span:last-child {
         display: inline;
     }

     .card {
         border-radius: 14px;
     }

     .card-pad {
         padding: 14px;
     }

     .sidebar {
         width: 260px !important;
     }

     .navbar {
         padding: 0 10px;
         gap: 6px;
     }

     .nav-icon-btn,
     .theme-toggle {
         width: 36px;
         height: 36px;
         min-width: 36px;
     }

     .navbar-profile-avatar {
         width: 32px;
         height: 32px;
     }

     .ai-hero {
         padding: 16px;
     }

     .ai-hero-title {
         font-size: 16px;
     }

     .ai-hero-stats {
         gap: 12px;
     }

     .modal-overlay {
         padding: 8px;
     }

     .modal-box {
         border-radius: 16px;
     }

     .dropdown-menu {
         top: calc(var(--navbar-height) + 6px) !important;
         right: 10px !important;
         left: 10px !important;
     }

     .page-title {
         font-size: 18px;
     }

     .bot-card {
         padding: 16px;
     }

     .bot-avatar {
         width: 48px;
         height: 48px;
     }

     .bot-name {
         font-size: 15px;
     }

     .filter-select,
     .filter-btn {
         min-width: 100%;
     }
 }

 @media (hover: none) and (pointer: coarse) {
     .nav-link:hover {
         transform: none;
         background: transparent;
         color: var(--text-secondary);
     }

     .nav-link:active {
         background: var(--bg-card-hover);
         color: var(--text-primary);
     }

     .nav-link.active {
         background: var(--gradient-primary);
         color: #fff;
     }

     .btn:hover,
     .stat-card:hover,
     .card:hover,
     .bot-card:hover,
     .strategy-card:hover {
         transform: none;
     }

     .btn:active {
         transform: scale(0.97);
     }
 }

 @media print {

     .sidebar,
     .navbar,
     .sidebar-overlay,
     .toast-container,
     .page-loader {
         display: none !important;
     }

     .main-content {
         margin-left: 0 !important;
     }
 }

 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         transition-duration: 0.01ms !important;
     }
 }