/* Appsite/Agency – ThemeForest-style marketplace
   Colors: teal (brand) + charcoal (text) from logo */

:root {
  /* Brand */
  --color-teal: #14b8a6;
  --color-teal-dark: #0f766e;
  --color-teal-light: #2dd4bf;

  /* Dark theme surfaces */
  --color-bg: #070a10;
  --color-bg-card: #0b1220;
  --color-bg-elevated: #0f1a2e;
  --color-border: rgba(148, 163, 184, 0.18);

  /* Text */
  --color-charcoal: #e5e7eb; /* main text */
  --color-charcoal-muted: #94a3b8; /* muted text */

  /* Effects */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 60px -26px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 4px rgba(20, 184, 166, 0.22);

  /* Typography */
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-lg: 16px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --duration-fast: 0.35s;
  --duration-normal: 0.55s;
  --duration-slow: 0.85s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ========== Advanced animations ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpHeader {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.2); }
  50% { box-shadow: 0 0 32px rgba(20, 184, 166, 0.35); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll-triggered reveal: initial state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.reveal.reveal--up {
  transform: translateY(32px);
}

.reveal.reveal--scale {
  transform: translateY(16px) scale(0.96);
}

.reveal.reveal--left {
  transform: translateX(-24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.reveal--left.is-visible {
  transform: translateX(0);
}

/* Stagger children (delay applied via JS or data-delay) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.5s; }
.reveal-stagger.is-visible > *:nth-child(n+11) { transition-delay: 0.55s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .header { animation: none; }
  .hero-inner.hero-animate .hero-title,
  .hero-inner.hero-animate .hero-subtitle,
  .hero-inner.hero-animate .hero-actions,
  .hero-inner.hero-animate .hero-stats { animation: none; }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .category-card:hover,
  .product-card:hover { transform: none; }
  .btn-primary:hover, .btn-outline:hover { transform: none; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  background: radial-gradient(1200px 600px at 50% -80px, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(124, 58, 237, 0.12), transparent 55%),
    var(--color-bg);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Logo – matches Appsite/Agency: teal on “A” left stroke & “i” dot, teal “Agency”, rest charcoal */
.logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-a-left {
  color: var(--color-teal);
  /* Stylized A: only left stroke teal – we simulate with clip or use single color for simplicity */
}

.logo-rest {
  color: var(--color-charcoal);
}

.logo-slash {
  color: var(--color-charcoal);
  margin: 0 2px;
}

/* Teal dot on "i" in Appsite */
.logo-i {
  color: var(--color-charcoal);
  position: relative;
  display: inline-block;
}

.logo-i::before {
  content: "";
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.35em;
  height: 0.35em;
  background: var(--color-teal);
  border-radius: 1px;
}

.logo-agency {
  color: var(--color-teal);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo:hover .logo-agency,
.logo:hover .logo-a-left {
  transition: color var(--duration-fast);
}

.logo-footer .logo-rest,
.logo-footer .logo-slash {
  color: var(--color-charcoal-muted);
}

/* Header */
.header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: slideUpHeader var(--duration-slow) var(--ease-out-expo) both;
}

.header .container {
  padding-left: 18px;
  padding-right: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  height: auto;
  padding: 10px 0;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: color var(--duration-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav a:hover {
  color: var(--color-teal);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-direction: row;
}

.header-profile {
  position: relative;
  flex-shrink: 0;
}

.header-profile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(45, 212, 191, 0.4);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-bg-elevated), var(--color-bg-card));
  cursor: pointer;
  width: 44px;
  height: 44px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-profile-trigger:hover,
.header-profile-trigger[aria-expanded="true"] {
  border-color: var(--color-teal-light);
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.28);
}

.header-profile-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-light);
  background: rgba(20, 184, 166, 0.14);
}

.header-profile-placeholder-svg {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.header-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 228px;
  background: linear-gradient(165deg, var(--color-bg-elevated), var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 184, 166, 0.06);
  padding: 8px;
  z-index: 10050;
}

.header-profile-menu-link {
  display: block;
  padding: 10px 14px;
  color: var(--color-charcoal);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
}

.header-profile-menu-link:hover {
  background: rgba(148, 163, 184, 0.08);
}

.header-profile-menu-upload {
  display: block;
  padding: 10px 14px;
  color: var(--color-teal-light);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 2px;
}

.header-profile-menu-upload input {
  display: none;
}

.header-profile-menu-upload:hover {
  background: rgba(20, 184, 166, 0.1);
}

.header-profile-menu-logout {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-top: 6px;
  border: none;
  border-top: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-charcoal-muted);
  cursor: pointer;
  border-radius: 0 0 8px 8px;
  font-family: inherit;
  font-size: 0.875rem;
}

.header-profile-menu-logout:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out-expo),
    color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-back);
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.28);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-charcoal-muted);
}

.btn-ghost:hover {
  color: var(--color-teal);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 80px 0 42px;
  background: radial-gradient(1100px 520px at 50% 0%, rgba(20, 184, 166, 0.16), transparent 60%),
    linear-gradient(180deg, var(--color-bg-card) 0%, rgba(7, 10, 16, 0) 65%),
    transparent;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-inner.hero-animate .hero-title {
  animation: fadeUp var(--duration-slow) var(--ease-out-expo) both;
}

.hero-inner.hero-animate .hero-subtitle {
  animation: fadeUp var(--duration-slow) var(--ease-out-expo) 0.12s both;
}

.hero-inner.hero-animate .hero-actions {
  animation: fadeUp var(--duration-normal) var(--ease-out-expo) 0.22s both;
}

.hero-inner.hero-animate .hero-stats {
  animation: fadeUp var(--duration-normal) var(--ease-out-expo) 0.38s both;
}

.hero-inner.hero-animate .hero-stat-card:nth-child(1) {
  animation: heroStatIn 0.65s var(--ease-out-expo) 0.42s both;
}
.hero-inner.hero-animate .hero-stat-card:nth-child(2) {
  animation: heroStatIn 0.65s var(--ease-out-expo) 0.52s both;
}
.hero-inner.hero-animate .hero-stat-card:nth-child(3) {
  animation: heroStatIn 0.65s var(--ease-out-expo) 0.62s both;
}

@keyframes heroStatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-charcoal);
  margin: 0 0 16px;
}

.hero-highlight {
  color: var(--color-teal);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
}

.hero-stats strong {
  color: var(--color-charcoal);
  margin-right: 4px;
}

/* Premium hero stats */
.hero-stats-premium {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(12px, 3vw, 24px);
  max-width: 900px;
  margin: 0 auto;
  padding-top: 4px;
  width: 100%;
}

.hero-stat-card--left {
  justify-self: start;
}

.hero-stat-card--center {
  justify-self: center;
}

.hero-stat-card--right {
  justify-self: end;
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  min-width: 0;
  flex: 1 1 200px;
  max-width: 260px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(20, 35, 55, 0.55) 0%,
    rgba(8, 12, 22, 0.75) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.06),
    0 16px 40px -24px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.22);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.1),
    0 20px 48px -20px rgba(20, 184, 166, 0.12);
}

.hero-stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-light);
}

.hero-stat-icon svg {
  width: 22px;
  height: 22px;
}

.hero-stat-icon--star {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.12));
  color: #fcd34d;
}

.hero-stat-icon--star svg {
  width: 20px;
  height: 20px;
}

.hero-stat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-card--left .hero-stat-value {
  background: linear-gradient(120deg, #fff, var(--color-teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-card--center .hero-stat-value {
  background: linear-gradient(120deg, #fef3c7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-card--right .hero-stat-value {
  background: linear-gradient(120deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal-muted);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner.hero-animate .hero-stat-card:nth-child(1),
  .hero-inner.hero-animate .hero-stat-card:nth-child(2),
  .hero-inner.hero-animate .hero-stat-card:nth-child(3) {
    animation: none;
  }
  .hero-stat-card:hover {
    transform: none;
  }
}

.search-dim {
  opacity: 0.28;
  filter: grayscale(0.6);
  pointer-events: none;
}

/* Sections */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 24px;
}

.link-more {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.link-more:hover {
  text-decoration: underline;
  opacity: 0.9;
  transform: translateX(4px);
}

/* Categories */
.categories {
  padding: 60px 0 30px;
}

.hero + .categories {
  padding-top: 0px;
}

.categories + .products {
  padding-top: 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.7) 0%, rgba(11, 18, 32, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-charcoal);
  transition: border-color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-back),
    color var(--duration-fast);
}

.category-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 184, 166, 0.15);
  transform: translateY(-6px);
}

.category-card .category-icon {
  transition: transform var(--duration-normal) var(--ease-out-back);
}

.category-card:hover .category-icon {
  transform: scale(1.15);
}

.category-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-teal);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.04) 100%);
  border: 1px solid rgba(20, 184, 166, 0.16);
  margin-bottom: 8px;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-name {
  font-weight: 600;
  font-size: 1rem;
}

.category-count {
  font-size: 0.8125rem;
  color: var(--color-charcoal-muted);
  margin-top: 4px;
}

/* Category themes (same section – no new page, no section below) */
.category-themes-back-wrap {
  margin-bottom: 16px;
}

.btn-back-categories {
  font-size: 0.875rem;
  padding: 6px 0;
}

.category-themes-count {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin: -8px 0 20px 0;
}

/* Products */
.products {
  padding: 60px 0 80px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.products-header .section-title {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.product-card {
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.55) 0%, rgba(11, 18, 32, 0.92) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  transition: border-color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-back);
}

.product-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 184, 166, 0.12);
  transform: translateY(-8px);
}

.product-card .product-image {
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-image {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.06) 100%);
  flex: 0 0 auto;
}

.product-image > div {
  width: 100%;
  height: 100%;
}

.product-card-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b1220 0%, #0f1a2e 55%, #1f2a44 100%);
  opacity: 0.9;
}

.product-placeholder-2 {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
}

.product-placeholder-3 {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 55%, #334155 100%);
}

.product-placeholder-4 {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-teal);
  color: #fff;
  border-radius: 6px;
}

.product-badge.new {
  background: rgba(229, 231, 235, 0.12);
  border: 1px solid rgba(229, 231, 235, 0.16);
  color: #e5e7eb;
}

.product-body {
  padding: 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-charcoal);
}

.product-meta {
  font-size: 0.8125rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 16px;
  font-family: var(--font-mono);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
}

/* CTA */
.cta {
  padding: 72px 0;
  background: radial-gradient(900px 500px at 50% 0%, rgba(20, 184, 166, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #070a10 100%);
  color: #fff;
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-text {
  color: var(--color-charcoal-muted);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: var(--color-teal);
}

.cta .btn-primary:hover {
  background: var(--color-teal-light);
}

@media (max-width: 480px) {
  .cta {
    padding: 48px 0;
  }
  .cta .btn-primary {
    width: 100%;
  }
}

/* Footer */
.footer {
  background: rgba(11, 18, 32, 0.9);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 32px;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin: 0;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal-muted);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-charcoal-muted);
}

/* Responsive */
@media (max-width: 768px) {
  /* Header: row 1 = logo + actions, row 2 = nav links (no hamburger) */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 0;
  }
  .header .logo {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.85rem, 3.2vw, 1.125rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding-top: 8px;
    margin: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
  }
  .nav a {
    font-size: 0.8125rem;
  }
  .header-actions {
    order: 2;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .header-user-cluster {
    gap: 6px;
    flex-shrink: 0;
  }
  .header-actions .btn {
    padding: 7px 9px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .header-actions .btn-primary {
    padding: 7px 10px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: 8px;
  }

  .hero-stats-premium {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-stat-card--left,
  .hero-stat-card--center,
  .hero-stat-card--right {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

.products-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* minmax(260px) forces 1 col on phones — use 2-up grid on small screens */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

/* Very narrow phones: keep header on one row */
@media (max-width: 380px) {
  .header-actions .btn {
    padding: 6px 6px;
    font-size: 0.6875rem;
  }
  .header-actions .btn-primary {
    padding: 6px 8px;
  }
  .header .logo {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .category-card {
    padding: 16px 10px;
  }
  .category-name {
    font-size: 0.875rem;
  }
  .category-count {
    font-size: 0.7rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-body {
    padding: 12px 10px;
  }
  .product-title {
    font-size: 0.875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-meta {
    font-size: 0.6875rem;
    margin-bottom: 8px;
  }
  .product-price {
    font-size: 1rem;
  }
  .product-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.35rem;
  }
}

/* Category page */
.category-page {
  padding: 32px 0 80px;
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-teal);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-charcoal-muted);
  margin: 0 6px;
}

.breadcrumb-current {
  color: var(--color-charcoal-muted);
}

.category-header {
  margin-bottom: 32px;
}

.category-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.category-page-count {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin: 0;
}

.category-empty {
  text-align: center;
  padding: 48px 24px;
}

.category-empty p {
  margin: 0 0 16px;
  color: var(--color-charcoal-muted);
}

/* Product page (single product) */
.product-page {
  padding: 32px 0 80px;
}

.product-breadcrumb {
  margin-bottom: 24px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.55) 0%, rgba(7, 10, 16, 0.25) 100%);
  box-shadow: var(--shadow-lg);
}

.product-detail-image {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.9) 0%, rgba(11, 18, 32, 0.95) 100%);
}

.product-detail-image.product-img-1 { background: linear-gradient(135deg, #0b1220 0%, #0f1a2e 55%, #1f2a44 100%); }
.product-detail-image.product-img-2 { background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%); }
.product-detail-image.product-img-3 { background: linear-gradient(135deg, #0b1220 0%, #1e293b 55%, #334155 100%); }
.product-detail-image.product-img-4 { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%); }

.product-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.product-detail-meta {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  font-family: var(--font-mono);
  margin: 0 0 16px;
}

.product-price-buy-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.product-detail-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 0;
}

.product-buy-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.product-buy-cta {
  flex-shrink: 0;
}

.product-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: hide inline buttons — use fixed bottom bar instead */
@media (max-width: 768px) {
  .product-price-buy-row .product-buy-buttons {
    display: none;
  }

  .product-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .product-price-buy-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fixed bottom CTA bar (mobile / small tablet) */
.product-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .product-sticky-bar.is-visible {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 90;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    /* Solid bar (no backdrop-filter) — avoids fixed-position bugs with some ancestors / mobile WebKit */
    background: rgba(7, 10, 16, 0.97);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, 0.55);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .product-sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .product-sticky-bar-inner .btn {
    flex: 1;
    min-width: 0;
  }
}

.product-tf-price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.product-tf-original-price {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
  text-decoration: line-through;
}

.product-tf-selling-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-teal);
}

/* Product page — seller trust card (clean, marketplace-style) */
.product-tf-trust-panel {
  margin: 0 0 22px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.55) 0%, rgba(8, 12, 20, 0.42) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 40px -28px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.product-tf-trust-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.product-tf-avatar-wrap {
  flex-shrink: 0;
}

.product-tf-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f8fafc;
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.35) 0%, rgba(15, 118, 110, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.45);
}

.product-tf-trust-info {
  flex: 1;
  min-width: 0;
}

.product-tf-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.product-tf-by {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.88);
  text-transform: none;
  letter-spacing: 0;
}

.product-tf-author-name {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: #f1f5f9;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-tf-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(94, 234, 212, 0.95);
}

.product-tf-verified-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #2dd4bf;
  opacity: 0.95;
}

.product-tf-sales-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.9);
}

.product-tf-sales-icon {
  display: flex;
  color: rgba(148, 163, 184, 0.75);
}

.product-tf-sales-icon svg {
  width: 17px;
  height: 17px;
}

.product-tf-sales-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}

.product-tf-sales-text {
  font-weight: 400;
  color: rgba(148, 163, 184, 0.85);
}

/* Quality chips — one horizontal row, subtle */
.product-tf-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.product-tf-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.product-tf-chip-label {
  line-height: 1.25;
}

.product-tf-chip--mint {
  color: rgba(153, 246, 228, 0.95);
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(20, 184, 166, 0.08);
}

/* Rating bar — single line, calm typography */
.product-tf-rating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.product-tf-rating-core {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.product-tf-stars-inline {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fbbf24;
  line-height: 1;
}

.product-tf-rating-score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.product-tf-rating-num {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.product-tf-rating-denom {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.75);
}

.product-tf-rating-reviews {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.88);
  font-weight: 400;
}

.product-tf-trust-note {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(148, 163, 184, 0.75);
  padding: 0;
  border: none;
  background: none;
  white-space: nowrap;
}

.product-tf-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.product-tf-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.product-tf-card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.55) 0%, rgba(7, 10, 16, 0.25) 100%);
  box-shadow: 0 18px 55px -40px rgba(0, 0, 0, 0.7);
}

.product-tf-card-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-charcoal);
}

.product-tf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-tf-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
}

.product-tf-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.product-tf-list li:before {
  content: "✓";
  color: rgba(20, 184, 166, 0.9);
  font-weight: 900;
  flex: 0 0 auto;
}

.product-detail-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal-muted);
  margin: 0 0 28px;
}

.product-detail-actions .btn {
  min-width: 180px;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.product-promo-wrap {
  flex: 1 1 260px;
  max-width: 340px;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    165deg,
    rgba(20, 184, 166, 0.10) 0%,
    rgba(7, 10, 16, 0.55) 55%,
    rgba(15, 26, 46, 0.88) 100%
  );
  box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.7);
}

.product-promo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-promo-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal-muted);
}

.product-promo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-teal-light);
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.24);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.product-promo-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 10, 16, 0.35);
  color: var(--color-charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out-expo);
  font-family: var(--font-sans);
}

.product-promo-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.product-promo-input:focus {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.product-promo-wrap:focus-within {
  border-color: rgba(20, 184, 166, 0.28);
}

@media (max-width: 768px) {
  .product-promo-wrap {
    max-width: 100%;
  }
}

.product-empty {
  text-align: center;
  padding: 48px 24px;
}

.product-not-found {
  display: none;
}

.product-empty p {
  margin: 0 0 16px;
  color: var(--color-charcoal-muted);
}

/* Checkout page */
.checkout-page {
  padding: 32px 0 80px;
}

.checkout-container {
  max-width: 560px;
  margin: 0 auto;
}

.checkout-gate--hidden,
.checkout-main--hidden {
  display: none;
}

.checkout-msg--hidden,
.checkout-success--hidden,
.checkout-download-link--hidden {
  display: none;
}

.checkout-gate {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.5) 0%, rgba(7, 10, 16, 0.3) 100%);
}

.checkout-gate p {
  margin: 0 0 20px;
  color: var(--color-charcoal-muted);
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 24px;
}

.checkout-summary-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.55) 0%, rgba(7, 10, 16, 0.25) 100%);
  margin-bottom: 24px;
}

.checkout-summary-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin: 0 0 12px;
}

.checkout-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.checkout-product-name {
  font-weight: 600;
  color: var(--color-charcoal);
}

.checkout-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
}

.checkout-phone-section {
  margin-bottom: 20px;
}
.checkout-phone-section--hidden {
  display: none;
}
.checkout-phone-input {
  width: 100%;
  max-width: 16rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(7, 10, 16, 0.45);
  color: var(--color-charcoal);
}
.checkout-phone-input:focus {
  outline: none;
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.checkout-phone-input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}
.checkout-cashfree-note {
  font-size: 0.8125rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 16px;
}
.checkout-cashfree-note--hidden {
  display: none;
}

/* Cart page */
.cart-page .cart-empty {
  margin-top: 1rem;
}
.cart-page .cart-main {
  margin-top: 1rem;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.cart-table th,
.cart-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}
.cart-table th {
  color: var(--color-charcoal-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-col-price {
  font-weight: 600;
  color: var(--color-teal);
  white-space: nowrap;
}
.cart-col-actions {
  white-space: nowrap;
}
.cart-col-actions .btn {
  margin-right: 0.35rem;
}
.cart-col-actions .btn:last-child {
  margin-right: 0;
}
.cart-product-link {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: none;
}
.cart-product-link:hover {
  text-decoration: underline;
}

.cart-product-row-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.cart-product-text {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}
.cart-thumb-wrap {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-thumb--loading {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(99, 102, 241, 0.18));
  animation: cart-thumb-shimmer 1.2s ease-in-out infinite;
}
@keyframes cart-thumb-shimmer {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

.checkout-address-lead {
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
  margin: -0.5rem 0 1.25rem;
  max-width: 42rem;
}
.checkout-address-form {
  padding: 1.25rem 1.5rem 1.5rem;
}
.checkout-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.checkout-field--full {
  grid-column: 1 / -1;
}
.checkout-field-input {
  width: 100%;
  max-width: none;
}
.checkout-optional {
  font-weight: 400;
  color: var(--color-charcoal-muted);
}
.checkout-address-actions {
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.checkout-address-summary-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}
.checkout-address-edit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}
.checkout-address-edit:hover {
  text-decoration: underline;
}

.checkout-product-row-premium {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.checkout-product-thumb-wrap {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
}
.checkout-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.checkout-product-thumb--hidden {
  display: none;
}
.checkout-product-row-premium-text {
  flex: 1;
  min-width: 140px;
}
.checkout-bill-card .checkout-bill-rows {
  margin-top: 0.5rem;
}
.checkout-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--color-charcoal-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checkout-bill-row:last-child {
  border-bottom: none;
}
.checkout-bill-row--total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  font-size: 1.05rem;
  color: var(--color-charcoal);
}
.checkout-bill-row--total strong {
  color: var(--color-teal);
  font-size: 1.15rem;
}
.checkout-bill-row--discount span:last-child {
  color: #4ade80;
}
.checkout-bill-row--inr strong {
  color: var(--color-teal);
}
.checkout-bill-row--hidden {
  display: none;
}
.checkout-promo-row--with-btn {
  align-items: stretch;
}
.checkout-promo-row--with-btn .checkout-promo-input {
  flex: 1;
  min-width: 140px;
}
@media (max-width: 640px) {
  .checkout-address-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-promo-section {
  margin-bottom: 24px;
}

.checkout-promo-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 6px;
}

.checkout-promo-hint {
  font-size: 0.8125rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 10px;
}

.checkout-promo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-promo-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 10, 16, 0.35);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  outline: none;
}

.checkout-promo-input:focus {
  border-color: rgba(20, 184, 166, 0.5);
}

.checkout-promo-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal-light);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.checkout-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.checkout-actions .btn {
  min-width: 140px;
}

.checkout-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9375rem;
}

.checkout-msg--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.checkout-msg--success {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #99f6e4;
}

.checkout-success {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 184, 166, 0.2);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.5) 0%, rgba(7, 10, 16, 0.3) 100%);
}

.checkout-success h2 {
  margin: 0 0 12px;
  color: var(--color-charcoal);
}

.checkout-success p {
  margin: 0 0 20px;
  color: var(--color-charcoal-muted);
}

.checkout-success .btn {
  margin: 0 6px;
}

@media (max-width: 480px) {
  .checkout-product-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .checkout-actions {
    flex-direction: column;
    width: 100%;
  }
  .checkout-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .checkout-promo-row {
    flex-direction: column;
  }
  .checkout-promo-input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-tf-rating-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-tf-trust-note {
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
  }

  .product-tf-cards {
    grid-template-columns: 1fr;
  }
}

/* Seller page */
.seller-page {
  padding: 48px 0 80px;
}

.seller-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.seller-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 16px;
}

.seller-subtitle {
  font-size: 1.125rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

.seller-steps {
  margin-bottom: 48px;
}

.seller-steps .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.seller-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.seller-step {
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.6) 0%, rgba(11, 18, 32, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.seller-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-teal);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 12px;
}

.seller-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.seller-step p {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin: 0;
  line-height: 1.5;
}

.seller-cta {
  text-align: center;
}

@media (max-width: 480px) {
  .seller-page {
    padding: 32px 0 56px;
  }
  .seller-hero {
    margin-bottom: 40px;
  }
  .seller-title {
    font-size: 1.5rem;
  }
  .seller-subtitle {
    font-size: 1rem;
  }
  .seller-cta .btn {
    width: 100%;
  }
  .seller-steps-grid {
    grid-template-columns: 1fr;
  }
  .seller-withdraw-form {
    flex-direction: column;
    align-items: stretch;
  }
  .account-page {
    padding: 24px 0;
  }
  .account-card {
    padding: 1.25rem;
  }
  .account-actions {
    flex-direction: column;
  }
  .account-actions .btn {
    width: 100%;
  }
  .product-detail {
    padding: 16px;
    gap: 24px;
  }
  .product-detail-title {
    font-size: 1.5rem;
  }
  .category-page-title {
    font-size: 1.5rem;
  }
  .category-page {
    padding: 24px 0 72px;
  }
}

.seller-home-strip {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(15, 118, 110, 0.08));
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
}

.seller-home-strip a {
  color: var(--color-teal-light);
  font-weight: 600;
}

.seller-home-strip a:hover {
  text-decoration: underline;
}

/* Seller header: balance replaces Search + Cart */
.header-seller-balance {
  align-items: center;
  margin-right: 4px;
}

.header-seller-balance--hidden {
  display: none;
}

.header-seller-balance-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 16px 10px;
  background: linear-gradient(155deg, rgba(18, 32, 58, 0.98) 0%, rgba(8, 14, 26, 0.99) 100%);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 32px -12px rgba(0, 0, 0, 0.6),
    0 0 40px -16px rgba(20, 184, 166, 0.35);
}

.header-seller-balance-label {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.75);
  line-height: 1;
  text-shadow: 0 0 18px rgba(45, 212, 191, 0.35);
}

.header-seller-balance-value {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-bottom: 1px;
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #f1f5f9 38%,
    #94a3b8 52%,
    #5eead4 88%,
    #2dd4bf 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(45, 212, 191, 0.22));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .header-seller-balance-value {
    color: #f8fafc;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.2));
  }
}

@media (max-width: 640px) {
  .header-seller-balance-inner {
    padding: 6px 12px 8px;
    gap: 3px;
  }
  .header-seller-balance-label {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
  }
  .header-seller-balance-value {
    font-size: 1.15rem;
  }
}

.seller-dashboard-panel {
  padding-bottom: 56px;
}

.seller-dashboard-panel {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.seller-dashboard-panel .section-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.seller-dash-section {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.seller-withdraw-form {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.seller-products-list {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.seller-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.seller-dash-card {
  position: relative;
  background: radial-gradient(120% 160% at 0% 0%, rgba(45, 212, 191, 0.12), transparent 55%) var(--color-bg-card);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 18px 45px -26px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}

.seller-dash-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.7);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.seller-dash-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e5e7eb;
}

.seller-dash-meta {
  margin: 0 0 0.28rem;
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
}

.seller-dash-meta strong {
  color: var(--color-charcoal);
}

.seller-dash-section {
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(
    165deg,
    rgba(20, 184, 166, 0.08) 0%,
    rgba(7, 10, 16, 0.55) 55%,
    rgba(15, 26, 46, 0.8) 100%
  );
  box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.7);
}

/* Add extra gap between Sales card and next section */
.seller-dashboard-panel .seller-dash-card + .seller-dash-section {
  margin-top: 28px;
}

.seller-dash-section-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

/* Table scroll on small screens */
.seller-products-list,
.seller-withdrawals-table-wrap,
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seller-products-list .orders-table,
.seller-withdrawals-table-wrap .orders-table {
  margin-top: 0.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.25);
  background: radial-gradient(120% 200% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%) var(--color-bg-card);
  min-width: 320px;
}

.seller-products-list .orders-table thead,
.seller-withdrawals-table-wrap .orders-table thead {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
}

.seller-products-list .orders-table th,
.seller-withdrawals-table-wrap .orders-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.seller-products-list .orders-table tr:hover td,
.seller-withdrawals-table-wrap .orders-table tr:hover td {
  background: rgba(15, 23, 42, 0.8);
}

.seller-withdraw-form {
  margin-top: 0.5rem;
}

.order-status.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.order-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Upload page */
.upload-page {
  padding: 32px 0 80px;
}

.upload-container {
  max-width: 560px;
  margin: 0 auto;
}

.upload-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.upload-subtitle {
  font-size: 0.9375rem;
  color: var(--color-charcoal-muted);
  margin: 0 0 32px;
}

.upload-form .upload-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}

.upload-form .upload-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  color: var(--color-charcoal);
  margin-bottom: 20px;
}

.upload-form .upload-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.contact-ticket-form {
  margin-top: 20px;
}

.contact-ticket-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.contact-ticket-feedback {
  display: none;
  margin-top: 8px;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 480px) {
  .upload-page {
    padding: 24px 0 48px;
  }
  .upload-title {
    font-size: 1.35rem;
  }
  .upload-actions {
    flex-direction: column;
  }
  .upload-actions .btn {
    width: 100%;
  }
}

.upload-success {
  text-align: center;
  padding: 32px 24px;
}

.upload-success h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 0 0 12px;
}

.upload-success p {
  color: var(--color-charcoal-muted);
  margin: 0 0 24px;
}

.upload-success .btn {
  margin: 0 6px;
}

.upload-success-hidden {
  display: none;
}

.upload-file {
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 0.8125rem;
  color: var(--color-charcoal-muted);
  margin: -4px 0 12px 0;
}

.upload-textarea {
  resize: vertical;
  min-height: 100px;
}

.upload-preview {
  margin-bottom: 20px;
}

.upload-preview-img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.upload-screenshots-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.upload-screenshot-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.upload-screenshot-item.is-main {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 1px var(--color-teal);
}

.upload-screenshot-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.upload-screenshot-item .set-main-btn {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.75rem;
  background: var(--color-charcoal);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.upload-screenshot-item.is-main .set-main-btn {
  background: var(--color-teal);
}

.upload-file-name {
  font-size: 0.875rem;
  color: var(--color-teal);
  margin: 0 0 20px 0;
}

/* Admin (shared row — seller demo) */
.admin-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.5) 0%, rgba(11, 18, 32, 0.92) 100%);
  margin-bottom: 12px;
}

.admin-row-title {
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.admin-row-meta {
  font-size: 0.875rem;
  color: var(--color-charcoal-muted);
  line-height: 1.4;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ——— Premium admin dashboard ——— */
.page-admin {
  min-height: 100vh;
  background: var(--color-bg);
}

.header--admin {
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
  background: rgba(7, 10, 16, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.admin-shell {
  position: relative;
  padding-bottom: 4rem;
}

.admin-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(20, 184, 166, 0.05), transparent 45%);
}

.admin-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.admin-gate {
  padding: clamp(3rem, 10vw, 5rem) 0;
  display: flex;
  justify-content: center;
}

.admin-gate-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(160deg, rgba(15, 26, 46, 0.9) 0%, rgba(7, 10, 16, 0.95) 100%);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.08),
    0 24px 64px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.admin-gate-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.admin-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-charcoal-muted);
  margin-bottom: 1.25rem;
}

.admin-pill--live {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal-light);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.admin-gate-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

.admin-gate-text {
  color: var(--color-charcoal-muted);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.admin-gate-btn {
  min-width: 160px;
}

.admin-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 2rem;
  animation: fadeUp 0.7s var(--ease-out-expo) both;
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .admin-hero-grid {
    grid-template-columns: 1fr;
  }
  .admin-hero-decoration {
    display: none;
  }
}

.admin-hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  color: var(--color-charcoal);
}

.admin-hero-accent {
  background: linear-gradient(120deg, var(--color-teal-light), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-charcoal-muted);
}

.admin-hero-decoration {
  position: relative;
  width: 140px;
  height: 140px;
}

.admin-hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.25);
  animation: adminPulse 4s ease-in-out infinite;
}

.admin-hero-ring--2 {
  inset: 18px;
  border-color: rgba(99, 102, 241, 0.2);
  animation-delay: -2s;
}

@keyframes adminPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.75s var(--ease-out-expo) 0.08s both;
}

@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(165deg, rgba(17, 28, 48, 0.85) 0%, rgba(8, 12, 22, 0.92) 100%);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0.9;
}

.admin-stat-card--teal::before {
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
}

.admin-stat-card--cyan::before {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.admin-stat-card--amber::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.admin-stat-card--violet::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow: 0 20px 50px -20px rgba(20, 184, 166, 0.12);
}

.admin-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-teal-light);
}

.admin-stat-card--cyan .admin-stat-icon-wrap {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
}

.admin-stat-card--amber .admin-stat-icon-wrap {
  background: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
}

.admin-stat-card--violet .admin-stat-icon-wrap {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
}

.admin-stat-svg {
  width: 22px;
  height: 22px;
}

.admin-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-charcoal-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

.admin-stat-card--teal .admin-stat-value {
  color: var(--color-teal-light);
}

.admin-stat-card--cyan .admin-stat-value {
  color: #67e8f9;
}

.admin-stat-card--amber .admin-stat-value {
  color: #fcd34d;
}

.admin-stat-card--violet .admin-stat-value {
  color: #ddd6fe;
}

.admin-stat-hint {
  font-size: 0.78rem;
  color: var(--color-charcoal-muted);
  margin-top: 0.5rem;
  line-height: 1.35;
}

.admin-panel {
  margin-bottom: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.65) 0%, rgba(7, 10, 16, 0.5) 100%);
  box-shadow: 0 16px 48px -28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: fadeUp 0.65s var(--ease-out-expo) both;
}

.admin-panel:nth-of-type(1) { animation-delay: 0.12s; }
.admin-panel:nth-of-type(2) { animation-delay: 0.16s; }
.admin-panel:nth-of-type(3) { animation-delay: 0.2s; }
.admin-panel:nth-of-type(4) { animation-delay: 0.24s; }

.admin-panel--last {
  margin-bottom: 0;
}

.admin-panel-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 26, 46, 0.35);
}

.admin-panel-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  opacity: 0.85;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.18);
}

.admin-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.admin-panel-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-charcoal-muted);
  line-height: 1.45;
}

.admin-panel-body {
  padding: 1rem 1.25rem 1.25rem;
}

.page-admin .admin-dash-row {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.55) 0%, rgba(10, 16, 28, 0.75) 100%);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
}

.page-admin .admin-dash-row:last-child {
  margin-bottom: 0;
}

.page-admin .admin-dash-row:hover {
  border-color: rgba(20, 184, 166, 0.18);
  box-shadow: 0 8px 28px -12px rgba(20, 184, 166, 0.15);
  transform: translateX(2px);
}

.page-admin .admin-row-title {
  font-size: 1.02rem;
  font-weight: 600;
}

.page-admin .admin-row-actions .btn-primary {
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  border: none;
  box-shadow: 0 4px 16px -4px rgba(20, 184, 166, 0.45);
}

.page-admin .admin-row-actions .btn-primary:hover {
  filter: brightness(1.08);
}

.page-admin .admin-row-actions .btn-outline {
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--color-charcoal-muted);
}

.page-admin .admin-row-actions .btn-outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal-light);
}

.admin-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.15);
  background: rgba(7, 10, 16, 0.35);
}

.admin-empty--error {
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.12);
}

.admin-payout-status {
  font-size: 0.85rem;
  color: var(--color-charcoal-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
}

@media (max-width: 640px) {
  .page-admin .admin-dash-row {
    flex-direction: column;
    align-items: stretch;
  }
  .page-admin .admin-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-admin .admin-row-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }
}

/* ——— Premium login / signup ——— */
.page-login {
  min-height: 100vh;
  background: var(--color-bg);
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(99, 102, 241, 0.07), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(20, 184, 166, 0.06), transparent 45%);
}

.header--login {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  background: rgba(7, 10, 16, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  animation: fadeUp 0.65s var(--ease-out-expo) both;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(15, 26, 46, 0.92) 0%, rgba(7, 10, 16, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.06),
    0 28px 80px -32px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.login-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal-dark), var(--color-teal-light), var(--color-teal));
  opacity: 0.95;
}

.login-card-inner {
  padding: 2rem 2rem 1.75rem;
}

@media (max-width: 480px) {
  .login-card-inner {
    padding: 1.5rem 1.35rem 1.35rem;
  }
}

.login-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-light);
  border: 1px solid rgba(20, 184, 166, 0.22);
  margin-bottom: 1rem;
}

.login-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-charcoal);
}

.login-title-accent {
  background: linear-gradient(115deg, var(--color-teal-light), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-lead {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-charcoal-muted);
}

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 4px;
  border-radius: 12px;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.login-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  color: var(--color-charcoal-muted);
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.login-tab:hover:not(.active) {
  color: var(--color-charcoal);
}

.login-tab.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(15, 118, 110, 0.35));
  color: #fff;
  box-shadow: 0 4px 20px -8px rgba(20, 184, 166, 0.5);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.login-form .login-field {
  margin-bottom: 1.1rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-charcoal-muted);
}

.login-form input,
.login-select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: rgba(7, 10, 16, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.login-form input:hover,
.login-select:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

.login-form input:focus,
.login-select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.login-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

/* Premium dropdown (replaces native select for better styling) */
.login-dropdown {
  position: relative;
}

.login-dd-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(7, 10, 16, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--color-charcoal);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out-expo);
}

.login-dd-btn:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

.login-dropdown.open .login-dd-btn,
.login-dd-btn:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.login-dd-label {
  font-weight: 600;
  color: var(--color-charcoal);
}

.login-dd-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--color-charcoal-muted);
}

.login-dd-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(148, 163, 184, 0.7);
  border-bottom: 2px solid rgba(148, 163, 184, 0.7);
  transform: rotate(45deg);
  justify-self: end;
  margin-right: 2px;
  transition: transform 0.2s;
}

.login-dropdown.open .login-dd-caret {
  transform: rotate(225deg);
}

.login-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(15, 26, 46, 0.97) 0%, rgba(7, 10, 16, 0.98) 100%);
  box-shadow: 0 24px 70px -34px rgba(0, 0, 0, 0.8);
  padding: 8px;
  display: none;
  z-index: 5;
}

.login-dropdown.open .login-dd-menu {
  display: block;
  animation: fadeIn 0.18s ease-out both;
}

.login-dd-item {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 12px;
  background: transparent;
  color: var(--color-charcoal);
  display: grid;
  gap: 2px;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.login-dd-item:hover {
  background: rgba(20, 184, 166, 0.12);
}

.login-dd-item.is-active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 118, 110, 0.26));
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.login-dd-item-title {
  font-weight: 700;
}

.login-dd-item-sub {
  font-size: 0.84rem;
  color: var(--color-charcoal-muted);
}

.login-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  box-shadow: 0 8px 28px -8px rgba(20, 184, 166, 0.55);
  transition: transform 0.2s var(--ease-out-expo), filter 0.2s, box-shadow 0.2s;
}

.login-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(20, 184, 166, 0.45);
}

.login-submit:active {
  transform: translateY(0);
}

.login-row-actions {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 0.85rem;
}

.login-forgot {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-teal-light);
  text-decoration: none;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.forgot-success {
  margin-top: 0.5rem;
}

.forgot-success-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-charcoal-muted);
  margin: 0 0 1.25rem;
}

.forgot-link-wrap {
  margin-bottom: 1.25rem;
}

.forgot-link-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-charcoal-muted);
  margin-bottom: 0.5rem;
}

.forgot-link-box {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid rgba(20, 184, 166, 0.2);
  word-break: break-all;
}

.forgot-reset-link {
  font-size: 0.8rem;
  color: var(--color-teal-light);
}

.login-back-btn {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  display: block;
  padding: 0.65rem;
  border-radius: 12px;
}

.login-msg {
  margin: 1.15rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  display: none;
  text-align: center;
}

.login-msg.error {
  display: block;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.login-msg.success {
  display: block;
  background: rgba(20, 83, 45, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #bbf7d0;
}

.mono {
  font-family: var(--font-mono);
}

.product-detail-demo {
  margin-bottom: 20px;
}

.product-detail-demo-under-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 0;
}

.product-detail-demo-under-image .btn {
  margin-right: 0;
}

.product-detail-demo-under-image .btn + .btn {
  margin-left: 12px;
}

.product-detail-demo .btn {
  margin-right: 8px;
}

.product-detail-desc-image {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 16px;
  border: 1px solid var(--color-border);
}

.product-desc-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-desc-thumbs img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--ease-out-expo);
}

.product-desc-thumbs img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.product-desc-thumbs img.active {
  opacity: 1;
  border-color: rgba(20, 184, 166, 0.6);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.product-detail-hidden {
  display: none;
}

.product-detail-source {
  margin-top: 16px;
  margin-bottom: 8px;
}

.product-detail-source .btn {
  margin-top: 8px;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-screenshots-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-screenshots-thumbs img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  cursor: pointer;
}

.product-screenshots-thumbs img:hover,
.product-screenshots-thumbs img.active {
  border-color: var(--color-teal);
}

/* Search modal (custom, not browser prompt) */
body.search-modal-open {
  overflow: hidden;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 2rem;
  background: rgba(2, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out-expo),
    visibility var(--duration-fast) var(--ease-out-expo);
}

.search-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(160deg, var(--color-bg-elevated) 0%, var(--color-bg-card) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 184, 166, 0.08);
  transform: translateY(-16px) scale(0.96);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-normal) var(--ease-out-expo);
}

.search-modal-overlay.is-open .search-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: rgba(148, 163, 184, 0.08);
  color: var(--color-charcoal-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.search-modal-close:hover {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal-light);
}

.search-modal-title {
  margin: 0 2.5rem 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.search-modal-hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-charcoal-muted);
  line-height: 1.45;
}

.search-modal-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.search-modal-input::placeholder {
  color: var(--color-charcoal-muted);
  opacity: 0.75;
}

.search-modal-input:focus {
  border-color: var(--color-teal);
  box-shadow: var(--ring);
}

.search-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Download page (cashfree return) */
#dl-download-btn {
  display: none;
}

#dl-purchases-link {
  margin-top: 12px;
  display: inline-block;
}
