:root {
  --tt-gold: #ffc800;
  --tt-gold-dark: #d9a900;
  --tt-bg-soft: #fff9e8;
  --tt-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --tt-card-shadow-hover: 0 16px 35px rgba(0, 0, 0, 0.14);
}

.dashboard-body {
  background:
    radial-gradient(1200px 420px at 20% -8%, rgba(255, 200, 0, 0.16), transparent 62%),
    radial-gradient(700px 320px at 90% -5%, rgba(255, 149, 0, 0.18), transparent 60%),
    #f9fafb;
  min-height: 100vh;
}

.dashboard-topbar {
  background: linear-gradient(120deg, #1e1e1e, #2d2d2d);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.dashboard-topbar-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-brand {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-brand:hover {
  color: #fff;
}

.dashboard-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffc800, #ff9500);
  color: #1f1f1f;
  box-shadow: 0 6px 16px rgba(255, 200, 0, 0.3);
}

.dashboard-brand-text {
  font-size: 1rem;
}

.dashboard-user-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-cart-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 0, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-cart-link:hover {
  background: rgba(255, 200, 0, 0.2);
  border-color: rgba(255, 200, 0, 0.65);
  color: #ffc800;
  box-shadow: 0 4px 14px rgba(255, 200, 0, 0.25);
}

.dashboard-cart-link:focus-visible {
  outline: 2px solid #ffc800;
  outline-offset: 2px;
}

.dashboard-cart-link .cart-badge {
  font-size: 0.68rem;
}

.dashboard-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.dashboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-username {
  font-size: 0.9rem;
  color: #f2f2f2;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-dashboard-logout {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-dashboard-logout:hover {
  background: #fff;
  color: #222;
}

.dashboard-subnav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.dashboard-subnav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dashboard-subnav-list a {
  text-decoration: none;
  color: #484848;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-subnav-list a:hover {
  color: #111;
  background-color: var(--tt-bg-soft);
}

.dashboard-main {
  padding-top: 2rem;
}

/* Admin dashboard page (marketing _Layout) */
.dashboard-page {
  padding-bottom: 2.5rem;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  padding: 1.85rem 1.75rem;
  border-radius: 1rem;
  color: #212529;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 200, 0, 0.35), transparent 55%),
    linear-gradient(135deg, #fffdf5 0%, #ffffff 55%, #f8f9fa 100%);
  border: 1px solid rgba(33, 37, 41, 0.08);
  box-shadow: 0 10px 28px rgba(33, 37, 41, 0.06);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 200, 0, 0.2);
  top: -110px;
  right: -60px;
  pointer-events: none;
}

.dashboard-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cca000;
}

.dashboard-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #212529;
}

.dashboard-subtitle {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #6c757d;
}

.dashboard-catalog-header {
  margin-bottom: 1.15rem;
}

.dashboard-catalog-title {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #212529;
}

.dashboard-catalog-copy {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: #6c757d;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.dashboard-card {
  grid-column: span 8;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--tt-card-shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 190px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-card-shadow-hover);
  border-color: rgba(255, 200, 0, 0.48);
  color: inherit;
}

.dashboard-card-heading,
.dashboard-card h2,
.dashboard-card h3 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #212529;
}

.dashboard-card p {
  margin-bottom: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #565656;
}

.dashboard-card-primary {
  border-color: rgba(255, 200, 0, 0.46);
  background: linear-gradient(145deg, #fffdf5 0%, #fff 100%);
}

.dashboard-card-muted {
  opacity: 0.95;
}

.dashboard-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e4e4e;
  font-size: 1.1rem;
}

.bg-soft {
  background: var(--tt-bg-soft);
}

.dashboard-card-link {
  margin-top: auto;
  color: var(--tt-gold-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .reveal-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .dashboard-card {
    transition: none;
  }

  .dashboard-card:hover {
    transform: none;
  }
}

.placeholder-page {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--tt-card-shadow);
  border-radius: 16px;
  padding: 1.5rem;
}

.tt-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.tt-empty-state {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fffdf5;
}

.tt-empty-state i {
  font-size: 1.35rem;
  color: #d7ad0b;
}

.tt-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tt-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  color: #888;
}

.tt-upload-zone {
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 1.1rem;
  background: #fffdf7;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tt-upload-zone:hover,
.tt-upload-zone.is-dragover {
  border-color: #ffc800;
  background: #fff8e4;
}

.tt-upload-content {
  text-align: center;
  color: #555;
}

.tt-upload-content i {
  font-size: 1.5rem;
  color: #d7ad0b;
  margin-bottom: 0.35rem;
}

.tt-image-preview {
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tt-loading-form button[type="submit"] {
  position: relative;
}

.tt-loading-form.loading button[type="submit"] {
  pointer-events: none;
  opacity: 0.8;
}

.tt-loading-form.loading button[type="submit"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: ttSpin 0.8s linear infinite;
}

@keyframes ttSpin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.pagination .page-link {
  color: #555;
}

.pagination .page-item.active .page-link {
  background-color: #ffc800;
  border-color: #ffc800;
  color: #1d1d1d;
}

.btn-dashboard-primary {
  background: linear-gradient(135deg, #ffc800 0%, #ff9500 100%);
  border: 0;
  color: #fff;
}

.btn-dashboard-primary:hover {
  color: #fff;
  filter: brightness(0.95);
}

.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 0.48s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .dashboard-card {
    grid-column: span 12;
    min-height: 165px;
  }

  .dashboard-main {
    padding-top: 1.2rem;
  }

  .dashboard-subnav-list {
    gap: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-topbar-content {
    min-height: 64px;
  }

  .dashboard-user-badge {
    display: none;
  }

  .dashboard-hero {
    padding: 1.35rem 1.15rem;
  }

  .dashboard-card {
    grid-column: span 24;
  }

  .placeholder-page {
    padding: 1.1rem;
  }
}