    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
    }

    :root {
      --bg-dark: #0A0E17;
      --bg-card: #1A1F2E;
      --bg-hover: #252B3B;
      --cyan: #00D9E9;
      --lime: #A3E635;
      --pink: #EC4899;
      --orange: #F59E0B;
      --red: #EF4444;
      --green: #22C55E;
      --purple: #8B5CF6;
      --blue: #3B82F6;
      --text-white: #FFFFFF;
      --text-gray: #9CA3AF;
      --text-muted: #6B7280;
      --border: #374151;
      --border-light: #4B5563;
    }

    body {
      font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-dark);
      color: var(--text-white);
      min-height: 100vh;
      overflow-x: hidden;
    }
    a {
      text-decoration: none;
    }

    /* Sidebar */
    .sidebar {
      width: 260px;
      background: var(--bg-card);
      border-right: 1px solid var(--border);
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      z-index: 1000;
      transition: width 0.3s ease;
    }

    .sidebar.collapsed {
      width: 70px;
    }

    .sidebar-header {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 72px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--cyan), var(--purple));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .logo-text {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-white);
    }

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .menu-label,
    .sidebar.collapsed .submenu,
    .sidebar.collapsed .user-info,
    .sidebar.collapsed .chevron,
    .sidebar.collapsed .menu-badge,
    .sidebar.collapsed .section-title {
      display: none;
    }

    .sidebar.collapsed .sidebar-header {
      justify-content: center;
    }

    .sidebar.collapsed .menu-item {
      justify-content: center;
      padding: 12px;
    }

    .sidebar.collapsed .user-section {
      justify-content: center;
    }

    .sidebar.collapsed .menu-icon {
      margin-right: 0;
    }

    .menu-toggle {
      background: transparent;
      border: none;
      color: var(--text-gray);
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .sidebar-nav {
      flex: 1;
      padding: 20px 0;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .section-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin: 24px 20px 8px;
      font-weight: 600;
    }

    .sidebar.collapsed .section-title {
      display: none;
    }

    .menu-item {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 20px;
      margin-bottom: 2px;
      background: transparent;
      border: none;
      border-radius: 0;
      cursor: pointer;
      border-left: 3px solid transparent;
      color: var(--text-gray);
      font-size: 14px;
      font-weight: 500;
      text-align: left;
      transition: all 0.2s ease;
    }

    .menu-item:hover {
      background: var(--bg-hover);
    }

    .menu-item.active {
      background: linear-gradient(90deg, rgba(0, 217, 233, 0.2), transparent);
      border-left-color: var(--cyan);
      color: var(--text-white);
    }

    .menu-item.active .menu-icon {
      color: var(--cyan);
    }

    .menu-item-left {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
    }

    .menu-icon {
      width: 20px;
      height: 20px;
      color: var(--text-gray);
      flex-shrink: 0;
    }

    .menu-badge {
      padding: 2px 6px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      min-width: 20px;
      text-align: center;
    }

    .badge-green {
      background: var(--green);
      color: white;
    }

    .badge-orange {
      background: var(--orange);
      color: white;
    }

    .badge-red {
      background: var(--red);
      color: white;
    }

    .badge-blue {
      background: var(--blue);
      color: white;
    }

    .submenu {
      margin-left: 20px;
      margin-bottom: 8px;
      display: none;
      border-left: 1px solid var(--border);
      padding-left: 20px;
    }

    .submenu.expanded {
      display: block;
    }

    .submenu-item {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 15px;
      margin-bottom: 2px;
      background: transparent;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: var(--text-gray);
      font-size: 13px;
      text-align: left;
      transition: all 0.2s ease;
    }

    .submenu-item:hover,
    .submenu-item.active {
      background: var(--bg-hover);
      color: var(--cyan);
    }

    .user-section {
      padding: 20px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 80px;
    }

    .user-avatar {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--cyan), var(--purple));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 600;
      font-size: 14px;
      flex-shrink: 0;
    }

    .user-info {
      flex: 1;
    }

    .user-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-white);
    }

    .user-email {
      font-size: 12px;
      color: var(--text-muted);
    }

    .logout-btn {
      background: transparent;
      border: none;
      color: var(--text-gray);
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Main Content */
    .main-content {
      margin-left: 260px;
      padding: 0;
      min-height: 100vh;
      transition: margin-left 0.3s ease;
    }

    .sidebar.collapsed + .main-content {
      margin-left: 70px;
    }

    /* Top Bar */
    .top-bar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg-card);
      border-bottom: 1px solid var(--border);
      padding: 20px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
    }

    .top-bar-left {
      display: flex;
      align-items: center;
      gap: 20px;
      flex: 1;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--text-gray);
    }

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

    .breadcrumb-current {
      color: var(--text-white);
      font-weight: 500;
    }

    .search-box {
      flex: 1;
      max-width: 400px;
      position: relative;
    }

    .search-box input {
      width: 100%;
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 16px 10px 40px;
      color: var(--text-white);
      font-size: 13px;
      font-family: inherit;
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--text-muted);
    }

    .search-box i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-gray);
      width: 16px;
      height: 16px;
    }

    .search-shortcut {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 11px;
      color: var(--text-muted);
      border: 1px solid var(--border);
      padding: 2px 6px;
      border-radius: 4px;
      background: var(--bg-card);
    }

    .top-bar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .top-bar-btn {
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 8px 12px;
      color: var(--text-gray);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-family: inherit;
      transition: all 0.2s;
      position: relative;
    }

    .top-bar-btn:hover {
      background: var(--bg-hover);
      border-color: var(--border-light);
    }

    .notification-btn {
      position: relative;
    }

    .notification-dot {
      position: absolute;
      top: 4px;
      right: 4px;
      width: 8px;
      height: 8px;
      background: var(--red);
      border-radius: 50%;
      border: 2px solid var(--bg-card);
    }

    /* Page Content */
    .page-content {
      padding: 25px 30px;
    }

    .page-title {
      font-size: 24px;
      font-weight: 600;
      color: var(--text-white);
      margin-bottom: 5px;
    }

    .page-subtitle {
      color: var(--text-gray);
      font-size: 14px;
      margin-bottom: 25px;
    }

    /* Welcome Banner */
    .welcome-banner {
      background: linear-gradient(135deg, rgba(0, 217, 233, 0.2), rgba(139, 92, 246, 0.2));
      border-radius: 16px;
      padding: 25px 30px;
      margin-bottom: 25px;
      border: 1px solid var(--border);
    }

    .welcome-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .welcome-subtitle {
      color: var(--text-gray);
      font-size: 14px;
    }

    /* Stats Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
      margin-bottom: 25px;
    }

    @media (max-width: 1400px) {
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .stats-grid {
        grid-template-columns: 1fr;
      }
    }

    .stat-card {
      background: var(--bg-card);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      transition: transform 0.2s, border-color 0.2s;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      border-color: var(--border-light);
    }

    .stat-card-glow {
      position: absolute;
      top: -20px;
      right: -20px;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      opacity: 0.1;
    }

    .stat-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 15px;
    }

    .stat-icon {
      width: 45px;
      height: 45px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .stat-change {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 500;
    }

    .stat-change.positive {
      color: var(--green);
    }

    .stat-change.negative {
      color: var(--red);
    }

    .stat-label {
      color: var(--text-gray);
      font-size: 13px;
      margin-bottom: 5px;
    }

    .stat-value {
      font-size: 28px;
      font-weight: 700;
      line-height: 1;
    }

    .stat-subtitle {
      color: var(--text-muted);
      font-size: 12px;
      margin-top: 5px;
    }

    /* Two Column Layout */
    .two-columns {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
      margin-bottom: 25px;
    }

    @media (max-width: 1200px) {
      .two-columns {
        grid-template-columns: 1fr;
      }
    }

    /* Card */
    .card {
      background: var(--bg-card);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--border);
      transition: transform 0.2s, border-color 0.2s;
    }

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

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .card-title {
      font-size: 16px;
      font-weight: 600;
    }

    .card-link {
      color: var(--cyan);
      font-size: 13px;
      background: transparent;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: inherit;
      padding: 0;
    }

    .card-link:hover {
      color: #00c4d4;
    }

    /* Chart Container */
    .chart-container {
      position: relative;
      height: 300px;
      margin-top: 20px;
    }

    /* Period Selector */
    .period-selector {
      display: flex;
      gap: 8px;
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 4px;
      width: fit-content;
    }

    .period-btn {
      padding: 6px 12px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: var(--text-gray);
      font-size: 12px;
      cursor: pointer;
      font-family: inherit;
    }

    .period-btn.active {
      background: var(--cyan);
      color: var(--bg-dark);
      font-weight: 500;
    }

    /* Bot Health Grid */
    .bots-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    @media (max-width: 1400px) {
      .bots-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .bots-grid {
        grid-template-columns: 1fr;
      }
    }

    .bot-card {
      background: var(--bg-card);
      border-radius: 12px;
      padding: 16px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
    }

    .bot-card:hover {
      transform: translateY(-2px);
      border-color: var(--cyan);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .bot-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .bot-name {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      font-weight: 500;
    }

    .bot-status {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .bot-status.healthy {
      background: var(--green);
      box-shadow: 0 0 10px var(--green);
    }

    .bot-status.warning {
      background: var(--orange);
      box-shadow: 0 0 10px var(--orange);
    }

    .bot-status.critical {
      background: var(--red);
      box-shadow: 0 0 10px var(--red);
    }

    .bot-metric {
      margin-bottom: 10px;
    }

    .bot-metric-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 12px;
    }

    .bot-metric-label {
      color: var(--text-gray);
    }

    .bot-metric-value {
      color: var(--text-white);
    }

    .progress-bar {
      height: 4px;
      background: var(--bg-hover);
      border-radius: 2px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 2px;
      transition: width 0.3s ease;
    }

    .progress-fill.cyan {
      background: var(--cyan);
    }

    .progress-fill.lime {
      background: var(--lime);
    }

    .progress-fill.orange {
      background: var(--orange);
    }

    .progress-fill.red {
      background: var(--red);
    }

    .bot-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }

    .bot-errors {
      font-size: 11px;
      color: var(--text-muted);
    }

    .bot-type-badge {
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
    }

    .bot-type-badge.paid {
      background: rgba(163, 230, 53, 0.2);
      color: var(--lime);
    }

    .bot-type-badge.free {
      background: rgba(0, 217, 233, 0.2);
      color: var(--cyan);
    }

    /* Activity Feed */
    .activity-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .activity-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      background: var(--bg-hover);
      border-radius: 8px;
    }

    .activity-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .activity-content {
      flex: 1;
    }

    .activity-message {
      font-size: 13px;
      line-height: 1.4;
    }

    .activity-time {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* Filters Bar */
    .filters-bar {
      background: var(--bg-card);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--border);
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .filter-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .filter-label {
      font-size: 12px;
      color: var(--text-gray);
      white-space: nowrap;
    }

    .form-select {
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
      color: var(--text-white);
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
      min-width: 120px;
    }

    .form-select:focus {
      outline: none;
      border-color: var(--cyan);
    }

    .form-input {
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
      color: var(--text-white);
      font-size: 13px;
      font-family: inherit;
      min-width: 200px;
    }

    .form-input:focus {
      outline: none;
      border-color: var(--cyan);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: all 0.2s;
    }

    .btn-primary {
      background: var(--cyan);
      color: var(--bg-dark);
      font-weight: 600;
    }

    .btn-primary:hover {
      background: #00c4d4;
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: var(--bg-hover);
      color: var(--text-white);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      background: var(--border-light);
    }

    .btn-danger {
      background: rgba(239, 68, 68, 0.2);
      color: var(--red);
      border: 1px solid var(--red);
    }

    .btn-danger:hover {
      background: rgba(239, 68, 68, 0.3);
    }

    .btn-success {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
      border: 1px solid var(--green);
    }

    .btn-success:hover {
      background: rgba(34, 197, 94, 0.3);
    }

    .btn-icon {
      padding: 8px;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Bulk Actions Bar */
    .bulk-actions-bar {
      background: var(--bg-card);
      border: 1px solid var(--cyan);
      border-radius: 8px;
      padding: 16px 20px;
      margin-bottom: 20px;
      display: block;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .bulk-actions-bar.active {
      display: flex;
      animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .bulk-actions-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .bulk-actions-right {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Table */
    .table-container {
      background: var(--bg-card);
      border-radius: 12px;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .table-header {
      padding: 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
    }

    .table-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 1200px;
    }

    thead tr {
      background: var(--bg-hover);
    }

    th {
      padding: 12px 16px;
      text-align: left;
      color: var(--text-gray);
      font-size: 12px;
      font-weight: 500;
      text-transform: uppercase;
      white-space: nowrap;
    }

    td {
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }

    tbody tr:hover {
      background: var(--bg-hover);
    }

    .checkbox-cell {
      width: 40px;
    }

    .checkbox {
      width: 18px;
      height: 18px;
      border: 2px solid var(--border);
      border-radius: 4px;
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .checkbox.checked {
      background: var(--cyan);
      border-color: var(--cyan);
    }

    .checkbox.checked::after {
      content: '✓';
      color: white;
      font-size: 12px;
      font-weight: bold;
    }

    .user-cell {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .user-avatar-small {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      color: white;
      flex-shrink: 0;
    }

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

    .user-username {
      font-size: 13px;
      font-weight: 500;
    }

    .user-chatid {
      font-size: 11px;
      color: var(--text-muted);
      font-family: 'Courier New', monospace;
    }

    .badge {
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      display: inline-block;
      white-space: nowrap;
    }

    .badge-paid {
      background: rgba(163, 230, 53, 0.15);
      color: var(--lime);
    }

    .badge-trial {
      background: rgba(245, 158, 11, 0.15);
      color: var(--orange);
    }

    .badge-free {
      background: rgba(156, 163, 175, 0.15);
      color: var(--text-gray);
    }

    .badge-active {
      background: rgba(163, 230, 53, 0.15);
      color: var(--lime);
    }

    .badge-error {
      background: rgba(239, 68, 68, 0.15);
      color: var(--red);
    }

    .badge-success {
      background: rgba(34, 197, 94, 0.15);
      color: var(--green);
    }

    .badge-warning {
      background: rgba(245, 158, 11, 0.15);
      color: var(--orange);
    }

    .badge-info {
      background: rgba(59, 130, 246, 0.15);
      color: var(--blue);
    }

    .mode-cell {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
    }

    .mode-cell.active {
      color: var(--lime);
    }

    .mode-cell.passive {
      color: var(--cyan);
    }

    .strategy-cell {
      font-size: 12px;
    }

    .strategy-details {
      font-size: 11px;
      color: var(--text-muted);
    }

    .pnl-cell {
      font-size: 13px;
      font-weight: 500;
    }

    .pnl-cell.positive {
      color: var(--green);
    }

    .pnl-cell.negative {
      color: var(--red);
    }

    .pnl-cell.neutral {
      color: var(--text-gray);
    }

    .actions-cell {
      display: flex;
      gap: 4px;
      justify-content: flex-end;
    }

    .action-btn {
      background: transparent;
      border: 1px solid var(--border);
      cursor: pointer;
      padding: 6px;
      color: var(--text-gray);
      transition: all 0.2s;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .action-btn:hover {
      background: var(--bg-hover);
      border-color: var(--border-light);
    }

    .action-btn.view:hover {
      color: var(--cyan);
      border-color: var(--cyan);
    }

    .action-btn.edit:hover {
      color: var(--orange);
      border-color: var(--orange);
    }

    .action-btn.message:hover {
      color: var(--blue);
      border-color: var(--blue);
    }

    .action-btn.delete:hover {
      color: var(--red);
      border-color: var(--red);
    }

    /* Direction badges */
    .direction-badge {
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
    }

    .direction-badge.long {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
    }

    .direction-badge.short {
      background: rgba(239, 68, 68, 0.2);
      color: var(--red);
    }

    .trade-symbol {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .symbol-name {
      font-size: 14px;
      font-weight: 500;
    }

    .price-cell {
      font-size: 13px;
    }

    .price-cell.up {
      color: var(--green);
      font-weight: 500;
    }

    .price-cell.down {
      color: var(--red);
      font-weight: 500;
    }

    .targets-cell {
      font-size: 11px;
    }

    .targets-tp {
      color: var(--text-gray);
    }

    .targets-tp.struck {
      text-decoration: line-through;
      color: var(--text-muted);
    }

    .targets-sl {
      color: var(--red);
    }

    .trade-status {
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 500;
    }

    .trade-status.active {
      background: rgba(0, 217, 233, 0.2);
      color: var(--cyan);
    }

    .trade-status.hit {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
    }

    /* Win rate badges */
    .winrate-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
    }

    .winrate-badge.good {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
    }

    .winrate-badge.medium {
      background: rgba(245, 158, 11, 0.2);
      color: var(--orange);
    }

    .winrate-badge.bad {
      background: rgba(239, 68, 68, 0.2);
      color: var(--red);
    }

    /* API Status */
    .api-status {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
    }

    .api-status.connected {
      color: var(--green);
    }

    .api-status.disconnected {
      color: var(--red);
    }

    /* Page Sections */
    .page-section {
      display: none;
    }

    .page-section.active {
      display: block;
    }

    /* Pagination */
    .pagination {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
      gap: 15px;
    }

    .pagination-info {
      font-size: 13px;
      color: var(--text-gray);
    }

    .pagination-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pagination-btn {
      padding: 8px 12px;
      border: 1px solid var(--border);
      background: var(--bg-dark);
      color: var(--text-white);
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .pagination-btn:hover:not(:disabled) {
      background: var(--bg-hover);
      border-color: var(--cyan);
    }

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

    .pagination-numbers {
      display: flex;
      gap: 4px;
    }

    .page-number {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      border: 1px solid transparent;
    }

    .page-number:hover {
      background: var(--bg-hover);
    }

    .page-number.active {
      background: var(--cyan);
      color: var(--bg-dark);
      font-weight: 600;
    }

    /* Notifications Panel */
    .notifications-panel {
      position: fixed;
      top: 0;
      right: -400px;
      width: 400px;
      height: 100vh;
      background: var(--bg-card);
      border-left: 1px solid var(--border);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      transition: right 0.3s ease;
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .notifications-panel.active {
      right: 0;
    }

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

    .notifications-title {
      font-size: 16px;
      font-weight: 600;
    }

    .notifications-close {
      background: transparent;
      border: none;
      color: var(--text-gray);
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .notifications-close:hover {
      color: var(--text-white);
    }

    .notifications-body {
      flex: 1;
      overflow-y: auto;
      padding: 0;
    }

    .notification-item {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 12px;
      align-items: flex-start;
      cursor: pointer;
      position: relative;
    }

    .notification-item:hover {
      background: var(--bg-hover);
    }

    .notification-item.unread {
      background: rgba(59, 130, 246, 0.05);
    }

    .notification-item.unread::after {
      content: '';
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      width: 8px;
      height: 8px;
      background: var(--blue);
      border-radius: 50%;
    }

    .notification-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .notification-content {
      flex: 1;
    }

    .notification-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .notification-message {
      font-size: 12px;
      color: var(--text-gray);
      margin-bottom: 4px;
      line-height: 1.4;
    }

    .notification-time {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* Modal overlay */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      padding: 20px;
    }

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

    .modal {
      background: var(--bg-card);
      border-radius: 16px;
      border: 1px solid var(--border);
      width: 90%;
      max-width: 900px;
      max-height: 94vh;
      overflow: hidden;
      transform: translateY(20px);
      transition: transform 0.3s ease;
    }

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

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

    .modal-header-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .user-avatar-large {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .modal-user-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .modal-username {
      font-size: 22px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-chatid {
      font-size: 13px;
      color: var(--text-muted);
      font-family: 'Courier New', monospace;
    }

    .modal-stats {
      display: flex;
      gap: 20px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .modal-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .modal-stat-value {
      font-size: 16px;
      font-weight: 600;
    }

    .modal-stat-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .modal-badges {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .modal-close {
      background: transparent;
      border: none;
      color: var(--text-gray);
      font-size: 20px;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
    }

    .modal-close:hover {
      background: var(--bg-hover);
      color: var(--text-white);
    }

    .modal-body {
      padding: 24px;
      overflow-y: auto;
      max-height: calc(90vh - 200px);
    }

    .modal-section {
      margin-bottom: 24px;
    }

    .modal-section-title {
      font-size: 15px;
      color: var(--cyan);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .modal-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-bottom: 24px;
    }

    @media (max-width: 768px) {
      .modal-grid {
        grid-template-columns: 1fr;
      }
    }

    .modal-card {
      background: var(--bg-hover);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
    }

    .modal-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .modal-row:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .modal-label {
      font-size: 13px;
      color: var(--text-gray);
    }

    .modal-value {
      font-size: 13px;
      font-weight: 500;
    }

    /* Toggle switch */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--border);
      border-radius: 24px;
      transition: 0.25s;
    }

    .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background: var(--text-white);
      border-radius: 50%;
      transition: 0.25s;
    }

    input:checked + .toggle-slider {
      background: var(--cyan);
    }

    input:checked + .toggle-slider:before {
      transform: translateX(20px);
    }

    .modal-select, .modal-input {
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text-white);
      padding: 8px 12px;
      font-size: 13px;
      font-family: inherit;
      min-width: 120px;
    }

    .modal-select:focus, .modal-input:focus {
      outline: none;
      border-color: var(--cyan);
    }

    .modal-input {
      width: 100px;
      text-align: right;
    }

    .safety-rule {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      padding: 12px;
      background: var(--bg-dark);
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    .safety-rule-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .safety-rule-title {
      font-size: 13px;
      font-weight: 500;
    }

    .safety-rule-desc {
      font-size: 12px;
      color: var(--text-gray);
    }

    /* Footer */
    .modal-footer {
      display: flex;
      gap: 12px;
      padding: 20px 24px;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
      background: var(--bg-hover);
    }

    /* Bot Detail Modal */
    .bot-modal .modal-header {
      background: var(--bg-hover);
    }

    .bot-status-badge {
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .bot-status-badge.healthy {
      background: rgba(34, 197, 94, 0.2);
      color: var(--green);
    }

    .bot-status-badge.warning {
      background: rgba(245, 158, 11, 0.2);
      color: var(--orange);
    }

    .bot-token {
      font-family: 'Courier New', monospace;
      font-size: 13px;
      background: var(--bg-dark);
      padding: 8px 12px;
      border-radius: 6px;
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .bot-metric-detail {
      margin-bottom: 16px;
    }

    .bot-metric-detail-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .bot-metric-progress {
      height: 8px;
      background: var(--bg-dark);
      border-radius: 4px;
      overflow: hidden;
    }

    .bot-metric-fill {
      height: 100%;
      border-radius: 4px;
    }

    /* System Logs */
    .logs-container {
      font-family: 'Courier New', monospace;
      font-size: 12px;
      background: var(--bg-dark);
      border-radius: 8px;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .log-item {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 12px;
    }

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

    .log-time {
      color: var(--text-muted);
      min-width: 70px;
    }

    .log-level {
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 600;
      min-width: 60px;
      text-align: center;
    }

    .log-level.error {
      background: rgba(239, 68, 68, 0.2);
      color: var(--red);
    }

    .log-level.warning {
      background: rgba(245, 158, 11, 0.2);
      color: var(--orange);
    }

    .log-level.info {
      background: rgba(59, 130, 246, 0.2);
      color: var(--blue);
    }

    .log-level.debug {
      background: rgba(156, 163, 175, 0.2);
      color: var(--text-gray);
    }

    .log-source {
      color: var(--cyan);
      min-width: 100px;
    }

    .log-message {
      flex: 1;
      color: var(--text-white);
    }

    /* Responsive */
    @media (max-width: 1200px) {
      .search-box {
        max-width: none;
      }
    }

    @media (max-width: 768px) {
      .sidebar {
        transform: translateX(-100%);
      }
      
      .sidebar.active {
        transform: translateX(0);
      }
      
      .main-content {
        margin-left: 0 !important;
      }
      
      .top-bar {
        padding: 15px;
      }
      
      .page-content {
        padding: 15px;
      }
      
      .filters-bar {
        flex-direction: column;
        align-items: stretch;
      }
      
      .filter-group {
        flex-direction: column;
        align-items: stretch;
      }
      
      .form-input,
      .form-select {
        width: 100%;
      }
      
      .table-header {
        flex-direction: column;
        align-items: stretch;
      }
      
      .table-actions {
        width: 100%;
        justify-content: space-between;
      }
      
      .notifications-panel {
        width: 100%;
        right: -100%;
      }
      
      .modal {
        width: 95%;
      }
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
      display: none;
      position: fixed;
      top: 12px;
      left: 15px;
      z-index: 1001;
      background: var(--cyan);
      border: none;
      border-radius: 8px;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
      color: var(--bg-dark);
      cursor: pointer;
    }

    @media (max-width: 768px) {
      .mobile-menu-toggle {
        display: flex;
      }
    }

    /* Tabs */
    .tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 20px;
      gap: 2px;
    }

    .tab {
      padding: 12px 20px;
      background: transparent;
      border: none;
      color: var(--text-gray);
      font-size: 14px;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      white-space: nowrap;
    }

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

    .tab.active {
      color: var(--cyan);
      border-bottom-color: var(--cyan);
      background: rgba(0, 217, 233, 0.05);
    }

    /* Analytics Charts */
    .analytics-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-bottom: 25px;
    }

    @media (max-width: 1200px) {
      .analytics-grid {
        grid-template-columns: 1fr;
      }
    }

    .analytics-card {
      grid-column: span 1;
    }

    .analytics-card.full-width {
      grid-column: 1 / -1;
    }

    /* Conversion Funnel */
    .funnel {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
    }

    .funnel-step {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      position: relative;
    }

    .funnel-step:not(:last-child)::after {
      content: '';
      position: absolute;
      right: -50%;
      top: 24px;
      width: 100%;
      height: 2px;
      background: var(--border);
    }

    .funnel-count {
      font-size: 20px;
      font-weight: 700;
      color: var(--cyan);
    }

    .funnel-label {
      font-size: 12px;
      color: var(--text-gray);
    }

    .funnel-conversion {
      font-size: 11px;
      color: var(--lime);
      margin-top: 4px;
    }

/* Chevron rotation animation */
.chevron {
  transition: transform 0.3s ease;
}

/* Submenu smooth expansion */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.expanded {
  max-height: 500px;
}

/* ============================================
   TOP BAR RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Top Bar Base Styles */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Top Bar Left Section */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  color: var(--text-gray);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-menu-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--cyan);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  white-space: nowrap;
}

.breadcrumb-item {
  color: var(--text-gray);
}

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

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 500;
  margin-left: 50px;
}

/* Top Bar Center (Search) */
.top-bar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 500px;
  min-width: 0;
}

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 80px 10px 40px;
  color: var(--text-white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 233, 0.1);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  font-weight: 500;
}

/* Top Bar Actions */
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.top-bar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
  color: var(--text-white);
}

.top-bar-btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

/* Notification Button */
.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .top-bar {
    padding: 14px 20px;
    gap: 12px;
  }

  .top-bar-center {
    max-width: 400px;
  }

  .search-box {
    min-width: 180px;
  }

  .username-text {
    display: none;
  }

  .top-bar-btn-user {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 16px;
    gap: 12px;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide breadcrumb separator and first item on mobile */
  .breadcrumb-item,
  .breadcrumb-separator {
    display: none;
  }

  .breadcrumb {
    font-size: 16px;
    font-weight: 600;
  }

  /* Reorganize top bar layout */
  .top-bar-left {
    flex: 0 0 auto;
    gap: 12px;
  }

  .top-bar-center {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-top: 8px;
  }

  .search-box {
    min-width: 0;
  }

  .search-box input {
    padding: 10px 40px 10px 40px;
    font-size: 14px;
  }

  .top-bar-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  .top-bar-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .top-bar-btn span {
    display: none;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .top-bar {
    padding: 10px 12px;
  }

  .mobile-menu-toggle {
    padding: 6px;
  }

  .breadcrumb {
    font-size: 14px;
  }

  .search-box input {
    font-size: 13px;
    padding: 9px 36px 9px 36px;
  }

  .search-box i {
    width: 14px;
    height: 14px;
    left: 10px;
  }

  .top-bar-btn {
    width: 32px;
    height: 32px;
  }

  .top-bar-btn i {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Sidebar collapsed state adjustments */
.sidebar.collapsed ~ .main-content .top-bar {
  /* Top bar adjusts when sidebar is collapsed */
}

/* Focus styles for accessibility */
.search-box input:focus,
.top-bar-btn:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================
   MOBILE SIDEBAR BEHAVIOR
   ============================================ */

/* On mobile, sidebar is hidden by default */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  /* When mobile-open class is added, slide in from left */
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  }

  /* Main content takes full width on mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Overlay when sidebar is open */
  .sidebar.mobile-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

.d-none{
  display: none;
}