html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #155309;
  border-radius: 6px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #32cd32;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #155309 #000000;
}

body.theme-slate {
  background-color: #111827;
}

body.theme-green,
body.theme-black {
  background-color: #082c00;
}

.brand-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.brand-input {
  width: 100%;
  border: 1px solid #155309;
  border-radius: 0.5rem;
  background: #082c00;
  padding: 0.75rem 1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.brand-input::placeholder {
  color: rgba(244, 244, 244, 0.42);
}

.brand-input:focus {
  border-color: #32cd32;
  box-shadow: 0 0 0 1px #32cd32;
}

.brand-input option {
  background: #000000;
}

.file-upload-label {
  display: flex;
  min-height: 8rem;
  width: 100%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #155309;
  border-radius: 0.5rem;
  background: rgba(8, 44, 0, 0.3);
  padding: 1rem;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.file-upload-label:hover {
  transform: translateY(-1px);
  border-color: #32cd32;
  background: rgba(8, 44, 0, 0.52);
}

.asset-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid #155309;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  cursor: pointer;
}

.asset-toggle input {
  margin-top: 0.2rem;
  accent-color: #32cd32;
}

.asset-toggle strong,
.asset-toggle small {
  display: block;
}

.asset-toggle small {
  margin-top: 0.15rem;
  color: rgba(244, 244, 244, 0.62);
  font-size: 0.75rem;
}

.file-upload-label input[type="file"] {
  display: none !important;
}

.brand-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.5rem;
  background: #32cd32;
  padding: 0.85rem 1.5rem;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(50, 205, 50, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.brand-button:hover {
  transform: translateY(-1px);
  background: #dee95f;
  box-shadow: 0 16px 32px rgba(222, 233, 95, 0.2);
}

.brand-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(100%, 34rem);
  border: 1px solid #155309;
  border-radius: 0.75rem;
  background: #000000;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.client-row {
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.client-row:hover {
  transform: translateY(-1px);
  border-color: #32cd32;
  background: rgba(8, 44, 0, 0.52);
}

.campaign-row {
  transition: border-color 160ms ease, background 160ms ease;
}

.campaign-row:hover {
  border-color: #32cd32;
  background: rgba(8, 44, 0, 0.52);
}

.admin-card {
  border: 1px solid #155309;
  border-radius: 0.75rem;
  background: #000000;
  padding: 1.5rem;
}

.icon-action {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #155309;
  border-radius: 0.5rem;
  color: #f4f4f4;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-action:hover {
  border-color: #32cd32;
  color: #32cd32;
  background: rgba(50, 205, 50, 0.08);
}

.icon-action.danger:hover {
  border-color: #ef4444;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.admin-shell,
.admin-card {
  max-width: 100%;
  min-width: 0;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-top-color: #000000;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.loading-overlay .spinner {
  border-color: rgba(50, 205, 50, 0.24);
  border-top-color: #32cd32;
}

.upload-progress-card {
  width: min(100%, 34rem);
  border: 1px solid #155309;
  border-radius: 0.75rem;
  background: #000000;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.upload-step {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid #155309;
  border-radius: 0.5rem;
  background: rgba(8, 44, 0, 0.26);
  padding: 0.85rem;
}

.upload-step-icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #155309;
  color: rgba(244, 244, 244, 0.65);
  font-size: 0.75rem;
}

.upload-step.active {
  border-color: #32cd32;
}

.upload-step.active .upload-step-icon {
  border-color: #32cd32;
  color: #32cd32;
}

.upload-step.done .upload-step-icon {
  border-color: #32cd32;
  background: #32cd32;
  color: #000000;
}

.upload-step.error {
  border-color: rgba(244, 63, 94, 0.65);
}

.upload-step.error .upload-step-icon {
  border-color: rgba(244, 63, 94, 0.8);
  color: #fda4af;
}

.d-none {
  display: none !important;
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 1rem !important;
  }

  .admin-card {
    padding: 1rem;
  }

  .brand-input,
  .file-upload-label,
  .brand-button {
    max-width: 100%;
  }

  h2 {
    overflow-wrap: anywhere;
  }
}

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