@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-1: #e7f1ff;
  --bg-2: #f9f1e6;
  --bg-3: #e6f7f3;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-strong: #1d4ed8;
  --accent: #18b6a4;
  --accent-2: #f4a14b;
  --text: #0f172a;
  --muted: #5b6475;
  --border: rgba(15, 23, 42, 0.08);
  --sidebar: linear-gradient(155deg, #0f1b3d 0%, #17295a 40%, #1b3f76 100%);
  --sidebar-text: #f8fafc;
  --sidebar-muted: rgba(248, 250, 252, 0.72);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --glow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(900px 520px at 0% -10%, var(--bg-1) 0%, transparent 60%),
    radial-gradient(900px 540px at 100% 0%, var(--bg-2) 0%, transparent 58%),
    radial-gradient(900px 540px at 50% 100%, var(--bg-3) 0%, transparent 60%),
    linear-gradient(135deg, #f8faff 0%, #f4f7fb 45%, #fefcf6 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.25;
  pointer-events: none;
}

body::before {
  width: 420px;
  height: 420px;
  top: -200px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.35), transparent 65%);
}

body::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle at 70% 70%, rgba(24, 182, 164, 0.3), transparent 60%);
}

h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

.site-header {
  background: rgba(255, 255, 255, 0.74);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #13224a;
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  transform: translateY(-1px);
}

nav button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow);
}

nav button:hover {
  filter: brightness(0.98);
}

.container {
  width: min(1100px, 92%);
  margin: 24px auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.9) 50%, rgba(255, 251, 244, 0.95) 100%);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: floatIn 0.6s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.18), transparent 70%);
}

.hero p {
  max-width: 680px;
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(14px);
  animation: floatIn 0.6s ease both;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.bulk-panel {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
  z-index: 15;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bulk-panel.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bulk-panel-info,
.bulk-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-panel .form-inline {
  gap: 8px;
}

.bulk-item {
  position: relative;
  cursor: pointer;
}

.bulk-item.is-selected {
  outline: 2px solid rgba(var(--primary-rgb), 0.35);
  outline-offset: -2px;
}

.media-card.bulk-item.is-selected {
  border-color: rgba(var(--primary-rgb), 0.55);
}

.file-row.bulk-item.is-selected td {
  background: rgba(var(--primary-rgb), 0.08);
}

.select-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

.select-toggle input {
  position: absolute;
  opacity: 0;
}

.select-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.select-mark::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  opacity: 0;
}

.select-toggle input:checked + .select-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: var(--glow);
  transform: scale(1.02);
}

.select-toggle input:focus-visible + .select-mark {
  outline: 2px solid rgba(var(--primary-rgb), 0.4);
  outline-offset: 2px;
}

.select-toggle input:checked + .select-mark::after {
  opacity: 1;
}

.select-toggle.inline {
  position: static;
  justify-content: center;
}

.select-toggle.inline .select-mark {
  box-shadow: none;
}

.select-cell {
  width: 52px;
  text-align: center;
}

.card.narrow {
  width: min(420px, 100%);
  margin: 0 auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.user-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.button {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.5);
}

.button.danger {
  background: linear-gradient(135deg, #ff6b6b, #ff9b8a);
  border-color: transparent;
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
}

.button.primary:hover {
  filter: brightness(0.97);
}

.button:focus-visible,
nav button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.inline-form {
  display: inline;
}

.form,
.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  font-weight: 600;
}

.form input,
.form select,
.form-inline select,
.form-inline input,
.form textarea,
.form-inline textarea,
.search-form input,
.file-form input,
.file-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.05);
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input {
  min-width: 200px;
}

.folder-list,
.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.folder-list li,
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.folder-list li:hover,
.file-list li:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.file-list.mega .file-row:hover {
  transform: none;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--card-strong);
  box-shadow: var(--shadow);
  table-layout: fixed;
}

.file-table thead {
  background: rgba(37, 99, 235, 0.08);
}

.file-table thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 16px;
}

.file-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
}

.file-table tbody tr:last-child td {
  border-bottom: none;
}

.file-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

.file-main-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.file-list.mega .file-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.file-preview {
  width: 160px;
  padding-top: 56.25%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
}

.file-preview video,
.file-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.file-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-advanced {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.file-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-strong);
  list-style: none;
}

.file-advanced summary::-webkit-details-marker {
  display: none;
}

.file-advanced summary::after {
  content: '?';
  margin-left: 8px;
  font-size: 12px;
}

.file-advanced[open] summary::after {
  content: '?';
}

.file-advanced-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

.video-element {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b1220;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.lightbox-player .video-element {
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35));
  cursor: pointer;
  z-index: 2;
}

.video-overlay::after {
  content: 'Play';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  z-index: 3;
}

.video-player::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='200'%3E%3Cg transform='rotate(-25 80 80)'%3E%3Ctext x='0' y='90' font-size='24' font-family='Space Grotesk, Manrope, sans-serif' fill='rgba(255,255,255,0.16)'%3Elolzshare%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 180px;
  opacity: 0.45;
}

.video-btn {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.video-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
}

.video-time {
  min-width: 92px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.video-player.compact .video-controls {
  padding: 4px 6px;
  gap: 6px;
}

.video-player.compact {
  max-height: 140px;
}

.video-player.compact .video-time,
.video-player.compact .js-mute,
.video-player.compact .js-fullscreen {
  display: none;
}

.video-player.compact .video-btn {
  padding: 2px 6px;
  font-size: 11px;
}

.video-player.compact .video-overlay::after {
  width: 56px;
  height: 26px;
  font-size: 12px;
}

.file-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.file-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  text-decoration: none;
  margin: 0 12px;
}

.file-nav-btn:hover {
  background: rgba(15, 23, 42, 0.8);
}

.folder-list.modern li {
  padding: 0;
  background: transparent;
  border: none;
}

.folder-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.folder-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 182, 164, 0.14);
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  background: var(--sidebar);
  border-radius: 20px;
  padding: 20px;
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.28);
  animation: floatIn 0.7s ease both;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-title {
  font-weight: 600;
}

.sidebar .muted {
  color: var(--sidebar-muted);
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-list .button,
.action-list .badge {
  width: 100%;
  justify-content: center;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(24, 182, 164, 0.6)) border-box;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: floatIn 0.7s ease both;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.kpi-meta {
  font-size: 13px;
}

.kpi-grid .kpi-card:nth-child(2) {
  animation-delay: 0.05s;
}

.kpi-grid .kpi-card:nth-child(3) {
  animation-delay: 0.1s;
}

.kpi-grid .kpi-card:nth-child(4) {
  animation-delay: 0.15s;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.media-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.media-card {
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(24, 182, 164, 0.45)) border-box;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: floatIn 0.7s ease both;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.media-preview {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.1), rgba(24, 182, 164, 0.1));
  position: relative;
}

.file-view .media-preview {
  height: 320px;
}

.media-preview img,
.media-preview video,
.media-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-preview img {
  user-select: none;
  -webkit-user-drag: none;
}

.media-preview canvas {
  display: block;
}

.media-card .file-actions {
  justify-content: flex-start;
}

.video-player:fullscreen,
.video-player:-webkit-full-screen {
  border-radius: 0;
  background: #000;
}

.video-player:fullscreen .video-element,
.video-player:-webkit-full-screen .video-element {
  object-fit: contain;
}

.js-lightbox-item[data-type='image'] .media-preview {
  cursor: pointer;
}

.lightbox-trigger {
  position: static;
  inset: auto;
}

.file-icon {
  font-weight: 600;
  color: var(--muted);
}

.media-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-grid .media-card:nth-child(2) {
  animation-delay: 0.05s;
}

.media-grid .media-card:nth-child(3) {
  animation-delay: 0.1s;
}

.media-grid .media-card:nth-child(4) {
  animation-delay: 0.15s;
}

.file-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.file-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.tag-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.tag-remove {
  line-height: 1;
}

.quota-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.quota-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.upload-queue {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.upload-queue-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.upload-queue-titlewrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-queue-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.upload-queue-counts {
  font-size: 12px;
  font-weight: 700;
}

.upload-queue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-queue-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(420px, 100%);
}

.upload-overall-meta {
  font-size: 12px;
}

.upload-error {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.14);
  color: var(--text);
  font-weight: 700;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.upload-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.upload-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.upload-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.upload-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.upload-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.upload-status.is-active {
  color: var(--primary);
}

.upload-status.is-ok {
  color: var(--primary);
}

.upload-status.is-error {
  color: #ff6b6b;
}

.upload-meta,
.upload-submeta {
  font-size: 12px;
}

.upload-submeta.is-error {
  color: #ff6b6b;
}

.split {
  display: grid;
  gap: 16px;
}

.danger-zone {
  border: 1px dashed rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  text-align: left;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

/* Dark theme fixes for list cards and share/usage blocks */
.folder-list li,
.file-list li {
  background: #262a2f;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.quota-block {
  background: #262a2f;
  border-color: var(--border);
}

.share-box input {
  background: #23272c;
  border-color: rgba(51, 193, 123, 0.35);
  color: var(--text);
}

.error {
  color: #b42318;
  font-weight: 600;
}

.share-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-box input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.8);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 24, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  background: #0f1422;
  border-radius: 16px;
  padding: 24px;
  width: min(900px, 96%);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox-content {
  min-height: 320px;
  height: 70vh;
  max-height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.lightbox-image,
.lightbox-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

.lightbox-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.lightbox-image {
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-overlay.is-zoomed .lightbox-content {
  overflow: auto;
  cursor: zoom-out;
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-overlay.is-zoomed .lightbox-image {
  max-width: none;
  max-height: none;
  cursor: grab;
}

.lightbox-overlay.is-zoomed .lightbox-content {
  cursor: grab;
}

.lightbox-overlay.is-zoomed.is-dragging .lightbox-content,
.lightbox-overlay.is-zoomed.is-dragging .lightbox-image {
  cursor: grabbing;
}

.lightbox-video {
  width: 100%;
}

.lightbox-file {
  text-align: center;
  display: none;
  color: #d5d9e6;
}

.lightbox-file .file-icon {
  color: #d5d9e6;
  margin-bottom: 8px;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.lightbox-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.no-scroll {
  overflow: hidden;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    width: 100%;
  }

  nav a,
  nav button {
    font-size: 13px;
  }

  .container {
    width: min(1100px, 94%);
    margin: 16px auto;
  }

  .card {
    padding: 18px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form,
  .form-inline,
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .form label,
  .form-inline label {
    width: 100%;
  }

  .search-form input {
    min-width: 0;
    width: 100%;
  }

  .file-list.mega .file-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .media-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .media-preview {
    height: 140px;
  }

  .file-view .media-preview {
    height: 220px;
  }

  .file-table,
  .file-table thead,
  .file-table tbody,
  .file-table th,
  .file-table td,
  .file-table tr {
    display: block;
  }

  .file-table thead {
    display: none;
  }

  .file-table tbody tr {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .file-table tbody td {
    padding: 6px 0;
    border-bottom: none;
  }

  .file-table .file-main-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-table .file-preview {
    width: 100%;
    margin-bottom: 8px;
  }

  .file-table .file-actions {
    margin-top: 6px;
  }

  .lightbox-dialog {
    padding: 16px;
  }

  .lightbox-content {
    min-height: 240px;
    height: 60vh;
    max-height: 60vh;
  }
}

/* PCloud-inspired theme overrides */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-alt: #eef3ff;
  --card: #ffffff;
  --card-strong: #ffffff;
  --primary: #1a62d6;
  --primary-rgb: 26, 98, 214;
  --primary-strong: #1249a8;
  --accent: #0bb3a7;
  --text: #0b1220;
  --muted: #5a647a;
  --border: #e3e8f0;
  --shadow: 0 14px 32px rgba(13, 29, 64, 0.12);
  --shadow-soft: 0 8px 18px rgba(13, 29, 64, 0.08);
  --glow: 0 12px 30px rgba(26, 98, 214, 0.22);
}

* {
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.01em;
}

body {
  background:
    radial-gradient(800px 480px at 10% -10%, rgba(26, 98, 214, 0.12), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(11, 179, 167, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%);
  color: var(--text);
}

body::before,
body::after {
  opacity: 0.18;
  filter: blur(24px);
}

body::before {
  background: radial-gradient(circle at 30% 30%, rgba(26, 98, 214, 0.35), transparent 70%);
}

body::after {
  background: radial-gradient(circle at 70% 70%, rgba(11, 179, 167, 0.3), transparent 70%);
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
  padding: 12px 0;
}

.header-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #2c8be4);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary-strong);
}

.site-header nav button.button {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--glow);
  padding: 8px 14px;
}

.container {
  width: min(1200px, 92%);
  margin: 32px auto 48px;
  gap: 28px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

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

.button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

.button.ghost {
  background: transparent;
  color: var(--primary-strong);
  border-color: rgba(26, 98, 214, 0.25);
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: var(--primary-strong);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.16);
}

.button.small {
  padding: 8px 14px;
  font-size: 13px;
}

.button:hover {
  transform: translateY(-1px);
}

.user-chip {
  background: rgba(26, 98, 214, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
}

.badge {
  background: rgba(26, 98, 214, 0.14);
  color: var(--primary-strong);
  font-weight: 600;
}

.landing-hero {
  padding: 12px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 12px;
}

.hero-content h1 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 12px;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--primary-strong);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(26, 98, 214, 0.08), rgba(11, 179, 167, 0.08));
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.hero-dots {
  display: flex;
  gap: 4px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.2);
}

.hero-card-title {
  font-weight: 600;
  color: var(--text);
}

.hero-chip {
  background: rgba(11, 179, 167, 0.14);
  color: #0b7c75;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}

.hero-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill.alt {
  background: rgba(90, 100, 122, 0.12);
  color: var(--muted);
}

.hero-stat {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.hero-meta-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-meta-value {
  font-weight: 600;
  color: var(--text);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.trust-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.section {
  padding: 8px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  max-width: 620px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.split-content {
  display: grid;
  gap: 12px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list li::before {
  content: "\2713";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.split-media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-alt);
}

.stat-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stat-value {
  font-weight: 700;
  font-size: 18px;
  margin: 6px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-mini {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.stat-mini-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-mini-value {
  font-weight: 700;
  margin-top: 4px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.plan-card.highlight {
  border: 2px solid var(--primary);
  box-shadow: 0 16px 30px rgba(26, 98, 214, 0.18);
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 98, 214, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 12px;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.plan-list li::before {
  content: "-";
  margin-right: 8px;
}

.cta-band {
  background: linear-gradient(120deg, #1a62d6, #1b88e5);
  border-radius: 22px;
  padding: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sidebar {
  background: #f0f4ff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
}

.sidebar .muted {
  color: var(--muted);
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.media-preview {
  background: var(--bg-alt);
}

.file-table {
  box-shadow: var(--shadow-soft);
}

.file-table thead {
  background: var(--bg-alt);
}

.progress-bar {
  background: rgba(26, 98, 214, 0.12);
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), #2c8be4);
}

.site-footer {
  background: #f0f4fb;
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 32px 0 18px;
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(2, minmax(140px, 1fr));
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.footer-logo {
  font-size: 18px;
}

.footer-col {
  display: grid;
  gap: 8px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.footer-bottom {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 12px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.page-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(26, 98, 214, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero.file-view::after {
  display: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero.compact {
  padding: 18px 22px;
}

.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.page-hero-row > div {
  display: grid;
  gap: 8px;
}

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

.page-hero h1,
.page-hero h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0;
}

.page-hero p {
  margin: 0;
}

.info-banner {
  background: var(--bg-alt);
  border: 1px dashed rgba(26, 98, 214, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.role-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.role-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 98, 214, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.table thead {
  background: var(--bg-alt);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table td:last-child {
  text-align: right;
}

.admin-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.admin-usage {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.progress-bar.compact {
  height: 6px;
}

.quota-input {
  width: 92px;
}

.quota-select {
  min-width: 80px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.inline-check input {
  margin: 0;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-details {
  width: 100%;
}

.admin-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-strong);
  list-style: none;
}

.admin-details summary::-webkit-details-marker {
  display: none;
}

.admin-details summary::after {
  content: "+";
  margin-left: 8px;
}

.admin-details[open] summary::after {
  content: "–";
}

.badge-muted {
  background: rgba(90, 100, 122, 0.16);
  color: var(--muted);
}

.form-stacked {
  flex-direction: column;
  align-items: stretch;
}

.form-stacked label {
  width: 100%;
}

.form-card {
  display: grid;
  gap: 16px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.folder-list li,
.file-list li {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.folder-card {
  border-color: var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.folder-grid li {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.file-list.modern li,
.folder-grid li {
  border: none;
  background: transparent;
  padding: 0;
}

.file-list.modern li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.file-list.modern li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.auth-panel {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef6ff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.auth-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.auth-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-list li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(26, 98, 214, 0.14);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  color: var(--primary-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .auth-split {
    grid-template-columns: 1fr;
  }

  .trust-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 18px;
  }

  .auth-card,
  .auth-panel {
    padding: 20px;
  }

  .bulk-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Lolz.live-inspired dark theme overrides */
:root {
  color-scheme: dark;
  --bg: #1b1d20;
  --bg-alt: #23272c;
  --card: #262a2f;
  --card-strong: #2b3036;
  --primary: #33c17b;
  --primary-rgb: 51, 193, 123;
  --primary-strong: #26a867;
  --accent: #3ad18b;
  --text: #e8edf2;
  --muted: #9aa3ad;
  --border: #353b42;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.35);
  --glow: 0 12px 28px rgba(51, 193, 123, 0.25);
}

body {
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(51, 193, 123, 0.12), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(58, 209, 139, 0.12), transparent 60%),
    linear-gradient(180deg, #191b1f 0%, #141619 100%);
  color: var(--text);
}

body::before,
body::after {
  opacity: 0.12;
  filter: blur(28px);
}

.site-header {
  background: #1f2226;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.logo {
  color: var(--text);
}

.logo-mark {
  background: linear-gradient(135deg, #33c17b, #26a867);
}

.site-nav a {
  color: var(--text);
}

.site-nav a:hover {
  background: #2b2f34;
  color: #d8f4e6;
}

.container {
  margin: 28px auto 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  box-shadow: var(--shadow);
}

.button {
  background: #2b2f34;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.button.primary {
  background: var(--primary);
  color: #0f1a12;
  border-color: transparent;
  box-shadow: var(--glow);
}

.button.ghost {
  background: transparent;
  color: #9de8c3;
  border-color: rgba(51, 193, 123, 0.3);
  box-shadow: none;
}

.button.light {
  background: #e6ecef;
  color: #101417;
  border-color: transparent;
}

.user-chip {
  background: rgba(51, 193, 123, 0.15);
  color: #bff2d8;
}

.badge {
  background: rgba(51, 193, 123, 0.16);
  color: #bff2d8;
}

.hero-panel,
.trust-row,
.feature-card,
.split-media,
.stat-card,
.stat-mini,
.plan-card,
.role-card,
.auth-card,
.auth-panel,
.empty-state,
.folder-card,
.page-hero {
  background: #262a2f;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  background: #2a2f35;
  border-color: var(--border);
}

.hero-chip {
  background: rgba(51, 193, 123, 0.18);
  color: #c7f7df;
}

.icon-badge,
.role-pill,
.plan-tag,
.pill {
  background: rgba(51, 193, 123, 0.16);
  color: #bff2d8;
}

.pill.alt {
  background: rgba(154, 163, 173, 0.2);
  color: var(--muted);
}

.media-preview {
  background: #1e2226;
}

.file-table,
.table {
  background: #252a2f;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.file-table thead,
.table thead {
  background: #2b3036;
}

.file-table tbody td,
.table th,
.table td {
  border-bottom: 1px solid var(--border);
}

.file-table tbody tr:hover td {
  background: rgba(51, 193, 123, 0.06);
}

.form input,
.form select,
.form-inline select,
.form-inline input,
.form textarea,
.form-inline textarea,
.search-form input,
.file-form input,
.file-form select {
  background: #23272c;
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.form input::placeholder,
.form textarea::placeholder,
.search-form input::placeholder {
  color: #7f8893;
}

.sidebar {
  background: #202428;
  border-color: var(--border);
  color: var(--text);
}

.sidebar-card {
  background: #262a2f;
  border-color: var(--border);
}

.kpi-card,
.media-card {
  background: #262a2f;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.progress-bar {
  background: rgba(51, 193, 123, 0.15);
}

.progress-fill {
  background: linear-gradient(90deg, #33c17b, #3ad18b);
}

.cta-band {
  background: linear-gradient(120deg, #1f8f5f, #2bbf7a);
  color: #0f1a12;
}

.info-banner {
  background: rgba(51, 193, 123, 0.12);
  border-color: rgba(51, 193, 123, 0.25);
  color: #dff6ea;
}

.site-footer {
  background: #181b1f;
  border-top: 1px solid var(--border);
}

.footer-col a {
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* Dark theme final fixes (overrides late) */
.folder-list li,
.file-list li {
  background: #262a2f;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.quota-block {
  background: #262a2f;
  border-color: var(--border);
}

.share-box input {
  background: #23272c;
  border: 1px dashed rgba(51, 193, 123, 0.35);
  color: var(--text);
}

/* Lolzlive-inspired logo mark */
.logo {
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1b1d20;
  border: 2px solid #33c17b;
  color: #e8edf2;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  position: relative;
  box-shadow:
    0 0 0 3px rgba(51, 193, 123, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.4);
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(51, 193, 123, 0.35);
  opacity: 0.7;
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33c17b;
  box-shadow: 0 0 0 4px rgba(51, 193, 123, 0.15);
}
