   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box
   }

   body {
       font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
       transition: background .3s, color .3s
   }

   body {
       background: #f8fafc;
       color: #1e293b
   }

   .sidebar-bg {
       background: #ffffff;
       border-right: 1px solid #e2e8f0
   }

   .card-bg {
       background: #ffffff;
       border: 1px solid #e2e8f0
   }

   .header-bg {
       background: rgba(255, 255, 255, .95);
       backdrop-filter: blur(20px);
       border-bottom: 1px solid #e2e8f0
   }

   .input-bg {
       background: #f1f5f9;
       border: 1px solid #e2e8f0;
       color: #1e293b
   }

   .text-main {
       color: #1e293b
   }

   .text-sub {
       color: #64748b
   }

   .text-muted {
       color: #94a3b8
   }

   .hover-bg:hover {
       background: #f1f5f9
   }

   .dropdown-bg {
       background: #ffffff;
       border: 1px solid #e2e8f0
   }

   .divider {
       border-color: #e2e8f0
   }

   .popup-bg {
       background: #ffffff;
       border: 1px solid #e2e8f0
   }

   .badge-bg {
       background: #f1f5f9
   }

   .progress-bg {
       background: #e2e8f0
   }

   .table-border {
       border-color: #e2e8f0
   }

   .dark body {
       background: #020617;
       color: #e2e8f0
   }

   .dark .sidebar-bg {
       background: #0f172a;
       border-right: 1px solid #1e293b
   }

   .dark .card-bg {
       background: #1e293b;
       border: 1px solid #334155
   }

   .dark .header-bg {
       background: rgba(15, 23, 42, .95);
       backdrop-filter: blur(20px);
       border-bottom: 1px solid #1e293b
   }

   .dark .input-bg {
       background: #1e293b;
       border: 1px solid #334155;
       color: #e2e8f0
   }

   .dark .text-main {
       color: #f1f5f9
   }

   .dark .text-sub {
       color: #94a3b8
   }

   .dark .text-muted {
       color: #64748b
   }

   .dark .hover-bg:hover {
       background: #334155
   }

   .dark .dropdown-bg {
       background: #1e293b;
       border: 1px solid #334155
   }

   .dark .divider {
       border-color: #1e293b
   }

   .dark .popup-bg {
       background: #1e293b;
       border: 1px solid #334155
   }

   .dark .badge-bg {
       background: #334155
   }

   .dark .progress-bg {
       background: #0f172a
   }

   .dark .table-border {
       border-color: #334155
   }

   ::-webkit-scrollbar {
       width: 6px;
       height: 6px
   }

   ::-webkit-scrollbar-track {
       background: transparent
   }

   ::-webkit-scrollbar-thumb {
       background: #cbd5e1;
       border-radius: 10px
   }

   .dark ::-webkit-scrollbar-thumb {
       background: #334155
   }

   .sidebar-container {
       position: fixed;
       top: 0;
       left: 0;
       bottom: 0;
       width: 260px;
       z-index: 50;
       display: flex;
       flex-direction: column;
       overflow-y: auto
   }

   .main-container {
       margin-left: 260px;
       min-height: 100vh
   }

   @media(max-width:1023px) {
       .sidebar-container {
           transform: translateX(-100%);
           transition: transform .3s
       }

       .sidebar-container.open {
           transform: translateX(0)
       }

       .main-container {
           margin-left: 0
       }
   }

   .sidebar-link {
       transition: all .3s;
       display: flex;
       align-items: center;
       gap: 12px;
       padding: 10px 12px;
       border-radius: 12px;
       font-size: 14px;
       color: #64748b
   }

   .dark .sidebar-link {
       color: #94a3b8
   }

   .sidebar-link:hover {
       background: rgba(76, 110, 245, .08);
       color: #4c6ef5;
       transform: translateX(4px)
   }

   .dark .sidebar-link:hover {
       background: rgba(76, 110, 245, .15);
       color: #748ffc
   }

   .sidebar-link.active {
       background: linear-gradient(135deg, rgba(76, 110, 245, .1), rgba(124, 58, 237, .08));
       color: #4c6ef5;
       font-weight: 600;
       border-left: 3px solid #4c6ef5
   }

   .dark .sidebar-link.active {
       background: linear-gradient(135deg, rgba(76, 110, 245, .2), rgba(124, 58, 237, .12));
       color: #748ffc
   }

   .card-hover {
       transition: all .4s
   }

   .card-hover:hover {
       transform: translateY(-4px);
       box-shadow: 0 20px 40px rgba(0, 0, 0, .08)
   }

   .dark .card-hover:hover {
       box-shadow: 0 20px 40px rgba(0, 0, 0, .4)
   }

   .header-sticky {
       position: sticky;
       top: 0;
       z-index: 30
   }

   @keyframes pulse-dot {
       0% {
           box-shadow: 0 0 0 0 rgba(34, 197, 94, .4)
       }

       70% {
           box-shadow: 0 0 0 8px transparent
       }

       100% {
           box-shadow: 0 0 0 0 transparent
       }
   }

   .pulse-dot {
       animation: pulse-dot 2s infinite
   }

   @keyframes spin-anim {
       from {
           transform: rotate(0)
       }

       to {
           transform: rotate(360deg)
       }
   }

   .spinning {
       animation: spin-anim 1s linear infinite
   }

   .toast-enter {
       animation: slideIn .4s
   }

   @keyframes slideIn {
       from {
           transform: translateX(100%);
           opacity: 0
       }

       to {
           transform: translateX(0);
           opacity: 1
       }
   }

   .overlay {
       position: fixed;
       inset: 0;
       background: rgba(0, 0, 0, .5);
       backdrop-filter: blur(4px);
       z-index: 40;
       display: none
   }

   .overlay.show {
       display: block
   }

   .modal {
       position: fixed;
       inset: 0;
       z-index: 200;
       display: none;
       align-items: center;
       justify-content: center;
       padding: 1rem
   }

   .modal.show {
       display: flex
   }

   .gradient-text {
       background: linear-gradient(135deg, #4c6ef5, #7c3aed);
       -webkit-background-clip: text;
       background-clip: text;
       -webkit-text-fill-color: transparent
   }

   .stat-g1 {
       background: linear-gradient(135deg, #667eea, #764ba2)
   }

   .stat-g2 {
       background: linear-gradient(135deg, #f093fb, #f5576c)
   }

   .stat-g3 {
       background: linear-gradient(135deg, #4facfe, #00f2fe)
   }

   .stat-g4 {
       background: linear-gradient(135deg, #43e97b, #38f9d7)
   }

   /* Media grid */
   .media-item {
       position: relative;
       overflow: hidden;
       border-radius: 12px;
       transition: all .3s;
       cursor: pointer;
       background: #f1f5f9
   }

   .dark .media-item {
       background: #0f172a
   }

   .media-item:hover {
       transform: translateY(-4px);
       box-shadow: 0 20px 40px rgba(0, 0, 0, .15)
   }

   .dark .media-item:hover {
       box-shadow: 0 20px 40px rgba(0, 0, 0, .5)
   }

   .media-item img,
   .media-item video {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform .5s
   }

   .media-item:hover img,
   .media-item:hover video {
       transform: scale(1.08)
   }

   .media-overlay {
       position: absolute;
       inset: 0;
       background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, .7) 100%);
       opacity: 0;
       transition: opacity .3s
   }

   .media-item:hover .media-overlay {
       opacity: 1
   }

   .media-item.selected {
       outline: 3px solid #4c6ef5;
       outline-offset: 2px
   }

   .media-item.selected .selected-mark {
       opacity: 1
   }

   .media-type-badge {
       position: absolute;
       top: 8px;
       left: 8px;
       padding: 3px 8px;
       background: rgba(0, 0, 0, .7);
       color: white;
       border-radius: 6px;
       font-size: 10px;
       font-weight: 600;
       backdrop-filter: blur(8px);
       z-index: 5;
       display: flex;
       align-items: center;
       gap: 4px
   }

   .selected-mark {
       position: absolute;
       top: 8px;
       right: 8px;
       width: 24px;
       height: 24px;
       background: #4c6ef5;
       border: 2px solid white;
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       opacity: 0;
       transition: opacity .3s;
       z-index: 5
   }

   .quick-actions {
       position: absolute;
       bottom: 8px;
       left: 8px;
       right: 8px;
       display: flex;
       gap: 4px;
       opacity: 0;
       transform: translateY(10px);
       transition: all .3s;
       z-index: 5
   }

   .media-item:hover .quick-actions {
       opacity: 1;
       transform: translateY(0)
   }

   .media-info {
       position: absolute;
       bottom: 0;
       left: 0;
       right: 0;
       padding: 8px 12px;
       color: white;
       font-size: 11px;
       z-index: 4;
       pointer-events: none
   }

   /* Folder card */
   .folder-card {
       transition: all .3s
   }

   .folder-card:hover {
       transform: translateY(-4px);
       box-shadow: 0 10px 25px rgba(0, 0, 0, .1)
   }

   .dark .folder-card:hover {
       box-shadow: 0 10px 25px rgba(0, 0, 0, .4)
   }

   /* Upload zone */
   .upload-zone {
       border: 3px dashed #cbd5e1;
       transition: all .3s;
       position: relative
   }

   .dark .upload-zone {
       border-color: #475569
   }

   .upload-zone:hover,
   .upload-zone.dragging {
       border-color: #4c6ef5;
       background: rgba(76, 110, 245, .05)
   }

   .upload-zone.dragging {
       transform: scale(1.02)
   }

   .filter-chip {
       padding: 6px 12px;
       border-radius: 9999px;
       font-size: 12px;
       font-weight: 500;
       transition: all .3s;
       cursor: pointer;
       background: #f1f5f9;
       color: #64748b
   }

   .dark .filter-chip {
       background: #334155;
       color: #94a3b8
   }

   .filter-chip.active {
       background: #4c6ef5;
       color: white
   }

   .filter-chip:hover:not(.active) {
       background: #e2e8f0
   }

   .dark .filter-chip:hover:not(.active) {
       background: #475569
   }

   .view-btn {
       padding: 8px;
       border-radius: 8px;
       transition: all .3s;
       cursor: pointer;
       color: #64748b
   }

   .dark .view-btn {
       color: #94a3b8
   }

   .view-btn.active {
       background: #4c6ef5;
       color: white
   }

   .view-btn:hover:not(.active) {
       background: #f1f5f9
   }

   .dark .view-btn:hover:not(.active) {
       background: #334155
   }

   .ig-bg {
       background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888)
   }

   .x-bg {
       background: #000
   }

   .fb-bg {
       background: #1877f2
   }

   .li-bg {
       background: #0a66c2
   }

   .yt-bg {
       background: #ff0000
   }

   .tt-bg {
       background: linear-gradient(135deg, #25f4ee, #fe2c55)
   }

   .storage-bar {
       height: 6px;
       background: #e2e8f0;
       border-radius: 3px;
       overflow: hidden
   }

   .dark .storage-bar {
       background: #0f172a
   }

   .file-icon {
       width: 48px;
       height: 48px;
       border-radius: 12px;
       display: flex;
       align-items: center;
       justify-content: center;
       color: white
   }

   .fi-image {
       background: linear-gradient(135deg, #4facfe, #00f2fe)
   }

   .fi-video {
       background: linear-gradient(135deg, #fa709a, #fee140)
   }

   .fi-audio {
       background: linear-gradient(135deg, #43e97b, #38f9d7)
   }

   .fi-doc {
       background: linear-gradient(135deg, #a855f7, #ec4899)
   }

   .fi-folder {
       background: linear-gradient(135deg, #f59e0b, #f97316)
   }

   .action-fab {
       position: fixed;
       bottom: 24px;
       right: 24px;
       z-index: 35;
       transition: all .3s
   }

   .action-fab:hover {
       transform: scale(1.1)
   }

   .checkbox-mark {
       width: 20px;
       height: 20px;
       border: 2px solid #cbd5e1;
       border-radius: 6px;
       display: flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;
       transition: all .2s
   }

   .dark .checkbox-mark {
       border-color: #475569
   }

   .checkbox-mark.checked {
       background: #4c6ef5;
       border-color: #4c6ef5
   }

   .checkbox-mark.checked i {
       color: white
   }