:root {
  --admin-bg: #f3f5f9;
  --admin-sidebar: #0f172a;
  --admin-sidebar-hover: rgba(255, 255, 255, 0.08);
  --admin-sidebar-active: #4f46e5;
  --admin-accent: #4f46e5;
  --admin-accent-hover: #4338ca;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;
  --admin-card: #ffffff;
  --admin-danger: #dc2626;
  --admin-danger-hover: #b91c1c;
  --admin-success: #059669;
  --admin-warning: #d97706;
  --admin-shadow: 0 1px 2px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.04);
  --admin-radius: 14px;
  --admin-font: "DM Sans", "Segoe UI", sans-serif;
}

[x-cloak] {
  display: none !important;
}

.admin-app {
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--admin-font);
}

.auth-app {
  min-height: 100vh;
  background: #070b14;
  color: var(--admin-text);
  font-family: var(--admin-font);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 34rem);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 3rem 2.25rem;
  overflow: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(900px 480px at 12% 8%, rgba(79, 70, 229, 0.38), transparent 55%),
    radial-gradient(700px 380px at 90% 88%, rgba(14, 165, 233, 0.16), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 10%, transparent 72%);
  pointer-events: none;
}

.auth-hero-copy,
.auth-hero-footer {
  position: relative;
  z-index: 1;
}

.auth-lock {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  color: #c7d2fe;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.7));
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.auth-lock svg {
  width: 1.45rem;
  height: 1.45rem;
}

.auth-hero h2 {
  margin: 0 0 0.7rem;
  font-size: 2.15rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff;
}

.auth-hero p {
  margin: 0;
  max-width: 28rem;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

.auth-points {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.auth-points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-points svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #34d399;
  margin-top: 0.1rem;
}

.auth-hero-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: #f8fafc;
}

.auth-card {
  width: 100%;
  max-width: 26.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  padding: 2rem 1.85rem 1.6rem;
}

.auth-card-head {
  margin-bottom: 1.35rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-badge svg {
  width: 0.85rem;
  height: 0.85rem;
}

.auth-card h1 {
  margin: 0;
  text-align: left;
  font-size: 1.55rem;
  color: var(--admin-text);
  letter-spacing: -0.03em;
}

.auth-card .auth-subtitle {
  text-align: left;
  color: var(--admin-muted);
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label,
.auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: var(--admin-text);
  border-radius: 12px;
  padding: 0.72rem 0.85rem 0.72rem 2.4rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input-wrap:has(.auth-toggle) input {
  padding-right: 3.6rem;
}

.auth-card input:focus {
  background: #fff;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}

.auth-toggle:hover {
  background: #eef2ff;
  color: var(--admin-accent);
}

.auth-error {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-hint {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.8rem;
}

.auth-help {
  margin: 0.4rem 0 0;
  color: var(--admin-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.auth-alt {
  text-align: center;
  color: var(--admin-muted);
  font-size: 0.85rem;
}

.auth-alt button,
.auth-alt a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--admin-accent);
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
}

.auth-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.auth-secure-note svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #64748b;
}

@media (max-width: 899px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
    padding: 1.35rem 1.35rem 1.1rem;
  }

  .auth-hero h2 {
    font-size: 1.35rem;
  }

  .auth-hero p,
  .auth-points,
  .auth-hero-footer {
    display: none;
  }

  .auth-lock {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.7rem;
  }

  .auth-form-col {
    min-height: auto;
    padding: 1.25rem 1rem 2rem;
  }
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 35;
}

@media (max-width: 639px) {
  .admin-overlay.is-open,
  .admin-overlay[style*="display: block"] {
    display: block;
  }
}

.admin-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #fff;
  color: var(--admin-text);
  box-shadow: var(--admin-shadow);
}

@media (max-width: 639px) {
  .admin-menu-toggle {
    display: inline-flex;
  }
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 16.5rem;
  height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.admin-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem 1rem;
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.65rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.admin-brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-brand-copy strong {
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.admin-brand-copy span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-link svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: #94a3b8;
}

.admin-nav-link:hover {
  background: var(--admin-sidebar-hover);
  color: #fff;
}

.admin-nav-link:hover svg,
.admin-nav-link.is-active svg {
  color: #fff;
}

.admin-nav-link.is-active {
  background: var(--admin-sidebar-active);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.admin-nav-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.admin-beta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-beta strong {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-logout {
  width: 100%;
  justify-content: center;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.admin-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
}

.admin-main {
  min-height: 100vh;
  padding: 1.75rem 1.75rem 3rem;
}

@media (min-width: 640px) {
  .admin-main {
    margin-left: 16.5rem;
  }
}

.admin-page {
  max-width: 1180px;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.admin-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-accent);
  margin-bottom: 0.35rem;
}

.admin-title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.admin-subtitle {
  margin: 0.35rem 0 0;
  color: var(--admin-muted);
  font-size: 0.95rem;
}

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

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

.admin-card-pad {
  padding: 1.25rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.12);
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.admin-stat-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--admin-accent);
}

.admin-stat-label {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-stat-hint {
  margin-top: 0.45rem;
  color: var(--admin-muted);
  font-size: 0.8rem;
}

.admin-welcome {
  padding: 1.4rem 1.5rem;
  background: linear-gradient(135deg, #111827 0%, #312e81 100%);
  color: #fff;
  margin-bottom: 1.25rem;
}

.admin-welcome h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.admin-welcome p {
  margin: 0.4rem 0 0;
  color: #c7d2fe;
  font-size: 0.95rem;
}

.admin-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid var(--admin-border);
  padding: 0.85rem 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
  background: #f8fafc;
}

.admin-table .cell-wrap {
  max-width: 28rem;
  white-space: normal;
}

.admin-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.admin-table .cell-strong {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  white-space: nowrap;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.58rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: 0.15s ease;
  font-family: inherit;
}

.admin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-btn svg {
  width: 1rem;
  height: 1rem;
}

a.admin-btn {
  text-decoration: none;
}

a.admin-btn-primary {
  color: #fff;
}

a.admin-btn-secondary {
  color: #1e293b;
}

a.admin-btn-danger {
  color: var(--admin-danger);
}

.admin-btn.w-full {
  width: 100%;
}

.admin-btn-primary {
  background: var(--admin-accent);
  color: #fff;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.22);
}

.admin-btn-primary:hover:not(:disabled) {
  background: var(--admin-accent-hover);
  color: #fff;
}

.admin-btn-secondary {
  background: #fff;
  color: #1e293b;
  border-color: #dbe2ea;
}

.admin-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #c7d2fe;
  color: var(--admin-accent);
}

.admin-btn-danger {
  background: #fef2f2;
  color: var(--admin-danger);
  border-color: #fecaca;
}

.admin-btn-danger:hover:not(:disabled) {
  background: #fee2e2;
  color: var(--admin-danger-hover);
}

.admin-btn-ghost {
  background: transparent;
  color: var(--admin-accent);
  padding: 0.45rem 0.7rem;
}

.admin-btn-ghost:hover {
  background: #eef2ff;
}

.admin-btn-sm {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-badge-success {
  background: #ecfdf5;
  color: #047857;
}

.admin-badge-muted {
  background: #f1f5f9;
  color: #64748b;
}

.admin-badge-info {
  background: #eef2ff;
  color: #4338ca;
}

.admin-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.admin-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.admin-alert-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.admin-alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.admin-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--admin-muted);
}

.admin-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-profile-pop {
  position: absolute;
  z-index: 20;
  width: 18rem;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 1rem;
}

.admin-profile-pop img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  background: #e2e8f0;
}

.admin-profile-pop h3 {
  margin: 0.65rem 0 0.15rem;
  font-size: 0.95rem;
}

.admin-profile-pop p {
  margin: 0.15rem 0;
  color: var(--admin-muted);
  font-size: 0.8rem;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-form {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  padding: 1.4rem;
  max-width: 760px;
}

.admin-form-header {
  margin-bottom: 1.2rem;
}

.admin-form-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-form-header p {
  margin: 0.35rem 0 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
}

.admin-form-grid > .mb-6 {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.admin-form label,
.admin-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.admin-form input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="range"]),
.admin-form select,
.admin-form textarea,
.admin-input {
  width: 100%;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: var(--admin-text);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-form input[type="range"] {
  width: 100%;
  max-width: 28rem;
  margin: 0.35rem 0 0;
  accent-color: var(--admin-accent);
}

.admin-form input:not([type="range"]):focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-input:focus {
  background: #fff;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.admin-upload {
  padding: 1.5rem;
}

.admin-upload form {
  max-width: 28rem;
}

.admin-upload #upload-status.admin-alert {
  margin-top: 1.5rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 11.5rem);
  gap: 1rem;
  justify-content: start;
}

.media-card {
  width: 11.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-card img {
  display: block;
  width: 11.5rem;
  height: 11.5rem;
  object-fit: cover;
  background: #f1f5f9;
}

.media-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.8rem 0.85rem;
}

.media-card-details {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-card-price {
  margin: 0;
  color: var(--admin-accent);
  font-weight: 700;
}

.media-card-meta {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.78rem;
  word-break: break-all;
}

.media-card-delete {
  width: 100%;
  margin-top: 0.45rem;
  justify-content: center;
}

.admin-file {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: 1.5px dashed #c7d2fe;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
}

.admin-help {
  margin-top: 0.5rem;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-checkbox-list {
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: #f8fafc;
}

.admin-checkbox-list label {
  margin: 0;
  font-weight: 500;
}

.admin-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
}

.admin-checkbox-item:last-child {
  border-bottom: none;
}

.admin-checkbox-item:hover {
  background: #eef2ff;
}
