   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box
   }

   body {
       font-family: 'Inter', sans-serif;
       overflow-x: hidden
   }

   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
       font-family: 'Plus Jakarta Sans', sans-serif
   }

   html,
   body {
       max-width: 100vw;
       overflow-x: hidden
   }

   ::-webkit-scrollbar {
       width: 6px;
       height: 6px
   }

   ::-webkit-scrollbar-track {
       background: transparent
   }

   ::-webkit-scrollbar-thumb {
       background: #94a3b8;
       border-radius: 3px
   }

   .dark ::-webkit-scrollbar-thumb {
       background: #475569
   }

   .glass {
       background: rgba(255, 255, 255, 0.85);
       backdrop-filter: blur(20px);
       -webkit-backdrop-filter: blur(20px);
       border: 1px solid rgba(255, 255, 255, 0.2)
   }

   .dark .glass {
       background: rgba(17, 24, 39, 0.9);
       border: 1px solid rgba(255, 255, 255, 0.05)
   }

   .glass-card {
       background: rgba(255, 255, 255, 0.95);
       backdrop-filter: blur(12px);
       border: 1px solid rgba(226, 232, 240, 0.8);
       box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05)
   }

   .dark .glass-card {
       background: rgba(30, 41, 59, 0.95);
       border: 1px solid rgba(255, 255, 255, 0.05)
   }

   .sidebar {
       transition: all .3s cubic-bezier(.4, 0, .2, 1)
   }

   .sidebar-overlay {
       background: rgba(0, 0, 0, 0.5);
       backdrop-filter: blur(4px)
   }

   @keyframes shimmer {
       0% {
           background-position: -200% 0
       }

       100% {
           background-position: 200% 0
       }
   }

   @keyframes fadeIn {
       from {
           opacity: 0
       }

       to {
           opacity: 1
       }
   }

   @keyframes scaleIn {
       from {
           opacity: 0;
           transform: scale(.95)
       }

       to {
           opacity: 1;
           transform: scale(1)
       }
   }

   @keyframes shine {
       0% {
           transform: translateX(-100%) rotate(45deg)
       }

       100% {
           transform: translateX(300%) rotate(45deg)
       }
   }

   .skeleton {
       background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
       background-size: 200% 100%;
       animation: shimmer 1.5s infinite
   }

   .dark .skeleton {
       background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
       background-size: 200% 100%
   }

   .animate-fadeIn {
       animation: fadeIn .3s ease
   }

   .animate-scaleIn {
       animation: scaleIn .3s ease
   }

   .hover-lift {
       transition: all .3s cubic-bezier(.4, 0, .2, 1)
   }

   .hover-lift:hover {
       transform: translateY(-4px);
       box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1)
   }

   .dark .hover-lift:hover {
       box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3)
   }

   .gradient-text {
       background: linear-gradient(135deg, #4F46E5, #7C3AED);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text
   }

   .nav-item.active {
       background: linear-gradient(135deg, #4F46E5, #7C3AED);
       color: white
   }

   .table-responsive {
       overflow-x: auto;
       -webkit-overflow-scrolling: touch
   }

   .icon-btn {
       display: flex;
       align-items: center;
       justify-content: center;
       width: 44px;
       height: 44px;
       min-width: 44px;
       min-height: 44px;
       border-radius: 12px;
       cursor: pointer;
       position: relative;
       z-index: 1;
       transition: all .2s;
       border: none;
       outline: none;
       -webkit-tap-highlight-color: transparent
   }

   .icon-btn:active {
       transform: scale(.92)
   }

   .icon-btn svg {
       pointer-events: none
   }

   .icon-btn .badge-dot {
       position: absolute;
       top: 8px;
       right: 8px;
       width: 9px;
       height: 9px;
       background: #EF4444;
       border-radius: 50%;
       border: 2px solid white
   }

   .dark .icon-btn .badge-dot {
       border-color: #111827
   }

   .slide-panel {
       position: fixed;
       top: 0;
       right: 0;
       height: 100%;
       height: 100dvh;
       z-index: 60;
       transform: translateX(100%);
       transition: transform .35s cubic-bezier(.4, 0, .2, 1);
       will-change: transform
   }

   .slide-panel.open {
       transform: translateX(0)
   }

   .panel-overlay {
       position: fixed;
       inset: 0;
       background: rgba(0, 0, 0, 0.4);
       backdrop-filter: blur(4px);
       z-index: 55;
       opacity: 0;
       pointer-events: none;
       transition: opacity .3s
   }

   .panel-overlay.active {
       opacity: 1;
       pointer-events: auto
   }

   @media(max-width:1023px) {
       .sidebar {
           transform: translateX(-100%);
           position: fixed;
           z-index: 50
       }

       .sidebar.open {
           transform: translateX(0)
       }
   }

   .dropdown-menu {
       position: absolute;
       right: 0;
       top: calc(100% + 8px);
       z-index: 50;
       opacity: 0;
       visibility: hidden;
       transform: translateY(-8px) scale(.97);
       transition: all .2s cubic-bezier(.4, 0, .2, 1)
   }

   .dropdown-menu.show {
       opacity: 1;
       visibility: visible;
       transform: translateY(0) scale(1)
   }

   .tab-btn {
       transition: all .2s;
       position: relative
   }

   .tab-btn.active {
       color: #4F46E5;
       font-weight: 600
   }

   .tab-btn.active::after {
       content: '';
       position: absolute;
       bottom: -1px;
       left: 0;
       right: 0;
       height: 2px;
       background: #4F46E5;
       border-radius: 2px
   }

   .view-toggle-btn {
       transition: all .2s;
       padding: 8px 12px;
       border-radius: 8px
   }

   .view-toggle-btn.active {
       background: #4F46E5;
       color: white
   }

   /* Certificate Card Design */
   .cert-preview {
       background: linear-gradient(135deg, #F8FAFC 0%, #EDE9FE 100%);
       position: relative;
       overflow: hidden;
       aspect-ratio: 1.414/1
   }

   .dark .cert-preview {
       background: linear-gradient(135deg, #1E293B 0%, #312E81 100%)
   }

   .cert-preview::before {
       content: '';
       position: absolute;
       inset: 0;
       background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 40%);
       pointer-events: none
   }

   .cert-preview::after {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       border: 8px double rgba(79, 70, 229, 0.3);
       margin: 12px;
       border-radius: 8px;
       pointer-events: none
   }

   .dark .cert-preview::after {
       border-color: rgba(139, 92, 246, 0.4)
   }

   .cert-shine {
       position: absolute;
       top: 0;
       left: 0;
       width: 50%;
       height: 100%;
       background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
       transform: translateX(-100%) rotate(45deg);
       pointer-events: none
   }

   .cert-card:hover .cert-shine {
       animation: shine 1.5s ease
   }

   .cert-card {
       transition: all .3s cubic-bezier(.4, 0, .2, 1);
       position: relative;
       overflow: hidden
   }

   .cert-card:hover {
       transform: translateY(-6px);
       box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15)
   }

   .cert-badge {
       position: absolute;
       top: -8px;
       right: -8px;
       width: 60px;
       height: 60px;
       background: linear-gradient(135deg, #F59E0B, #D97706);
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       color: white;
       box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
       z-index: 2
   }

   .cert-badge::before {
       content: '';
       position: absolute;
       inset: -4px;
       border: 2px dashed white;
       border-radius: 50%;
       opacity: 0.5
   }

   .cert-signature {
       font-family: 'Playfair Display', serif;
       font-style: italic;
       font-weight: 700
   }

   .cert-serif {
       font-family: 'Playfair Display', serif
   }

   /* Full Certificate Design */
   .cert-full {
       background: linear-gradient(135deg, #FFFFFF 0%, #F0EAFE 50%, #FFFFFF 100%);
       position: relative;
       overflow: hidden;
       aspect-ratio: 1.414/1;
       border: 1px solid #E2E8F0
   }

   .dark .cert-full {
       background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
       border-color: #334155
   }

   .cert-full::before {
       content: '';
       position: absolute;
       inset: 20px;
       border: 3px solid #4F46E5;
       border-radius: 8px;
       pointer-events: none
   }

   .cert-full::after {
       content: '';
       position: absolute;
       inset: 32px;
       border: 1px solid #7C3AED;
       border-radius: 4px;
       pointer-events: none;
       opacity: 0.5
   }

   .cert-corner {
       position: absolute;
       width: 80px;
       height: 80px;
       background: linear-gradient(135deg, #4F46E5, #7C3AED);
       opacity: 0.1
   }

   .cert-corner.tl {
       top: 20px;
       left: 20px;
       clip-path: polygon(0 0, 100% 0, 0 100%)
   }

   .cert-corner.tr {
       top: 20px;
       right: 20px;
       clip-path: polygon(0 0, 100% 0, 100% 100%)
   }

   .cert-corner.bl {
       bottom: 20px;
       left: 20px;
       clip-path: polygon(0 0, 100% 100%, 0 100%)
   }

   .cert-corner.br {
       bottom: 20px;
       right: 20px;
       clip-path: polygon(100% 0, 100% 100%, 0 100%)
   }

   .custom-checkbox {
       accent-color: #4F46E5;
       width: 16px;
       height: 16px;
       cursor: pointer;
       border-radius: 4px
   }

   @supports(padding-bottom:env(safe-area-inset-bottom)) {
       .mobile-safe {
           padding-bottom: env(safe-area-inset-bottom)
       }
   }

   .quick-action-btn {
       transition: all .2s
   }

   .quick-action-btn:hover {
       transform: scale(1.03)
   }

   .quick-action-btn:active {
       transform: scale(.97)
   }