/**
 * UCELL TELECOM CRM - ASOSIY USLUB VA DIZAYN (CSS)
 * Muallif: Antigravity AI
 * Texnologiya: Pure CSS3, CSS Custom Properties (Variables), Flexbox & Grid
 */

    :root {
      --ucell-purple: #652d90;
      --ucell-purple-dark: #49176e;
      --ucell-purple-light: #7b3ba8;
      --ucell-purple-soft: #f4eefb;
      --ucell-cyan: #00a896;
      --ucell-cyan-light: #e0f7f4;
      --ucell-magenta: #d90429;
      --ucell-yellow: #f4a261;
      
      --bg: #f5f6fa;
      --surface: #ffffff;
      --surface-border: #e2e8f0;
      --text: #1e293b;
      --text-muted: #64748b;
      --text-light: #94a3b8;
      
      --success: #10b981;
      --success-bg: #ecfdf5;
      --warning: #f59e0b;
      --warning-bg: #fffbeb;
      --danger: #ef4444;
      --danger-bg: #fef2f2;
      --info: #3b82f6;
      --info-bg: #eff6ff;

      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-xl: 20px;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 12px rgba(101, 45, 144, 0.08);
      --shadow-lg: 0 10px 25px rgba(101, 45, 144, 0.12);
      --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.15);
      --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      display: flex;
      flex-direction: column;
    }

    button, input, select, textarea {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
    }

    a {
      color: var(--ucell-purple);
      text-decoration: none;
    }

    /* ---------- Scrollbar ---------- */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    ::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    /* ---------- Layout ---------- */
    #app {
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .crm-wrapper {
      display: flex;
      height: 100vh;
      height: 100dvh;
      width: 100%;
      overflow: hidden;
    }

    /* ---------- Sidebar ---------- */
    .sidebar {
      width: 260px;
      height: 100vh;
      height: 100dvh;
      background: var(--ucell-purple-dark);
      background: linear-gradient(180deg, #441467 0%, #290840 100%);
      color: #ffffff;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      transition: var(--transition);
      z-index: 100;
      position: sticky;
      top: 0;
      left: 0;
      overflow: hidden;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    }

    .brand {
      padding: 24px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      flex-shrink: 0;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      background: #ffffff;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      overflow: hidden;
    }

    .brand-logo img {
      width: 32px;
      height: 32px;
      object-fit: contain;
      display: block;
    }

    .brand-logo svg {
      width: 26px;
      height: 26px;
      fill: var(--ucell-purple);
    }

    .brand-info h1 {
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: #ffffff;
      line-height: 1.1;
    }

    .brand-info span {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #a78bfa;
      font-weight: 600;
    }

    .nav-group {
      padding: 16px 12px;
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }

    .nav-group::-webkit-scrollbar {
      width: 4px;
    }
    .nav-group::-webkit-scrollbar-track {
      background: transparent;
    }
    .nav-group::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
    }
    .nav-group::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.4);
    }

    .nav-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: rgba(255, 255, 255, 0.4);
      padding: 8px 12px 6px;
      font-weight: 700;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 14px;
      color: rgba(255, 255, 255, 0.75);
      border-radius: var(--radius-md);
      margin-bottom: 4px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: var(--transition);
      border: 1px solid transparent;
      user-select: none;
    }

    .nav-item:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
    }

    .nav-item.active {
      color: #ffffff;
      background: var(--ucell-purple);
      box-shadow: 0 4px 12px rgba(101, 45, 144, 0.4);
      font-weight: 600;
    }

    .nav-item svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
      flex-shrink: 0;
    }

    .nav-badge {
      margin-left: auto;
      background: rgba(255, 255, 255, 0.2);
      padding: 3px 9px;
      border-radius: 20px;
      font-size: 11.5px;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      line-height: 1.2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .nav-badge.danger {
      background: var(--danger);
      color: #ffffff;
      animation: badgePulse 2.5s infinite;
    }

    .nav-badge.success {
      background: #10b981;
      color: #ffffff;
      padding: 2px 8px;
    }

    @keyframes badgePulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }

    .sidebar-footer {
      padding: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.22);
      flex-shrink: 0;
      margin-top: auto;
      position: relative;
      z-index: 2;
    }

    .user-card {
      display: flex;
      align-items: center;
      gap: 12px;
    }
q
    .user-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--ucell-purple-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: white;
      font-size: 14px;
      border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .user-meta {
      flex: 1;
      min-width: 0;
    }

    .user-name {
      font-size: 13.5px;
      font-weight: 600;
      color: #ffffff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-role {
      font-size: 11px;
      color: #a78bfa;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .logout-btn {
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.6);
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .logout-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.1);
    }

    /* ---------- Main Content Area ---------- */
    .main-viewport {
      flex: 1;
      height: 100vh;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      min-width: 0;
      background: var(--bg);
      overflow: hidden;
    }

    /* ---------- Top Header ---------- */
    .top-header {
      height: 68px;
      background: var(--surface);
      border-bottom: 1px solid var(--surface-border);
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      z-index: 50;
    }

    .header-search {
      position: relative;
      width: 380px;
    }

    .header-search input {
      width: 100%;
      height: 40px;
      padding: 0 16px 0 42px;
      border-radius: var(--radius-xl);
      border: 1px solid var(--surface-border);
      background: #f8fafc;
      font-size: 13.5px;
      transition: var(--transition);
      outline: none;
    }

    .header-search input:focus {
      background: #ffffff;
      border-color: var(--ucell-purple);
      box-shadow: 0 0 0 3px rgba(101, 45, 144, 0.12);
    }

    .header-search svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 17px;
      height: 17px;
      fill: var(--text-light);
      pointer-events: none;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .status-indicator {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 14px;
      background: var(--success-bg);
      color: #065f46;
      border: 1px solid #a7f3d0;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      animation: pulse 2s infinite;
    }

    /* Header User Profile & Role Badges */
    .header-user-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 12px 4px 6px;
      background: #f8fafc;
      border: 1px solid var(--surface-border);
      border-radius: var(--radius-xl);
    }

    .user-avatar-sm {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--ucell-purple) 0%, var(--ucell-purple-dark) 100%);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-user-details {
      display: flex;
      flex-direction: column;
      gap: 2px;
      line-height: 1.2;
    }

    .header-user-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .badge-role-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      padding: 1.5px 8px;
      border-radius: 999px;
      width: fit-content;
    }

    .badge-role-pill.role-superadmin {
      background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
      color: #92400e;
      border: 1px solid #f59e0b;
      font-weight: 800;
      box-shadow: 0 1px 4px rgba(245, 158, 11, 0.25);
    }

    .badge-role-pill.role-admin {
      background: #f3e8ff;
      color: #6b21a8;
      border: 1px solid #d8b4fe;
    }

    .badge-role-pill.role-operator {
      background: #e0f2fe;
      color: #0369a1;
      border: 1px solid #7dd3fc;
    }

    .badge-role-pill.role-tech {
      background: #fef3c7;
      color: #b45309;
      border: 1px solid #fcd34d;
    }

    .badge-role-pill.role-custom-purple {
      background: #f5f3ff;
      color: #7c3aed;
      border: 1px solid #ddd6fe;
    }

    .badge-role-pill.role-custom-blue {
      background: #eff6ff;
      color: #2563eb;
      border: 1px solid #bfdbfe;
    }

    .badge-role-pill.role-custom-green {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }

    .badge-role-pill.role-custom-orange {
      background: #fffbeb;
      color: #d97706;
      border: 1px solid #fde68a;
    }

    .badge-role-pill.role-custom-red {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
    }

    .btn-header-logout {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 600;
      border-radius: var(--radius-xl);
      border: 1px solid #fecaca;
      background: #ffffff;
      color: #dc2626;
      cursor: pointer;
      transition: var(--transition);
    }

    .btn-header-logout:hover {
      background: #fee2e2;
      border-color: #f87171;
    }

    /* 403 Access Denied Box */
    .access-denied-container {
      background: #ffffff;
      border: 1px solid var(--surface-border);
      border-radius: var(--radius-lg);
      padding: 50px 24px;
      text-align: center;
      max-width: 600px;
      margin: 40px auto;
      box-shadow: var(--shadow-md);
    }

    .access-denied-icon {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: #fee2e2;
      color: #ef4444;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      margin: 0 auto 18px;
    }

    .phone-tag.masked {
      background: #f1f5f9;
      color: #475569;
      border: 1px dashed #cbd5e1;
      letter-spacing: 0.5px;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
      70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }

    /* ---------- Content Container ---------- */
    .content-body {
      flex: 1;
      padding: 28px;
      overflow-y: auto;
      min-height: 0;
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .page-title h2 {
      font-size: 24px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.5px;
    }

    .page-title p {
      font-size: 13.5px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .page-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* ---------- Buttons ---------- */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 18px;
      border-radius: var(--radius-md);
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      transition: var(--transition);
      white-space: nowrap;
      text-decoration: none;
    }

    .btn:active {
      transform: translateY(1px);
    }

    .btn svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .btn-primary {
      background: var(--ucell-purple);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(101, 45, 144, 0.25);
    }
    .btn-primary:hover {
      background: var(--ucell-purple-light);
    }

    .btn-secondary {
      background: #ffffff;
      color: var(--text);
      border-color: var(--surface-border);
    }
    .btn-secondary:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }

    .btn-success {
      background: var(--success);
      color: #ffffff;
    }
    .btn-success:hover {
      background: #059669;
    }

    .btn-cyan {
      background: var(--ucell-cyan);
      color: #ffffff;
    }
    .btn-cyan:hover {
      background: #008f80;
    }

    .btn-danger {
      background: var(--danger);
      color: #ffffff;
    }
    .btn-danger:hover {
      background: #dc2626;
    }

    .btn-sm {
      padding: 6px 12px;
      font-size: 12.5px;
      border-radius: var(--radius-sm);
    }

    .btn-icon {
      padding: 8px;
      border-radius: var(--radius-md);
    }

    /* ---------- Cards & Grid ---------- */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-bottom: 28px;
    }

    .stat-card {
      background: var(--surface);
      border-radius: var(--radius-lg);
      padding: 20px 24px;
      border: 1px solid var(--surface-border);
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: var(--transition);
    }

    .stat-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--ucell-purple);
    }

    .stat-card.cyan::before { background: var(--ucell-cyan); }
    .stat-card.warning::before { background: var(--warning); }
    .stat-card.success::before { background: var(--success); }
    .stat-card.danger::before { background: var(--danger); }
    .stat-card.purple::before { background: var(--ucell-purple); }

    .stat-card.danger .stat-icon {
      background: var(--danger-bg);
      color: var(--danger);
    }

    .stat-card.purple .stat-icon {
      background: var(--ucell-purple-soft);
      color: var(--ucell-purple);
    }

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

    .stat-title {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .stat-icon {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--ucell-purple-soft);
      color: var(--ucell-purple);
    }

    .stat-icon svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    .stat-card.cyan .stat-icon {
      background: var(--ucell-cyan-light);
      color: var(--ucell-cyan);
    }

    .stat-card.warning .stat-icon {
      background: var(--warning-bg);
      color: var(--warning);
    }

    .stat-card.success .stat-icon {
      background: var(--success-bg);
      color: var(--success);
    }

    .stat-value {
      font-size: 26px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.2;
    }

    .stat-footer {
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .badge-trend {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-weight: 700;
      color: var(--success);
    }

    .badge-trend.down {
      color: var(--danger);
    }

    /* ---------- Today's Daily Report Section (Bugungi Kun Hisobotlari) ---------- */
    .today-report-card {
      background: linear-gradient(135deg, #efe2fa 0%, #fbf8ff 35%, #f6fdfa 70%, #dff6ee 100%);
      border-radius: var(--radius-xl);
      border: 1.5px solid #d8b4fe;
      box-shadow: 0 12px 36px -10px rgba(101, 45, 144, 0.18), 0 0 0 1px rgba(101, 45, 144, 0.08);
      padding: 24px 26px;
      margin-bottom: 26px;
      position: relative;
      overflow: hidden;
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .today-report-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(90deg, var(--ucell-purple) 0%, #a855f7 35%, var(--ucell-cyan) 70%, #10b981 100%);
      z-index: 2;
    }

    .today-report-card::after {
      content: '';
      position: absolute;
      top: -80px;
      right: -80px;
      width: 260px;
      height: 260px;
      background: radial-gradient(circle, rgba(101, 45, 144, 0.12) 0%, rgba(0, 168, 150, 0.06) 50%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }

    .today-header, .today-stats-grid, .today-bottom-row {
      position: relative;
      z-index: 1;
    }

    .today-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .today-header-left h3 {
      font-size: 20px;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 5px;
      margin-bottom: 4px;
      transition: color 0.3s ease;
    }

    .today-header-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #ecfdf5;
      color: #047857;
      border: 1px solid #86efac;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
      transition: all 0.3s ease;
    }

    .live-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      animation: pulseGreen 1.8s infinite;
    }

    @keyframes pulseGreen {
      0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
      70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }

    .today-date-text {
      font-size: 13px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      transition: color 0.3s ease;
    }

    .today-divider {
      color: #cbd5e1;
    }

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

    /* Today's 4-stat grid */
    .today-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 16px;
      margin-bottom: 22px;
    }

    .today-stat-box {
      background: #ffffff;
      border: 1px solid rgba(101, 45, 144, 0.12);
      border-radius: var(--radius-md);
      padding: 16px 18px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(101, 45, 144, 0.04);
      transition: var(--transition);
      position: relative;
    }

    .today-stat-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(101, 45, 144, 0.12);
      border-color: rgba(101, 45, 144, 0.28);
    }

    .today-stat-box.green {
      border-left: 4px solid #10b981;
    }

    .today-stat-box.red {
      border-left: 4px solid #ef4444;
    }

    .today-stat-box.purple {
      border-left: 4px solid var(--ucell-purple);
    }

    .today-stat-box.cyan {
      border-left: 4px solid var(--ucell-cyan);
    }

    .today-stat-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .today-stat-title {
      font-size: 12.5px;
      font-weight: 700;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      transition: color 0.3s ease;
    }

    .today-stat-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      transition: transform 0.15s ease;
    }

    .today-stat-icon svg {
      width: 22px;
      height: 22px;
      fill: currentColor !important;
    }

    .today-stat-icon .sticker {
      background: transparent !important;
      box-shadow: none !important;
      border: none !important;
      width: auto !important;
      height: auto !important;
    }

    .today-stat-icon .sticker svg {
      fill: currentColor !important;
      width: 22px !important;
      height: 22px !important;
    }

    .today-stat-icon.green {
      background: #dcfce7;
      color: #15803d;
      border: 1px solid #86efac;
    }

    .today-stat-icon.red {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fca5a5;
    }

    .today-stat-icon.purple {
      background: var(--ucell-purple-soft);
      color: var(--ucell-purple);
      border: 1px solid #d8b4fe;
    }

    .today-stat-icon.cyan {
      background: var(--ucell-cyan-light);
      color: #0284c7;
      border: 1px solid #7dd3fc;
    }

    .today-stat-main {
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      gap: 10px;
      margin-top: 4px;
    }

    .today-stat-val {
      font-size: 34px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.1;
      letter-spacing: -0.5px;
      transition: color 0.3s ease;
    }

    .today-stat-val .unit {
      font-size: 16px;
      font-weight: 600;
      color: #64748b;
      letter-spacing: normal;
      transition: color 0.3s ease;
    }

    .today-stat-desc {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* Today's Bottom details split */
    .today-bottom-row {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 20px;
    }

    @media (max-width: 980px) {
      .today-bottom-row {
        grid-template-columns: 1fr;
      }
    }

    .today-ops-panel {
      background: #ffffff;
      border: 1px solid rgba(101, 45, 144, 0.12);
      border-radius: var(--radius-md);
      padding: 18px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      transition: all 0.3s ease;
    }

    .today-summary-side {
      background: #ffffff;
      border: 1px solid rgba(101, 45, 144, 0.12);
      border-radius: var(--radius-md);
      padding: 18px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: all 0.3s ease;
    }

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

    .today-sub-header h4 {
      font-size: 14px;
      font-weight: 700;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.3s ease;
    }

    .today-count-badge {
      background: #e2e8f0;
      color: #334155;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 12px;
      transition: all 0.3s ease;
    }

    .today-table th, .today-table td {
      padding: 9px 12px;
      font-size: 12.5px;
      transition: all 0.3s ease;
    }

    .today-tariff-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .today-tariff-item {
      font-size: 12.5px;
    }

    .today-tariff-label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
    }

    .today-progress-bg {
      background: #e2e8f0;
      height: 6px;
      border-radius: 4px;
      overflow: hidden;
      transition: background 0.3s ease;
    }

    .today-progress-bar {
      background: linear-gradient(90deg, var(--ucell-purple) 0%, var(--ucell-cyan) 100%);
      height: 100%;
      border-radius: 4px;
    }

    .today-quick-summary-box {
      background: #fbf7ff;
      border: 1px solid #e9d5ff;
      border-radius: 8px;
      padding: 12px 14px;
      margin-top: auto;
      transition: all 0.3s ease;
    }

    /* ---------- Section Panels ---------- */
    .panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--surface-border);
      box-shadow: var(--shadow-sm);
      margin-bottom: 24px;
      overflow: hidden;
    }

    .panel-header {
      padding: 18px 24px;
      border-bottom: 1px solid var(--surface-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #ffffff;
      flex-wrap: wrap;
      gap: 12px;
    }

    .panel-title {
      font-size: 16px;
      font-weight: 700;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .panel-body {
      padding: 24px;
    }

    /* ---------- Filter Bar ---------- */
    .filter-bar {
      padding: 16px 24px;
      background: #fafbfc;
      border-bottom: 1px solid var(--surface-border);
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .filter-input {
      height: 38px;
      padding: 0 14px;
      border-radius: var(--radius-md);
      border: 1px solid var(--surface-border);
      background: #ffffff;
      font-size: 13.5px;
      outline: none;
      transition: var(--transition);
    }

    .filter-input:focus {
      border-color: var(--ucell-purple);
      box-shadow: 0 0 0 2px rgba(101, 45, 144, 0.1);
    }

    .filter-select {
      height: 38px;
      padding: 0 32px 0 14px;
      border-radius: var(--radius-md);
      border: 1px solid var(--surface-border);
      background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
      font-size: 13.5px;
      outline: none;
      cursor: pointer;
      -webkit-appearance: none;
      transition: var(--transition);
    }

    .filter-select:focus {
      border-color: var(--ucell-purple);
    }

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

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

    table.data-table th {
      padding: 14px 20px;
      background: #f8fafc;
      font-weight: 700;
      color: var(--text-muted);
      border-bottom: 1px solid var(--surface-border);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      white-space: nowrap;
    }

    table.data-table td {
      padding: 14px 20px;
      border-bottom: 1px solid var(--surface-border);
      vertical-align: middle;
      color: #334155;
    }

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

    table.data-table tbody tr:hover {
      background: #fdfcff;
    }

    /* ---------- Status Badges ---------- */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
    }

    .badge-success { background: var(--success-bg); color: #047857; }
    .badge-danger { background: var(--danger-bg); color: #b91c1c; }
    .badge-warning { background: var(--warning-bg); color: #b45309; }
    .badge-info { background: var(--info-bg); color: #1d4ed8; }
    .badge-purple { background: var(--ucell-purple-soft); color: var(--ucell-purple); }

    /* ---------- MSISDN Phone Badge ---------- */
    .phone-tag {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-weight: 700;
      color: var(--ucell-purple);
      background: var(--ucell-purple-soft);
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 13px;
      display: inline-block;
      white-space: nowrap;
    }

    /* ---------- Charts Container ---------- */
    .charts-row {
      display: grid;
      grid-template-columns: 2fr 1.2fr;
      gap: 24px;
      margin-bottom: 24px;
    }

    @media (max-width: 1024px) {
      .charts-row {
        grid-template-columns: 1fr;
      }
    }

    /* ---------- 360 Profile Modern Button ---------- */
    .btn-profile-360 {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--ucell-purple);
      background: linear-gradient(135deg, rgba(102, 16, 242, 0.08) 0%, rgba(142, 45, 226, 0.12) 100%);
      border: 1px solid rgba(102, 16, 242, 0.25);
      cursor: pointer;
      transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 3px rgba(102, 16, 242, 0.08);
      white-space: nowrap;
    }
    .btn-profile-360 svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: transform 0.4s ease;
    }
    .btn-profile-360:hover {
      background: linear-gradient(135deg, var(--ucell-purple) 0%, #7928ca 100%);
      color: #ffffff;
      border-color: var(--ucell-purple);
      box-shadow: 0 4px 14px rgba(102, 16, 242, 0.28);
      transform: translateY(-1px);
    }
    .btn-profile-360:hover svg {
      transform: scale(1.18);
    }
    .btn-profile-360:active {
      transform: translateY(0);
      box-shadow: 0 1px 4px rgba(102, 16, 242, 0.2);
    }

    /* ---------- Upgraded Bar Chart & Traffic Dynamics ---------- */
    .dashboard-chart-container {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .chart-summary-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px dashed var(--surface-border);
    }

    .chart-summary-stat {
      display: flex;
      align-items: baseline;
      gap: 8px;
    }
    .chart-summary-val {
      font-size: 22px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.5px;
    }
    .chart-summary-badge {
      font-size: 11.5px;
      font-weight: 700;
      color: #059669;
      background: #ecfdf5;
      padding: 2px 8px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .chart-legend-group {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .chart-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 500;
    }
    .chart-legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .chart-legend-dot.purple {
      background: linear-gradient(135deg, #8e2de2, #6610f2);
      box-shadow: 0 0 6px rgba(102, 16, 242, 0.4);
    }
    .chart-legend-dot.teal {
      background: #0ea5e9;
      box-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
    }

    .bar-chart {
      display: flex;
      align-items: flex-end;
      height: 180px;
      gap: 16px;
      padding-top: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--surface-border);
    }

    .bar-chart-enhanced {
      position: relative;
      display: flex;
      align-items: flex-end;
      height: 175px;
      gap: 14px;
      padding: 20px 10px 10px 10px;
      background: linear-gradient(180deg, rgba(248, 250, 252, 0.7) 0%, rgba(241, 245, 249, 0.5) 100%);
      border-radius: 12px;
      border: 1px solid rgba(226, 232, 240, 0.9);
      overflow: hidden;
    }

    .bar-chart-grid-line {
      position: absolute;
      left: 0;
      right: 0;
      border-top: 1px dashed rgba(203, 213, 225, 0.6);
      pointer-events: none;
    }

    .bar-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      justify-content: flex-end;
    }

    .bar-col-enhanced {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      justify-content: flex-end;
      position: relative;
      z-index: 2;
    }

    .bar-val-badge {
      font-size: 11px;
      font-weight: 700;
      color: var(--ucell-purple);
      background: rgba(102, 16, 242, 0.08);
      padding: 2px 7px;
      border-radius: 6px;
      margin-bottom: 6px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .bar-col-enhanced:hover .bar-val-badge {
      background: var(--ucell-purple);
      color: #ffffff;
      transform: scale(1.08);
      box-shadow: 0 2px 8px rgba(102, 16, 242, 0.25);
    }

    .bar-stick {
      width: 100%;
      max-width: 40px;
      background: linear-gradient(180deg, var(--ucell-purple-light) 0%, var(--ucell-purple) 100%);
      border-radius: 6px 6px 0 0;
      transition: height 0.5s ease;
      position: relative;
    }

    .bar-stick-enhanced {
      width: 100%;
      max-width: 38px;
      background: linear-gradient(180deg, #9d4edd 0%, #6610f2 100%);
      border-radius: 8px 8px 2px 2px;
      box-shadow: 0 4px 10px rgba(102, 16, 242, 0.18);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
    }
    .bar-col-enhanced:hover .bar-stick-enhanced {
      filter: brightness(1.18);
      box-shadow: 0 6px 16px rgba(102, 16, 242, 0.35);
      transform: translateY(-2px);
    }

    .bar-label {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 8px;
      font-weight: 600;
    }

    .bar-label-enhanced {
      font-size: 11.5px;
      color: var(--text-muted);
      margin-top: 8px;
      font-weight: 600;
      transition: color 0.2s;
    }
    .bar-col-enhanced:hover .bar-label-enhanced {
      color: var(--ucell-purple);
    }

    .bar-val {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    /* Traffic Area Chart & KPIs */
    .traffic-dynamics-section {
      padding-top: 18px;
      border-top: 1px solid var(--surface-border);
    }
    .traffic-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 8px;
    }
    .traffic-header-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .traffic-svg-wrap,
    .traffic-canvas-wrap {
      width: 100%;
      height: 155px;
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      background: radial-gradient(circle at 50% 15%, #faf8ff 0%, #f8fafc 100%);
      border: 1px solid #e2e8f0;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
    }
    .traffic-canvas-wrap canvas {
      width: 100%;
      height: 100%;
      display: block;
    }
    .traffic-live-stats {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .traffic-stat-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 6px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      color: #475569;
      font-size: 11.5px;
      font-weight: 500;
    }
    .traffic-stat-chip strong {
      font-weight: 700;
    }

    .network-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 16px;
    }
    @media (max-width: 860px) {
      .network-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .network-kpi-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      transition: all 0.2s ease;
    }
    .network-kpi-card:hover {
      background: #ffffff;
      border-color: rgba(102, 16, 242, 0.3);
      box-shadow: 0 4px 12px rgba(0,0,0,0.04);
      transform: translateY(-1px);
    }
    .network-kpi-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }
    .network-kpi-val {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
    }
    .network-kpi-sub {
      font-size: 10.5px;
      color: #059669;
      font-weight: 600;
    }

    /* ---------- KPI Cards Grid (Rollar & Huquqlar) ---------- */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-bottom: 24px;
    }
    .kpi-card {
      background: #ffffff;
      border-radius: 14px;
      padding: 22px 24px;
      border: 1px solid rgba(226, 232, 240, 0.9);
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(102, 16, 242, 0.04);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .kpi-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 28px rgba(102, 16, 242, 0.12);
      border-color: rgba(102, 16, 242, 0.3);
    }
    .kpi-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--ucell-purple) 0%, #a855f7 100%);
    }
    .kpi-card.kpi-pink::before {
      background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%);
    }
    .kpi-card.kpi-blue::before {
      background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 100%);
    }
    .kpi-icon-wrap {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
      font-size: 20px;
    }
    .kpi-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }
    .kpi-value {
      font-size: 28px;
      font-weight: 800;
      color: #0f172a;
      letter-spacing: -0.5px;
      line-height: 1.1;
      margin-bottom: 6px;
    }
    .kpi-unit {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
    }
    .kpi-sub {
      font-size: 12.5px;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* ---------- Murojaatlar (Tickets) Modern Styling ---------- */
    .tickets-table {
      width: 100% !important;
      border-collapse: separate;
      border-spacing: 0;
    }
    .tickets-table th,
    .tickets-table td {
      vertical-align: middle;
      padding: 10px 8px;
      box-sizing: border-box;
    }
    .tickets-table th.col-id,
    .tickets-table td.col-id {
      width: 60px;
      text-align: center;
      white-space: nowrap;
    }
    .tickets-table th.col-customer,
    .tickets-table td.col-customer {
      width: 195px;
    }
    .tickets-table th.col-category,
    .tickets-table td.col-category {
      width: 140px;
    }
    .tickets-table th.col-desc,
    .tickets-table td.col-desc {
      width: auto;
      min-width: 250px;
    }
    .tickets-table th.col-assignee,
    .tickets-table td.col-assignee {
      width: 140px;
    }
    .tickets-table th.col-status,
    .tickets-table td.col-status {
      width: 120px;
      text-align: center;
    }
    .tickets-table th.col-actions,
    .tickets-table td.col-actions {
      width: 130px;
      text-align: right;
    }

    .btn-xs {
      padding: 4px 7px;
      font-size: 11px;
      font-weight: 600;
      border-radius: 6px;
      line-height: 1.2;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .btn-xs svg {
      width: 12px;
      height: 12px;
      flex-shrink: 0;
    }

    .tickets-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    @media (max-width: 960px) {
      .tickets-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .ticket-kpi-card {
      background: #ffffff;
      border: 1px solid rgba(226, 232, 240, 0.9);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
      transition: all 0.2s ease;
    }
    .ticket-kpi-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }
    .ticket-kpi-icon {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .ticket-kpi-icon.purple { background: rgba(102, 16, 242, 0.1); color: var(--ucell-purple); }
    .ticket-kpi-icon.amber { background: #fef3c7; color: #d97706; }
    .ticket-kpi-icon.emerald { background: #ecfdf5; color: #059669; }
    .ticket-kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
    .ticket-kpi-info {
      display: flex;
      flex-direction: column;
    }
    .ticket-kpi-num {
      font-size: 22px;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.1;
    }
    .ticket-kpi-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      margin-top: 3px;
    }

    .ticket-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      padding: 18px 24px;
      margin-bottom: 0;
      background: #ffffff;
      border-bottom: 1px solid var(--surface-border);
    }
    .ticket-toolbar .btn {
      height: 38px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 8px;
      padding: 0 14px;
      box-sizing: border-box;
    }
    .ticket-search-box {
      position: relative;
      min-width: 280px;
      max-width: 380px;
      flex: 1;
      display: flex;
      align-items: center;
    }
    .ticket-search-box input {
      width: 100%;
      height: 38px;
      padding: 0 14px 0 38px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      font-size: 13px;
      background: #f8fafc;
      transition: all 0.2s;
      box-sizing: border-box;
    }
    .ticket-search-box input:focus {
      background: #ffffff;
      border-color: var(--ucell-purple);
      box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.12);
      outline: none;
    }
    .ticket-search-box svg {
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      fill: #94a3b8;
    }

    .ticket-id-tag {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      font-weight: 700;
      color: var(--ucell-purple);
      background: rgba(102, 16, 242, 0.08);
      padding: 3px 7px;
      border-radius: 6px;
      white-space: nowrap;
      border: 1px solid rgba(102, 16, 242, 0.2);
      display: inline-block;
    }

    .ticket-user-cell {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .ticket-user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(102, 16, 242, 0.12) 0%, rgba(142, 45, 226, 0.18) 100%);
      color: var(--ucell-purple);
      font-weight: 700;
      font-size: 11.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: 1px solid rgba(102, 16, 242, 0.2);
    }
    .ticket-user-details {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .ticket-user-name {
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      white-space: normal;
      line-height: 1.35;
      word-break: normal;
    }

    .ticket-category-pill {
      font-size: 11.5px;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 6px;
      background: #f1f5f9;
      color: #475569;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: normal;
      line-height: 1.35;
      word-break: normal;
    }
    .ticket-category-pill.internet { background: #e0f2fe; color: #0369a1; }
    .ticket-category-pill.call { background: #fef3c7; color: #b45309; }
    .ticket-category-pill.billing { background: #ecfdf5; color: #047857; }
    .ticket-category-pill.tech { background: #f3e8ff; color: #6b21a8; }
    .ticket-category-pill.ai { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }

    /* Focus on Description: wide, comfortable, attractive left accent */
    .ticket-desc-box {
      display: block;
      width: 100%;
      box-sizing: border-box;
      font-size: 13px;
      font-weight: 500;
      color: #0f172a;
      line-height: 1.5;
      background: #ffffff;
      padding: 8px 12px;
      border-radius: 8px;
      border-left: 3.5px solid var(--ucell-purple);
      border-top: 1px solid #e2e8f0;
      border-right: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
      word-break: normal;
      overflow-wrap: break-word;
      white-space: normal;
      cursor: pointer;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
      transition: all 0.2s ease;
    }
    .ticket-desc-box:hover {
      background: #faf5ff;
      border-left-color: #ec4899;
      box-shadow: 0 3px 10px rgba(102, 16, 242, 0.08);
      transform: translateY(-1px);
    }

    .ticket-assignee-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      font-weight: 600;
      color: #1e293b;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 4px 8px;
      border-radius: 6px;
      white-space: normal;
      line-height: 1.35;
      word-break: normal;
    }
    .ticket-assignee-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #10b981;
      flex-shrink: 0;
    }

    .ticket-status-select {
      padding: 5px 8px;
      border-radius: 6px;
      font-size: 11.5px;
      font-weight: 700;
      cursor: pointer;
      outline: none;
      width: 100%;
      box-sizing: border-box;
      transition: all 0.2s;
    }
    .ticket-status-select.yangi {
      background: #f5f3ff;
      color: #7c3aed;
      border: 1px solid #ddd6fe;
    }
    .ticket-status-select.jarayonda {
      background: #eff6ff;
      color: #2563eb;
      border: 1px solid #bfdbfe;
    }
    .ticket-status-select.hal-qilindi {
      background: #f0fdf4;
      color: #16a34a;
      border: 1px solid #bbf7d0;
    }

    .ticket-actions-group {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      white-space: nowrap;
      flex-wrap: nowrap;
    }
      white-space: nowrap;
    }

    /* Live Telemetry Pill & Wave */
    .traffic-live-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.25);
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11.5px;
      color: #065f46;
      font-weight: 600;
    }
    .live-pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      animation: livePulse 1.8s infinite;
      flex-shrink: 0;
    }
    @keyframes livePulse {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      }
      70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
      }
      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
      }
    }

    /* ---------- Tariff Card Grid ---------- */
    .tariff-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }

    .tariff-card {
      background: var(--surface);
      border: 1px solid var(--surface-border);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow-sm);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: var(--transition);
      cursor: pointer;
    }

    .tariff-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--ucell-purple);
      transform: translateY(-3px);
    }

    .tariff-card.featured {
      border: 2px solid var(--ucell-purple);
      background: #faf7fd;
    }

    .tariff-badge {
      position: absolute;
      top: -10px;
      right: 20px;
      background: var(--ucell-purple);
      color: #ffffff;
      padding: 2px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .tariff-name {
      font-size: 20px;
      font-weight: 800;
      color: #0f172a;
      margin-bottom: 6px;
    }

    .tariff-price {
      font-size: 26px;
      font-weight: 800;
      color: var(--ucell-purple);
      margin-bottom: 16px;
    }

    .tariff-price span {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
    }

    .tariff-specs {
      list-style: none;
      margin-bottom: 20px;
      border-top: 1px solid var(--surface-border);
      padding-top: 14px;
    }

    .tariff-specs li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13.5px;
      color: #334155;
      margin-bottom: 10px;
    }

    .tariff-specs li svg {
      width: 16px;
      height: 16px;
      fill: var(--ucell-cyan);
      flex-shrink: 0;
    }

    /* ---------- Modals ---------- */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
      padding: 20px;
      animation: fadeIn 0.15s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-card {
      background: var(--surface);
      border-radius: var(--radius-xl);
      width: 100%;
      max-width: 640px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: var(--shadow-float);
      animation: slideUp 0.2s ease-out;
      border: 1px solid var(--surface-border);
    }

    .modal-card.wide {
      max-width: 820px;
    }

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

    .modal-header {
      padding: 20px 26px;
      border-bottom: 1px solid var(--surface-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      background: var(--surface);
      z-index: 10;
    }

    .modal-header h3 {
      font-size: 18px;
      font-weight: 800;
      color: #0f172a;
    }

    .modal-close {
      background: transparent;
      border: none;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      color: var(--text-muted);
      border-radius: 6px;
      padding: 4px 8px;
    }

    .modal-close:hover {
      color: var(--text);
      background: #f1f5f9;
    }

    .modal-body {
      padding: 24px 26px;
    }

    .modal-footer {
      padding: 16px 26px;
      border-top: 1px solid var(--surface-border);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      background: #fafbfc;
    }

    /* ---------- Forms ---------- */
    .form-group {
      margin-bottom: 18px;
    }

    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: #334155;
      margin-bottom: 6px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .form-control {
      width: 100%;
      height: 42px;
      padding: 0 14px;
      border-radius: var(--radius-md);
      border: 1px solid var(--surface-border);
      background: #ffffff;
      font-size: 14px;
      outline: none;
      transition: var(--transition);
    }

    .form-control:focus {
      border-color: var(--ucell-purple);
      box-shadow: 0 0 0 3px rgba(101, 45, 144, 0.12);
    }

    textarea.form-control {
      height: auto;
      padding: 12px 14px;
      min-height: 90px;
      resize: vertical;
    }

    /* ---------- Subscriber Detail Tabs inside Modal ---------- */
    .subscriber-hero {
      background: linear-gradient(135deg, var(--ucell-purple-dark) 0%, var(--ucell-purple) 100%);
      color: white;
      border-radius: var(--radius-lg);
      padding: 22px;
      margin-bottom: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .subscriber-hero-left h3 {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .subscriber-hero-left .msisdn-title {
      font-family: monospace;
      font-size: 16px;
      color: #e9d5ff;
      letter-spacing: 0.5px;
    }

    .subscriber-hero-balance {
      text-align: right;
    }

    .subscriber-hero-balance .amount {
      font-size: 28px;
      font-weight: 800;
      color: #34d399;
      line-height: 1;
    }

    .subscriber-hero-balance .label {
      font-size: 12px;
      color: #e9d5ff;
      margin-top: 4px;
    }

    .balance-meters {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .meter-card {
      background: #f8fafc;
      border: 1px solid var(--surface-border);
      border-radius: var(--radius-md);
      padding: 14px;
      text-align: center;
    }

    .meter-card .val {
      font-size: 20px;
      font-weight: 800;
      color: var(--ucell-purple);
    }

    .meter-card .lbl {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 2px;
      font-weight: 600;
    }

    .quick-actions-bar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    /* ---------- Toast Notifications ---------- */
    #toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
    }

    .toast {
      background: #1e293b;
      color: #ffffff;
      padding: 12px 20px;
      border-radius: var(--radius-md);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      font-size: 13.5px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: toastIn 0.25s ease-out forwards;
      pointer-events: auto;
      border-left: 4px solid var(--ucell-purple);
    }

    .toast.success { border-left-color: var(--success); }
    .toast.danger { border-left-color: var(--danger); }
    .toast.warning { border-left-color: var(--warning); }
    .toast.info { border-left-color: var(--info); }

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

    /* ---------- Login Page View ---------- */
    .login-container {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at 80% 20%, #441467 0%, #1e0930 100%);
      padding: 20px;
    }

    .login-box {
      width: 100%;
      max-width: 440px;
      background: #ffffff;
      border-radius: var(--radius-xl);
      padding: 36px 32px;
      box-shadow: var(--shadow-float);
    }

    .login-logo {
      text-align: center;
      margin-bottom: 24px;
    }

    .login-logo .icon-box {
      width: 58px;
      height: 58px;
      margin: 0 auto 12px;
      background: #ffffff;
      border: 1px solid var(--surface-border);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(101, 45, 144, 0.12);
    }

    .login-logo .icon-box img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      display: block;
    }

    .login-logo svg {
      width: 32px;
      height: 32px;
      fill: var(--ucell-purple);
    }

    .login-logo h2 {
      font-size: 24px;
      font-weight: 800;
      color: #0f172a;
    }

    .login-logo p {
      color: var(--text-muted);
      font-size: 13.5px;
      margin-top: 4px;
    }

    .demo-accounts {
      margin-top: 24px;
      padding: 14px;
      background: #f8fafc;
      border-radius: var(--radius-md);
      border: 1px dashed #cbd5e1;
      font-size: 12px;
    }

    .demo-accounts h4 {
      font-size: 12px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }

    .demo-pill {
      display: inline-block;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      padding: 4px 8px;
      border-radius: 6px;
      cursor: pointer;
      margin: 2px 4px 2px 0;
      transition: var(--transition);
    }

    .demo-pill:hover {
      border-color: var(--ucell-purple);
      color: var(--ucell-purple);
    }

    /* ---------- 2D SVG Sticker Badges ---------- */
    .sticker {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 6px;
      vertical-align: middle;
      flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.06);
      transition: transform 0.15s ease;
    }
    .sticker:hover {
      transform: scale(1.08);
    }
    .sticker svg {
      width: 14px;
      height: 14px;
      fill: #ffffff;
    }
    .sticker.stk-chart { background: #652d90; }
    .sticker.stk-file { background: #0284c7; }
    .sticker.stk-card { background: #e11d48; }
    .sticker.stk-warn { background: #d97706; }
    .sticker.stk-box { background: #4f46e5; }
    .sticker.stk-rocket { background: #0d9488; }
    .sticker.stk-block { background: #dc2626; }
    .sticker.stk-check { background: #16a34a; }
    .sticker.stk-trash { background: #ef4444; }
    .sticker.stk-refresh { background: #2563eb; }
    .sticker.stk-key { background: #f59e0b; }
    .sticker.stk-headset { background: #8b5cf6; }
    .sticker.stk-tool { background: #475569; }
    .sticker.stk-globe { background: #0284c7; }
    .sticker.stk-phone { background: #10b981; }
    .sticker.stk-chat { background: #06b6d4; }
    .sticker.stk-mobile { background: #7c3aed; }
    .sticker.stk-bolt { background: #f59e0b; }
    .sticker.stk-gift { background: #ec4899; }
    .sticker.stk-users { background: #6d28d9; }
    .sticker.stk-star { background: #f59e0b; }
    .sticker.stk-info { background: #2563eb; }
    .sticker.stk-sim { background: #10b981; }
    .sticker.stk-sim-trash { background: #ef4444; }
    .sticker.stk-cal { background: #652d90; }
    .sticker.stk-robot { background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%); }
    .sticker.stk-crown { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
    .sticker.stk-lock { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
    .sticker.stk-gear { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }
    .sticker.stk-clock { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
    .sticker.stk-pin { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }
    .sticker.stk-eye { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
    .sticker.stk-plane { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
    .sticker.stk-bulb { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
    .sticker.stk-save { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
    .sticker.stk-map { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
    .sticker.stk-shield { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); }
    .sticker.stk-wallet { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
    .sticker.stk-badge { background: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%); }

    .sticker-lg {
      width: 32px;
      height: 32px;
      border-radius: 9px;
    }
    .sticker-lg svg {
      width: 18px;
      height: 18px;
    }
    .btn .sticker {
      margin-right: 2px;
    }

    /* ---------- Responsive adjustments ---------- */
    @media (max-width: 768px) {
      html, body {
        height: auto;
        overflow: auto;
      }
      #app {
        height: auto;
        overflow: visible;
      }
      .crm-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
      }
      .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
      }
      .main-viewport {
        height: auto;
        overflow: visible;
      }
      .content-body {
        padding: 16px;
        overflow: visible;
      }
      .top-header {
        padding: 0 16px;
        position: sticky;
        top: 0;
      }
      .header-search {
        width: 100%;
        max-width: 180px;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      .balance-meters {
        grid-template-columns: 1fr;
      }
    }
