:root {
  --bg: #07080b;
  --sidebar-bg: #0a0c10;
  --card-bg: #0f1117;
  --card-hover: #151821;
  --border: #1a1d26;
  --border-hover: #2d3342;
  --text-main: #f3f4f6;
  --text-muted: #848a98;
  --accent: #5b68df;
  --accent-glow: rgba(91, 104, 223, 0.25);
  --accent-purple: #7952ff;
  --mega-red: #ea3223;
  --folder-green: #22c55e;
  --folder-bg: rgba(34, 197, 94, 0.12);
  --radius: 12px;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-layout {
  display: flex;
  background-image: radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.25) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(91, 104, 223, 0.08) 0%, transparent 40%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Home / Landing Page Shell */
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}

header.topbar-simple {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #151820;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.brand span {
  color: #4b92ff;
}

nav.simple-nav {
  display: flex;
  gap: 24px;
  color: #8d94a3;
  font-size: 14px;
}

nav.simple-nav a:hover, nav.simple-nav a.active {
  color: #fff;
}

.hero {
  padding: 120px 0 100px;
  max-width: 820px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #5f9cff;
  margin-bottom: 18px;
}

h1.hero-title {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 0 0 24px;
}

h1.hero-title span {
  color: #858c9b;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 690px;
}

.clone-form {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

input, button {
  font: inherit;
}

input {
  background: #0f1117;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

input:focus {
  border-color: #386fbd;
}

.clone-form input {
  flex: 1;
}

button.btn-primary {
  border: 0;
  border-radius: 11px;
  padding: 13px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: 0.15s;
}

button.btn-primary:hover {
  background: var(--accent-purple);
}

.status {
  color: #7f8a9d;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
}

.sidebar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.mega-logo {
  width: 32px;
  height: 32px;
  background: var(--mega-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(234, 50, 35, 0.4);
}

.brand-text span {
  color: #fff;
}

.nav-section {
  margin-top: 36px;
  flex: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #555d6e;
  margin-bottom: 12px;
  padding-left: 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.15s ease;
}

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

.nav-item.active {
  background: #181a24;
  color: #fff;
  border-left: 3px solid var(--accent);
}

.nav-icon {
  width: 18px;
  height: 18px;
}

.vip-box {
  background: linear-gradient(145deg, #13141f, #18152c);
  border: 1px solid rgba(121, 82, 255, 0.2);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vip-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.vip-box p {
  font-size: 11px;
  line-height: 1.5;
  color: #8c90aa;
  margin-bottom: 14px;
}

.btn-vip {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b68df, #7952ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(121, 82, 255, 0.35);
  transition: 0.2s;
}

.btn-vip:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Main Content Area */
.main-wrapper {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  width: 440px;
  transition: 0.15s ease;
}

.search-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: #555d6e;
}

.search-container input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #151821;
  border: 1px solid var(--border);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}

.btn-share:hover {
  background: #1c202d;
  border-color: var(--border-hover);
}

/* Drive Main Body */
.drive-main {
  padding: 32px;
  flex: 1;
}

.drive-header-title h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 24px;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #11131a;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}

.cat-pill:hover {
  border-color: var(--border-hover);
  color: #fff;
}

.cat-pill.active {
  background: #1c1d2e;
  border-color: var(--accent);
  color: #fff;
}

.cat-pill .badge {
  background: #252838;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #adb5d0;
}

.cat-pill.active .badge {
  background: var(--accent);
  color: #fff;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

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

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #151821;
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-back:hover {
  background: #1f2330;
}

.items-count-info {
  font-size: 13px;
  color: var(--text-muted);
}

.view-toggles {
  display: flex;
  background: #10121a;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: 0;
  color: #62697b;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.view-btn.active {
  background: #1e2230;
  color: #fff;
}

.sort-pills {
  display: flex;
  background: #10121a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.sort-pill {
  background: transparent;
  border: 0;
  color: #717789;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

.sort-pill:hover {
  color: #fff;
}

.sort-pill.active {
  background: #1e2230;
  color: #fff;
}

/* Breadcrumb */
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #606778;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.crumb-link {
  color: #8c94a6;
  cursor: pointer;
}

.crumb-link:hover {
  color: #fff;
}

.crumb-sep {
  color: #404554;
}

.crumb-item.active {
  color: #cad1e0;
  font-weight: 600;
}

/* File Grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Folder Cards (Screenshot 2) */
.card-folder {
  background: #0f121a;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  grid-column: span 2;
}

.card-folder:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.45);
  background: #141824;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.folder-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--folder-bg);
  color: var(--folder-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.folder-info {
  flex: 1;
  min-width: 0;
}

.folder-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.folder-subtitle {
  font-size: 11px;
  color: #7b8396;
}

/* File Cards (Screenshot 3) */
.card-file {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card-file:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--card-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 62%;
  background: #090a0f;
  overflow: hidden;
}

.card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

video.card-thumb {
  pointer-events: none;
  background: #000;
}

.card-file:hover .card-thumb {
  transform: scale(1.05);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.video-play-badge svg {
  margin-left: 2px;
}

.card-file:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent);
  border-color: var(--accent);
}

.thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0e14;
  color: #3b4254;
}

.type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #cad1e6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.type-badge.png { color: #60a5fa; }
.type-badge.jpg, .type-badge.jpeg { color: #34d399; }
.type-badge.mp4, .type-badge.mkv { color: #f472b6; }

.btn-card-action {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a8b0c6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: 0.15s;
}

.card-file:hover .btn-card-action {
  opacity: 1;
}

.btn-card-action:hover {
  background: var(--accent);
  color: #fff;
}

.card-file-body {
  padding: 12px;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-meta {
  font-size: 11px;
  color: #727a8e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* List View Style */
.file-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-grid.list-view .card-file,
.file-grid.list-view .card-folder {
  grid-column: auto;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  height: 60px;
}

.file-grid.list-view .card-thumb-wrap {
  width: 50px;
  height: 40px;
  padding-top: 0;
  border-radius: 6px;
  flex-shrink: 0;
}

.file-grid.list-view .card-file-body {
  padding: 0 0 0 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  background: #11131a;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: #fff;
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Skeleton Loader with Shimmer Animation */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-thumb {
  width: 100%;
  padding-top: 62%;
  background: linear-gradient(90deg, #0e1017 0%, #171b26 50%, #0e1017 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #12151e 0%, #1a1f2e 50%, #12151e 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  width: 85%;
}

.skeleton-line.short {
  height: 11px;
  width: 45%;
}

.skeleton-folder {
  background: #0f121a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: span 2;
}

.skeleton-folder-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #101420 0%, #1a2233 50%, #101420 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

.skeleton-folder-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Card Fade-in Transition */
.card-file, .card-folder {
  animation: cardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.15s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-modal-body, .video-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06070a;
  max-height: calc(90vh - 80px);
  overflow: hidden;
}

.image-modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.video-modal-body video {
  max-width: 100%;
  max-height: 70vh;
  width: 100%;
  background: #000;
}

.modal-footer {
  padding: 16px 24px;
  background: #11131b;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-file-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.modal-file-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.btn-download:hover {
  filter: brightness(1.15);
}

/* Admin Styling */
.admin-page {
  padding: 40px 0 100px;
  max-width: 900px;
  margin: auto;
}

.admin-page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.panel h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.row, .rule-add {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px;
}

.row label, .rule-add > * {
  flex: 1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.switchline {
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.switchline input {
  width: 18px;
  height: 18px;
}

#rules {
  margin-top: 20px;
}

.rule {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

.rule .ext {
  font-family: monospace;
  color: #83adff;
  font-weight: 700;
}

.rule button {
  background: #1b1e26;
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.rule button:hover {
  background: #e11d48;
}

/* Homepage Redesign Styles */
.home-body {
  background: #08090d;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.home-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-red {
  color: #f43f5e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

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

.nav-admin-btn {
  background: #151822;
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-admin-btn:hover {
  background: #1f2433;
  color: #fff;
  border-color: #3b4254;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  max-width: 840px;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 0 40px;
}

.hero-desc strong {
  color: #f1f5f9;
}

.clone-box {
  width: 100%;
  max-width: 660px;
  background: #0f121a;
  border: 1px solid #1e2433;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.08);
  margin-bottom: 60px;
}

.home-clone-form {
  display: flex;
  gap: 10px;
}

.input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #475569;
  pointer-events: none;
}

.home-clone-form input {
  width: 100%;
  background: #090a0f;
  border: 1px solid #1e2433;
  border-radius: 10px;
  padding: 14px 16px 14px 46px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.2s ease;
}

.home-clone-form input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.home-btn-submit {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.home-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

.home-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status.loading {
  color: #818cf8;
  margin-top: 12px;
}

.status.success {
  color: #10b981;
  margin-top: 12px;
}

.status.error {
  color: #f43f5e;
  margin-top: 12px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  text-align: left;
}

.feature-card {
  background: #0f121a;
  border: 1px solid #1a202c;
  border-radius: 14px;
  padding: 20px;
  transition: 0.2s ease;
}

.feature-card:hover {
  border-color: #2d3748;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid #141824;
  font-size: 12px;
  color: #475569;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #94a3b8;
}

/* Mobile Header Brand Link */
.mobile-brand-link {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.mobile-logo {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

/* Category Pills - Smooth Swipeable Horizontal Scroll on Mobile */
.category-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .drive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .main-wrapper {
    margin-left: 0 !important;
    width: 100%;
  }
  .mobile-brand-link {
    display: flex;
  }
  .search-container {
    width: 240px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 10px;
  }
  .search-container {
    width: auto;
    flex: 1;
    padding: 6px 12px;
  }
  .btn-share {
    padding: 7px 10px;
  }
  .share-btn-text {
    display: none;
  }
  .drive-main {
    padding: 16px;
  }
  .drive-header-title h1 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .drive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-folder {
    grid-column: span 2;
    padding: 12px;
    gap: 10px;
  }
  .card-folder .folder-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .card-folder .folder-title {
    font-size: 13px;
  }
  .card-folder .folder-subtitle {
    font-size: 11px;
  }
  .controls-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .controls-right {
    width: 100%;
    justify-content: space-between;
  }
  .breadcrumb-trail {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .breadcrumb-trail::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 600px) {
  .home-shell {
    padding: 0 16px;
  }
  .home-clone-form {
    flex-direction: column;
  }
  .home-btn-submit {
    padding: 14px;
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .hero-desc {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .home-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .drive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .card-file-body {
    padding: 8px 10px;
  }
  .file-name {
    font-size: 12px;
  }
  .file-meta {
    font-size: 10px;
  }
  .modal-overlay {
    padding: 0;
  }
  .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .image-modal-body, .video-modal-body {
    max-height: calc(100vh - 120px);
  }
  .image-modal-body img {
    max-height: calc(100vh - 130px);
  }
  .video-modal-body video {
    max-height: calc(100vh - 130px);
  }
  .modal-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
  }
  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .modal-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .modal-actions button, .modal-actions a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  .admin-login-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .login-title {
    font-size: 22px;
  }
  .panel {
    padding: 18px 14px;
    border-radius: 12px;
  }
  .rule-add {
    flex-direction: column;
  }
  .rule-add > * {
    width: 100%;
  }
  .blocked-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .drive-grid {
    grid-template-columns: 1fr;
  }
  .card-folder {
    grid-column: span 1;
  }
}

/* Image Blacklist & Fingerprint Detector */
.image-upload-zone {
  background: #0a0c12;
  border: 2px dashed #242b3d;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 12px;
}

.image-upload-zone:hover, .image-upload-zone.dragover {
  border-color: #6366f1;
  background: #0f1322;
}

.blocked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.blocked-card {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blocked-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.blocked-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.blocked-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blocked-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.btn-delete-blocked {
  background: #1b1e28;
  border: 1px solid var(--border);
  color: #f43f5e;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-delete-blocked:hover {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* Admin Login Screen Styles */
.admin-body {
  background: #08090d;
  color: #f1f5f9;
  min-height: 100vh;
}

.admin-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 20px;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: #0f121a;
  border: 1px solid #1e2433;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.08);
  text-align: left;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.login-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.login-field input {
  width: 100%;
  background: #090a0f;
  border: 1px solid #1e2433;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: 0.2s ease;
}

.login-field input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-login {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: 0.2s ease;
}

.btn-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  margin-top: 14px;
  font-size: 13px;
  color: #f43f5e;
  font-weight: 600;
  text-align: center;
}

/* Home & Original MEGA Action Buttons */
.btn-topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #11141e;
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s ease;
}

.btn-topbar-home:hover {
  background: #191f2e;
  color: #fff;
  border-color: var(--border-hover);
}

.btn-mega-orig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ea3223;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(234, 50, 35, 0.25);
}

.btn-mega-orig:hover {
  background: #d82b1d;
  box-shadow: 0 6px 16px rgba(234, 50, 35, 0.4);
  transform: translateY(-1px);
}

.mini-mega-icon {
  width: 18px;
  height: 18px;
  background: #fff;
  color: #ea3223;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
}

.btn-modal-mega {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ea3223;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s ease;
}

.btn-modal-mega:hover {
  background: #d82b1d;
}

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

/* Anti-Inspection & Text Selection Locks */
body, img, video, .card-file, .card-folder, .drive-grid, .topbar, .sidebar {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  user-select: auto !important;
}

/* Telegram Button */
.btn-telegram {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  background: #229ED9;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
  box-sizing: border-box;
}

.btn-telegram:hover {
  background: #1b8ec5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.5);
}

.btn-telegram svg {
  flex-shrink: 0;
}





