/* ==============================================================================
   BOLDLINE AI - UNIFIED KIDS DESIGN SYSTEM ("THE MESSY ART STUDIO")
   ==============================================================================
   Consolidated Single Theme:
   * No inline CSS anywhere
   * No page-specific modifiers (bundle-, catalog-, cart-, admin-)
   * One generalized, physical-craft design system based on the Kids Theme
   ============================================================================== */

/* ==============================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ============================================================================== */
:root {
  /* Surface & Base Materials */
  --bg-desk: #FFFDF7;                       /* Warm buttermilk cardstock */
  --bg-color: #FFFDF7;
  --paper-white: #FFFFFF;                   /* Pure heavy cotton drawing sheet */
  --panel-bg: #FFFFFF;
  --ink-charcoal: #24292F;                  /* Deep slate watercolor ink (WCAG AAA) */
  --text-color: #24292F;
  --ink-muted: #57606A;                     /* Soft graphite pencil */
  --ink-faint: #8C959F;                     /* Faint technical notes */

  /* Tempera Paints & Crayola Pigments */
  --crayola-strawberry: #FF5964;            /* Primary CTA & hot alerts */
  --crayola-strawberry-shadow: #D63945;     /* 3D sticker bevel base */
  --accent-color: #FF5964;
  --crayola-tangerine: #FF8C42;             /* Warm paint drops & brand accents */
  --crayola-tangerine-shadow: #D96A23;
  --crayola-banana: #FFD151;                /* Highlights, washi tape, star ratings */
  --crayola-banana-shadow: #DDB030;
  --crayola-sunshine: #FFD151;
  --accent-glow: #FFD151;
  --crayola-meadow: #38B000;                /* Success states, print specs */
  --crayola-meadow-shadow: #2B8500;
  --crayola-ultramarine: #3A86FF;           /* Secondary buttons, water splashes */
  --crayola-ultramarine-shadow: #2167DB;
  --crayola-lavender: #8338EC;              /* Creative accents */
  --crayola-lavender-shadow: #6322BB;
  --crayola-bubblegum: #FF70A6;             /* Playful interaction ripples */
  --crayola-bubblegum-shadow: #D64A7E;

  /* Material Elevation & Shadows */
  --shadow-paper: 0 4px 14px rgba(90, 60, 30, 0.07), 0 1px 3px rgba(90, 60, 30, 0.04);
  --shadow-paper-lift: 0 16px 36px rgba(100, 65, 30, 0.14), 0 4px 10px rgba(100, 65, 30, 0.06);
  --shadow-style: 0 4px 14px rgba(90, 60, 30, 0.07), 0 1px 3px rgba(90, 60, 30, 0.04);
  --shadow-hover: 0 16px 36px rgba(100, 65, 30, 0.14), 0 4px 10px rgba(100, 65, 30, 0.06);
  --shadow-sticker: 0 4px 0 var(--sticker-shade, rgba(0,0,0,0.15)), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-sticker-hover: 0 6px 0 var(--sticker-shade, rgba(0,0,0,0.15)), 0 12px 20px rgba(0, 0, 0, 0.08);

  /* Organic Squircle Silhouettes */
  --border-color: rgba(220, 210, 195, 0.5);
  --border-style: solid;
  --border-width: 1px;
  --border-radius: 24px;
  --radius-sheet: 26px 20px 24px 22px / 22px 26px 20px 24px;
  --radius-sheet-alt: 20px 26px 22px 24px / 26px 22px 24px 20px;
  --radius-sticker-pill: 999px;
  --radius-sticker-soft: 20px;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Button squish animation */
  --button-hover: translateY(-2px) scale(1.02);
  --button-active: translateY(3px) scale(0.97);
}

/* ==============================================================================
   2. GLOBAL RESET & BASE STYLES
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-desk);
  color: var(--ink-charcoal);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-charcoal);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; font-weight: 800; }
h4 { font-size: 1.2rem; font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 700; }

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--crayola-ultramarine);
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--crayola-ultramarine-shadow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base App Root */
.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   3. MESSY ART-STUDIO BACKGROUND (VIGNETTE & SPLATTERS)
   ============================================================================== */
.messy-canvas-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.art-splatter {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
}

@keyframes blobDriftSlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5px, -8px) scale(1.03);
  }
  100% {
    transform: translate(4px, 6px) scale(0.97);
  }
}

@keyframes blobDriftAlt {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6px, 8px) scale(0.98);
  }
  100% {
    transform: translate(-6px, -5px) scale(1.04);
  }
}

.splatter-tl {
  top: -20px;
  left: -20px;
  width: 340px;
  height: 340px;
  animation: blobDriftSlow 14s ease-in-out infinite alternate;
}

.splatter-tr {
  top: -20px;
  right: -20px;
  width: 360px;
  height: 360px;
  animation: blobDriftAlt 16s ease-in-out infinite alternate;
}

.splatter-hero-l {
  top: 20vh;
  left: 1.5%;
  width: 220px;
  height: 220px;
  animation: blobDriftAlt 12s ease-in-out infinite alternate;
}

.splatter-hero-r {
  top: 25vh;
  right: 2%;
  width: 240px;
  height: 240px;
  animation: blobDriftSlow 13s ease-in-out infinite alternate;
}

.splatter-ml {
  top: 50vh;
  left: -25px;
  width: 280px;
  height: 280px;
  margin-top: -140px;
  animation: blobDriftSlow 15s ease-in-out infinite alternate;
}

.splatter-mr {
  top: 55vh;
  right: -25px;
  width: 290px;
  height: 290px;
  margin-top: -145px;
  animation: blobDriftAlt 17s ease-in-out infinite alternate;
}

.splatter-bl {
  bottom: -20px;
  left: -20px;
  width: 300px;
  height: 300px;
  animation: blobDriftAlt 13s ease-in-out infinite alternate;
}

.splatter-br {
  bottom: -20px;
  right: -20px;
  width: 320px;
  height: 320px;
  animation: blobDriftSlow 15s ease-in-out infinite alternate;
}

/* Wide screens: the content column stays 1200px, so spread the splatters across the whole
   margin beside it (--gutter) instead of hugging the viewport edges, and grow them with it. */
@media (min-width: 1500px) {
  .messy-canvas-decor {
    --gutter: calc((100vw - 1200px) / 2);
  }

  .splatter-tl { left: calc(var(--gutter) * 0.05 - 40px); top: -30px; width: clamp(340px, 19vw, 520px); height: clamp(340px, 19vw, 520px); }
  .splatter-hero-l { left: calc(var(--gutter) * 0.55); top: 18vh; width: clamp(220px, 13vw, 360px); height: clamp(220px, 13vw, 360px); }
  .splatter-ml { left: calc(var(--gutter) * 0.12); top: 52vh; width: clamp(280px, 16vw, 440px); height: clamp(280px, 16vw, 440px); }
  .splatter-bl { left: calc(var(--gutter) * 0.5); bottom: -30px; width: clamp(300px, 17vw, 460px); height: clamp(300px, 17vw, 460px); }

  .splatter-tr { right: calc(var(--gutter) * 0.3); top: -40px; width: clamp(360px, 19vw, 520px); height: clamp(360px, 19vw, 520px); }
  .splatter-hero-r { right: calc(var(--gutter) * 0.04); top: 30vh; width: clamp(240px, 14vw, 380px); height: clamp(240px, 14vw, 380px); }
  .splatter-mr { right: calc(var(--gutter) * 0.5); top: 60vh; width: clamp(290px, 15vw, 420px); height: clamp(290px, 15vw, 420px); }
  .splatter-br { right: calc(var(--gutter) * 0.02 - 30px); bottom: -30px; width: clamp(320px, 18vw, 480px); height: clamp(320px, 18vw, 480px); }
}

/* ==============================================================================
   4. NAVIGATION BAR (FROSTED GLASS CRAFT RIBBON)
   ============================================================================== */
.theme-showcase-nav,
.nav-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(90, 60, 30, 0.04);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-showcase-nav.compact-nav {
  padding: 0.5rem 1.5rem;
}

.theme-title-logo,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  letter-spacing: -0.02em;
}

.theme-title-logo i,
.nav-brand i {
  font-size: 1.7rem;
  color: var(--crayola-tangerine);
  transform: rotate(-6deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Washi Tape Nav Button */
.btn-washi-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-charcoal);
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 238, 179, 0.85);
  border: 1px dashed rgba(210, 180, 110, 0.5);
  box-shadow: 0 2px 5px rgba(100, 70, 30, 0.06);
  transform: rotate(-1deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.btn-washi-nav:hover {
  transform: rotate(1deg) translateY(-2px);
  background: #FFE899;
}

/* Log out is a POST form; its button looks like the other nav links */
.nav-logout-form {
  display: contents;
}

button.btn-washi-nav {
  font-family: inherit;
  cursor: pointer;
}

/* Die-Cut Sticker Cart Pill */
.btn-sticker-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFF;
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  background: var(--crayola-strawberry);
  border: 2.5px solid #FFFFFF;
  border-radius: var(--radius-sticker-pill);
  box-shadow: 0 4px 0 var(--crayola-strawberry-shadow), 0 8px 16px rgba(255, 89, 100, 0.3);
  transform: rotate(1deg);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}

.btn-sticker-cart:hover {
  transform: rotate(-1deg) scale(1.04) translateY(-1px);
  box-shadow: 0 5px 0 var(--crayola-strawberry-shadow), 0 10px 20px rgba(255, 89, 100, 0.4);
}

.btn-sticker-cart:active {
  transform: scale(0.96) translateY(3px);
  box-shadow: 0 1px 0 var(--crayola-strawberry-shadow), 0 4px 8px rgba(255, 89, 100, 0.2);
}

.badge-pill {
  background: #FFFFFF;
  color: var(--crayola-strawberry);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* ==============================================================================
   5. DAILY SHOWCASE & ABOVE-THE-FOLD HERO (FLUID VIEWPORT SCALING)
   ============================================================================== */
.daily-showcase-stage {
  position: relative;
  width: 100%;
  max-width: clamp(480px, 46vw + 14vh, 740px);
  margin: auto;
  padding: clamp(0.4rem, 1.6vh, 2rem) clamp(0.75rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.daily-showcase-header {
  text-align: center;
  margin-bottom: clamp(0.35rem, 1.4vh, 1rem);
}

.daily-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw + 0.7vh, 2.25rem);
  font-weight: 900;
  color: var(--ink-charcoal);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: clamp(0.2rem, 0.6vh, 0.45rem) 0 clamp(0.15rem, 0.4vh, 0.35rem) 0;
}

.daily-showcase-desc {
  font-size: clamp(0.85rem, 0.9vw + 0.3vh, 1.05rem);
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.35;
  max-width: clamp(380px, 50vw, 560px);
}

.daily-showcase-card {
  --card-padding: clamp(14px, 2vw, 22px);
  --card-radius: clamp(28px, 3.6vw, 38px);
  --frame-radius: calc(var(--card-radius) - var(--card-padding));
  --frame-padding: clamp(8px, 1.2vw, 12px);
  --image-radius: max(3px, calc(var(--frame-radius) - var(--frame-padding)));

  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  background: var(--paper-white);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-paper-lift);
  border: 1px solid rgba(220, 210, 195, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.daily-sheet-frame {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  background: #FAF8F5;
  border-radius: var(--frame-radius);
  border: 1.5px dashed rgba(220, 210, 195, 0.75);
  padding: var(--frame-padding);
  margin: 0 0 var(--card-padding) 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.daily-sheet-image {
  height: clamp(230px, 48vh, 560px);
  max-height: clamp(230px, 48vh, 560px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: #FFFFFF;
  border-radius: var(--image-radius);
  box-shadow: 0 1px 3px rgba(90, 60, 30, 0.04);
}

.daily-showcase-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.daily-showcase-actions .btn-sticker {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: clamp(0.95rem, 1vw + 0.3vh, 1.15rem) !important;
  padding: clamp(0.65rem, 1.3vh, 0.95rem) 1.5rem !important;
  box-sizing: border-box !important;
}

.hero-band {
  position: relative;
  background: transparent;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  text-align: center;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--ink-charcoal);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subhead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-muted);
  max-width: 760px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.highlight-scribble {
  position: relative;
  display: inline-block;
  color: var(--crayola-strawberry);
}

.highlight-scribble::after {
  content: '';
  position: absolute;
  left: -4%;
  bottom: -6px;
  width: 108%;
  height: 14px;
  background: var(--crayola-banana);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.5deg);
  opacity: 0.7;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  background: #FFFFFF;
  border-radius: var(--radius-sticker-pill);
  box-shadow: 0 2px 8px rgba(90, 60, 30, 0.08);
  color: var(--ink-charcoal);
}

/* ==============================================================================
   6. LAYOUT SYSTEM & CONTAINERS
   ============================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-md {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-semibold { font-weight: 700; }
.text-danger { color: #DC2626; }
.text-success { color: #16A34A; }

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* ==============================================================================
   7. CARDS & PAPER SHEET SYSTEM (NO PAGE-SPECIFIC MODIFIERS)
   ============================================================================== */
.card,
.paper-sheet-card {
  position: relative;
  background: var(--paper-white);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-paper);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(220, 210, 195, 0.5);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.card:hover,
.paper-sheet-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-paper-lift);
  z-index: 10;
}

/* Cards holding data tables stay put: lifting them on hover shifts rows under the cursor */
.card:has(.data-table):hover {
  transform: none;
  box-shadow: var(--shadow-paper);
}

/* Alternate slight tilt for playful organic craft feel in grids */
.cards-grid > .card:nth-child(3n + 1),
.cards-grid > .paper-sheet-card:nth-child(3n + 1) {
  border-radius: var(--radius-sheet);
}
.cards-grid > .card:nth-child(3n + 2),
.cards-grid > .paper-sheet-card:nth-child(3n + 2) {
  border-radius: var(--radius-sheet-alt);
}

.card-washi-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  background: rgba(255, 235, 160, 0.95);
  color: #6B5200;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 1rem;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0% 50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  z-index: 5;
}

.drawing-frame,
.preview-frame {
  background: #FAFAF7;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin-bottom: 1.25rem;
  position: relative;
  border: 1.5px dashed rgba(200, 190, 175, 0.6);
  text-decoration: none;
}

.drawing-frame img,
.preview-frame img,
.preview-image {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-frame-lg {
  min-height: 440px;
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
}

.preview-frame-lg img,
.preview-frame-lg .preview-image {
  max-height: 440px;
}

.print-helper-frame,
#pdf-print-helper-frame {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  border: none !important;
  outline: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

.card:hover .drawing-frame img,
.card:hover .preview-frame img {
  transform: scale(1.05);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  margin-bottom: 0.35rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--crayola-strawberry);
}

.card-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.card-meta-pill {
  background: #FFFDF7;
  border: 1px solid #E0D5C5;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-panel {
  background: var(--paper-white);
  border-radius: var(--radius-sheet);
  border: 1px solid rgba(220, 210, 195, 0.5);
  padding: 2rem;
  box-shadow: var(--shadow-paper);
}

.sidebar-panel h2,
.sidebar-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border-bottom: 1.5px dashed rgba(220, 210, 195, 0.6);
  padding-bottom: 0.75rem;
}

/* ==============================================================================
   8. DIE-CUT STICKER BUTTONS & ACTIONS
   ============================================================================== */
.btn-sticker,
.neo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sticker-pill);
  border: 2.5px solid #FFFFFF;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s;
  user-select: none;
}

.btn-sticker-primary,
.neo-btn.btn-primary {
  background: var(--crayola-strawberry);
  --sticker-shade: var(--crayola-strawberry-shadow);
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--crayola-strawberry-shadow), 0 8px 16px rgba(255, 89, 100, 0.25);
}

.btn-sticker-primary:hover,
.neo-btn.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 0 var(--crayola-strawberry-shadow), 0 12px 20px rgba(255, 89, 100, 0.35);
  color: #FFFFFF;
}

.btn-sticker-primary:active,
.neo-btn.btn-primary:active {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 1px 0 var(--crayola-strawberry-shadow), 0 4px 6px rgba(255, 89, 100, 0.2);
}

.btn-sticker-secondary,
.neo-btn.btn-secondary {
  background: var(--crayola-ultramarine);
  --sticker-shade: var(--crayola-ultramarine-shadow);
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--crayola-ultramarine-shadow), 0 8px 16px rgba(58, 134, 255, 0.25);
}

.btn-sticker-secondary:hover,
.neo-btn.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 0 var(--crayola-ultramarine-shadow), 0 12px 20px rgba(58, 134, 255, 0.35);
  color: #FFFFFF;
}

.btn-sticker-outline,
.neo-btn.btn-light {
  background: #FFFFFF;
  border: 2px dashed rgba(200, 180, 160, 0.8);
  color: var(--ink-charcoal);
  box-shadow: 0 3px 6px rgba(90, 60, 30, 0.05);
}

.btn-sticker-outline:hover,
.neo-btn.btn-light:hover {
  background: #FFFDF5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(90, 60, 30, 0.09);
  color: var(--ink-charcoal);
}

.btn-sticker-danger,
.neo-btn.btn-danger {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #EF4444;
}

.btn-sparkle {
  background: linear-gradient(135deg, var(--crayola-banana), #FFAA00);
  color: var(--ink-charcoal);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 0 #DDB030, 0 8px 16px rgba(255, 209, 81, 0.3);
}

.btn-sm {
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
}

.btn-lg {
  padding: 1rem 2.2rem !important;
  font-size: 1.15rem !important;
}

.btn-full-width,
.form-full-width button {
  width: 100% !important;
}

/* ==============================================================================
   9. TOPIC PILLS & WASHI FILTER TABS
   ============================================================================== */
.topic-pills-rail {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.topic-pills-rail a {
  text-decoration: none;
}

.washi-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.washi-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-charcoal);
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  background: #FFF275;
  box-shadow: 0 3px 6px rgba(80, 50, 20, 0.07);
  clip-path: polygon(
    0% 4px, 4px 0%, calc(100% - 4px) 0%, 100% 4px,
    calc(100% - 4px) 50%, 100% calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 0% calc(100% - 4px), 4px 50%
  );
  transform: rotate(-1deg);
  transition: transform 0.2s;
}

.washi-tab:hover {
  transform: scale(1.05) rotate(0deg);
}

/* Icon Color Accents */
.icon-strawberry { color: var(--crayola-strawberry); }
.icon-tangerine { color: var(--crayola-tangerine); }
.icon-banana { color: var(--crayola-banana); }
.icon-meadow { color: var(--crayola-meadow); }
.icon-ultramarine { color: var(--crayola-ultramarine); }
.icon-lavender { color: var(--crayola-lavender); }
.icon-muted { color: var(--ink-muted); }

.fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--crayola-tangerine);
}

.card-guide-section {
  background: var(--paper-white);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1.5px solid rgba(220, 210, 195, 0.7);
  box-shadow: var(--shadow-paper);
}

.text-banner-pill {
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--crayola-strawberry);
  color: #FFF;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sticker-pill);
  text-transform: uppercase;
  display: inline-block;
}

.banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ==============================================================================
   10. BADGES, STAMPS & TAGS
   ============================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sticker-pill);
}

.badge-success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-info {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #7DD3FC;
}

.badge-neutral {
  background: #E2E8F0;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.badge-danger {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.badge-primary {
  background: var(--crayola-strawberry);
  color: #FFFFFF;
}

.badge-PENDING { background-color: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.badge-GENERATING { background-color: #E0F2FE; color: #0369A1; border: 1px solid #7DD3FC; }
.badge-FAILED { background-color: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
.badge-COMPLETED { background-color: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }

.stamp-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--crayola-meadow);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.position-badge {
  width: 32px;
  height: 32px;
  background: var(--crayola-banana);
  color: var(--ink-charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ==============================================================================
   11. ALERTS & PINNED CRAFT BANNERS
   ============================================================================== */
.craft-alert-banner {
  position: relative;
  background: #FFFDF0;
  border: 1.5px dashed rgba(225, 205, 175, 0.8);
  border-radius: 24px;
  padding: 1.75rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 14px rgba(90, 60, 30, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.craft-alert-pin {
  position: absolute;
  top: -11px;
  left: 2.5rem;
  background: rgba(255, 180, 160, 0.95);
  padding: 0.2rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A2818;
  clip-path: polygon(0% 0%, 100% 0%, 96% 50%, 100% 100%, 0% 100%, 4% 50%);
  transform: rotate(-1.5deg);
}

.craft-alert-icon {
  font-size: 2.5rem;
  color: var(--crayola-tangerine);
  flex-shrink: 0;
}

.craft-alert-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--ink-charcoal);
}

.craft-alert-content p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.neo-alert {
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.neo-alert.alert-error {
  background: #FEE2E2;
  border: 1.5px solid #FCA5A5;
  color: #DC2626;
}

.neo-alert.alert-success {
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
  color: #15803D;
}

.neo-alert.alert-warning {
  background: #FEF3C7;
  border: 1.5px solid #FCD34D;
  color: #92400E;
}

/* ==============================================================================
   12. LISTS, ORDER ROWS & TABLES
   ============================================================================== */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper-white);
  border: 1px solid rgba(220, 210, 195, 0.5);
  border-radius: 18px;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-paper);
}

.list-row .thumbnail-sm {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #FAFAF7;
  border-radius: 12px;
  border: 1px dashed rgba(200, 190, 175, 0.6);
  flex-shrink: 0;
}

.list-row .thumbnail-md {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #FAFAF7;
  border-radius: 14px;
  border: 1px dashed rgba(200, 190, 175, 0.6);
  flex-shrink: 0;
}

.list-row .icon-frame {
  width: 70px;
  height: 70px;
  background: #FFFDF0;
  border-radius: 12px;
  border: 1px dashed rgba(200, 190, 175, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--crayola-tangerine);
  flex-shrink: 0;
}

.list-row .item-details {
  flex: 1;
}

.list-row .item-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.list-row .item-details p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.list-row .item-price {
  font-weight: 800;
  color: var(--crayola-strawberry);
  font-size: 1.05rem;
}

.nested-list-section {
  margin-top: 1.5rem;
  border-top: 1.5px dashed rgba(220, 210, 195, 0.6);
  padding-top: 1.25rem;
}

.nested-list-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.nested-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.summary-divider {
  border: none;
  border-top: 1.5px dashed rgba(220, 210, 195, 0.6);
  margin: 0.5rem 0;
}

.summary-row.grand-total {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink-charcoal);
}

.summary-subtext {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  line-height: 1.4;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  min-width: 600px;
}

.comparison-table th {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  border-bottom: 2px solid rgba(220, 210, 195, 0.8);
}

.comparison-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px dashed rgba(220, 210, 195, 0.6);
  font-size: 0.95rem;
}

.comparison-table .highlight-col {
  background: rgba(58, 134, 255, 0.04);
  font-weight: 700;
}

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

/* Newsletter & Lead Magnet Panel */
.newsletter-panel {
  background: linear-gradient(135deg, #FFFDF7, #FFF8EB);
  border-radius: 28px;
  padding: 2.75rem 2rem;
  border: 2px solid var(--crayola-sunshine);
  box-shadow: 0 12px 35px rgba(255, 209, 81, 0.15);
  text-align: center;
}

.newsletter-form {
  max-width: 540px;
  margin: 0 auto;
}

.subtext-shield {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

.card-icon-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.pill-box-muted {
  background: #FFFDF7;
  border: 1.5px dashed rgba(220, 210, 195, 0.8);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.pill-box-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

/* Data Table (Admin) */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(220, 210, 195, 0.5);
}

.data-table th {
  background: #FFFDF7;
  padding: 1rem 1.25rem;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1.5px solid rgba(220, 210, 195, 0.6);
  text-align: left;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(220, 210, 195, 0.3);
  font-size: 0.92rem;
  vertical-align: middle;
}

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

.table-responsive {
  overflow-x: auto;
  border-radius: 18px;
}

.table-preview-img-xs {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(220, 210, 195, 0.8);
  background: #FFF;
}

.table-preview-pending {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #F1F5F9;
  border: 1.5px dashed #CBD5E1;
  color: #64748B;
}

.table-preview-pending.status-generating {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #0369A1;
}

.table-preview-pending.status-failed {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #DC2626;
}

.form-inline-curate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sticker-pill);
  border: 1.5px solid rgba(220, 210, 195, 0.8);
  background: var(--paper-white);
  color: var(--ink-charcoal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.12s;
}

.pagination-btn:hover {
  transform: translateY(-1px);
  background: #FFFDF7;
}

.pagination-btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sticker-pill);
  border: 1px solid #E2E8F0;
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 0.9rem;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ==============================================================================
   13. FORMS, INPUTS & CONTROLS
   ============================================================================== */
.form-panel {
  background: var(--paper-white);
  border-radius: var(--radius-sheet);
  border: 1px solid rgba(220, 210, 195, 0.5);
  padding: 2.25rem;
  box-shadow: var(--shadow-paper);
}

.form-field,
.form-group {
  margin-bottom: 1.5rem;
}

.form-label,
label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-charcoal);
  margin-bottom: 0.45rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 1.5px solid rgba(220, 210, 195, 0.8);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-charcoal);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--crayola-ultramarine);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.input-pill {
  border-radius: var(--radius-sticker-pill) !important;
}

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1.5px dashed rgba(220, 210, 195, 0.6);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.form-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Row selection column in admin data tables */
.col-select {
  width: 48px;
}

/* Suggested pages list (Admin) */
.suggested-pages-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.suggested-page-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-num {
  font-weight: 800;
  color: var(--ink-muted);
  width: 28px;
  text-align: right;
  font-size: 0.9rem;
}

.page-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-title-input {
  font-weight: 700;
}

.btn-remove-page-row {
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.15s;
}

.btn-remove-page-row:hover {
  color: #DC2626;
}

/* ==============================================================================
   14. EMPTY STATES & GATED PANELS
   ============================================================================== */
.empty-state-panel {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--paper-white);
  border: 2px dashed rgba(220, 210, 195, 0.8);
  border-radius: 20px;
  color: var(--ink-muted);
}

.empty-state-panel i {
  font-size: 3rem;
  color: #CBD5E1;
  margin-bottom: 1rem;
  display: block;
}

.empty-state-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ink-charcoal);
}

.auth-gated-box,
.credits-gated-box {
  background: #FFFDF7;
  border: 2px dashed rgba(220, 210, 195, 0.9);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.gated-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.gated-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  margin-bottom: 0.5rem;
}

.gated-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

.gated-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==============================================================================
   15. BREADCRUMB NAVIGATION
   ============================================================================== */
.breadcrumb-nav {
  padding-top: 1.5rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.breadcrumb-list a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #A0AEC0;
}

.breadcrumb-current {
  color: var(--crayola-strawberry);
}

/* ==============================================================================
   16. REMIX STUDIO & SHOWCASE COMPONENTS
   ============================================================================== */
.remix-panel {
  background: var(--paper-white);
  border-radius: var(--radius-sheet);
  border: 1.5px solid rgba(220, 210, 195, 0.6);
  box-shadow: var(--shadow-paper);
  padding: 2rem;
  margin-top: 2rem;
}

.remix-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.remix-base-drawing-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #FFFDF7;
  border-radius: 16px;
  border: 1.5px dashed rgba(220, 210, 195, 0.8);
}

.remix-base-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #FFF;
  border: 1px solid #E0D5C5;
}

.remix-prompt-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.remix-prompt-bar input {
  flex: 1;
  min-width: 260px;
}

.preset-pills-rail {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(220, 210, 195, 0.5);
  padding-bottom: 0.4rem;
}

.spec-label {
  color: var(--ink-muted);
}

.spec-value {
  color: var(--ink-charcoal);
  font-weight: 700;
}

.upsell-banner {
  background: linear-gradient(135deg, #FFFDF7, #FFF8EB);
  border-radius: 24px;
  padding: 2rem;
  border: 2px solid var(--crayola-sunshine);
  box-shadow: 0 8px 30px rgba(255, 209, 81, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.faq-panel {
  background: var(--paper-white);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1.5px solid rgba(220, 210, 195, 0.7);
  box-shadow: var(--shadow-paper);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-top: 1px dashed rgba(220, 210, 195, 0.5);
  padding-top: 1rem;
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  margin-bottom: 0.35rem;
}

.faq-answer {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Modal Preview Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 41, 47, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--paper-white);
  border-radius: var(--radius-sheet);
  border: 2px solid rgba(220, 210, 195, 0.8);
  box-shadow: var(--shadow-paper-lift);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1.5px dashed rgba(220, 210, 195, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--crayola-strawberry);
}

.modal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

.modal-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1.5px dashed rgba(220, 210, 195, 0.6);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ==============================================================================
   17. DASHBOARD & CONTROL PANEL LAYOUT
   ============================================================================== */
.dashboard-body {
  background-color: #F8F9FA;
  color: var(--ink-charcoal);
  font-family: var(--font-ui);
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dashboard-sidebar h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-charcoal);
}

.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dashboard-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: #4A5568;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.dashboard-sidebar nav a:hover {
  background: #F1F5F9;
  color: var(--crayola-ultramarine);
}

.dashboard-sidebar nav hr {
  border: none;
  border-top: 1px solid #E2E8F0;
  margin: 1rem 0;
}

.dashboard-sidebar .logout-btn {
  color: #DC2626 !important;
}

/* The admin logout is a form button styled like the sidebar links */
.dashboard-sidebar button.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.dashboard-sidebar button.logout-btn:hover {
  background: #F1F5F9;
}

.dashboard-main {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  max-width: 1400px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--ink-charcoal);
  text-decoration: underline;
}

.login-body {
  background: var(--bg-desk);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-paper-lift);
  border: 1px solid rgba(220, 210, 195, 0.6);
}

.login-card .card-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Login and sign-up pages inside the storefront layout */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.login-card h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.login-card .card-header p {
  color: var(--ink-muted);
  margin: 0;
}

.form-hint {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.auth-switch {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--ink-muted);
  font-weight: 600;
}

.auth-switch a {
  color: var(--crayola-ultramarine);
  font-weight: 800;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem 1.25rem;
  }
}

.login-card .icon-badge {
  width: 60px;
  height: 60px;
  background: var(--crayola-banana);
  color: var(--ink-charcoal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Credits page: balance and the credit packs on sale */
.credits-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.credits-header {
  text-align: center;
  margin-bottom: 2rem;
}

.credits-header .icon-badge {
  width: 60px;
  height: 60px;
  background: var(--crayola-banana);
  color: var(--ink-charcoal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.credits-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.credits-balance {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.credits-explainer {
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.credit-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.credit-pack {
  position: relative;
  background: var(--paper-white);
  border: 1px solid rgba(220, 210, 195, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow-paper-lift);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credit-pack-best {
  border: 2px solid var(--crayola-meadow);
}

.credit-pack-ribbon {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.credit-pack-name {
  font-size: 1.25rem;
  margin: 0;
}

.credit-pack-credits {
  color: var(--ink-muted);
  font-weight: 700;
  margin: 0;
}

.credit-pack-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0 0.75rem;
}

.credit-pack form {
  margin-top: auto;
}

.credit-pack .btn-sticker {
  width: 100%;
  justify-content: center;
}

.credits-back {
  text-align: center;
  margin: 2rem 0 0;
  font-weight: 700;
}

.credits-back a {
  color: var(--crayola-ultramarine);
}

.btn-login-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--crayola-strawberry);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: var(--radius-sticker-pill);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 0 var(--crayola-strawberry-shadow);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.12s;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
}

.prompt-box {
  background: #FAF6EF;
  border-left: 4px solid var(--crayola-banana);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.85rem;
}

.stroke-info {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ==============================================================================
   18. GLOBAL FOOTER
   ============================================================================== */
.app-footer {
  text-align: center;
  padding: 1rem 1.5rem;
  margin-top: auto;
  border-top: 1.5px dashed rgba(220, 210, 195, 0.6);
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-footer a {
  color: var(--ink-charcoal);
  font-weight: 700;
}

/* Keep the main footer compact so the homepage fits above the fold */
.app-footer {
  padding-block: 0.6rem;
}

.app-footer p {
  margin: 0;
}

/* Language switcher (footer) */
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.language-switcher-current {
  font-weight: 800;
  color: var(--ink-charcoal);
}

/* "View in your language?" suggestion banner */
.locale-banner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem auto 0;
  max-width: 960px;
  padding: 0.6rem 1rem;
  border: 1.5px dashed var(--crayola-ultramarine);
  border-radius: 12px;
  background: var(--paper-white);
  box-shadow: var(--shadow-paper);
  color: var(--ink-charcoal);
  font-weight: 600;
}

.locale-banner[hidden] {
  display: none;
}

.locale-banner-action {
  color: var(--crayola-ultramarine-shadow);
  font-weight: 800;
}

.locale-banner-dismiss {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
}

/* ==============================================================================
   19. RESPONSIVENESS OVERRIDES
   ============================================================================== */
@media (max-width: 900px) {
  .grid-sidebar {
    grid-template-columns: 1fr;
  }
  .form-split {
    grid-template-columns: 1fr;
  }
  .dashboard-wrapper {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
  }
  .theme-showcase-nav,
  .nav-ribbon {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .daily-showcase-stage {
    padding: 0.5rem 0.75rem 1rem 0.75rem;
  }
  .daily-sheet-image {
    height: clamp(200px, 44vh, 420px);
    max-height: clamp(200px, 44vh, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-splatter {
    animation: none !important;
  }
}

/* ==============================================================================
   20. ZERO-FRICTION PRINT STYLESHEET (@media print)
   ============================================================================== */
@media print {
  @page {
    size: auto;
    margin: 0mm;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  header,
  footer,
  nav,
  .theme-showcase-nav,
  .nav-ribbon,
  .app-footer,
  .breadcrumb-nav,
  .messy-canvas-decor,
  .btn-sticker,
  .btn-washi-nav,
  .craft-alert-banner,
  .locale-banner,
  .neo-alert,
  .remix-panel,
  .upsell-banner,
  .faq-panel {
    display: none !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .printable-sheet-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #FFFFFF !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .printable-sheet-container img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: auto !important;
  }
}

/* ==============================================================================
   ADMIN ANALYTICS DASHBOARD
   ============================================================================== */
.analytics-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.25rem;
}

.analytics-range-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.analytics-range-btn:hover { color: var(--crayola-ultramarine); }

.analytics-range-btn.is-active {
  background: var(--crayola-ultramarine);
  color: #FFFFFF;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1rem;
}

.analytics-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
}

.analytics-stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.analytics-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-charcoal);
  font-variant-numeric: tabular-nums;
}

.analytics-stat-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.analytics-charts,
.analytics-breakdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
}

.analytics-chart-card,
.analytics-breakdown {
  padding: 1.25rem 1.5rem;
}

.analytics-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--ink-charcoal);
}

.analytics-section-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

/* Daily bar chart: thin bars, 2px gaps, rounded data-ends on a quiet baseline */
.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 160px;
  border-bottom: 1px solid #E2E8F0;
}

.analytics-bar-slot {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: default;
}

.analytics-bar-slot:hover { background: #F1F5F9; }

.analytics-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
}

.analytics-bar-visits { background: var(--crayola-ultramarine); }
.analytics-bar-prints { background: var(--crayola-meadow); }

.analytics-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Breakdown rows: label and count over a faint share-of-total fill */
.analytics-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 2px;
  font-size: 0.9rem;
  border-radius: 6px;
  overflow: hidden;
}

.analytics-row-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(58, 134, 255, 0.12);
  border-radius: 6px;
}

.analytics-row-label,
.analytics-row-count {
  position: relative;
}

.analytics-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-row-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.analytics-daily summary {
  padding: 1.25rem 1.5rem;
  margin: 0;
  cursor: pointer;
}

/* ==============================================================================
   404 PAGE
   ============================================================================== */
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--crayola-strawberry);
  text-shadow: 4px 4px 0 var(--crayola-banana);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.not-found-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.not-found-categories a {
  text-decoration: none;
  color: var(--ink-charcoal);
}

/* Admin translation review */
.translation-source { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; margin: 0; }
.translation-source dt { font-weight: 700; color: var(--text-muted, #6B7280); }
.translation-source dd { margin: 0; overflow-wrap: anywhere; }
.translation-status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.translation-status-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
