/**
 * Giveaway Guru — mockup palette mapped to parent @theme tokens (nera-competitions-standard frontend/src/main.css).
 * Dark canvas, warm gold primary, editorial serif headings. Loaded after parent Vite.
 */
:root {
  /* Brand — gold */
  --color-primary: #d4a437;
  --color-primary-dark: #a8821f;
  --color-secondary: rgba(212, 164, 55, 0.14);
  --color-accent: #ecbf52;
  --color-accent-dark: #a8821f;
  --color-on-primary: #ffffff;

  /* Canvas + surfaces */
  --color-background-light: #0b0b0c;
  --color-background-dark: #08080a;
  --color-surface: #141416;

  /* Text */
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;

  /* Gray ramp — tuned for dark UI (My Account borders/hover, cards) */
  --color-gray-50: #1a1a1d;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: #2a2a2e;
  --color-gray-300: #3f3f42;
  --color-gray-400: #6b6862;
  --color-gray-500: #8c8983;
  --color-gray-600: #a6a39c;
  --color-gray-700: #c9c6be;
  --color-gray-800: #e4e1d9;
  --color-gray-900: #f4f1ea;

  /* Status */
  --color-success: #62c87d;
  --color-danger: #ff5959;
  --color-warning: #f77f00;
  --color-info: #5b9bd5;

  --color-success-bg: rgba(98, 200, 125, 0.14);
  --color-success-border: rgba(98, 200, 125, 0.45);
  --color-success-text: #b6f0c8;
  --color-danger-bg: rgba(255, 89, 89, 0.12);
  --color-danger-border: rgba(255, 89, 89, 0.45);
  --color-danger-text: #fecaca;
  --color-warning-bg: rgba(247, 127, 0, 0.15);
  --color-warning-border: rgba(247, 127, 0, 0.45);
  --color-warning-text: #fcd34d;
  --color-info-bg: rgba(91, 155, 213, 0.12);
  --color-info-border: rgba(91, 155, 213, 0.4);
  --color-info-text: #93c5fd;

  /* Typography */
  --font-heading: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shadows — deeper on dark canvas */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 28px 80px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-primary: 0 0 0 1px rgba(212, 164, 55, 0.45), 0 14px 50px rgba(212, 164, 55, 0.22);

  /* Nera Core / plugin bridge */
  --nera-primary: #d4a437;
  --nera-text: #f4f1ea;
  --nera-text-secondary: #a6a39c;
  --nera-bg: #0b0b0c;
  --nera-surface: #141416;
  --nera-border: #2a2a2e;

  /* Remap Tailwind indigo scale so from-primary to-indigo-600 stays on gold hue */
  --color-indigo-50: #faf6eb;
  --color-indigo-100: #f3ead1;
  --color-indigo-200: #e8d4a6;
  --color-indigo-300: #d4b86a;
  --color-indigo-400: #c9a227;
  --color-indigo-500: #b8891f;
  --color-indigo-600: #a8821f;
  --color-indigo-700: #8a6d1a;
  --color-indigo-800: #6e5715;
  --color-indigo-900: #4a3a0e;
  --color-indigo-950: #2d2409;
}

/* Parent @utility definitions hardcode indigo / blue hex — override with tokens */
.text-gradient-primary,
[class*="text-gradient-primary"] {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.bg-gradient-primary,
[class*="bg-gradient-primary"] {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: var(--color-on-primary) !important;
}

.bg-gradient-primary a,
[class*="bg-gradient-primary"] a,
.bg-primary a,
[class*="bg-primary"] a {
  color: var(--color-on-primary) !important;
}

.bg-gradient-primary a:hover,
[class*="bg-gradient-primary"] a:hover,
a.bg-gradient-primary:hover,
a.bg-primary:hover {
  color: var(--color-on-primary) !important;
}

.shadow-primary,
[class*="shadow-primary"] {
  box-shadow: var(--shadow-primary) !important;
}

.bg-primary,
[class*="bg-gradient-primary"] {
  color: var(--color-on-primary) !important;
}

/* Parent progress track uses fixed cool gray */
.progress-bar-base {
  background-color: var(--color-gray-200) !important;
}

/**
 * Product listing — “Why Choose Us” (trust-features.php child override)
 * Warm charcoal band (not pure black); cards sit on --color-surface.
 */
.gg-trust-features-section {
  background: linear-gradient(
    180deg,
    var(--color-background-dark) 0%,
    #101012 42%,
    #121214 100%
  );
  border-bottom: 1px solid rgba(212, 164, 55, 0.1);
}

.gg-trust-features-section h2.text-text-primary,
.gg-trust-features-section h3.text-text-primary {
  color: var(--color-text-primary) !important;
}

.gg-trust-features-section p.text-text-secondary {
  color: var(--color-text-secondary) !important;
}

.gg-trust-features-section .gg-trust-features-card {
  background-color: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.gg-trust-features-section .gg-trust-features-card:hover {
  border-color: rgba(212, 164, 55, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 164, 55, 0.12);
}

.gg-trust-features-section .gg-trust-features-icon-wrap {
  background-color: rgba(212, 164, 55, 0.16) !important;
  color: var(--color-primary) !important;
  box-shadow: inset 0 0 0 1px rgba(212, 164, 55, 0.28);
}

/* Category pills: gold from PHP + readable label (parent uses text-white / inline #fff) */
#advanced-filter-competitions [style*="background-color"] {
  color: var(--color-on-primary) !important;
}

article[data-price] div[style*="background-color"][style*="color: #fff"] {
  color: var(--color-on-primary) !important;
}

/**
 * Closed Prizes — dark hero, warm light grid, alternating dark / white cards.
 * Parent template: nera-competitions-standard/page-templates/closed-prizes-template.php
 * Scoped to .nera-closed-prizes-page only (no PHP changes).
 */

/* Hero band — stays on brand dark canvas, subtle separation from grid */
.nera-closed-prizes-page > section:first-of-type {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

/* Prizes grid section — light band; default tokens for empty state + even (light) cards */
.nera-closed-prizes-page > section:nth-of-type(2) {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);

  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Odd cards — dark premium panels on the light grid */
.nera-closed-prizes-page > section:nth-of-type(2) .grid > article.ncs-closed-prize-card:nth-child(odd) {
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;
  --color-surface: #141416;
  --color-gray-50: #1a1a1d;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: #2a2a2e;
  --color-gray-300: #3f3f42;
  --color-gray-400: #6b6862;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.45);

  border-color: rgba(255, 255, 255, 0.12) !important;
}

.nera-closed-prizes-page > section:nth-of-type(2) .grid > article.ncs-closed-prize-card:nth-child(even) {
  border-color: rgba(22, 21, 18, 0.08) !important;
}

/* Status badge — brand gold on both dark and white cards */
.nera-closed-prizes-page > section:nth-of-type(2) .grid > article.ncs-closed-prize-card > div.relative .absolute.top-2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
}

/* View Results CTA (title link is not .w-full; this anchor is) */
.nera-closed-prizes-page > section:nth-of-type(2) .grid > article.ncs-closed-prize-card a.inline-flex.w-full.justify-center {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.55);
  box-shadow: var(--shadow-primary);
}

.nera-closed-prizes-page > section:nth-of-type(2) .grid > article.ncs-closed-prize-card a.inline-flex.w-full.justify-center:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  color: var(--color-on-primary) !important;
  border-color: rgba(236, 191, 82, 0.7);
  transform: translateY(-1px);
}

/* Load More — sits in light section but uses bg-surface / dark tokens */
.nera-closed-prizes-page > section:nth-of-type(2) button.group.relative.px-8.py-4 {
  --color-text-primary: #1a1814;
  background-color: #ffffff !important;
  border-color: rgba(22, 21, 18, 0.12) !important;
  color: #1a1814 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nera-closed-prizes-page > section:nth-of-type(2) button.group.relative.px-8.py-4:hover:not(:disabled) {
  border-color: rgba(212, 164, 55, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/**
 * Entry List archive — mirrors Closed Prizes interleave treatment.
 * Parent template: nera-competitions-standard/page-templates/entry-list-listing-template.php
 * Scoped to .nera-entry-list-listing only (no PHP changes).
 */

.nera-entry-list-listing > section:first-of-type {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

.nera-entry-list-listing > section:nth-of-type(2) {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);

  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.nera-entry-list-listing > section:nth-of-type(2) .grid > article.ncs-entry-list-card:nth-child(odd) {
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;
  --color-surface: #141416;
  --color-gray-50: #1a1a1d;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: #2a2a2e;
  --color-gray-300: #3f3f42;
  --color-gray-400: #6b6862;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.45);

  border-color: rgba(255, 255, 255, 0.12) !important;
}

.nera-entry-list-listing > section:nth-of-type(2) .grid > article.ncs-entry-list-card:nth-child(even) {
  border-color: rgba(22, 21, 18, 0.08) !important;
}

.nera-entry-list-listing > section:nth-of-type(2) .grid > article.ncs-entry-list-card > div.relative .absolute.top-2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
}

.nera-entry-list-listing > section:nth-of-type(2) .grid > article.ncs-entry-list-card a.inline-flex.w-full.justify-center {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.55);
  box-shadow: var(--shadow-primary);
}

.nera-entry-list-listing > section:nth-of-type(2) .grid > article.ncs-entry-list-card a.inline-flex.w-full.justify-center:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  color: var(--color-on-primary) !important;
  border-color: rgba(236, 191, 82, 0.7);
  transform: translateY(-1px);
}

.nera-entry-list-listing > section:nth-of-type(2) button.group.relative.px-8.py-4 {
  --color-text-primary: #1a1814;
  background-color: #ffffff !important;
  border-color: rgba(22, 21, 18, 0.12) !important;
  color: #1a1814 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nera-entry-list-listing > section:nth-of-type(2) button.group.relative.px-8.py-4:hover:not(:disabled) {
  border-color: rgba(212, 164, 55, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/**
 * Dynamic Winners — mirrors Closed Prizes / Entry List interleave treatment.
 * Parent template: nera-competitions-standard/page-templates/winners-dynamic-template.php
 * Scoped to .nera-winners-dynamic-page only (no PHP changes).
 */

.nera-winners-dynamic-page > section:first-of-type {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

.nera-winners-dynamic-page > section:nth-of-type(2) {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);

  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.nera-winners-dynamic-page > section:nth-of-type(2) .grid > article:nth-child(odd) {
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;
  --color-surface: #141416;
  --color-gray-50: #1a1a1d;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: #2a2a2e;
  --color-gray-300: #3f3f42;
  --color-gray-400: #6b6862;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.45);

  border-color: rgba(255, 255, 255, 0.12) !important;
}

.nera-winners-dynamic-page > section:nth-of-type(2) .grid > article:nth-child(even) {
  border-color: rgba(22, 21, 18, 0.08) !important;
}

.nera-winners-dynamic-page > section:nth-of-type(2) .grid > article > div.relative .absolute.top-3 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
}

.nera-winners-dynamic-page > section:nth-of-type(2) button.group.relative.px-8.py-4 {
  --color-text-primary: #1a1814;
  background-color: #ffffff !important;
  border-color: rgba(22, 21, 18, 0.12) !important;
  color: #1a1814 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nera-winners-dynamic-page > section:nth-of-type(2) button.group.relative.px-8.py-4:hover:not(:disabled) {
  border-color: rgba(212, 164, 55, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/**
 * Product listing — mirrors Closed Prizes / Entry List.
 * Parent: product-listing-template.php and shop-template-bridge.php (Woo shop
 * uses the same layout; main includes .nera-shop-page on the bridge only).
 */
main.nera-product-listing > section:first-of-type {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

main.nera-product-listing #advanced-filter-competitions {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);

  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Single product page — light cream canvas, mirrors competitions listing band */
body.single-product .site-content {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
}

/* Related competitions — status badges match all-competitions gold treatment */
body.single-product .related-competitions .ncs-product-card > div.relative > .absolute.top-4.left-4 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
}

/* Single product tabs — prose on dark bg-surface; override typography plugin defaults */
body.single-product [data-product-tabs] .prose {
  --tw-prose-body: var(--color-text-secondary);
  --tw-prose-headings: var(--color-text-primary);
  --tw-prose-lead: var(--color-text-secondary);
  --tw-prose-bold: var(--color-text-primary);
  --tw-prose-counters: var(--color-text-secondary);
  --tw-prose-bullets: var(--color-text-secondary);
  --tw-prose-links: var(--color-primary);
  --tw-prose-quotes: var(--color-text-secondary);
  --tw-prose-quote-borders: var(--color-gray-300);
  --tw-prose-captions: var(--color-text-secondary);
}

/* Ticket trigger — dark gold text so it's readable on the cream trigger background */
.nera-ticket-trigger {
  color: var(--color-primary-dark);
}

/* Ticket dialog — light-mode tokens so text is legible on the white dialog background */
.nera-ticket-dialog {
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
}

/* Odd competition cards — dark panels on the light band */
main.nera-product-listing #advanced-filter-grid > article[data-price]:nth-child(odd) {
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;
  --color-surface: #141416;
  --color-gray-50: #1a1a1d;
  --color-gray-100: rgba(255, 255, 255, 0.08);
  --color-gray-200: #2a2a2e;
  --color-gray-300: #3f3f42;
  --color-gray-400: #6b6862;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.45);
}

main.nera-product-listing #advanced-filter-grid > article[data-price]:nth-child(odd) > div {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

main.nera-product-listing #advanced-filter-grid > article[data-price]:nth-child(even) > div {
  border-color: rgba(22, 21, 18, 0.08) !important;
}

/* Status badge (top-left on card image; shell is article > .bg-surface > .relative) */
main.nera-product-listing
  #advanced-filter-grid
  > article[data-price]
  > div
  > div.relative
  > .absolute.top-2.left-2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
}

/* ENTER NOW CTA — gold gradient + readable label (overrides inline category gradient) */
main.nera-product-listing #advanced-filter-grid > article[data-price] a.inline-flex.w-full {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.55);
  box-shadow: var(--shadow-primary);
}

main.nera-product-listing #advanced-filter-grid > article[data-price] a.inline-flex.w-full:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  color: var(--color-on-primary) !important;
  border-color: rgba(236, 191, 82, 0.7);
  transform: translateY(-1px);
}

/* Load more — light chrome in the warm band */
main.nera-product-listing #advanced-filter-competitions button.inline-flex.items-center.gap-2.px-8.py-3 {
  --color-text-primary: #1a1814;
  background-color: #ffffff !important;
  border: 1px solid rgba(22, 21, 18, 0.12) !important;
  color: #1a1814 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

main.nera-product-listing #advanced-filter-competitions button.inline-flex.items-center.gap-2.px-8.py-3:hover:not(:disabled) {
  border-color: rgba(212, 164, 55, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Trust strip after listing — subtle separation from light grid */
main.nera-product-listing > section:nth-of-type(3) {
  border-top: 1px solid rgba(212, 164, 55, 0.14);
}

/**
 * Cart page — gold gradient on the existing Shopping Cart header (woocommerce/cart/cart.php).
 * .w-screen.max-w-none is unique to this element within body.woocommerce-cart.
 */
body.woocommerce-cart .w-screen.max-w-none {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-surface: rgba(255, 255, 255, 0.18);
}

/* Cart icon box: white icon on gold (overrides text-primary = gold) */
body.woocommerce-cart .w-screen.max-w-none .rounded-xl {
  color: #ffffff !important;
}

/* Cart page main content — light cream canvas, mirrors product listing / single-product band */
body.woocommerce-cart .site-content {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
}

/* Blog listing — inherited parent `home.php`: cream canvas below hero (Posts page uses body.blog) */
body.blog main.nera-blog-home > div.bg-background-secondary.min-h-screen,
body.home main.nera-blog-home > div.bg-background-secondary.min-h-screen,
main.nera-blog-home > div.bg-background-secondary.min-h-screen {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
  color: #1a1814;
}

/* Blog listing category pills — match the gold filter chips used on competition listings */
main.nera-blog-home article > div.relative a.rounded-full,
main.nera-blog-home article > div.relative span.rounded-full {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

main.nera-blog-home article > div.relative a.rounded-full:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  color: var(--color-on-primary) !important;
}

/* Cart items — gold border, matches reference card style */
body.woocommerce-cart .ncs-cart-item {
  border: 1px solid rgba(212, 164, 55, 0.45);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(212, 164, 55, 0.07);
}

/* Empty cart — solid black card, overrides bg-surface/80 + backdrop-blur-sm */
body.woocommerce-cart .nera-cart-empty-state {
  background-color: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/**
 * Checkout page — gold gradient hero, mirrors cart page header.
 * .w-screen.max-w-none is unique to the checkout header within body.woocommerce-checkout.
 */
body.woocommerce-checkout .w-screen.max-w-none {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-surface: rgba(255, 255, 255, 0.18);
  --color-gray-200: rgba(255, 255, 255, 0.88);
  --color-gray-400: rgba(90, 65, 10, 0.65);
}

/* Icon box + active step label: white on gold (overrides text-primary = gold) */
body.woocommerce-checkout .w-screen.max-w-none .rounded-xl,
body.woocommerce-checkout .w-screen.max-w-none .text-primary {
  color: #ffffff !important;
}

/* Progress step — active icon: white circle + double-ring (white gap + dark-gold border) marks current step */
body.woocommerce-checkout .w-screen.max-w-none .bg-primary.rounded-full {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-primary-dark) !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px var(--color-primary-dark) !important;
}

/* Checkout main content — cream canvas, mirrors cart page */
body.woocommerce-checkout .site-content {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
}

/**
 * How It Works page — gold hero, consistent with closed-prizes / entry-list / winners.
 * Parent template: how-it-works-template.php (main.how-it-works-page).
 * Scoped to .how-it-works-page only — no PHP changes needed.
 */
.how-it-works-page .how-it-works-section {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  --particle-color: rgba(212, 164, 55, 0.18);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

/* CTA button on gold section — override gold-on-gold; background-image reset clears Tailwind gradient */
.how-it-works-page .how-it-works-section .text-center a {
  background-image: none;
  background-color: #141416;
  color: #f4f1ea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.how-it-works-page .how-it-works-section .text-center a:hover {
  background-color: #1e1e21;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Gray remap turns from-gray-50 dark — hide overlay so gold background shows through */
.how-it-works-page .how-it-works-section > .absolute.bg-gradient-to-b {
  display: none;
}

/* Step number badges — force brand gold on all four steps */
.how-it-works-page .how-it-works-step > .relative > .absolute.top-0.right-0 {
  background: linear-gradient(to bottom right, var(--color-accent), var(--color-primary-dark)) !important;
  color: var(--color-on-primary) !important;
}

/* Draw Process — warm cream band (section 2 of 4) */
.how-it-works-page > section:nth-of-type(2) {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Draw Process prose text — direct rule; prose-p:variant has no compiled output in parent bundle */
.how-it-works-page > section:nth-of-type(2) .prose p {
  color: #6b6760;
}
.how-it-works-page > section:nth-of-type(2) .prose strong {
  color: #1a1814;
}

/* Transparency & Fairness — warm cream band (section 4 of 4) */
.how-it-works-page > section:nth-of-type(4) {
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  border-top: 1px solid rgba(22, 21, 18, 0.06);
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/**
 * Single post — inherited parent `single-post.php` (styled from child only).
 * Cream canvas; gold no-image header; hero chips; dark related band.
 */

body.single-post #primary.site-main.bg-background-secondary.min-h-screen {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f4f2ed 0%, #f6f6f8 48%, #efede8 100%);
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #a09c96;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1);
  color: #1a1814;
  font-family: var(--font-body, 'Space Grotesk', -apple-system, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No featured image — gold hero (matches product listing section 1) */
body.single-post #primary > article > section.border-b.border-gray-200.bg-background-secondary {
  background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
}

/* Category / read-time chips on gold header — glass pills */
body.single-post #primary > article > section.border-b.border-gray-200.bg-background-secondary a.rounded-full,
body.single-post #primary > article > section.border-b.border-gray-200.bg-background-secondary span.rounded-full {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.single-post #primary > article > section.border-b.border-gray-200.bg-background-secondary a.rounded-full:hover {
  background: rgba(0, 0, 0, 0.42) !important;
  color: #ffffff !important;
}

/* Post body — transparent so cream main shows through */
body.single-post #primary > article > div.bg-background-secondary.py-10 {
  background: transparent;
  --color-text-primary: #0d0d0e;
  --color-text-secondary: rgba(13, 13, 14, 0.65);
  --color-primary: var(--color-primary-dark);
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: rgba(0, 0, 0, 0.12);
  color: #0d0d0e;
}

/* Hero image — category chips brand gold */
body.single-post #primary > article > section.relative a.rounded-full,
body.single-post #primary > article > section.relative span.rounded-full {
  background: var(--color-primary) !important;
  color: #0a0a0a !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Related articles — dark section band; cards match blog listing (light surface) */
body.single-post #primary section[aria-label='Related articles'] {
  background: var(--color-background-light);
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  /* Section chrome (headings / “View more”) stays light-on-dark */
  --color-text-primary: #f4f1ea;
  --color-text-secondary: #a6a39c;
  --color-primary: #d4a437;
  --color-primary-dark: #a8821f;
}

/* Related cards — same light card shell as blog listing `post-card` standard variant */
body.single-post #primary section[aria-label='Related articles'] .grid > article {
  background: #ffffff !important;
  border: 1px solid rgba(22, 21, 18, 0.08) !important;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  /* Inside-card tokens (parent dark-tone cards use gray utilities; remap here) */
  --color-text-primary: #1a1814;
  --color-text-secondary: #6b6760;
  --color-surface: #ffffff;
  --color-gray-50: #faf9f7;
  --color-gray-100: rgba(0, 0, 0, 0.06);
  --color-gray-200: #e5e2dd;
  --color-gray-300: #cec9c2;
  --color-gray-400: #6b6760;
}

body.single-post #primary section[aria-label='Related articles'] .grid > article:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(22, 21, 18, 0.12) !important;
}

/* Titles + links — dark on light; gold on card hover */
body.single-post #primary section[aria-label='Related articles'] .grid > article h2,
body.single-post #primary section[aria-label='Related articles'] .grid > article h2 a {
  color: #1a1814 !important;
}

body.single-post #primary section[aria-label='Related articles'] .grid > article:hover h2,
body.single-post #primary section[aria-label='Related articles'] .grid > article:hover h2 a {
  color: var(--color-primary) !important;
}

/* Meta + excerpt — parent dark tone uses text-gray-400 */
body.single-post #primary section[aria-label='Related articles'] .grid > article p.text-gray-400,
body.single-post #primary section[aria-label='Related articles'] .grid > article .line-clamp-3.text-gray-400 {
  color: #6b6760 !important;
}

/* “No image” placeholder — match listing neutral block */
body.single-post #primary section[aria-label='Related articles'] .grid > article a.bg-gray-700,
body.single-post #primary section[aria-label='Related articles'] .grid > article .bg-gray-700 {
  background-color: #e5e2dd !important;
}

body.single-post #primary section[aria-label='Related articles'] .grid > article .bg-gray-700 .text-gray-400 {
  color: #6b6760 !important;
}

/* Category pills — same gold treatment as blog listing cards */
body.single-post #primary section[aria-label='Related articles'] article > div.relative a.rounded-full,
body.single-post #primary section[aria-label='Related articles'] article > div.relative span.rounded-full {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
  color: var(--color-on-primary) !important;
  border: 1px solid rgba(212, 164, 55, 0.62);
  box-shadow: 0 8px 20px rgba(212, 164, 55, 0.24);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.single-post #primary section[aria-label='Related articles'] article > div.relative a.rounded-full:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary)) !important;
  color: var(--color-on-primary) !important;
}

/* =====================================================
   Instant Win Prizes — remap light palette to brand
   ===================================================== */

.instant-wins-section {
  /* amber → brand gold */
  --color-amber-50:  var(--color-surface);           /* from-/bg-amber-50: dark card */
  --color-amber-100: rgba(212, 164, 55, 0.10);       /* bg-amber-100: subtle gold tint */
  --color-amber-200: rgba(212, 164, 55, 0.28);       /* border-amber-200: gold border */
  --color-amber-300: rgba(212, 164, 55, 0.45);       /* border-amber-300: stronger gold border */
  --color-amber-400: var(--color-primary-dark);      /* gradient from-stop */
  --color-amber-500: var(--color-primary);           /* gradient mid-stop */
  --color-amber-600: var(--color-primary);           /* icons + "Won by" label */
  --color-amber-700: var(--color-accent);            /* "WON" label → lighter gold */

  /* yellow → brand gold */
  --color-yellow-50:  var(--color-surface);
  --color-yellow-400: var(--color-primary-dark);
  --color-yellow-500: var(--color-accent);           /* to-yellow-500 gradient end */

  /* emerald → brand success */
  --color-emerald-50:  var(--color-success-bg);      /* available icon bg */
  --color-emerald-200: var(--color-success-border);  /* available icon border */
  --color-emerald-600: var(--color-success);         /* gift icon */
  --color-emerald-700: var(--color-success-text);    /* "AVAILABLE" label */
}

/* Skeleton loader: override hardcoded light-gray gradient */
.instant-wins-section .instant-wins-loading [class*="skeleton-shimmer"] {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.05) 75%
  ) !important;
}

/* Toggle header button: dark brand surface
   warning-bg is rgba(247,127,0,0.15) — semi-transparent, looks salmon on the product page's
   lighter background, making gray-900 off-white (#f4f1ea) text invisible (~1.1:1 contrast). */
.instant-wins-section #instant-wins-toggle-btn {
  background-image: none !important;
  background-color: var(--color-surface) !important;
  box-shadow:
    0 0 0 1px rgba(212, 164, 55, 0.35),
    0 4px 20px rgba(212, 164, 55, 0.10) !important;
  animation: none !important;
}

/* Remove blur glow disc behind star icon (designed for light bg, looks muddy on dark) */
.instant-wins-section #instant-wins-toggle-btn .absolute.inset-0.rounded-full.blur-md {
  display: none;
}
