 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
 }

 [data-lucide] {
     width: 1em;
     height: 1em;
     display: inline-block;
     vertical-align: middle;
 }

 svg {
     display: inline-block;
     vertical-align: middle;
 }

 html,
 body {
     overflow-x: hidden !important;
     max-width: 100vw !important;
 }

 .dark body {
     background: linear-gradient(180deg, #0b1223 0%, #141d33 100%);
     background-attachment: fixed;
 }

 ::-webkit-scrollbar {
     width: 6px;
     height: 6px;
 }

 ::-webkit-scrollbar-track {
     background: transparent;
 }

 ::-webkit-scrollbar-thumb {
     background: #CBD5E1;
     border-radius: 50px;
 }

 .dark ::-webkit-scrollbar-thumb {
     background: #374560;
 }

 .sidebar-scroll::-webkit-scrollbar {
     width: 4px;
 }

 .sidebar-scroll::-webkit-scrollbar-thumb {
     background: rgba(148, 163, 184, 0.3);
     border-radius: 50px;
 }

 .sidebar {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .sidebar-collapsed {
     width: 80px !important;
 }

 .sidebar-collapsed .sidebar-text {
     display: none;
 }

 .sidebar-collapsed .sidebar-logo-text {
     display: none;
 }

 .sidebar-collapsed .sidebar-badge {
     display: none;
 }

 .sidebar-collapsed .sidebar-item {
     justify-content: center;
     padding-left: 0;
     padding-right: 0;
 }

 .sidebar-collapsed .sidebar-header {
     display: none;
 }

 .sidebar-collapsed .sidebar-close-btn {
     display: none;
 }

 .sidebar-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.65);
     backdrop-filter: blur(6px);
     z-index: 40;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
 }

 .sidebar-overlay.active {
     opacity: 1;
     visibility: visible;
 }

 .ripple {
     position: relative;
     overflow: hidden;
 }

 .ripple::after {
     content: '';
     position: absolute;
     width: 100%;
     height: 100%;
     top: 0;
     left: 0;
     pointer-events: none;
     background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
     background-repeat: no-repeat;
     background-position: 50%;
     transform: scale(10, 10);
     opacity: 0;
     transition: transform 0.5s, opacity 1s;
 }

 .ripple:active::after {
     transform: scale(0, 0);
     opacity: 0.3;
     transition: 0s;
 }

 .card-hover {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .card-hover:hover {
     transform: translateY(-4px);
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
 }

 .dark .card-hover:hover {
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
 }

 .gradient-text {
     background: linear-gradient(135deg, #6366F1, #22D3EE);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .notification-badge {
     position: absolute;
     top: -2px;
     right: -2px;
     min-width: 18px;
     height: 18px;
     padding: 0 4px;
     background: #EF4444;
     color: white;
     font-size: 10px;
     font-weight: 700;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     border: 2px solid white;
     box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
 }

 .dark .notification-badge {
     border-color: #141d33;
     box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
 }

 .menu-active {
     background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
     color: #4F46E5;
     border-right: 3px solid #4F46E5;
 }

 .dark .menu-active {
     background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.08));
     color: #A5B4FC;
     border-right: 3px solid #818CF8;
     box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.1);
 }

 .dropdown-menu {
     transform-origin: top right;
     transform: scale(0.95) translateY(-10px);
     opacity: 0;
     visibility: hidden;
     transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
     pointer-events: none;
 }

 .dropdown-menu.active {
     transform: scale(1) translateY(0);
     opacity: 1;
     visibility: visible;
     pointer-events: auto;
 }

 .dark .premium-dropdown {
     background: linear-gradient(180deg, #1e2942 0%, #182238 100%);
     border: 1px solid rgba(129, 140, 248, 0.12);
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
 }

 @keyframes slideInRight {
     from {
         transform: translateX(100%);
         opacity: 0;
     }

     to {
         transform: translateX(0);
         opacity: 1;
     }
 }

 @keyframes slideOutRight {
     from {
         transform: translateX(0);
         opacity: 1;
     }

     to {
         transform: translateX(100%);
         opacity: 0;
     }
 }

 .toast-enter {
     animation: slideInRight 0.3s ease forwards;
 }

 .toast-exit {
     animation: slideOutRight 0.3s ease forwards;
 }

 .modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.65);
     backdrop-filter: blur(8px);
     z-index: 100;
     display: flex;
     align-items: center;
     justify-content: center;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
     padding: 16px;
 }

 .modal-overlay.active {
     opacity: 1;
     visibility: visible;
 }

 .modal-content {
     transform: scale(0.9) translateY(20px);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .modal-overlay.active .modal-content {
     transform: scale(1) translateY(0);
 }

 .status-badge {
     padding: 4px 12px;
     border-radius: 50px;
     font-size: 12px;
     font-weight: 600;
     display: inline-flex;
     align-items: center;
     gap: 4px;
 }

 .table-responsive {
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 .scrollbar-hide::-webkit-scrollbar {
     display: none;
 }

 .scrollbar-hide {
     -ms-overflow-style: none;
     scrollbar-width: none;
 }

 /* ============ SUPPORT HERO ============ */
 .support-hero {
     background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 50%, #10B981 100%);
     border-radius: 24px;
     position: relative;
     overflow: hidden;
 }

 .support-hero::before {
     content: '';
     position: absolute;
     top: -30%;
     right: -15%;
     width: 400px;
     height: 400px;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
     border-radius: 50%;
     pointer-events: none;
 }

 .support-hero::after {
     content: '';
     position: absolute;
     bottom: -30%;
     left: -15%;
     width: 300px;
     height: 300px;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
     border-radius: 50%;
     pointer-events: none;
 }

 @keyframes pulse-live {

     0%,
     100% {
         transform: scale(1);
         opacity: 1;
     }

     50% {
         transform: scale(1.5);
         opacity: 0.5;
     }
 }

 .pulse-live {
     animation: pulse-live 2s ease-in-out infinite;
 }

 /* Search input glow */
 .search-glow {
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(255, 255, 255, 0.1);
 }

 .search-glow:focus-within {
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(255, 255, 255, 0.2);
     transform: translateY(-2px);
 }

 /* Tab styles */
 .tab-btn {
     transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     cursor: pointer;
 }

 .tab-btn.active {
     color: #4F46E5 !important;
 }

 .dark .tab-btn.active {
     color: #A5B4FC !important;
 }

 .tab-btn.active::after {
     content: '';
     position: absolute;
     bottom: -1px;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, #4F46E5, #06B6D4);
     border-radius: 3px 3px 0 0;
 }

 .tab-content {
     display: none;
     animation: fadeIn 0.3s ease;
 }

 .tab-content.active {
     display: block;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Ticket card */
 .ticket-card {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     cursor: pointer;
     position: relative;
 }

 .ticket-card:hover {
     transform: translateX(4px);
     box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
 }

 .dark .ticket-card:hover {
     box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
 }

 .ticket-card::before {
     content: '';
     position: absolute;
     left: 0;
     top: 16px;
     bottom: 16px;
     width: 4px;
     border-radius: 0 4px 4px 0;
 }

 .ticket-open::before {
     background: linear-gradient(180deg, #F59E0B, #D97706);
 }

 .ticket-progress::before {
     background: linear-gradient(180deg, #06B6D4, #0891B2);
 }

 .ticket-resolved::before {
     background: linear-gradient(180deg, #10B981, #059669);
 }

 .ticket-closed::before {
     background: linear-gradient(180deg, #94A3B8, #64748B);
 }

 /* Priority badge */
 .priority-urgent {
     background: linear-gradient(135deg, #EF4444, #DC2626);
     color: white;
     box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
 }

 .priority-high {
     background: linear-gradient(135deg, #F59E0B, #D97706);
     color: white;
     box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
 }

 .priority-medium {
     background: linear-gradient(135deg, #06B6D4, #0891B2);
     color: white;
     box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
 }

 .priority-low {
     background: linear-gradient(135deg, #94A3B8, #64748B);
     color: white;
 }

 /* Status */
 .status-open {
     background: linear-gradient(135deg, #F59E0B, #D97706);
     color: white;
 }

 .status-progress {
     background: linear-gradient(135deg, #06B6D4, #0891B2);
     color: white;
 }

 .status-resolved {
     background: linear-gradient(135deg, #10B981, #059669);
     color: white;
 }

 .status-closed {
     background: linear-gradient(135deg, #94A3B8, #64748B);
     color: white;
 }

 /* Category card - clickable */
 .category-card {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     cursor: pointer;
     position: relative;
     overflow: hidden;
 }

 .category-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
 }

 .dark .category-card:hover {
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
 }

 .category-card .cat-icon {
     transition: transform 0.3s;
 }

 .category-card:hover .cat-icon {
     transform: scale(1.1) rotate(-5deg);
 }

 /* FAQ accordion */
 .faq-item {
     transition: all 0.3s;
     cursor: pointer;
 }

 .faq-item .faq-content {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .faq-item.open .faq-content {
     max-height: 500px;
 }

 .faq-item .faq-icon {
     transition: transform 0.3s;
 }

 .faq-item.open .faq-icon {
     transform: rotate(45deg);
 }

 .faq-item.open {
     background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.03));
 }

 .dark .faq-item.open {
     background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(34, 211, 238, 0.05));
 }

 /* Contact method card */
 .contact-method {
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     cursor: pointer;
     position: relative;
     overflow: hidden;
 }

 .contact-method:hover {
     transform: translateY(-6px);
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
 }

 .dark .contact-method:hover {
     box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
 }

 /* Live chat pulse */
 @keyframes chat-pulse {

     0%,
     100% {
         box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
     }

     50% {
         box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
     }
 }

 .chat-pulse {
     animation: chat-pulse 2s ease-in-out infinite;
 }

 /* Response time */
 .response-badge {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     padding: 3px 10px;
     background: rgba(16, 185, 129, 0.1);
     color: #059669;
     font-size: 11px;
     font-weight: 700;
     border-radius: 50px;
 }

 .dark .response-badge {
     background: rgba(16, 185, 129, 0.15);
     color: #6EE7B7;
 }

 /* Agent avatar with status */
 .agent-avatar {
     position: relative;
     display: inline-block;
 }

 .agent-status {
     position: absolute;
     bottom: -2px;
     right: -2px;
     width: 14px;
     height: 14px;
     background: #10B981;
     border: 2px solid white;
     border-radius: 50%;
 }

 .dark .agent-status {
     border-color: #1e2942;
 }

 /* Custom checkbox */
 .custom-checkbox {
     position: relative;
     width: 18px;
     height: 18px;
     flex-shrink: 0;
 }

 .custom-checkbox input {
     opacity: 0;
     width: 0;
     height: 0;
 }

 .checkmark {
     position: absolute;
     inset: 0;
     background: transparent;
     border: 2px solid #CBD5E1;
     border-radius: 4px;
     transition: all 0.2s;
     cursor: pointer;
 }

 .dark .checkmark {
     border-color: #425573;
 }

 .custom-checkbox input:checked~.checkmark {
     background: linear-gradient(135deg, #4F46E5, #6366F1);
     border-color: #4F46E5;
 }

 .checkmark::after {
     content: '';
     position: absolute;
     display: none;
     left: 4px;
     top: 1px;
     width: 4px;
     height: 9px;
     border: solid white;
     border-width: 0 2px 2px 0;
     transform: rotate(45deg);
 }

 .custom-checkbox input:checked~.checkmark::after {
     display: block;
 }

 /* Priority selector */
 .priority-btn {
     transition: all 0.2s;
     cursor: pointer;
 }

 .priority-btn.selected {
     transform: scale(1.05);
 }

 /* File upload */
 .upload-area {
     border: 2px dashed #CBD5E1;
     border-radius: 12px;
     padding: 24px;
     text-align: center;
     transition: all 0.2s;
     cursor: pointer;
 }

 .dark .upload-area {
     border-color: #425573;
 }

 .upload-area:hover {
     border-color: #4F46E5;
     background: rgba(79, 70, 229, 0.03);
 }

 .upload-area.dragover {
     border-color: #4F46E5;
     background: rgba(79, 70, 229, 0.08);
     transform: scale(1.02);
 }

 /* Ratings stars */
 .star {
     color: #E5E7EB;
     transition: color 0.2s;
 }

 .dark .star {
     color: #374560;
 }

 .star.filled {
     color: #F59E0B;
 }

 /* Empty state */
 .empty-state {
     text-align: center;
     padding: 60px 20px;
 }

 /* Bulk actions */
 @keyframes slideDown {
     from {
         transform: translateY(-100%);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 .bulk-bar {
     animation: slideDown 0.3s ease;
 }

 /* Timeline */
 .timeline-item {
     position: relative;
     padding-left: 32px;
     padding-bottom: 20px;
 }

 .timeline-item::before {
     content: '';
     position: absolute;
     left: 11px;
     top: 24px;
     bottom: 0;
     width: 2px;
     background: linear-gradient(180deg, #4F46E5, #06B6D4);
     opacity: 0.3;
 }

 .timeline-item:last-child::before {
     display: none;
 }

 .timeline-dot {
     position: absolute;
     left: 0;
     top: 4px;
     width: 24px;
     height: 24px;
     border-radius: 50%;
     background: linear-gradient(135deg, #4F46E5, #6366F1);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
 }

 @media print {
     .no-print {
         display: none !important;
     }
 }

 @media (max-width: 1023px) {
     #mainContent {
         margin-left: 0 !important;
         width: 100% !important;
         max-width: 100vw !important;
         overflow-x: hidden !important;
     }

     main {
         padding-left: 12px !important;
         padding-right: 12px !important;
         max-width: 100% !important;
     }
 }

 @media(max-width:640px) {

     .notification-popup-fix,
     .messenger-popup-fix {
         position: fixed !important;
         left: 8px !important;
         right: 8px !important;
         top: 60px !important;
         width: auto !important;
         max-width: none !important;
     }

     .grid {
         gap: 0.75rem !important;
     }
 }

 @media (max-width: 380px) {
     main {
         padding-left: 10px !important;
         padding-right: 10px !important;
     }

     h2.text-2xl {
         font-size: 1.375rem !important;
         line-height: 1.75rem !important;
     }

     .modal-content {
         max-width: calc(100vw - 16px) !important;
     }

     header .flex.items-center.gap-1 {
         gap: 0 !important;
     }

     header button.p-2 {
         padding: 0.375rem !important;
     }

     .notification-popup-fix,
     .messenger-popup-fix {
         top: 56px !important;
     }
 }